1 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
3 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
4 for NetBSD. Problem reported by Bruno Haible.
6 2006-10-09 Jim Meyering <jim@meyering.net>
8 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
9 Patch from Bruno Haible.
11 2006-10-09 Jim Meyering <jim@meyering.net>
13 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
14 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
15 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
17 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
19 Don't include <config.h> twice; this doesn't work in some cases,
20 e.g., when config.h has "#define intmax_t long long int" and
21 we include <config.h>, <inttypes.h>, <config.h> in that order.
22 Problem reported by Matthew Woehlke in:
23 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
24 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
25 * lib/fts-cycle.c: Don't include config.h.
26 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
27 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
28 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
29 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
31 * lib/xstrtoumax.c: Likewise.
32 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
33 __strtol and the like, so that this module is more like its siblings.
34 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
35 Remove; no longer needed now that we assume gnulib inttypes.h.
37 2006-10-08 Bruno Haible <bruno@clisp.org>
39 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink option.
41 2006-10-07 Jim Meyering <jim@meyering.net>
43 * modules/inttypes (inttypes.h): Revert what seems to have been
44 an inadvertent part of today's change: use "|", not "/" in the
45 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47 2006-10-07 Bruno Haible <bruno@clisp.org>
49 * modules/sublist: New file.
51 2006-10-07 Bruno Haible <bruno@clisp.org>
53 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
54 * modules/argz (argz.h): Likewise.
55 * modules/arpa_inet (arpa/inet.h): Likewise.
56 * modules/byteswap (byteswap.h): Likewise.
57 * modules/configmake (configmake.h): Likewise.
58 * modules/fcntl (fcntl.h): Likewise.
59 * modules/fnmatch (fnmatch.h): Likewise.
60 * modules/getopt (getopt.h): Likewise.
61 * modules/glob (glob.h): Likewise.
62 * modules/inttypes (inttypes.h): Likewise.
63 * modules/netinet_in (netinet/in.h): Likewise.
64 * modules/poll (poll.h): Likewise.
65 * modules/stdbool (stdbool.h): Likewise.
66 * modules/stdint (stdint.h): Likewise.
67 * modules/sys_select (sys/select.h): Likewise.
68 * modules/sys_socket (sys/socket.h): Likewise.
69 * modules/sys_stat (sys/stat.h): Likewise.
70 * modules/sysexits (sysexits.h): Likewise.
71 * modules/unistd (unistd.h): Likewise.
72 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73 Add a "DO NOT EDIT" comment to the generated file.
74 (func_import): Likewise for gnulib-comp.m4.
76 2006-10-07 Bruno Haible <bruno@clisp.org>
78 * lib/gl_sublist.h: New file.
79 * lib/gl_sublist.c: New file.
81 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
83 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
84 name (relative to the original working directory) and the file
85 name component (relative to the temporary working directory). All
87 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
88 * lib/mkdir-p.c (make_dir_parents): Likewise.
89 * lib/mkdir-p.h (make_dir_parents): Likewise.
91 2006-10-06 Eric Blake <ebb9@byu.net>
93 Define several macros for use by the clean-temp module.
94 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
95 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
98 * lib/clean-temp.h (close_stream_temp): New declaration.
99 * lib/clean-temp.c (includes): Pull in headers according to what
100 other modules are in use.
101 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
103 2006-10-06 Bruno Haible <bruno@clisp.org>
105 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
106 instead of fopen, fwriteerror.
108 2006-10-06 Bruno Haible <bruno@clisp.org>
110 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
113 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
114 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
115 Return an error indicator.
116 Suggested by Eric Blake.
118 2006-10-06 Bruno Haible <bruno@clisp.org>
120 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
121 Reported by Eric Blake.
123 2006-10-06 Bruno Haible <bruno@clisp.org>
125 * modules/closeout (Description): Mention stderr too.
127 2006-10-06 Bruno Haible <bruno@clisp.org>
128 and Paul Eggert <eggert@cs.ucla.edu>
130 * lib/closeout.c (close_stdout): Also close stderr.
131 * lib/closeout.h: Update comment.
133 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
135 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
136 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
137 * lib/dirchownmod.c: Include lchown.h.
138 * lib/lchown.c: Don't include files that lchown.h now includes.
139 Don't declare chown, since lchown.h now does that.
140 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
141 (lchown): Define to rpl_chown if lchown is declared but
142 does not exist. Declare using a prototype if lchown is not
143 declared. Add a copyright notice.
144 * lib/mkstemp.h: Include <unistd.h>.
145 * lib/openat.c: Include lchown.h.
147 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
148 we now test for that separately.
149 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
150 rather than O_NOFOLLOW, when testing whether it's possible to
151 avoid a race condition reliably.
152 * lib/savewd.c (savewd_chdir): Likewise.
154 Remove macros that are no longer needed now that stdint.h is
156 * lib/fsusage.c (UINTMAX_MAX): Remove.
157 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
158 * lib/utimecmp.c (SIZE_MAX): Remove.
160 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
162 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
163 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
166 2006-10-05 Bruno Haible <bruno@clisp.org>
168 * lib/gl_list.h (gl_sortedlist_search_from_to,
169 gl_sortedlist_indexof_from_to): New declarations.
170 (gl_list_implementation): New fields sortedlist_search_from_to,
171 sortedlist_indexof_from_to.
172 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
174 * lib/gl_list.c (gl_sortedlist_search_from_to,
175 gl_sortedlist_indexof_from_to): New functions.
176 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New function.
177 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
178 (gl_array_sortedlist_search_from_to): New function.
179 (gl_array_list_implementation): Update.
180 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New function.
181 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
182 (gl_carray_sortedlist_search_from_to): New function.
183 (gl_carray_list_implementation): Update.
184 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
185 gl_linked_sortedlist_indexof_from_to): New functions.
186 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
187 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
188 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
189 gl_tree_sortedlist_indexof_from_to): New functions.
190 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
191 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation): Update.
192 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
193 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation): Update.
195 2006-10-05 Bruno Haible <bruno@clisp.org>
197 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
198 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
199 (struct gl_list_implementation): Add fields search_from_to,
200 indexof_from_to. Remove fields search, indexof.
201 (gl_list_search): Use the search_from_to method.
202 (gl_list_search_from, gl_list_search_from_to): New functions.
203 (gl_list_indexof): Use the indexof_from_to method.
204 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
205 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
206 (gl_list_search_from, gl_list_search_from_to): New functions.
207 (gl_list_indexof): Use the indexof_from_to method.
208 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
209 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
210 gl_array_indexof. Add start_index, end_index arguments.
211 (gl_array_search_from_to): Renamed from gl_array_search. Add
212 start_index, end_index arguments.
213 (gl_array_remove, gl_array_list_implementation): Update.
214 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
215 gl_carray_indexof. Add start_index, end_index arguments.
216 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
217 start_index, end_index arguments.
218 (gl_carray_remove, gl_carray_list_implementation): Update.
219 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
220 gl_linked_search. Add start_index, end_index arguments.
221 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
222 start_index, end_index arguments.
223 (gl_linked_remove): Update.
224 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
225 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
226 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp' field
228 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
229 gl_tree_search. Add start_index, end_index arguments.
230 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
231 start_index, end_index arguments.
232 (gl_tree_remove): Update.
233 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
234 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
235 * lib/gl_anytreehash_list1.h (compare_position_threshold): New function.
236 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
237 gl_tree_search. Add start_index, end_index arguments.
238 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
239 start_index, end_index arguments.
240 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation): Update.
241 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
243 2006-10-05 Bruno Haible <bruno@clisp.org>
245 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
247 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
248 fwriteerror_temp): New declarations.
249 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
250 (descriptors): New variable.
251 (cleanup): First, close the descriptors.
252 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
253 fclose_temp, fwriteerror_temp): New functions.
255 2006-10-04 Jim Meyering <jim@meyering.net>
257 * lib/fts.c (fts_open): Tiny comment change.
259 2006-10-04 Bruno Haible <bruno@clisp.org>
261 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
262 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
264 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
265 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
267 (gl_LOCK): Require gl_LOCK_BODY.
269 2006-10-04 Bruno Haible <bruno@clisp.org>
271 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
272 (gl_oset_search_atleast): New declaration.
273 (struct gl_oset_implementation): Add field 'search_atleast'.
274 (gl_oset_search_atleast): New inline function.
275 * lib/gl_oset.c (gl_oset_search_atleast): New function.
276 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
277 (gl_array_oset_implementation): Update.
278 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
279 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
280 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
282 2006-10-04 Bruno Haible <bruno@clisp.org>
284 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
286 2006-10-03 Bruno Haible <bruno@clisp.org>
288 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
289 from gl_avltreehash_list_implementation.
291 2006-10-03 Bruno Haible <bruno@clisp.org>
293 * lib/gl_oset.c (gl_oset_add): Fix return type.
295 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
297 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
299 2006-10-02 Eric Blake <ebb9@byu.net>
301 * modules/strnlen (Depends-on): Add extensions.
303 2006-10-02 Eric Blake <ebb9@byu.net>
305 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
308 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
310 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant checks.
312 2006-10-02 Bruno Haible <bruno@clisp.org>
314 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
315 to the AUTOMAKE_OPTIONS.
316 Reported by Jim Meyering.
318 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
320 Work around bug in Solaris 10 /proc file system:
321 /proc/self/fd/NNN/.. isn't the parent directory of
322 the directory whose file descriptor is NNN. This needs to
323 be worked around at run time, not compile time, since a
324 program might be built on Solaris 8, where things work, and
326 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
327 to use the following interface instead:
328 (OPENAT_BUFFER_SIZE): New macro.
329 (openat_proc_name): New function.
330 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
331 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
333 * lib/openat-proc.c: New file.
334 * modules/openat (Files): Add lib/openat-proc.c.
335 (Depends-on): Add same-inode, stdbool.
336 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
338 2006-09-29 Bruno Haible <bruno@clisp.org>
340 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
341 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
342 argument. Set stdout_closed before testing for ferror, not after.
343 (fwriteerror, fwriteerror_no_ebadf): New functions.
345 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
347 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
349 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
351 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
352 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
354 2006-09-28 Jim Meyering <jim@meyering.net>
356 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
359 2006-09-28 Bruno Haible <bruno@clisp.org>
361 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
362 * modules/linkedhash-list (Depends-on): Likewise.
363 * modules/rbtreehash-list (Depends-on): Likewise.
365 2006-09-28 Bruno Haible <bruno@clisp.org>
367 * lib/strndup.h: Simplify the redefinition of strndup.
368 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
369 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
371 2006-09-28 Bruno Haible <bruno@clisp.org>
373 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
374 * lib/gl_linkedhash_list.c: Likewise.
375 * lib/gl_rbtreehash_list.c: Likewise.
377 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
379 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
382 * lib/__fpending.h: Don't include <stdio_ext.h> unless
383 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
384 it causes <stdio_ext.h> to cause a compile-time error.
385 Problem reported by Nelson H. F. Beebe.
386 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
387 of HAVE_DECL___PENDING.
389 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
390 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's declaration.
392 2006-09-27 Jim Meyering <jim@meyering.net>
394 This file could end up with a definition for a function
395 named __strndup, rather than rpl_strndup on a system with
396 incomplete weak_alias support.
397 * lib/strndup.c (strndup): Rename from __strndup.
398 Remove #defines that used to map __strndup to strndup.
399 Don't use K&R prototypes.
400 Remove LIBC-related code, since this file is not sync'd with glibc.
401 * lib/strndup.h: Revamp, accordingly.
402 * m4/strndup.m4: Modernize.
404 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
406 * modules/savewd (Depends-on): Add 'raise'.
407 * lib/savewd.c: Include <signal.h>, for 'raise'.
409 2006-09-26 Jim Meyering <jim@meyering.net>
411 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
412 when we detect Darwin 8.7.0's acl_get_file bug.
413 Rearrange to perform the new (below) run-test while $LIBS
414 contains any acl-related library. Set USE_ACL at the end.
415 (gl_ACL_GET_FILE): New function.
417 2006-09-26 Eric Blake <ebb9@byu.net>
419 * lib/verror.c: Include <config.h> unconditionally.
421 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
423 * modules/clock-time (Maintainer): Add self.
424 * modules/getlogin_r (Depends-on): Add extensions.
426 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
428 * modules/clock-time: New module.
429 * modules/nanosleep (Depends-on): Add clock-time.
430 * modules/gethrxtime (Depends-on): Likewise.
431 * modules/gettime (Depends-on): Likewise.
432 * modules/settime (Depends-on): Likewise.
434 * modules/fts-lgpl: Depend on openat.
435 * modules/mkancesdirs: Depend on savewd.
436 * modules/mkdir-p: Likewise.
438 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
440 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
442 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
443 `gl_have_arbitrary_file_name_length_limit' to
444 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
445 actually works between configure runs.
447 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
448 Bruno Haible <bruno@clisp.org>
450 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
452 2006-09-25 Jim Meyering <jim@meyering.net>
454 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
455 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
457 2006-09-25 Eric Blake <ebb9@byu.net>
459 * gnulib-tool (func_import, func_create_testdir): Fix typos in
460 exec's in 2006-09-18 patch when shuffling fds.
462 2006-09-25 Bruno Haible <bruno@clisp.org>
464 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
465 Reported by Jim Meyering.
467 2006-09-24 Jim Meyering <jim@meyering.net>
469 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
470 compare a pointer against a literal "0". That caused failures with
471 at least HP-UX's hpcc.
473 2006-09-22 Simon Josefsson <jas@extundo.com>
477 * modules/gc-hmac-sha1:
478 * modules/gc-hmac-md5:
480 * modules/gc-arcfour: Distribute more files.
482 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
484 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
485 (gl_linked_iterator_from_to): Initialize struct completely.
486 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
487 (gl_tree_iterator_from_to): Likewise
488 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
489 * lib/gl_array_list.c [lint] (gl_array_iterator)
490 (gl_array_iterator_from_to): Likewise.
491 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
492 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
493 (gl_carray_iterator_from_to): Likewise.
495 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
496 * lib/md4.c (md4_process_block): Remove unused variable.
497 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
498 parentheses for clarity.
500 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
502 * modules/bison-i18n (Depends-on): Add gettext.
504 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
506 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
507 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
508 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
509 also add missing comma that caused broken test.
510 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
511 stdlib.h, for `abort'.
512 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
514 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
515 include unistd.h if present, for `rmdir'.
516 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
518 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
519 in the process include standard headers for prototypes.
520 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
521 gets declared on GNU/Linux.
522 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
523 unistd.h, for `rmdir'.
524 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
526 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
528 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
530 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
532 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
534 * gnulib-tool (func_version): Create output all at once. This
535 may help avoid triggering unnecessary SIGPIPEs, and at any
536 rate it doesn't hurt.
538 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
539 Bruno Haible <bruno@clisp.org>
541 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
542 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
543 * m4/signed.m4 (bh_C_SIGNED): Likewise.
545 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
546 (gl_FUNC_VASPRINTF): Invoke it.
548 2006-09-22 Bruno Haible <bruno@clisp.org>
550 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of getloadavg.c
553 2006-09-22 Bruno Haible <bruno@clisp.org>
555 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
556 at the beginning of the gl_INIT macro.
557 * modules/getloadavg (configure.ac): Pass $gl_source_base to
560 2006-09-22 Bruno Haible <bruno@clisp.org>
562 * gnulib-tool (func_create_megatestdir): Don't include the config-h
564 Suggested by Ralf Wildenhues.
566 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
568 Import this patch from libc:
570 2006-09-06 Jakub Jelinek <jakub@redhat.com>
572 * lib/regex_internal.c (re_string_reconstruct): Handle
573 offset < pstr->valid_raw_len && pstr->offsets_needed case.
574 Ensure no bytes read before raw_mbs array. Pass a saved copy of
575 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
576 re_string_context_at.
578 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
580 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
581 gl_REGEX now does it for us.
582 (gl_REGEX): Add test taken from
583 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
585 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
586 Check that large offsets work. Modernize Autoconf usages.
587 Prefer "yes" to mean a good thing rather than a bad.
588 Don't put "#define mkstemp" in config.h, as this might interfere
589 with standard system headers that "#define mkstemp mkstemp64".
591 * modules/mkstemp (Depends-on): Add extensions, so that
592 mkstemp is visible on some platforms.
593 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
594 (Include): Change to "mkstemp.h" from <stdlib.h>.
595 (Files): Add mkstemp.h.
597 * lib/mkstemp.h: New file, since some standard headers
599 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
601 Make the _LIBC code resemble glibc original more,
603 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
604 (mkstemp): Remove, since mkstemp.h does this for us.
605 * lib/stdlib--.h: Include mkstemp.h.
607 Import this patch from libc:
609 2006-04-07 Ulrich Drepper <drepper@redhat.com>
611 * lib/tempname.c (__gen_tempname): Change attempts_min
612 into a macro. Use preprocessor to decide how to initialize
613 attempts [Coverity CID 67].
615 2006-09-20 Bruno Haible <bruno@clisp.org>
617 * lib/mkdtemp.c: Import from libc.
618 2006-04-07 Ulrich Drepper <drepper@redhat.com>
619 * sysdeps/posix/tempname.c (__gen_tempname): Change
620 attempts_min into a macro. Use preprocessor to decide how to
621 initialize attempts [Coverity CID 67].
622 2001-11-27 Paul Eggert <eggert@twinsun.com>
623 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
624 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
626 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
628 * gnulib-tool (func_exit): New function, to allow to pass the
629 exit status portably through the trap. Use everywhere.
630 (--help, --version): Signal a write error.
631 (trap): catch SIGPIPE, for write errors.
632 Exit at the end of the trap, with the correct exit status.
634 2006-09-19 Karl Berry <karl@gnu.org>
636 * doc/gnulib.texi: note about the license texinfo files.
638 2006-09-19 Eric Blake <ebb9@byu.net>
640 * gnulib-tool: Avoid space-tab.
642 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
644 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
645 that prevented coreutils 6.1 from building. Problem reported
646 by Petter Reinholdtsen.
648 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
650 * gnulib-tool (avoidlist): Fix typo that broke options like
651 --avoid=lock that are used by coreutils bootstrap.
653 2006-09-18 Mark D. Baushke <mdb@gnu.org>
655 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
658 2006-09-18 Jim Meyering <jim@meyering.net>
660 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
662 2006-09-18 Bruno Haible <bruno@clisp.org>
664 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
666 2006-09-18 Bruno Haible <bruno@clisp.org>
668 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
669 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
670 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
671 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
672 * m4/gettext.m4: Require autoconf >= 2.52.
673 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
674 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
675 of gl_cv_header_inttypes_h.
677 2006-09-18 Bruno Haible <bruno@clisp.org>
679 * lib/javaversion.c: Include configmake.h.
681 2006-09-18 Bruno Haible <bruno@clisp.org>
683 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
684 avoid that the while loops be executed in a subshell.
686 2006-09-18 Bruno Haible <bruno@clisp.org>
688 * MODULES.html.sh (func_module): Break long lines.
689 Suggested by Bruce Korb <bkorb@gnu.org>.
691 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
693 Speed up by a factor of 1.12.
694 * gnulib-tool (nl): New variable.
695 (func_import): Rewrite include directive extraction to only read each
698 2006-09-17 Bruno Haible <bruno@clisp.org>
700 * modules/javaversion (Makefile.am): Remove DEFS setting.
701 (Depends-on): Add configmake, for PKGDATADIR definition.
703 2006-09-17 Bruno Haible <bruno@clisp.org>
705 * gnulib-tool (func_create_testdir): Rewrite all files at once.
707 2006-09-17 Bruno Haible <bruno@clisp.org>
709 * gnulib-tool (func_append): New function, stolen from libtool.m4.
710 (func_modules_transitive_closure, func_modules_add_dummy,
711 func_modules_to_filelist, func_import, func_create_testdir,
712 func_create_megatestdir, ...): Use it wherever possible.
713 Suggested by Ralf Wildenhues.
715 2006-09-16 Karl Berry <karl@gnu.org>
717 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
718 to avoid sectioning errors.
719 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
720 [ifinfo]: blank line after @center-ed titles.
721 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
722 Spell FSF address consistently with others.
723 (These changes approved by rms.)
725 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
727 Speed up by a factor of 1.61.
728 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
729 already checked module names again.
731 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
733 Speed up by a factor of 1.13.
734 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
735 for new_files, and the input to func_add_or_update.
737 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
739 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
740 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
742 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
744 * modules/mkancesdirs (Depends-on): Add fcntl.
745 * modules/savewd: New file.
746 * MODULES.html.sh (File system functions): Add savewd.
748 * modules/configmake (Makefile.am): Add support for the
749 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
751 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
753 * m4/savewd.m4: New file.
755 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
757 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
758 (dirchownmod): New arg FD. All callers changed.
759 Use FD rather than opening the directory ourself, as opening is
760 now the caller's responsibility.
761 * lib/dirchownmod.h: Likewise.
762 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
763 hosts that require <sys/types.h> before <sys/stat.h>. Include
764 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
766 (mkancesdirs): Return length of prefix of FILE that has already
767 been made, or -2 if there is a child doing the work. Redo
768 algorithm so that it is O(N) rather than O(N**2). Optimize away
769 ".", and treat ".." specially since it might stray back into
770 already-created areas. Use a subprocess if necessary. New arg
771 WD; all users changed. MAKE_DIR function should now return 1
772 if it creates a directory that is not readable. Return -2 if
773 a child process is spun off.
774 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
775 Adjust signature to match code.
776 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
777 (make_dir_parents): Use a subprocess if necessary. New arg WD;
779 * lib/savewd.c, savewd.h: New files.
781 2006-09-15 Jim Meyering <jim@meyering.net>
783 * modules/rename-dest-slash: New module.
784 * MODULES.html.sh (posix_compat): Add it here.
786 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
788 2006-09-15 Jim Meyering <jim@meyering.net>
790 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New file.
792 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
794 2006-09-15 Jim Meyering <jim@meyering.net>
796 * lib/rename-dest-slash.c (has_trailing_slash): Use
797 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
798 (rpl_rename_dest_slash): Perform the cheaper trailing slash
799 test before testing whether SRC is a directory.
800 Suggestions from Bruno Haible.
802 Avoid a warning about an unused variable.
803 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
804 into the #ifdef block where it's used.
806 * lib/rename-dest-slash.c: New file.
808 2006-09-14 Bruno Haible <bruno@clisp.org>
810 * lib/allocsa.c: Include <config.h> unconditionally.
811 * lib/asnprintf.c: Likewise.
812 * lib/asprintf.c: Likewise.
813 * lib/c-strcasecmp.c: Likewise.
814 * lib/c-strcasestr.c: Likewise.
815 * lib/c-strncasecmp.c: Likewise.
816 * lib/c-strstr.c: Likewise.
817 * lib/classpath.c: Likewise.
818 * lib/clean-temp.c: Likewise.
819 * lib/concatpath.c: Likewise.
820 * lib/copy-file.c: Likewise.
821 * lib/csharpcomp.c: Likewise.
822 * lib/csharpexec.c: Likewise.
823 * lib/execute.c: Likewise.
824 * lib/fatal-signal.c: Likewise.
825 * lib/findprog.c: Likewise.
826 * lib/fwriteerror.c: Likewise.
827 * lib/gl_array_list.c: Likewise.
828 * lib/gl_array_oset.c: Likewise.
829 * lib/gl_avltree_list.c: Likewise.
830 * lib/gl_avltree_oset.c: Likewise.
831 * lib/gl_avltreehash_list.c: Likewise.
832 * lib/gl_carray_list.c: Likewise.
833 * lib/gl_linked_list.c: Likewise.
834 * lib/gl_linkedhash_list.c: Likewise.
835 * lib/gl_list.c: Likewise.
836 * lib/gl_oset.c: Likewise.
837 * lib/gl_rbtree_list.c: Likewise.
838 * lib/gl_rbtree_oset.c: Likewise.
839 * lib/gl_rbtreehash_list.c: Likewise.
840 * lib/imaxabs.c: Likewise.
841 * lib/imaxdiv.c: Likewise.
842 * lib/javacomp.c: Likewise.
843 * lib/javaexec.c: Likewise.
844 * lib/javaversion.c: Likewise.
845 * lib/linebreak.c: Likewise.
846 * lib/localcharset.c: Likewise.
847 * lib/lock.c: Likewise.
848 * lib/mbchar.c: Likewise.
849 * lib/mbswidth.c: Likewise.
850 * lib/mkdtemp.c: Likewise.
851 * lib/pipe.c: Likewise.
852 * lib/printf-args.c: Likewise.
853 * lib/printf-parse.c: Likewise.
854 * lib/progname.c: Likewise.
855 * lib/progreloc.c: Likewise.
856 * lib/readlink.c: Likewise.
857 * lib/sh-quote.c: Likewise.
858 * lib/stpcpy.c: Likewise.
859 * lib/stpncpy.c: Likewise.
860 * lib/strcasecmp.c: Likewise.
861 * lib/strcasestr.c: Likewise.
862 * lib/strcspn.c: Likewise.
863 * lib/striconv.c: Likewise.
864 * lib/strncasecmp.c: Likewise.
865 * lib/strnlen1.c: Likewise.
866 * lib/strstr.c: Likewise.
867 * lib/strtok_r.c: Likewise.
868 * lib/tls.c: Likewise.
869 * lib/tmpdir.c: Likewise.
870 * lib/unicodeio.c: Likewise.
871 * lib/unsetenv.c: Likewise.
872 * lib/vasnprintf.c: Likewise.
873 * lib/vasprintf.c: Likewise.
874 * lib/wait-process.c: Likewise.
875 * lib/xallocsa.c: Likewise.
876 * lib/xsetenv.c: Likewise.
877 * lib/xstriconv.c: Likewise.
879 2006-09-13 Simon Josefsson <jas@extundo.com>
881 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
882 that internally, suggested by Ralf Wildenhues
883 <Ralf.Wildenhues@gmx.de>.
885 2006-09-13 Simon Josefsson <jas@extundo.com>
887 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
889 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
891 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
893 * lib/_fpending.c: Include <config.h> unconditionally, since we no
894 longer worry about uses that don't define HAVE_CONFIG_H.
895 * lib/acl.c, alloca.c, argmatch.c, atexit.c, backupfile.c:
896 * lib/basename.c, c-stack.c, c-strtod.c, calloc.c, canon-host.c:
897 * lib/canonicalize.c, chdir-long.c, chdir-safer.c, chown.c:
898 * lib/cloexec.c, close-stream.c, closeout.c, creat-safer.c:
899 * lib/cycle-check.c, diacrit.c, dirchownmod.c, dirfd.c, dirname.c:
900 * lib/dup-safer.c, dup2.c, error.c, euidaccess.c, exclude.c:
901 * lib/exitfail.c, fchmodat.c, fchown-stub.c, fd-safer.c:
902 * lib/file-type.c, fileblocks.c, filemode.c, filenamecat.c:
903 * lib/fnmatch.c, fopen-safer.c, fprintftime.c, free.c, fsusage.c:
904 * lib/ftruncate.c, fts-cycle.c, fts.c, full-write.c, gai_strerror.c:
905 * lib/getcwd.c, getdate.y, getdomainname.c, getgroups.c:
906 * lib/gethostname.c, gethrxtime.c, getloadavg.c, getlogin_r.c:
907 * lib/getndelim2.c, getnline.c, getopt.c, getopt1.c, getpass.c:
908 * lib/gettime.c, gettimeofday.c, getugroups.c, getusershell.c:
909 * lib/glob.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c:
910 * lib/human.c, idcache.c, inet_ntop.c, inet_pton.c, inttostr.c:
911 * lib/isdir.c, lchown.c, linebuffer.c, long-options.c, lstat.c:
912 * lib/malloc.c, md5.c, memcasecmp.c, memchr.c, memcmp.c, memcoll.c:
913 * lib/memcpy.c, memmove.c, memrchr.c, mkancesdirs.c, mkdir-p.c:
914 * lib/mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c, modechange.c:
915 * lib/mountlist.c, nanosleep.c, obstack.c, open-safer.c:
916 * lib/openat-die.c, openat.c, pagealign_alloc.c, physmem.c:
917 * lib/pipe-safer.c, posixtm.c, posixver.c, putenv.c, quote.c:
918 * lib/quotearg.c, raise.c, readtokens.c, readtokens0.c, readutmp.c:
919 * lib/realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c:
920 * lib/same.c, save-cwd.c, savedir.c, setenv.c, settime.c, sha1.c:
921 * lib/sig2str.c, snprintf.c, strdup.c, strerror.c, strftime.c:
922 * lib/stripslash.c, strndup.c, strnlen.c, strpbrk.c, strtod.c:
923 * lib/strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c:
924 * lib/timegm.c, tmpfile-safer.c, unlinkdir.c, userspec.c, utime.c:
925 * lib/utimecmp.c, utimens.c, version-etc-fsf.c, version-etc.c:
926 * lib/xalloc-die.c, xgetcwd.c, xgethostname.c, xmalloc.c:
927 * lib/xmemcoll.c, xnanosleep.c, xreadlink.c, xstrtod.c:
928 * lib/xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c:
931 2006-09-13 Eric Blake <ebb9@byu.net>
933 * lib/getopt.c: Fix typo in last commit.
935 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
937 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
940 2006-09-12 Jim Meyering <jim@meyering.net>
942 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
943 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
944 Reported by Nelson H. F. Beebe.
946 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
948 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
949 program_invocation_name and program_invocation_short_name are
951 * lib/argp-namefrob.h: Move declarations of program_invocation_name
952 and program_invocation_short_name to argp.h, so they are visible
954 * lib/argp.h: Likewise
956 2006-09-10 Bruno Haible <bruno@clisp.org>
958 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
959 m4/inttypes_h.m4, m4/uintmax_t.m4.
961 2006-09-10 Bruno Haible <bruno@clisp.org>
963 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require gl_AC_TYPE_UINTMAX_T.
965 2006-09-10 Bruno Haible <bruno@clisp.org>
967 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
969 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
971 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
972 convention. Text proposed by Bruno Haible.
973 (struct argp_option): Document the use of N_() wrappers.
975 * lib/argp-help.c (argp_doc): Split the untranslated doc string on '\v',
976 and translate the two parts separately, instead of feeding
977 the whole string to gettext. This allows to exclude
978 '\v' from the strings visible to the translator by writing doc
979 strings as N_("..") "\v" N_("..").
981 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
983 * config/srclist.txt: Undo latest change; the bug was fixed.
985 2006-09-09 Bruno Haible <bruno@clisp.org>
987 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
988 assignments if building a library without libtool.
989 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
990 in func_emit_lib_Makefile_am.
991 (func_import): When building a static library libfoo.a, arrange to
992 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
993 (func_create_testdir): Likewise.
994 * modules/gc (configure.ac, Makefile.am): If building statically,
995 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
996 * modules/iconvme (configure.ac, Makefile.am): Likewise.
997 * modules/striconv (configure.ac, Makefile.am): Likewise.
998 Based on a suggestion by Ralf Wildenhues.
1000 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1002 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1003 Check for unistd.h too, since Autoconf doesn't assume POSIX.
1006 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1007 Add year_2050_test to catch glibc bug 2821
1008 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1010 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
1011 Prefer #ifdef to #if.
1013 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
1014 Return from 'main' instead of calling 'exit'.
1016 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1018 * lib/mktime.c (guess_time_tm): Fix bug where mktime
1019 returned the maximum time_t value rather than (time_t) -1.
1020 Problem originally reported by William Bardwell
1021 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1023 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
1025 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
1028 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1030 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
1033 2006-09-08 Jim Meyering <jim@meyering.net>
1035 Don't make generated files read-only. That would bother too many
1036 people. However, do retain the ability to work when targets are
1037 read-only: remove the destination and temporary files before writing
1038 them (when generated via sed or echo), or by using the -f option for
1039 both cp and mv commands. Suggestion to use -f from Paul Eggert.
1040 * modules/alloca-opt, modules/argz, modules/arpa_inet:
1041 * modules/byteswap, modules/configmake, modules/fcntl:
1042 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
1043 * modules/localcharset, modules/netinet_in, modules/poll:
1044 * modules/stdbool, modules/stdint, modules/sys_select:
1045 * modules/sys_socket, modules/sys_stat, modules/sysexits:
1047 2006-09-08 Jim Meyering <jim@meyering.net>
1049 Avoid new build failure on FreeBSD 6.0.
1050 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include <sys/param.h>
1051 when testing whether getmntinfo uses statvfs. Patch by Pavel Tsekov,
1052 in <http://savannah.gnu.org/bugs/?17643>.
1054 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1056 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
1058 2006-09-07 Jim Meyering <jim@meyering.net>
1060 Fix global typo in last change: use chmod u-w, not chmod u-x.
1061 Spotted by Paul Eggert and Bruce Korb.
1062 * modules/alloca-opt, modules/argz, modules/arpa_inet:
1063 * modules/byteswap, modules/configmake, modules/fcntl:
1064 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
1065 * modules/localcharset, modules/netinet_in, modules/poll:
1066 * modules/stdbool, modules/stdint, modules/sys_select:
1067 * modules/sys_socket, modules/sys_stat, modules/sysexits:
1069 2006-09-06 Jim Meyering <jim@meyering.net>
1071 Make generated files be read-only.
1072 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
1073 Ensure that each generated file is now read-only.
1074 * modules/argz: Likewise.
1075 * modules/arpa_inet: Likewise.
1076 * modules/byteswap: Likewise.
1077 * modules/configmake: Likewise.
1078 * modules/fcntl: Likewise.
1079 * modules/fnmatch: Likewise.
1080 * modules/getopt: Likewise.
1081 * modules/glob: Likewise.
1082 * modules/inttypes: Likewise.
1083 * modules/netinet_in: Likewise.
1084 * modules/poll: Likewise.
1085 * modules/stdbool: Likewise.
1086 * modules/stdint: Likewise.
1087 * modules/sys_select: Likewise.
1088 * modules/sys_socket: Likewise.
1089 * modules/sys_stat: Likewise.
1090 * modules/sysexits: Likewise.
1091 * modules/localcharset: Same as above, but continue using temporary
1092 file named "t-$@" (why different?) rather than the "$@-t" used
1095 * modules/sysexits (Makefile.am): Replace literal occurrences
1096 of "sysexit.h" more readable, and more consistent, "$@".
1098 2006-09-06 Bruno Haible <bruno@clisp.org>
1100 * modules/striconv: New file.
1101 * modules/xstriconv: New file.
1102 * MODULES.html.sh (Internationalization functions): Add striconv,
1105 2006-09-06 Bruno Haible <bruno@clisp.org>
1107 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
1108 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
1109 not using libtool correctly.
1111 2006-09-06 Bruno Haible <bruno@clisp.org>
1113 * lib/striconv.h: New file.
1114 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
1116 * lib/xstriconv.h: New file.
1117 * lib/xstriconv.c: New file.
1119 2006-09-06 Bruno Haible <bruno@clisp.org>
1121 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1124 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1126 * lib/argz_.h: Sync from Libtool.
1128 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
1129 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1131 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
1133 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
1135 * modules/trim: New file.
1137 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
1139 * lib/trim.h: New file.
1140 * lib/trim.c: New file.
1142 2006-09-05 Bruno Haible <bruno@clisp.org>
1144 * MODULES.html.sh (String handling): Add trim.
1146 2006-09-04 Karl Berry <karl@gnu.org>
1148 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
1151 2006-09-03 Bruno Haible <bruno@clisp.org>
1153 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
1156 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1158 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
1159 not gl_GETLOADAVG. Omit unneeded semicolons.
1160 Problems reported by Ralf Wildenhues in
1161 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
1162 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
1163 at the end, which is the usual gnulib style.
1165 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
1166 of doing all the work ourselves.
1167 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
1168 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
1170 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1172 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
1173 Problem reported by Ralf Wildenhues in
1174 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
1176 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
1177 HAVE_STRUCT_STATFS_F_FSTYPENAME.
1179 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1181 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
1182 yesterday's patch by changing test -n to test -z.
1184 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1186 * modules/getloadavg (Files): Add m4/getloadavg.m4.
1187 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
1188 the former is now obsolescent.
1190 * modules/chdir-long (Depends-on): Add fcntl.
1192 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1194 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
1195 obsolescent, and programs should use gnulib instead.
1196 * m4/getloadavg.m4: New file, with contents taken from Autoconf
1197 but with prefixes changed.
1199 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1201 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
1202 or stdbool.h, because they might not exist while configuring.
1204 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
1205 Don't include unistd.h or limits.h; not needed, since chdir-long.h
1207 (O_DIRECTORY): Remove.
1209 2006-08-31 Eric Blake <ebb9@byu.net>
1211 * gnulib-tool: Don't let emacs change spaces to TAB.
1213 2006-08-31 Bruno Haible <bruno@clisp.org>
1215 * gnulib-tool: When calling func_import more than once, do it in a
1217 Reported by Eric Blake <ebb9@byu.net>.
1219 2006-08-31 Bruno Haible <bruno@clisp.org>
1221 * gnulib-tool (nl): Remove variable.
1222 (sed_transform_lib_file): Use more robust test for config-h module.
1223 (func_import): Fix typo in 2006-08-25 patch.
1225 2006-08-31 Bruno Haible <bruno@clisp.org>
1227 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
1228 specified, augment Makefile.am variables instead of assigning them.
1230 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1232 Work around a bug in both the Linux and SunOS 64-bit kernels:
1233 nanosleep mishandles sleeps for longer than 2**31 seconds.
1234 Problem reported by Frank v Waveren in
1235 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
1236 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
1237 Check for nanosleep bug.
1238 (LIB_NANOSLEEP): Append clock_gettime library if needed.
1240 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1242 Work around a bug in both the Linux and SunOS 64-bit kernels:
1243 nanosleep mishandles sleeps for longer than 2**31 seconds.
1244 Problem reported by Frank v Waveren in
1245 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
1246 * lib/nanosleep.c (BILLION): New constant.
1247 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
1248 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new implementation.
1250 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1252 * modules/nanosleep (Depends-on): Add gettime.
1254 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1255 and Simon Josefsson <jas@extundo.com>
1256 and Oskar Liljeblad <oskar@osk.mine.nu>
1258 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
1259 * gnulib-tool (func_import): New license type 'unmodifiable license
1261 * modules/fdl: Use it. Longer description.
1262 * module/gpl, module/lgpl: New files.
1264 2006-08-30 Jim Meyering <jim@meyering.net>
1266 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid shadowing
1269 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1273 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1275 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
1276 sharing with gnulib. Report by Eric Blake.
1278 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1280 * modules/isapipe: New file.
1281 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
1283 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1285 * modules/configmake (Makefile.am): Add a comment, and omit
1286 the CONFIGMAKE_ prefix from generated macro names. Suggested
1289 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1291 * m4/isapipe.m4: New file.
1293 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1295 * lib/isapipe.c, isapipe.h: New files.
1297 2006-08-29 Jim Meyering <jim@meyering.net>
1299 * modules/configmake (Makefile.am): Make configmake.h depend on
1300 Makefile. Otherwise, a stale configmake.h could hang around.
1302 2006-08-29 Eric Blake <ebb9@byu.net>
1304 * lib/error.c (error_at_line, print_errno_message): Match libc, after
1305 resolution of upstream bug 3044.
1307 2006-08-29 Bruno Haible <bruno@clisp.org>
1309 * modules/localcharset (Depends-on): Add configmake.
1310 (Makefile.am): Remove setting of LIBDIR through DEFS.
1312 2006-08-29 Bruno Haible <bruno@clisp.org>
1314 * lib/localcharset.c: Include configmake.h in order to get LIBDIR defined.
1316 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1318 * modules/fcntl: New file.
1319 * modules/chdir-safer (Depends-on): Add fcntl.
1320 * modules/fts: Likewise.
1321 * modules/mkdir-p: Likewise.
1323 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
1324 This undoes the most recent change, since we're now addressing the
1325 problem in a different way.
1327 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
1328 into output, since the output might be called Makefile.am even
1329 if $makefile_name is something different.
1330 (func_import): Use $makefile_am rather than
1331 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
1334 * modules/inttypes (Files): Add m4/inttypes-h.m4.
1336 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1338 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
1339 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most recent
1340 change to stdint.m4, since we're now addressing the problem in a
1343 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1345 * m4/fcntl_h.m4: New file.
1347 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1349 * lib/fcntl_.h: New file.
1350 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
1352 * lib/dirchownmod.c: Likewise.
1353 * lib/fts.c: Likewise.
1355 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
1356 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
1357 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
1358 just before including <inttypes.h>, to avoid circular inclusion.
1360 2006-08-28 Jim Meyering <jim@meyering.net>
1362 * doc/visibility.texi: Actually read and correct the grammar of the
1363 sentence affected by yesterday's change.
1365 2006-08-28 Eric Blake <ebb9@byu.net>
1367 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
1370 2006-08-28 Eric Blake <ebb9@byu.net>
1372 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
1374 2006-08-28 Eric Blake <ebb9@byu.net>
1376 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
1378 2006-08-28 Bruno Haible <bruno@clisp.org>
1380 * modules/c-strstr: New file, from GNU gettext.
1381 * MODULES.html.sh (String handling): Add c-strstr.
1383 2006-08-28 Bruno Haible <bruno@clisp.org>
1385 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
1387 Reported by Eric Blake.
1389 2006-08-28 Bruno Haible <bruno@clisp.org>
1391 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
1392 (VASNPRINTF): Return a string of length > INT_MAX without failing.
1393 * lib/vasprintf.c: Include errno.h, limits.h.
1394 (EOVERFLOW): New fallback definition.
1395 (vasprintf): Test here whether the string length is > INT_MAX.
1396 * lib/vsnprintf.c: Include errno.h, limits.h.
1397 (EOVERFLOW): New fallback definition.
1398 (vsnprintf): Fix bug when generated string was too long for the buffer.
1399 Test here whether the string length is > INT_MAX.
1401 2006-08-28 Bruno Haible <bruno@clisp.org>
1403 * lib/inttypes_.h (SCNX*): Remove definitions.
1404 Reported by Eric Blake.
1406 2006-08-28 Bruno Haible <bruno@clisp.org>
1408 * lib/c-strstr.h: New file, from GNU gettext.
1409 * lib/c-strstr.c: New file, from GNU gettext.
1411 2006-08-28 Bruno Haible <bruno@clisp.org>
1413 * gnulib-tool: Reorder some statements.
1415 2006-08-28 Bruno Haible <bruno@clisp.org>
1417 * gnulib-tool: New option --makefile-name.
1418 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
1420 (func_import): Write $makefile_name to the cache file, and read it from
1421 there unless explicitly specified. Use $makefile_name as file name
1422 instead of Makefile.am. Adjust the recommendations accordingly.
1424 2006-08-28 Bruno Haible <bruno@clisp.org>
1426 * gnulib-tool (func_verify_module): Check against misapplying patch.
1428 2006-08-28 Bruno Haible <bruno@clisp.org>
1430 * gnulib-tool (func_relativize, func_relconcat): New functions.
1431 Give an error if --local-dir is given with --update.
1432 Remove trailing slashes from $local_gnulib_dir.
1433 (func_import): Store the relativized $local_gnulib_dir in
1434 gnulib-cache.m4, and read it from there if not specified explicitly.
1436 2006-08-28 Bruno Haible <bruno@clisp.org>
1438 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
1439 is the current directory. Respect also $local_gnulib_dir.
1441 2006-08-28 Bruno Haible <bruno@clisp.org>
1442 Simon Josefsson <jas@extundo.com>
1445 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
1447 2006-08-27 Jim Meyering <jim@meyering.net>
1449 * doc/visibility.texi: Remove duplicate word: "pointer".
1451 2006-08-26 Bruno Haible <bruno@clisp.org>
1453 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
1454 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
1455 (Makefile.am): Create inttypes.h from inttypes_.h.
1456 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
1458 * modules/imaxabs: New file.
1460 * modules/imaxdiv: New file.
1462 2006-08-26 Bruno Haible <bruno@clisp.org>
1464 * m4/inttypes.m4: New file.
1465 * m4/_inttypes_h.m4: Remove file.
1466 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST PRI_MACROS_BROKEN.
1467 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
1469 * m4/imaxabs.m4: New file.
1471 * m4/imaxdiv.m4: New file.
1473 2006-08-26 Bruno Haible <bruno@clisp.org>
1475 * lib/inttypes_.h: New file.
1476 * lib/inttypes.h: Remove file.
1477 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
1479 * lib/imaxabs.c: New file.
1481 * lib/imaxdiv.c: New file.
1483 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1485 New config-h module, so that "make" output needn't be cluttered
1487 * MODULES.html.sh (Support for building libraries and executables):
1489 * modules/config-h: New file.
1490 * gnulib-tool (nl, sed_transform_lib_file): New vars.
1491 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
1492 the config-h module is used.
1494 New configmake module, so that "make" output needn't be cluttered
1495 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
1496 * MODULES.html.sh (Support for building libraries and executables):
1498 * modules/configmake: New file.
1500 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1502 * m4/config-h.m4: New file.
1504 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
1506 * config/srclist.txt: Add elisp-comp.
1508 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
1510 * MODULES.html.sh (Support for building libraries and executables):
1512 * build-aux/elisp-comp: New file.
1513 * modules/elisp-comp: New file.
1515 2006-08-24 Bruno Haible <bruno@clisp.org>
1517 * gnulib-tool (func_create_testdir): Use non-default values of
1518 sourcebase and m4base.
1520 2006-08-24 Bruno Haible <bruno@clisp.org>
1522 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
1525 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1527 * modules/openat (Depends-on): Add lchown.
1529 2006-08-23 Bruno Haible <bruno@clisp.org>
1531 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
1532 of gl_LOCK_EARLY instead of gl_LOCK.
1534 2006-08-23 Bruno Haible <bruno@clisp.org>
1536 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
1538 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
1540 2006-08-23 Bruno Haible <bruno@clisp.org>
1542 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
1545 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
1546 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
1547 (gl_LOCK): New macro.
1549 2006-08-22 Simon Josefsson <jas@extundo.com>
1551 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
1554 2006-08-22 Simon Josefsson <jas@extundo.com>
1556 * MODULES.html.sh: Add "Support for maintaining and release
1559 * build-aux/gnupload: New file, from coreutils.
1561 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1563 Avoid the need for AC_LIBSOURCES in m4 macros.
1564 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
1565 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
1566 * modules/check-version (EXTRA_DIST): Add check-version.h.
1567 * modules/crc (EXTRA_DIST): Add crc.h.
1568 * modules/des (EXTRA_DIST): Add des.h.
1569 * modules/gc (EXTRA_DIST): Add gc.h.
1570 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
1571 * modules/getline (EXTRA_DIST): Add getline.h.
1572 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
1573 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
1574 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
1575 * modules/md2 (EXTRA_DIST): Add md2.h.
1576 * modules/md4 (EXTRA_DIST): Add md4.h.
1577 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
1578 * modules/read-file (EXTRA_DIST): Add read-file.h.
1579 * modules/readline (EXTRA_DIST): Add readline.h.
1580 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
1583 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1585 * m4/rijndael.m4 (gl_ARCFOUR):
1586 * m4/arctwo.m4 (gl_ARCTWO):
1587 * m4/check-version.m4 (gl_CHECK_VERSION):
1588 * m4/crc.m4 (gl_CRC):
1589 * m4/des.m4 (gl_DES):
1590 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
1592 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
1593 * m4/getline.m4 (gl_FUNC_GETLINE):
1594 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
1595 * m4/hmac-md5.m4 (gl_HMAC_MD5):
1596 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
1597 * m4/md2.m4 (gl_MD2):
1598 * m4/md4.m4 (gl_MD4):
1599 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
1600 * m4/read-file.m4 (gl_FUNC_READ_FILE):
1601 * m4/readline.m4 (gl_FUNC_READLINE):
1602 * m4/rijndael.m4 (gl_RIJNDAEL):
1603 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
1604 to get the necessary .h files and whatnot.
1606 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1608 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
1609 gnulib rather than the other way around.
1610 * config/srclistvars.sh (COREUTILS): Remove.
1612 2006-08-22 Jim Meyering <jim@meyering.net>
1614 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
1616 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
1618 2006-08-22 Eric Blake <ebb9@byu.net>
1620 * modules/regexprops-generic: New file.
1621 * MODULES.html.sh (Support for building documentation): List it.
1623 2006-08-22 Eric Blake <ebb9@byu.net>
1625 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
1626 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1627 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
1628 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1630 2006-08-22 Bruno Haible <bruno@clisp.org>
1632 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
1633 and lib_LTLIBRARIES like the other lib_* variables.
1635 2006-08-22 Bruno Haible <bruno@clisp.org>
1637 * build-aux/x-to-1.in: New file, from GNU gettext.
1639 2006-08-22 Bruno Haible <bruno@clisp.org>
1641 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
1644 2006-08-22 Bruno Haible <bruno@clisp.org>
1646 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
1649 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1652 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't exist.
1653 Problem reported by Bruno Haible.
1655 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1657 Avoid the need for AC_LIBSOURCES in m4 macros.
1658 * modules/acl (EXTRA_DIST): Add acl.h.
1659 * modules/argmatch (Files): Add m4/argmatch.m4.
1660 (configure.ac): Add gl_ARGMATCH.
1661 (EXTRA_DIST): Renamed from lib_SOURCES, for
1662 consistency with the other modules. Remove argmatch.c.
1663 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
1664 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
1665 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
1666 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
1667 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
1668 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
1669 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
1670 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
1671 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
1672 * modules/closeout (EXTRA_DIST): Add closeout.h.
1673 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
1674 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
1675 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
1676 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
1677 dirname.h; remove basename.c and stripslash.c.
1678 * modules/exclude (EXTRA_DIST): Add exclude.h.
1679 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
1680 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
1681 * modules/file-type (EXTRA_DIST): Add file-type.h.
1682 * modules/filemode (EXTRA_DIST): Add filemode.h.
1683 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
1684 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
1685 * modules/fpending (EXTRA_DIST): Add __fpending.h.
1686 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
1687 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
1688 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
1689 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
1690 * modules/getdate (EXTRA_DIST): Add getdate.c.
1691 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
1692 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
1693 * modules/getpass (EXTRA_DIST): Add getpass.h.
1694 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
1695 * modules/group-member (EXTRA_DIST): Add group-member.h.
1696 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
1697 * modules/hash (EXTRA_DIST): Add hash.h.
1698 * modules/human (EXTRA_DIST): Add human.h.
1699 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
1700 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
1701 * modules/lchown (EXTRA_DIST): Add lchown.h.
1702 * modules/long-options (EXTRA_DIST): Add long-options.h.
1703 * modules/lstat (EXTRA_DIST): Add lstat.h.
1704 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
1705 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
1706 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
1707 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
1708 * modules/memxor (EXTRA_DIST): Add memxor.h.
1709 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
1710 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
1711 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
1712 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
1713 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
1714 * modules/physmem (EXTRA_DIST): Add physmem.h.
1715 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
1716 * modules/posixver (EXTRA_DIST): Add posixver.h.
1717 * modules/quote (EXTRA_DIST): Add quote.h.
1718 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
1719 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
1720 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
1721 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c regex_internal.h regexec.c.
1722 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
1723 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
1724 * modules/same (EXTRA_DIST): Add same.h.
1725 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
1726 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
1727 * modules/savedir (EXTRA_DIST): Add savedir.h.
1728 * modules/sha1 (EXTRA_DIST): Add sha1.h.
1729 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
1730 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
1731 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
1732 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
1733 * modules/strdup (EXTRA_DIST): Add strdup.h.
1734 * modules/strftime (EXTRA_DIST): Add strftime.h.
1735 * modules/strndup (EXTRA_DIST): Add strndup.h.
1736 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
1737 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
1738 * modules/time_r (EXTRA_DIST): Add time_r.h.
1739 * modules/timespec (EXTRA_DIST): Add timespec.h.
1740 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
1741 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
1742 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
1743 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
1744 * modules/userspec (EXTRA_DIST): Add userspec.h.
1745 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
1746 * modules/utimens (EXTRA_DIST): Add utimens.h.
1747 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
1748 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
1749 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
1750 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
1751 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
1752 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
1753 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
1754 * modules/yesno (EXTRA_DIST): Add yesno.h.
1756 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1758 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
1760 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
1761 * m4/dev-ino.m4, same-inode.m4: Remove.
1763 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
1764 * m4/acl.m4 (AC_FUNC_ACL):
1765 * m4/backupfile.m4 (gl_BACKUPFILE):
1766 * m4/c-strtod.m4 (gl_C99_STRTOLD):
1767 * m4/canon-host.m4 (gl_CANON_HOST):
1768 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
1769 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
1770 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
1771 * m4/cloexec.m4 (gl_CLOEXEC):
1772 * m4/close-stream.m4 (gl_CLOSE_STREAM):
1773 * m4/closeout.m4 (gl_CLOSEOUT):
1774 * m4/dirfd.m4 (gl_FUNC_DIRFD):
1775 * m4/dirname.m4 (gl_DIRNAME):
1776 * m4/exclude.m4 (gl_EXCLUDE):
1777 * m4/exitfail.m4 (gl_EXITFAIL):
1778 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
1779 * m4/file-type.m4 (gl_FILE_TYPE):
1780 * m4/filemode.m4 (gl_FILEMODE):
1781 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
1782 * m4/fpending.m4 (gl_FUNC_FPENDING):
1783 * m4/fprintftime.m4 (gl_FPRINTFTIME):
1784 * m4/fts.m4 (gl_FUNC_FTS):
1785 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
1786 * m4/getdate.m4 (gl_GETDATE):
1787 * m4/gethrxtime.m4 (gl_GETHRXTIME):
1788 * m4/getpagesize.m4 (gl_GETPAGESIZE):
1789 * m4/getpass.m4 (gl_FUNC_GETPASS):
1790 * m4/gettime.m4 (gl_GETTIME):
1791 * m4/getugroups.m4 (gl_GETUGROUPS):
1792 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
1793 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
1794 * m4/hard-locale.m4 (gl_HARD_LOCALE):
1795 * m4/hash.m4 (gl_HASH):
1796 * m4/idcache.m4 (gl_IDCACHE):
1797 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
1798 * m4/lchown.m4 (gl_FUNC_LCHOWN):
1799 * m4/long-options.m4 (gl_LONG_OPTIONS):
1800 * m4/lstat.m4 (gl_FUNC_LSTAT):
1801 * m4/md5.m4 (gl_MD5):
1802 * m4/memcasecmp.m4 (gl_MEMCASECMP):
1803 * m4/memcoll.m4 (gl_MEMCOLL):
1804 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
1805 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
1806 * m4/memxor.m4 (gl_MEMXOR):
1807 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
1808 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
1809 * m4/modechange.m4 (gl_MODECHANGE):
1810 * m4/mountlist.m4 (gl_MOUNTLIST):
1811 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1812 * m4/openat.m4 (gl_FUNC_OPENAT):
1813 * m4/pathmax.m4 (gl_PATHMAX):
1814 * m4/physmem.m4 (gl_PHYSMEM):
1815 * m4/posixtm.m4 (gl_POSIXTM):
1816 * m4/posixver.m4 (gl_POSIXVER):
1817 * m4/quote.m4 (gl_QUOTE):
1818 * m4/quotearg.m4 (gl_QUOTEARG):
1819 * m4/readtokens.m4 (gl_READTOKENS):
1820 * m4/readutmp.m4 (gl_READUTMP):
1821 * m4/regex.m4 (gl_REGEX):
1822 * m4/safe-read.m4 (gl_SAFE_READ):
1823 * m4/safe-write.m4 (gl_SAFE_WRITE):
1824 * m4/same.m4 (gl_SAME):
1825 * m4/save-cwd.m4 (gl_SAVE_CWD):
1826 * m4/savedir.m4 (gl_SAVEDIR):
1827 * m4/settime.m4 (gl_SETTIME):
1828 * m4/sha1.m4 (gl_SHA1):
1829 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
1830 * m4/stat-macros.m4 (gl_STAT_MACROS):
1831 * m4/stat-time.m4 (gl_STAT_TIME):
1832 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
1833 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
1834 * m4/strdup.m4 (gl_FUNC_STRDUP):
1835 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
1836 * m4/strndup.m4 (gl_FUNC_STRNDUP):
1837 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
1838 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
1839 * m4/time_r.m4 (gl_TIME_R):
1840 * m4/timespec.m4 (gl_TIMESPEC):
1841 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
1842 * m4/unlinkdir.m4 (gl_UNLINKDIR):
1843 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
1844 * m4/userspec.m4 (gl_USERSPEC):
1845 * m4/utimecmp.m4 (gl_UTIMECMP):
1846 * m4/utimens.m4 (gl_UTIMENS):
1847 * m4/xalloc.m4 (gl_XALLOC):
1848 * m4/xgetcwd.m4 (gl_XGETCWD):
1849 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
1850 * m4/xreadlink.m4 (gl_XREADLINK):
1851 * m4/xstrtod.m4 (gl_XSTRTOD):
1852 * m4/yesno.m4 (gl_YESNO):
1853 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
1854 to get the necessary .h files and whatnot.
1856 2006-08-21 Mark D. Baushke <mdb@gnu.org>
1857 Bruno Haible <bruno@clisp.org>
1859 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
1860 /bin/sh understanding of '!' conditional negation.
1862 2006-08-21 Jim Meyering <jim@meyering.net>
1864 * modules/openat (Depends-on): Really alphabetize.
1866 * modules/acl (Depends-on): Add error and quote.
1868 * check-module (find_included_lib_files): Add at-func.c to the
1869 ok-to-include-more-than-once white list.
1871 * modules/openat (Depends-on): Add lstat. Alphabetize.
1873 2006-08-21 Bruno Haible <bruno@clisp.org>
1875 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1876 Emit a pkgdata_DATA variable only if some snippets add contents to it.
1877 Reported by Martin Lambers <marlam@marlam.de>.
1879 2006-08-21 Bruno Haible <bruno@clisp.org>
1881 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
1882 specify an installation location, don't emit a noinst_LIBRARIES or
1883 noinst_LTLIBRARIES assignment.
1885 2006-08-21 Bruno Haible <bruno@clisp.org>
1888 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
1889 BeOS has mbrtowc() but no <wctype.h>.
1891 2006-08-21 Bruno Haible <bruno@clisp.org>
1894 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
1897 2006-08-21 Bruno Haible <bruno@clisp.org>
1900 * lib/mbchar.h: Include <wctype.h> only if it exists.
1902 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
1904 Remove files that are no longer needed by their respective modules.
1905 * m4/obstack.m4: Remove.
1906 * m4/strerror_r.m4: Remove.
1907 * m4/uint32_t.m4: Remove.
1908 * m4/uintptr_t.m4: Remove.
1909 * m4/ullong_max.m4: Remove.
1910 * m4/xstrtoimax.m4: Remove.
1911 * m4/xstrtoumax.m4: Remove.
1913 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require gl_AC_TYPE_UINTMAX_T,
1914 gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib dependencies now
1917 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1918 Do not use AC_LIBSOURCES, since gnulib modules now do this.
1919 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
1920 * m4/human.m4 (gl_HUMAN): Likewise.
1921 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
1922 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
1924 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
1926 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
1927 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
1929 * m4/human.m4 (gl_HUMAN): Likewise.
1930 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
1931 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
1932 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
1933 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
1934 * m4/xstrtol (gl_XSTRTOL): Likewise.
1936 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
1937 AC_TYPE_LONG_LONG_INT.
1938 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
1939 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
1940 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
1941 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
1943 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
1946 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
1947 (gl_PREREQ_XSTRTOUL): Remove.
1949 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
1951 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX mode.
1953 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
1955 Add and change modules to make it easier for coreutils to use
1957 * modules/backupfile (Files): Remove m4/d-ino.m4.
1958 (Depends-on): Add d-ino.
1959 * modules/cycle-check (Depends-on): Add stdint.
1960 (lib_SOURCES): Add cycle-check.h.
1961 * modules/d-ino: New module.
1962 * modules/d-type: New module.
1963 * modules/error (Files): Remove m4/strerror_r.m4.
1964 * modules/filemode (Files): Add m4/st_dm_mode.m4.
1965 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
1966 m4/inttypes_h.m4, m4/uintmax_t.m4.
1967 (Depends-on): Add stdint.
1968 (lib_SOURCES): Add fsusage.h.
1969 * modules/getcwd (Files): Remove d-ino.m4.
1970 (Depends-on): Add d-ino.
1971 * modules/getndelim2 (Depends-on): Add stdint.
1972 * modules/glob (Files): Remove m4/d-type.m4.
1973 (Depends-on): Add d-type.
1974 * modules/host-os: New module.
1975 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
1976 m4/inttypes_h.m4, m4/uintmax_t.m4.
1977 * Depends-on: Add stdint.
1978 (lib_SOURCES): Add human.h.
1979 * modules/inttostr (Files): Remove m4/intmax_t.m4,
1980 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
1981 m4/uintmax_t.m4, m4/ulonglong.m4.
1982 (Depends-on): Add stdint.
1983 (EXTRA_DIST): Add inttostr.h.
1984 * modules/lchmod: New module.
1985 * modules/link-follow: New module.
1986 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
1987 (Depends-on): Add lchmod.
1988 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
1989 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
1990 (Depends-on): Add stdint.
1991 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
1992 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
1993 (Depends-on): Add stdint.
1994 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
1995 * modules/perl: New module.
1996 * modules/regex (Depends-on): Add stdint.
1997 * modules/rmdir-errno: New module.
1998 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
2000 (Depends-on): Add stdint.
2001 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
2003 (Depends-on): Add stdint.
2004 * modules/unlink-busy: New module.
2005 * modules/utimecmp (Depends-on): Add stdint.
2006 * modules/uptime: New module.
2007 * modules/winsz-ioctl: New module.
2008 * modules/winsz-termios: New module.
2009 * modules/xnanosleep (Depends-on): Add nanosleep.
2010 * modules/ullong_max: Remove.
2011 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
2012 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
2013 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
2014 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
2015 (Depends-on): Add inttypes.
2016 (lib_SOURCES): Add xstrtol.h.
2017 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
2018 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
2019 * MODULES.html.sh: Move 'assert' into the assert section.
2020 Move 'dummy' into the linking section.
2022 Add section for compatibility checks for POSIX:2001 functions,
2023 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
2024 winsz-ioctl, and winsz-termios into it.
2026 Add top-level Misc section and put host-os, perl, and uptime
2029 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2031 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
2032 now assume the stdint module. Do not include inttypes.h.
2033 * lib/fsusage.h: Likewise.
2034 * lib/getndelim2.c: Likewise.
2035 * lib/human.h: Likewise.
2036 * lib/inttostr.h: Likewise.
2037 * lib/obstack.c: Likewise.
2038 * lib/regex_internal.h: Likewise.
2039 * lib/tempname.c: Likewise.
2040 * lib/utimecmp.c: Likewise.
2041 * lib/xstrtol.h: Likewise.
2043 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
2045 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
2046 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
2047 * lib/xtime.h: Likewise.
2049 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2051 * modules/openat (Files): Add lib/fchmodat.c.
2052 Fixes problem reported by Jay Youngman.
2054 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2056 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
2057 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
2059 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
2060 Bruno Haible <bruno@clisp.org>
2062 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
2063 and is a script that invokes bison. Tighten the code. Add comments.
2065 2006-08-18 Jim Meyering <jim@meyering.net>
2067 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for CLOCK_REALTIME,
2068 since gethrxtime may revert to using clock_gettime via gettime.c.
2069 Gabor Z. Papp reported that gethrxtime-using programs failed to
2070 link due to unresolved clock_gettime on a linux-2.4.x system.
2072 2006-08-18 Bruno Haible <bruno@clisp.org>
2074 * modules/bison-i18n: New file.
2075 * MODULES.html.sh (Internationalization functions): Add it.
2077 2006-08-18 Bruno Haible <bruno@clisp.org>
2079 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
2080 sys/statvfs.h. When getmntinfo was found, check its declaration and
2081 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
2083 2006-08-18 Bruno Haible <bruno@clisp.org>
2085 * m4/bison-i18n.m4: New file, from bison.
2087 2006-08-18 Bruno Haible <bruno@clisp.org>
2089 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
2090 (ME_DUMMY): Treat "kernfs" as a dummy.
2091 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
2093 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2095 Update from coreutils.
2097 2006-08-15 Jim Meyering <jim@meyering.net>
2099 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
2101 2006-01-17 Jim Meyering <jim@meyering.net>
2103 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
2105 2006-01-11 Jim Meyering <jim@meyering.net>
2107 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
2108 Check for the lchmod function.
2110 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2112 Update from coreutils.
2114 * lib/__fpending.h: Add copyright notice.
2115 * lib/fprintftime.h: Likewise.
2116 * lib/savedir.c: Use (C) in copyright notice.
2117 * lib/savedir.h: Likewise.
2119 2006-08-15 Jim Meyering <jim@meyering.net>
2121 * lib/at-func.c: New file, with the logic of all emulated at-functions.
2122 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
2123 in support of the EXPECTED_ERRNO macro.
2124 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function definitions.
2125 Instead, define the appropriate symbols and include "at-func.c".
2126 * lib/mkdirat.c (mkdirat): Likewise.
2127 * lib/fchmodat.c (fchmodat): Likewise.
2128 (ENOSYS): Remove definition.
2129 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does it.
2130 Don't include "unistd--.h" -- it wasn't ever used.
2132 2006-01-17 Jim Meyering <jim@meyering.net>
2134 Rewrite fts.c not to change the current working directory,
2135 by using openat, fstatat, fdopendir, etc..
2137 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
2138 (HAVE_OPENAT_SUPPORT): Define.
2139 [_LIBC] (fchdir): Don't undef or define; no longer used.
2140 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
2141 Now, this `function' always succeeds, and consumes its file descriptor
2142 parameter -- so callers must not close such FDs. Update callers.
2143 (diropen_fd, opendirat, cwd_advance_fd): New functions.
2144 (diropen): Add parameter, SP. Adjust all callers.
2145 Implement using diropen_fd, rather than open.
2146 (fts_open): Initialize new member, fts_cwd_fd.
2147 Remove fts_rft-setting code.
2148 (fts_close): Close fts_cwd_fd, if necessary.
2149 (__opendir2): Define in terms of opendir or opendirat,
2150 depending on whether the FST_NOCHDIR flag is set.
2151 (fts_build): Since fts_safe_changedir consumes its FD, and since
2152 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
2153 and close the dup'd file descriptor upon failure.
2154 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
2155 (fts_safe_changedir): Tweak semantics to reflect that this function
2156 now calls cwd_advance_fd and hence consumes its FD argument.
2157 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
2158 [struct FTS] (fts_rft): Remove now-unused member.
2159 [struct FTS] (fts_cycle.state): Improve comment.
2161 * lib/openat.c (openat_needs_fchdir): New function.
2162 * lib/openat.h (openat_needs_fchdir): Declare it.
2164 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2166 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
2167 Problem and fix reported by Pádraig Brady in
2168 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
2170 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2172 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
2174 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2176 * lib/memcoll.c (memcoll): Optimize for the common case where the
2177 arguments are bytewise equal.
2179 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2181 * doc/regexprops-generic.texi: Add a copyright notice.
2183 2006-08-15 Bruno Haible <bruno@clisp.org>
2185 * modules/tmpdir (License): Change to LGPL.
2187 2006-08-15 Bruno Haible <bruno@clisp.org>
2189 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
2192 2006-08-14 Simon Josefsson <jas@extundo.com>
2194 * config/srclist.txt: Add gnupload.
2196 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2198 Change copyright notice from LGPL 2 to GPL 2, since that's the
2199 standard form used in the gnulib repository.
2200 * tests/test-lock.c: Likewise.
2201 * tests/test-stdint.c: Likewise.
2202 * tests/test-tls.c: Likewise.
2204 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
2205 prelude-manager. User shorter URLs for GNU projects, without '?'.
2206 Add copyright notice.
2208 * check-module: Add copyright notice. Output a copyright
2209 notice if "--version" is specified.
2210 * modules/COPYING: New file.
2211 * tests/test-getaddrinfo.c: Add copyright notice.
2212 * tests/test-verify.c: Likewise.
2214 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2216 Change copyright notice from LGPL 2 to GPL 2, since that's the
2217 standard form used in the gnulib repository.
2218 * lib/lock.c: LGPL -> GPL.
2219 * lib/lock.h: Likewise.
2220 * lib/strnlen1.c: Likewise.
2221 * lib/strnlen1.h: Likewise.
2222 * lib/tls.c: Likewise.
2223 * lib/tls.h: Likewise.
2224 * lib/tmpdir.c: Likewise.
2226 * lib/TODO: Remove; this belongs only in coreutils.
2228 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2230 Add copyright notices to long-enough files that lack them, since
2231 otherwise the files aren't clearly free. Use the same notice that
2232 getdate.texi already uses.
2233 * doc/alloca-opt.texi: Add copyright notice.
2234 * doc/alloca.texi: Likewise.
2235 * doc/ctime.texi: Likewise.
2236 * doc/functions.texi: Likewise.
2237 * doc/gcd.texi: Likewise.
2238 * doc/gnulib-tool.texi: Likewise.
2239 * doc/inet_ntoa.texi: Likewise.
2240 * doc/visibility.texi: Likewise.
2242 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
2243 * doc/quote.texi: Add copyright notice.
2245 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
2246 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
2247 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
2248 Mention SunOS 5.11. Mention that everything before SunOS 5.7
2249 is now obsolete, and give a pointer to the Sun list.
2250 Add copyright notice.
2252 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2254 * config/srclistvars.sh: Add copyright notice.
2256 2006-08-14 Eric Blake <ebb9@byu.net>
2258 Import the following change from libc:
2260 2006-08-12 Ulrich Drepper <drepper@redhat.com>
2263 * lib/misc/error.c: Add space between program name and message if file
2266 2006-08-12 Karl Berry <karl@gnu.org>
2268 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
2269 remove, these originate in gnulib now.
2271 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2273 * doc/Makefile (standards.info standards.html standards.dvi):
2274 Also depend on make-stds.texi.
2276 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
2278 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
2279 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
2281 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
2282 in wchar_t. Problem reported by Eric Blake.
2284 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
2285 LEN is smaller than SIZE. Suggested by Bruno Haible.
2286 Also, help the compiler to keep LEN in a register.
2288 2006-08-11 Eric Blake <ebb9@byu.net>
2290 * users.txt: Sort. Add tar.
2292 2006-08-11 Bruno Haible <bruno@clisp.org>
2294 * users.txt: New file.
2296 2006-08-11 Bruno Haible <bruno@clisp.org>
2298 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h> before
2299 <wchar.h>. Needed for OSF/1 and BSD/OS.
2301 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2303 * modules/snprintf (Depends-on): Remove minmax.
2304 (Maintainer): Add self and Bruno.
2306 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2308 * lib/.cppi-disable: Add snprintf.h, socket_.h.
2309 * lib/snprintf.c: Include <errno.h> and <limits.h>.
2310 (EOVERFLOW): Define if the system does not.
2311 Do not include "minmax.h"; it wasn't used.
2312 (snprintf): Don't assume size_t promotes to an unsigned type.
2313 Fix bug when generated string was too long for the buffer: the
2314 buffer's contents are supposed to be the initial prefix of the
2315 output. Don't assume vasnprintf returns EOVERFLOW if the size
2316 exceeds INT_MAX; do the check ourselves.
2318 Import the following changes from libc:
2320 2006-06-02 Jakub Jelinek <jakub@redhat.com>
2322 * lib/posix/regex_internal.c (re_string_skip_chars): If no character has
2323 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
2324 to the byte which couldn't be converted.
2325 (re_string_reconstruct): Don't clear valid_raw_len before calling
2326 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
2327 tip_context using re_string_context_at.
2329 2006-05-02 Ulrich Drepper <drepper@redhat.com>
2331 * lib/posix/regex.h: g++ still cannot handled [restrict].
2333 2006-04-21 Ulrich Drepper <drepper@redhat.com>
2335 * lib/posix/regex.h: Remove special handling for VMS.
2337 2006-08-10 Jim Meyering <jim@meyering.net>
2339 * modules/same-inode: New module.
2340 * modules/dev-ino: New module.
2341 * modules/cycle-check: Depend on these modules, rather than simply
2342 including their .h files.
2343 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
2344 required via m4/cycle-check.m4.
2345 * modules/same: Depend on new same-inode module, rather than
2346 including same-inode.h.
2347 * modules/chdir-safer: New file.
2349 * modules/chown (Depends-on): Add stat-macros.
2351 2006-08-10 Jim Meyering <jim@meyering.net>
2353 * m4/cycle-check.m4: New file.
2354 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
2355 * m4/dev-ino.m4, same-inode.m4: New files.
2357 2006-08-10 Eric Blake <ebb9@byu.net>
2359 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
2360 in from original proposal.
2362 2006-08-10 Eric Blake <ebb9@byu.net>
2363 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2365 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
2368 2006-08-10 Bruno Haible <bruno@clisp.org>
2370 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
2373 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2375 Sync from coreutils.
2377 2006-07-19 Mike Frysinger <vapier@gentoo.org>
2379 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
2380 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
2382 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2384 * modules/restrict: Remove; no longer needed now that we assume
2385 Autoconf 2.59 or later.
2386 * MODULES.html.sh: Remove 'restrict'.
2387 * modules/argp (Depends-on): Remove 'restrict'.
2388 * modules/base64 (Depends-on): Likewise.
2389 * modules/gc (Depends-on): Likewise.
2390 * modules/getaddrinfo (Depends-on): Likewise.
2391 * modules/glob (Depends-on): Likewise.
2392 * modules/inet_ntop (Depends-on): Likewise.
2393 * modules/inet_pton (Depends-on): Likewise.
2394 * modules/memxor (Depends-on): Likewise.
2395 * modules/regex (Depends-on): Likewise.
2396 * modules/strtok_r (Depends-on): Likewise.
2397 * modules/time_r (Depends-on): Likewise.
2399 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2401 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
2402 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
2403 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
2404 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
2405 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2406 * m4/memxor.m4 (gl_MEMXOR): Likewise.
2407 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
2408 gl_C_RESTRICT replaced by AC_C_RESTRICT.
2410 Merge from coreutils.
2411 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
2412 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
2413 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2414 * m4/time_r.m4 (gl_TIME_R): Likewise.
2416 2006-08-09 Karl Berry <karl@gnu.org>
2418 * config/srclist.txt: no more gettext-tools, per Bruno.
2420 2006-08-08 Eric Blake <ebb9@byu.net>
2422 * modules/verror: New module.
2423 * MODULES.html.sh: Document it.
2425 2006-08-08 Eric Blake <ebb9@byu.net>
2427 * lib/verror.h, verror.c: New files.
2429 2006-08-08 Eric Blake <ebb9@byu.net>
2431 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
2432 verror_at_line output complies with GNU Coding Standards even when
2435 2006-08-07 Bruno Haible <bruno@clisp.org>
2437 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
2439 Reported by Ralf Wildenhues.
2441 2006-08-07 Bruno Haible <bruno@clisp.org>
2443 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
2444 in an AC_DEFUN. Needed so that the autoconf snippets can use
2447 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2449 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2450 Initialize pkgdata_DATA.
2451 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
2454 2006-08-06 Eric Blake <ebb9@byu.net>
2456 * lib/error.h: Fold in some upstream changes from glibc.
2457 * lib/error.c: Likewise.
2459 2006-08-04 Bruno Haible <bruno@clisp.org>
2461 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2462 Make the mostlyclean-local rule depend on mostlyclean-generic.
2463 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
2465 2006-07-31 Bruno Haible <bruno@clisp.org>
2467 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
2468 <stdlib.h>, <string.h>.
2470 2006-07-30 Bruno Haible <bruno@clisp.org>
2472 * modules/readlink (License): Change to LGPL.
2474 2006-07-30 Bruno Haible <bruno@clisp.org>
2476 * modules/javaversion (Makefile.am): Distribute javaversion.java and
2477 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
2478 set PKGDATADIR to point to it.
2480 2006-07-30 Bruno Haible <bruno@clisp.org>
2482 * modules/csharpexec (configure.ac): Comment out macro invocation.
2483 * modules/javaexec (configure.ac): Likewise.
2484 * modules/javacomp-script (configure.ac): Likewise.
2486 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
2488 2006-07-30 Bruno Haible <bruno@clisp.org>
2490 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
2493 2006-07-30 Bruno Haible <bruno@clisp.org>
2495 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
2497 2006-07-30 Bruno Haible <bruno@clisp.org>
2499 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2500 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
2503 2006-07-29 Bruno Haible <bruno@clisp.org>
2505 Make it possible for gnulib-tool to work with locally modified or
2506 augmented gnulib repositories.
2507 * gnulib-tool (func_usage): Document --local-dir option.
2508 (local_gnulib_dir): New variable.
2509 Handle --local-dir option.
2510 (func_lookup_file): New function.
2511 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
2512 (func_get_description, func_get_filelist, func_get_description,
2513 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
2514 func_get_automake_snippet, func_get_include_directive,
2515 func_get_license, func_get_maintainer): Use func_lookup_file.
2516 (func_import, func_create_testdir): Use func_lookup_file.
2518 2006-07-29 Bruno Haible <bruno@clisp.org>
2520 * modules/setenv (Depends-on): Add unistd.
2522 2006-07-29 Bruno Haible <bruno@clisp.org>
2524 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
2526 2006-07-29 Bruno Haible <bruno@clisp.org>
2528 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
2530 2006-07-29 Bruno Haible <bruno@clisp.org>
2532 * gnulib-tool (import, update): If there is no Makefile.am, look at
2533 aclocal.m4, instead of bailing out.
2535 2006-07-29 Bruno Haible <bruno@clisp.org>
2537 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
2538 Categorize the options by when they are useful.
2540 2006-07-29 Bruno Haible <bruno@clisp.org>
2542 * gnulib-tool (func_usage): Document option --no-libtool.
2543 Handle option --no-libtool.
2544 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
2545 for changed semantics of $libtool variable.
2546 (func_import): Likewise. If libtool is not used, show this through
2547 an option --no-libtool.
2548 (func_create_testdir): Update.
2550 2006-07-29 Bruno Haible <bruno@clisp.org>
2552 * gnulib-tool (func_import): Extend error message about missing
2555 2006-07-29 Bruno Haible <bruno@clisp.org>
2557 * gnulib-tool (func_import): Don't create the $docbase directory if
2558 there is no file to store there.
2560 2006-07-29 Bruno Haible <bruno@clisp.org>
2562 * gnulib-tool (autoconf_minversion): If a --dir option is given and
2563 relevant, look for configure.ac there, not in the current directory.
2564 Also use a simple search for AC_PREREQ, not "autoconf --trace".
2566 2006-07-29 Bruno Haible <bruno@clisp.org>
2568 * gnulib-tool (SORT): New variable.
2569 (func_usage): Undocument --assume-autoconf option.
2570 Remove --assume-autoconf option handling.
2571 (autoconf_minversion): Determine from the contents of configure.ac.
2572 (func_import): Remove autoconf_minversion handling.
2573 Suggested by Eric Blake.
2575 2006-07-29 Bruno Haible <bruno@clisp.org>
2577 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
2579 2006-07-29 Bruno Haible <bruno@clisp.org>
2581 * config/srclist.txt (*setenv.[ch]): Remove rules.
2583 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2585 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
2587 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2589 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
2592 2006-07-28 Simon Josefsson <jas@extundo.com>
2594 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
2595 * modules/inet_pton (Depends-on): Likewise.
2597 2006-07-28 Simon Josefsson <jas@extundo.com>
2599 * m4/netinet_in_h.m4: New file.
2601 2006-07-28 Simon Josefsson <jas@extundo.com>
2603 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
2606 2006-07-28 Simon Josefsson <jas@extundo.com>
2608 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
2611 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
2613 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
2614 setgid on directories only if they set these bits.
2615 * lib/modechange.h: Remove obsolete comment about masks.
2617 2006-07-28 Eric Blake <ebb9@byu.net>
2619 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
2622 2006-07-28 Bruno Haible <bruno@clisp.org>
2624 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
2626 2006-07-28 Bruno Haible <bruno@clisp.org>
2628 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
2630 2006-07-28 Bruno Haible <bruno@clisp.org>
2632 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph,
2633 iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit): Define
2635 Avoids link error on FreeBSD 4.x.
2636 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2638 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
2640 * lib/mbswidth.c (iswcntrl): Likewise.
2642 2006-07-27 Bruno Haible <bruno@clisp.org>
2644 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
2647 2006-07-27 Bruno Haible <bruno@clisp.org>
2649 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
2650 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
2653 2006-07-26 Eric Blake <ebb9@byu.net>
2655 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
2657 2006-07-26 Eric Blake <ebb9@byu.net>
2659 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
2660 like mingw that lack mkstemp.
2661 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
2662 avoid compilation warning on mingw.
2664 2006-07-26 Bruno Haible <bruno@clisp.org>
2666 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
2667 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
2668 INT_FAST*_MIN, INTPTR_MIN.
2670 2006-07-25 Bruno Haible <bruno@clisp.org>
2672 * modules/version-etc (Depends-on): Add stdarg.
2674 2006-07-25 Bruno Haible <bruno@clisp.org>
2676 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of complex
2679 2006-07-25 Bruno Haible <bruno@clisp.org>
2681 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be defined in
2682 <stdarg.h> or config.h.
2684 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
2686 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
2687 (gl_STDIO_SAFER): Remove.
2689 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
2691 * MODULES.html.sh (File stream based Input/Output):
2692 Add fopen-safer, tmpfile-safer; remove stdio-safer.
2693 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
2694 * modules/fopen-safer, modules/tmpfile-safer: New files.
2695 * modules/stdio-safer: Remove.
2697 2006-07-24 Bruno Haible <bruno@clisp.org>
2699 * modules/tmpdir: New file.
2700 * MODULES.html.sh (File system functions): Add it.
2702 2006-07-24 Bruno Haible <bruno@clisp.org>
2704 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
2705 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
2707 2006-07-24 Bruno Haible <bruno@clisp.org>
2709 * modules/clean-temp: New file.
2711 2006-07-24 Bruno Haible <bruno@clisp.org>
2713 * m4/tmpdir.m4: New file, from GNU gettext.
2715 2006-07-24 Bruno Haible <bruno@clisp.org>
2717 * lib/tmpdir.h: New file, from GNU gettext.
2718 * lib/tmpdir.c: New file, from GNU gettext.
2720 2006-07-24 Bruno Haible <bruno@clisp.org>
2722 * lib/clean-temp.h: New file, from GNU gettext.
2723 * lib/clean-temp.c: New file, from GNU gettext.
2725 2006-07-23 Eric Blake <ebb9@byu.net>
2727 * modules/stdio-safer (Files): Add tmpfile-safer.c.
2728 (Depends-on): Add binary-io.
2730 2006-07-23 Eric Blake <ebb9@byu.net>
2732 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
2734 2006-07-23 Eric Blake <ebb9@byu.net>
2736 * lib/tmpfile-safer.c: New file.
2737 * lib/stdio-safer.h (fopen_safer): Add prototype.
2738 * lib/stdio--.h (tmpfile): Make safer.
2740 2006-07-23 Bruno Haible <bruno@clisp.org>
2742 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
2743 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
2744 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
2745 gl_linked_remove_at): Use it.
2747 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2748 and Simon Josefsson <jas@extundo.com>
2750 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
2752 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
2754 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2756 * modules/close-stream: New file.
2757 * modules/closeout (Description): Make it clear that it exits
2758 with a diagnostic on error.
2759 (Depends-on): Add close-stream. Remove fpending, stdbool.
2760 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
2762 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2764 * m4/close-stream.m4: New file.
2766 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2768 * lib/close-stream.c, close-stream.h: New files.
2770 2006-07-22 Bruno Haible <bruno@clisp.org>
2772 Merge from GNU gettext 0.15.
2774 2006-05-01 Bruno Haible <bruno@clisp.org>
2776 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
2778 2006-07-22 Bruno Haible <bruno@clisp.org>
2780 * modules/javaversion: New file.
2781 * MODULES.html.sh (Java): Add javaversion.
2783 2006-03-12 Bruno Haible <bruno@clisp.org>
2785 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
2787 2005-12-04 Bruno Haible <bruno@clisp.org>
2789 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
2792 2006-06-21 Bruno Haible <bruno@clisp.org>
2794 Avoid warnings from recent versions of mcs.
2795 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
2796 -o, -L, -r any more. Use options documented since mcs-1.0
2797 instead. Similarly for -g.
2799 2005-12-04 Bruno Haible <bruno@clisp.org>
2801 * build-aux/csharpcomp.sh.in: Suffix for resources is
2802 .resources, not .resource.
2804 2005-07-09 Bruno Haible <bruno@clisp.org>
2806 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
2808 Reported by Mark Junker <mjscod@gmx.de>.
2810 2006-07-22 Bruno Haible <bruno@clisp.org>
2812 * modules/gettext: Upgrade to gettext-0.15.
2813 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
2815 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
2817 2006-07-22 Bruno Haible <bruno@clisp.org>
2819 Merge from GNU gettext 0.15.
2821 2006-03-25 Bruno Haible <bruno@clisp.org>
2823 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
2825 2006-07-21 Bruno Haible <bruno@clisp.org>
2827 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
2830 2006-05-09 Bruno Haible <bruno@clisp.org>
2832 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
2833 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
2834 for the conftestver execution.
2836 2006-05-01 Bruno Haible <bruno@clisp.org>
2838 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
2839 optional target-version argument. Verify that the compiler
2840 groks source of the specified source-version, or add -source
2841 option as necessary. Verify that the compiler produces
2842 bytecode in the specified target-version, or add -target and
2843 -source options as necessary. Make the result of the test
2844 available as variable CONF_JAVAC. Also log error output in
2847 2006-03-11 Bruno Haible <bruno@clisp.org>
2849 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
2851 2006-05-09 Bruno Haible <bruno@clisp.org>
2853 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
2854 CLASSPATH_SEPARATOR to a semicolon.
2856 2006-03-12 Bruno Haible <bruno@clisp.org>
2858 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
2859 available as variable CONF_JAVA, for subsequent autoconf
2860 tests. Also log error output in config.log.
2862 2006-07-19 Bruno Haible <bruno@clisp.org>
2864 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
2865 that getline works on glibc2 systems. Needed to avoid trouble
2867 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
2869 2005-12-04 Bruno Haible <bruno@clisp.org>
2871 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
2872 launcher (untested).
2874 2005-12-04 Bruno Haible <bruno@clisp.org>
2876 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
2878 2006-07-22 Bruno Haible <bruno@clisp.org>
2880 * gettext.m4: Update from GNU gettext-0.15.
2883 * inttypes-pri.m4: Likewise.
2884 * inttypes-h.m4: Renamed from inttypes.m4.
2885 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
2887 2006-07-22 Bruno Haible <bruno@clisp.org>
2889 Merge from GNU gettext 0.15.
2891 2005-07-05 Bruno Haible <bruno@clisp.org>
2893 * printf-args.c (printf_fetchargs): Work around broken
2894 definition of wint_t on mingw.
2896 2005-02-12 Bruno Haible <bruno@clisp.org>
2898 * xallocsa.h: Add extern "C" for C++.
2900 2006-05-17 Bruno Haible <bruno@clisp.org>
2903 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
2905 2006-04-30 Bruno Haible <bruno@clisp.org>
2907 * progreloc.c: Include <mach-o/dyld.h> if available.
2908 (find_executable): Use _NSGetExecutablePath when possible.
2910 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
2912 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
2915 2005-12-29 Bruno Haible <bruno@clisp.org>
2917 * progreloc.c (set_program_name_and_installdir): Fix
2920 2005-12-04 Bruno Haible <bruno@clisp.org>
2923 * progreloc.c: Include <windows.h> also on Cygwin.
2924 (find_executable): Add support for Cygwin.
2925 (set_program_name_and_installdir): Handle also platforms with
2928 2006-07-11 Bruno Haible <bruno@clisp.org>
2930 * javacomp.c: Fix a comment.
2931 Reported by Jim Meyering.
2933 2006-04-30 Bruno Haible <bruno@clisp.org>
2935 * javacomp.h (compile_java_class): Add source_version,
2936 target_version arguments.
2937 * javacomp.c: Rewritten to choose only a compiler that
2938 respects the specified source_version and target_version.
2940 2006-06-27 Bruno Haible <bruno@clisp.org>
2942 Assume correct S_ISDIR macro.
2943 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
2945 2006-07-22 Bruno Haible <bruno@clisp.org>
2947 * javaversion.h: New file, from GNU gettext.
2948 * javaversion.c: New file, from GNU gettext.
2949 * javaversion.java: New file, from GNU gettext.
2950 * javaversion.class: New file, from GNU gettext.
2952 2006-05-17 Bruno Haible <bruno@clisp.org>
2955 * javaexec.c (execute_java_class): Test for jview program
2958 2006-04-09 Bruno Haible <bruno@clisp.org>
2960 * fatal-signal.c: Don't include string.h.
2961 (at_fatal_signal): Use a copying loop instead of memcpy.
2963 2005-12-04 Bruno Haible <bruno@clisp.org>
2965 * csharpexec.c: Add support for 'clix' launcher (untested).
2966 (execute_csharp_using_sscli): New function.
2967 (execute_csharp_program): Call it.
2969 2006-06-21 Bruno Haible <bruno@clisp.org>
2971 Avoid warnings from recent versions of mcs.
2972 * csharpcomp.c (compile_csharp_using_mono): Don't use options
2973 -o, -L, -r any more. Use options documented since mcs-1.0
2974 instead. Similarly for -g.
2976 2005-07-09 Bruno Haible <bruno@clisp.org>
2978 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
2980 Reported by Mark Junker <mjscod@gmx.de>.
2982 2006-06-17 Bruno Haible <bruno@clisp.org>
2984 * config.charset: Update for NetBSD 3.0.
2986 2006-05-17 Bruno Haible <bruno@clisp.org>
2989 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
2991 2006-05-16 Bruno Haible <bruno@clisp.org>
2993 * localcharset.c [CYGWIN]: Include <windows.h>.
2994 (get_charset_aliases): For Cygwin, return the same CPxxx
2995 aliases list as under WIN32.
2996 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
2997 the environment variables. Fall back to GetACP().
2999 2006-04-05 Bruno Haible <bruno@clisp.org>
3001 * config.charset: Update Juan Manuel Guerrero's address.
3003 2005-02-12 Bruno Haible <bruno@clisp.org>
3005 * allocsa.h: Add extern "C" for C++.
3007 2005-02-10 Bruno Haible <bruno@clisp.org>
3009 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
3010 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
3012 2006-07-22 Bruno Haible <bruno@clisp.org>
3014 * gettext.h: Update to GNU gettext-0.15.
3016 2006-07-22 Bruno Haible <bruno@clisp.org>
3018 * config/srclist.txt: Resync printf-args.c, vasnprintf.c, localcharset.c,
3019 mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4, lib-prefix.m4,
3020 longdouble.m4, ssize_t.m4.
3022 2006-07-21 Eric Blake <ebb9@byu.net>
3024 * modules/stdlib-safer: New file.
3025 * MODULES.html.sh (File stream based Input/Output): Add
3028 2006-07-21 Eric Blake <ebb9@byu.net>
3030 * lib/stdlib-safer.h: New file from coreutils, required by
3033 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
3035 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
3037 2006-07-20 Bruno Haible <bruno@clisp.org>
3039 * gnulib-tool: Recognize new option --assume-autoconf.
3040 (autoconf_minversion): New variable.
3041 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
3043 2006-07-20 Bruno Haible <bruno@clisp.org>
3045 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
3047 2006-07-19 Derek R. Price <derek@ximbiot.com>
3049 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
3050 Reindent and repaginate.
3052 2006-07-19 Derek Price <derek@ximbiot.com>
3054 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice. Correct
3057 2006-07-17 Bruno Haible <bruno@clisp.org>
3059 * modules/list: New file.
3060 * modules/array-list: New file.
3061 * modules/carray-list, modules/carray-list-tests: New files.
3062 * modules/linked-list, modules/linked-list-tests: New files.
3063 * modules/avltree-list, modules/avltree-list-tests: New files.
3064 * modules/rbtree-list, modules/rbtree-list-tests: New files.
3065 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
3066 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
3067 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
3068 * modules/oset: New file.
3069 * modules/array-oset: New file.
3070 * modules/avltree-oset, modules/avltree-oset-tests: New files.
3071 * modules/rbtree-oset, rbtree-oset-tests: New files.
3072 * tests/test-carray_list.c: New file.
3073 * tests/test-linked_list.c: New file.
3074 * tests/test-avltree_list.c: New file.
3075 * tests/test-rbtree_list.c: New file.
3076 * tests/test-linkedhash_list.c: New file.
3077 * tests/test-avltreehash_list.c: New file.
3078 * tests/test-rbtreehash_list.c: New file.
3079 * tests/test-avltree_oset.c: New file.
3080 * tests/test-rbtree_oset.c: New file.
3081 * MODULES.html.sh (Container data structures): New section.
3083 2006-07-17 Bruno Haible <bruno@clisp.org>
3085 * m4/gl_list.m4: New file.
3087 2006-07-17 Bruno Haible <bruno@clisp.org>
3089 * lib/gl_list.h: New file.
3090 * lib/gl_list.c: New file.
3091 * lib/gl_array_list.h: New file.
3092 * lib/gl_array_list.c: New file.
3093 * lib/gl_carray_list.h: New file.
3094 * lib/gl_carray_list.c: New file.
3095 * lib/gl_linked_list.h: New file.
3096 * lib/gl_linked_list.c: New file.
3097 * lib/gl_anylinked_list1.h: New file.
3098 * lib/gl_anylinked_list2.h: New file.
3099 * lib/gl_avltree_list.h: New file.
3100 * lib/gl_avltree_list.c: New file.
3101 * lib/gl_anyavltree_list1.h: New file.
3102 * lib/gl_anyavltree_list2.h: New file.
3103 * lib/gl_rbtree_list.h: New file.
3104 * lib/gl_rbtree_list.c: New file.
3105 * lib/gl_anyrbtree_list1.h: New file.
3106 * lib/gl_anyrbtree_list2.h: New file.
3107 * lib/gl_anytree_list1.h: New file.
3108 * lib/gl_anytree_list2.h: New file.
3109 * lib/gl_linkedhash_list.h: New file.
3110 * lib/gl_linkedhash_list.c: New file.
3111 * lib/gl_anyhash_list1.h: New file.
3112 * lib/gl_anyhash_list2.h: New file.
3113 * lib/gl_avltreehash_list.h: New file.
3114 * lib/gl_avltreehash_list.c: New file.
3115 * lib/gl_rbtreehash_list.h: New file.
3116 * lib/gl_rbtreehash_list.c: New file.
3117 * lib/gl_anytreehash_list1.h: New file.
3118 * lib/gl_anytreehash_list2.h: New file.
3120 * lib/gl_oset.h: New file.
3121 * lib/gl_oset.c: New file.
3122 * lib/gl_array_oset.h: New file.
3123 * lib/gl_array_oset.c: New file.
3124 * lib/gl_avltree_oset.h: New file.
3125 * lib/gl_avltree_oset.c: New file.
3126 * lib/gl_rbtree_oset.h: New file.
3127 * lib/gl_rbtree_oset.c: New file.
3128 * lib/gl_anytree_oset.h: New file.
3130 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3132 * m4/mkancesdirs.m4: New file.
3133 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c, dirchownmod.h.
3134 Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER; no longer needed.
3135 Require gl_FUNC_LCHOWN, since dirchownmod.c needs it.
3137 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3139 * lib/dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h:
3141 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
3142 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
3143 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
3144 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
3145 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
3146 callers changed. Revamp internals significantly, by not
3147 attempting to create directories that are temporarily more
3148 permissive than the final results. Do not attempt to use
3149 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
3150 This removes some race conditions, fixes some bugs, and simplifies
3151 things. Use new dirchownmod function to do owner and mode changes.
3152 * lib/mkdir-p.h: Likewise.
3153 * lib/modechange.c (octal_to_mode): New function.
3154 (struct mode_change): New member mentioned.
3155 (make_node_op_equals): New arg mentioned. All callers changed.
3156 (mode_compile): Keep track of which mode bits the user has explicitly
3158 (mode_adjust): New arg DIR, so that we implement the X op correctly.
3159 New arg PMODE_BITS, to keep track of which mode bits the user
3160 mentioned; it treats S_ISUID and S_ISGID speciall.
3161 All callers changed.
3162 * lib/modechange.h: Likewise.
3164 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3166 * MODULES.html.sh: Add mkancestors.
3167 * modules/mkancesdirs: New module.
3168 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
3169 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
3170 The chdir-safer and afs files are now orphans; I'll remove them
3171 unless someone speaks up.
3172 Add lib/dirchownmod.c, lib/dirchownmod.h.
3173 (Depends-on): Remove alloca, chown, save-cwd, dirname.
3174 Add lchown, mkancesdirs.
3175 (Maintainer): Add self.
3177 2006-07-15 Karl Berry <karl@gnu.org>
3179 * gnulib-tool: help message wording/arrangement.
3181 2006-07-14 Simon Josefsson <jas@extundo.com>
3183 * doc/gnulib.texi (Libtool and Windows): New section.
3185 2006-07-12 Simon Josefsson <jas@extundo.com>
3187 * modules/gendocs (License): Fix license, approved by Karl.
3189 2006-07-12 Eric Blake <ebb9@byu.net>
3191 * MODULES.html.sh: Add gendocs.
3193 2006-07-11 Eric Blake <ebb9@byu.net>
3195 * modules/fdl: New module, to install doc/fdl.texi.
3196 * MODULES.html.sh: Add new section for documentation modules.
3197 * gnulib-tool: Avoid space-tab.
3198 (--doc-base): New option, to manage files from doc.
3200 2006-07-11 Eric Blake <ebb9@byu.net>
3202 * m4/absolute-header.m4: Fix comments to match recent change.
3204 2006-07-11 Eric Blake <ebb9@byu.net>
3206 * gnulib-tool: List --doc-base before --tests-base.
3208 2006-07-11 Derek R. Price <derek@ximbiot.com>
3210 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
3212 2006-07-11 Bruno Haible <bruno@clisp.org>
3214 * README: Mention where to put documentation.
3216 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3218 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
3220 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
3222 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
3225 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
3227 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
3228 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
3229 "no/such/file/stdint.h" when there is no such file, so that
3230 the resulting C code can be parsed by dodgy compilers.
3231 Problems reported by Bob Proulx.
3233 2006-07-10 Derek R. Price <derek@ximbiot.com>
3235 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
3236 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
3237 macros into the GNU _D_EXACT_NAMLEN.
3238 * lib/savedir.c: Likewise.
3239 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
3241 2006-07-10 Derek R. Price <derek@ximbiot.com>
3242 and Paul Eggert <eggert@cs.ucla.edu>
3244 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
3246 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
3247 macros into the GNU _D_EXACT_NAMLEN.
3249 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3251 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
3252 around the absolute name, to work around a problem with the HP-UX
3253 11.23 native C compiler, reported by Bob Proulx.
3255 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3257 * doc/maintain.texi, make-stds.texi: Sync from
3258 <http://savannah.gnu.org/projects/gnustandards>.
3260 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3262 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
3264 2006-07-09 Jim Meyering <jim@meyering.net>
3266 * m4/glob.m4: Remove a doubled word in a comment.
3268 2006-07-09 Jim Meyering <jim@meyering.net>
3270 * lib/argp-pv.c: Remove a doubled word in a comment.
3271 * lib/check-version.c (check_version): Likewise.
3272 * lib/javacomp.c (compile_java_class): Likewise.
3274 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
3276 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
3277 for the benefit of people using Autoconf 2.60. If you want to
3278 support older Autoconf versions you can copy m4/onceonly_2_57.m4
3279 (or m4/onceonly.m4, if pre-2.57) manually.
3281 2006-07-08 Jim Meyering <jim@meyering.net>
3283 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a comment.
3284 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
3285 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a comment.
3287 2006-07-08 Jim Meyering <jim@meyering.net>
3289 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
3291 2006-07-07 Simon Josefsson <jas@extundo.com>
3293 * tests/test-crc.c: Change expected crc value, the test vector
3294 were probably computed using the old broken crc.c?
3296 2006-07-06 Simon Josefsson <jas@extundo.com>
3298 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
3299 now the canonical place for the M4 file).
3301 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
3302 from the sys_socket dependency now.
3304 * modules/inet_pton (Files): Ditto.
3306 * modules/inet_ntop (Files): Ditto.
3308 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
3310 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
3311 not gl_PREREQ_GETUSERSHELL.
3313 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3315 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
3316 with only one argument, for Autoconf 2.60.
3317 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
3318 expand to nothing, so add a shell command to avoid syntax error.
3319 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3321 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3323 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
3325 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3327 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
3328 no longer needed. Check for isblank decl.
3329 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
3330 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
3333 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3335 * lib/getloadavg.c: Use __VMS, not VMS.
3336 * lib/getopt.c: Likewise.
3337 * lib/getpagesize.h: Likewise.
3338 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while and
3339 probably does not work.
3341 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3343 * lib/.cppi-disable: Add wcwidth.
3344 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
3345 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
3346 (ISGRAPH): Remove. All uses changed to isgraph.
3347 (FOLD) [!defined _LIBC]: Remove special case.
3348 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
3349 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
3351 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special case.
3353 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
3355 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
3356 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
3357 brackets. Other minor changes to suppress some compiler
3360 2006-07-06 Derek R. Price <derek@ximbiot.com>
3361 and Paul Eggert <eggert@cs.ucla.edu>
3363 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
3364 of invoking obsolescent AC_HEADER_DIRENT macro.
3365 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3366 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
3367 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3368 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3369 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
3370 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
3371 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
3372 * m4/readdir.m4: Remove; no longer needed.
3374 2006-07-06 Derek R. Price <derek@ximbiot.com>
3375 and Paul Eggert <eggert@cs.ucla.edu>
3377 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
3378 Don't worry about this obsolete case any more.
3379 (HAVE_DIR): Remove. All uses removed; we now assume you can read
3381 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
3382 worry about this obsolete case any more.
3383 * lib/fts.c: Likewise.
3384 * lib/getcwd.c: Likewise.
3385 * lib/glob.h: Likewise.
3386 * lib/savedir.c: Likewise.
3388 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
3390 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
3391 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
3392 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer needed.
3394 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3395 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
3396 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer needed.
3397 * m4/getdate.m4 (gl_GETDATE): Likewise.
3398 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
3399 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
3400 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3401 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3402 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
3403 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
3404 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
3407 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
3409 * lib/memcasecmp.c: Include <limits.h>.
3410 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
3411 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
3412 Don't assume isdigit succeeds only on '0' through '9'.
3414 2006-07-05 Eric Blake <ebb9@byu.net>
3416 * modules/getaddrinfo (Depends-on): Add snprintf.
3418 2006-07-05 Eric Blake <ebb9@byu.net>
3420 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
3421 to avoid 'header present but could not be compiled' on cygwin.
3423 2006-07-05 Eric Blake <ebb9@byu.net>
3425 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
3426 missing from netdb.h.
3427 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
3429 2006-07-05 Derek R. Price <derek@ximbiot.com>
3431 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
3433 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
3434 * m4/getdate.m4 (gl_GETDATE): Likewise.
3435 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
3436 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
3437 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3438 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3439 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
3441 2006-07-05 Derek R. Price <derek@ximbiot.com>
3443 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
3444 All uses of is_space replaced by isspace.
3445 * lib/exit.h: Don't talk about STDC_HEADERS.
3446 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
3447 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
3448 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
3449 replaced by isprint etc.
3450 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
3451 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
3452 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
3453 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
3454 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
3455 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
3457 2006-07-05 Bruno Haible <bruno@clisp.org>
3459 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
3460 the function exists, before testing against AIX.
3461 Reported by Martin Lambers <marlam@marlam.de>.
3463 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
3465 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
3466 From Mark D. Baushke.
3468 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
3470 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
3471 to the absolute name, not just one, to bypass Sun C 5.8's
3472 "warning: #include of /usr/include/... may be non-portable".
3474 2006-07-04 Eric Blake <ebb9@byu.net>
3476 * modules/dirname-tests: New test module.
3477 * tests/test-dirname.c: New file, replacing dirname.c
3478 TEST_DIRNAME section that was recently deleted.
3480 2006-07-04 Bruno Haible <bruno@clisp.org>
3482 Assume ANSI C header files and <ctype.h> functions.
3483 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
3484 (mbsnwidth): Use isprint, iscntrl instead.
3486 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3488 Merge from coreutils.
3489 * MODULES.html.sh: Add xstrtold.
3490 * modules/xstrtold: New file.
3491 * modules/cycle-check (Files): Add lib/same-inode.h.
3492 * modules/dirname (Files): Add m4/double-slash-root.m4.
3493 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
3494 * modules/mkdir-p (Files): Add lib/same-inode.h.
3495 * modules/same (Files): Add lib/same-inode.h.
3497 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3499 * m4/absolute-header.m4: Renamed from full-header-path.m4.
3500 This is to keep the terminology clean; POSIX talks about
3501 "absolute pathnames", not "full pathnames", but the GNU
3502 Coding Standards say to use "path" for something else;
3503 so use "absolute" to keep both sides happy.
3504 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
3505 Set gl_absolute_header, not gl_full_header_path.
3506 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
3507 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
3510 Merge from coreutils.
3512 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3514 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
3515 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
3516 want to require the building of c-strtod.o.
3517 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
3519 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
3521 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
3523 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
3524 --as-needed option if available. Problem reported by Albert Chin in
3525 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
3526 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
3527 cc merely issues a bunch of annoying warnings for --as-needed
3528 (this problem was reported by Bob Proulx). Also, try linking with
3529 -lm to detect a bug in binutils 2.16 (this problem was reported
3530 by Ralf Wildenhues).
3532 2006-06-18 Jim Meyering <jim@meyering.net>
3534 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
3535 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and macro.
3536 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
3537 also check for glibc-2.4's abort-inducing bug.
3539 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
3540 Low-probability clean-up should be to use rmdir to get rid of
3541 the just-created directory, not unlink.
3543 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
3544 configure fail, and request a bug report to inform us about it.
3545 Add a comment that, barring reports to the contrary, in 2007 we'll
3546 assume ftruncate is universally available.
3548 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3550 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
3552 2006-03-12 Jim Meyering <jim@meyering.net>
3554 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
3555 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
3556 * m4/same.m4 (gl_SAME): Likewise.
3557 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
3559 2006-03-11 Eric Blake <ebb9@byu.net>
3561 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
3562 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
3563 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
3564 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
3566 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3568 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
3569 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
3570 reported by Mark D. Baushke, one in
3571 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
3573 Merge from coreutils.
3575 * lib/.cppi-disable: Add stdint_.h.
3576 * lib/.cvsignore: Add stdint.h.
3578 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3580 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
3581 both double and long double versions.
3582 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
3583 * lib/xstrtold.c: New file.
3584 * lib/xstrtod.h (xstrtold): New decl.
3586 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
3588 * lib/filemode.c (setst): Remove.
3589 (strmode): Rewrite to avoid setst. This makes the code shorter,
3590 (arguably) clearer, and the generated code is a bit smaller on my
3591 Debian GNU/Linux stable x86 host.
3593 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3595 * lib/filemode.c: Include "filemode.h" first, to test the interface.
3596 Assume that filemode.h includes sys/types.h and sys/stat.h.
3597 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
3598 (ftypelet): Reorder to put common cases first, for efficiency.
3599 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
3601 (strmode): Renamed from mode_string, and now stores 12 bytes instead
3602 of 10, for compatibility with FreeBSD. All callers changed.
3603 (filemodestring): Now stores 12 bytes instead of 10, and sets file types
3604 that can't be deduced solely from st_mode. First arg is now a const
3606 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
3607 (strmode): Renamed from mode_string.
3608 (filemodestring): New decl.
3609 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
3610 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never needed.
3611 (S_ISPORT, S_ISWHT): New macros, if not already defined.
3613 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
3615 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
3616 fsusage.h now does that. Include fsusage.h first, to test interface.
3617 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
3618 at most one method (the old code could have generated decls that
3619 didn't conform to C89, not that this was ever exercised).
3620 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
3622 2006-03-19 Jim Meyering <jim@meyering.net>
3624 Work even in a chroot where d_ino values for entries in "/"
3625 don't match the stat.st_ino values for the same names.
3626 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
3627 number, iterate through all entries again, using lstat instead.
3628 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
3629 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
3631 * lib/getcwd.c (__getcwd): Clarify a comment.
3632 Use memcpy in place of a call to strcpy.
3634 2006-03-12 Jim Meyering <jim@meyering.net>
3636 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair matches
3637 that of the current directory (which we're about to chdir ".." out of),
3638 then save the dev-ino of the parent, instead.
3640 * lib/same-inode.h (SAME_INODE): New file/macro.
3641 * lib/chdir-safer.c (SAME_INODE): Remove definition.
3642 Include "same-inode.h", instead.
3643 * lib/same.c: Likewise.
3644 * lib/cycle-check.h: Include "same-inode.h".
3645 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
3646 * lib/cycle-check.c (SAME_INODE): Remove definition.
3647 * lib/root-dev-ino.h: Include "same-inode.h".
3649 2006-03-11 Eric Blake <ebb9@byu.net>
3651 * lib/same.c (same_name): s/base_name/last_component/
3652 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
3653 * lib/filenamecat.c (file_name_concat): Likewise.
3655 2006-03-11 Eric Blake <ebb9@byu.net>,
3656 Paul Eggert <eggert@cs.ucla.edu>
3658 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
3659 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
3661 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
3662 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
3663 (last_component): New method.
3664 * lib/dirname.c (dir_len): Determine when drive letters need a
3665 subsequent slash. Preserve // when it is special.
3666 (dir_name): Don't append dot when drive letter is absolute.
3667 [TEST_DIRNAME]: Move into a full-blown gnulib test.
3668 * lib/basename.c (base_name): New semantics - malloc the result.
3669 Preserve // when it is special. Preserve relative files that look
3671 (base_len): Preserve // when it is special.
3672 (last_component): New method, similar to old base_name semantics.
3673 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
3674 base_name. Strip redundant slashes from ///.
3676 2006-07-03 Jim Meyering <jim@meyering.net>
3678 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
3679 macro is used before the first cycle_check call.
3681 2006-07-03 Eric Blake <ebb9@byu.net>
3683 * modules/dirname (Depends-on): Add xstrndup.
3685 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3687 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
3688 test cases, so that config.log is a bit easier to follow.
3690 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3692 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
3693 both are 64 bits, since this seems to be the tradition, and this
3694 prevents gcc -Wformat from warning about usages with PRIuMAX. If
3695 we ever run into a host that prefers long long to long in this
3696 case, we'll need another configure-time test. Problem reported by
3699 2006-07-02 Eric Blake <ebb9@byu.net>
3701 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
3703 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3705 * modules/inttypes (Depends-on): No longer depends on stdint.
3706 * modules/stdint (Description): Say more about assumptions.
3707 Say that the fast types might differ. Say macros are used.
3708 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
3709 (Makefile.am): Revise list of substituted symbols to match
3711 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
3712 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
3713 * tests/test-stdint.c (verify_same_types)
3714 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
3715 the code conforms to C99/C89.
3716 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
3717 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
3719 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3721 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
3722 but fix a bug, by requiring at least 64 bits.
3723 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
3724 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
3725 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
3726 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
3728 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
3729 changes. Make 2.59 a prerequisite. Check and substitute for
3730 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
3731 inttypes.h. Do not use special include files; just use the
3732 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
3733 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
3734 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
3735 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
3736 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
3737 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
3738 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
3739 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
3740 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
3741 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
3742 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
3743 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
3744 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
3745 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
3746 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
3747 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
3748 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
3749 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
3750 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
3751 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
3752 WINT_MAX. Check for C99 conformance more strictly, by detecting
3753 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
3754 not check for things that C99 does not require, e.g., int8_t. If
3755 a test isn't needed unless <stdint.h> isn't working, and is
3756 unlikely to be needed for any other reason, then don't do it
3757 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
3758 size_t, since we assume C89 freestanding at least. Do not check
3759 for sig_atomic_t, wchar_t, or wint_t, since the code now does
3760 the right thing even if the types are not defined. Instead use:
3761 (gl_STDINT_TYPE_PROPERTIES): New macro.
3762 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
3763 testing whether <sys/types.h> clashes, as Autoconf does this for
3764 us now. All uses removed.
3765 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
3766 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
3767 (gl_CHECK_TYPE_SAME):
3768 Remove; no longer needed.
3769 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
3770 exists, since we'll return 0 anyway in that case.
3771 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
3773 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3775 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
3776 possible collision with system files.
3777 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
3778 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
3779 WCHAR_MIN and WCHAR_MAX in this case.
3780 (<stddef.h>): Do not include; no longer needed.
3781 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
3782 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
3783 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
3784 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
3785 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
3786 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
3787 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
3788 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
3789 !defined(__c99))]: Include in this case too, since it's harmless
3791 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
3793 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
3794 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
3795 (_STDINT_MIN, _STDINT_MAX): New macros.
3796 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
3797 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
3798 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
3799 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
3800 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
3801 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
3802 macros, not typedefs; this simplifies things quite a bit.
3803 Use long int for all types narrower than int64_t.
3804 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
3805 Define in terms of long long int or int64_t or long int,
3806 not int64_t or int32_t. This saves some compile-time testing.
3807 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
3808 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
3809 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
3810 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
3811 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
3812 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
3813 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
3814 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3815 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
3816 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
3817 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
3818 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
3819 undef any previous version and define our own version, for
3820 simplicity and consistency with the new macros for types.
3821 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
3822 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
3823 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
3824 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
3825 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
3826 @WINT_T_SUFFIX@ to keep things simple here.
3827 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
3828 Simplify by assuming typical 8/16/32/64 host, since we're
3829 already doing that elsewhere anyway.
3830 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
3831 and assume long long int is 64 bits if available. This
3832 speeds up 'configure'.
3834 2006-07-01 Eric Blake <ebb9@byu.net>
3836 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
3837 Reported by Andreas Buening.
3839 2006-07-01 Eric Blake <ebb9@byu.net>
3841 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
3843 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
3845 * lib/getaddrinfo.c: fixed typo
3847 2006-06-29 Jim Meyering <jim@meyering.net>
3849 * modules/strftime (Maintainer): Add my name, since with the
3850 FPRINTFTIME changes strftime.c has forked from glibc.
3852 2006-06-29 Eric Blake <ebb9@byu.net>
3854 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
3856 2006-06-29 Eric Blake <ebb9@byu.net>
3858 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
3860 2006-06-29 Eric Blake <ebb9@byu.net>
3862 * lib/stat_.h: New file.
3864 2006-06-29 Eric Blake <ebb9@byu.net>
3866 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
3867 unused static function.
3869 2006-06-29 Eric Blake <ebb9@byu.net>
3871 * doc/functions.texi (Function Portability): Document missing lstat
3874 2006-06-29 Eric Blake <ebb9@byu.net>
3876 * MODULES.html.sh: Add sys_stat.
3877 * modules/sys_stat: New module.
3878 * modules/mkstemp (Depends-on): Add sys_stat.
3880 2006-06-29 Derek R. Price <derek@ximbiot.com>
3882 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
3884 2006-06-29 Derek R. Price <derek@ximbiot.com>
3886 * m4/c-bs-a.m4: Removed.
3888 2006-06-29 Derek R. Price <derek@ximbiot.com>
3890 * lib/strftime.c: Assume strftime() exists.
3892 2006-06-29 Derek Price <derek@ximbiot.com>
3894 * modules/c-bs-a: Removed - \a is C89.
3895 * MODULES.html.sh: Remove c-bs-a.
3897 2006-06-29 Bruno Haible <bruno@clisp.org>
3899 * modules/wcwidth (License): Change to LGPL.
3901 2006-06-28 Simon Josefsson <jas@extundo.com>
3903 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
3906 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
3909 2006-06-28 Simon Josefsson <jas@extundo.com>
3911 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
3913 2006-06-28 Simon Josefsson <jas@extundo.com>
3915 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
3916 functions there. It will succeed on Windows XP, but on Windows
3917 2000 and (presumably) earlier, it will fail, and use the internal
3919 (use_win32_p): New function.
3920 (getaddrinfo): Use strtoul on servname, to support numeric ports.
3921 Support AI_NUMERICSERV to disable getservbyname.
3922 (getnameinfo): New function, only supports
3923 NI_NUMERICHOST|NI_NUMERICSERV for now.
3925 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
3926 only have some of them. Add AI_NUMERICSERV. Add prototype for
3929 2006-06-28 Eric Blake <ebb9@byu.net>
3931 * modules/wcwidth: New file.
3932 * modules/mbchar (Depends-on): Add wcwidth.
3933 * modules/mbswidth (Depends-on): Add wcwidth.
3934 * MODULES.html.sh: Add wcwidth.
3936 2006-06-28 Eric Blake <ebb9@byu.net>
3938 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
3939 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
3941 2006-06-28 Eric Blake <ebb9@byu.net>
3943 * lib/xvasprintf.h: Fix comments.
3945 2006-06-28 Eric Blake <ebb9@byu.net>
3947 * lib/mbchar.h (wcwidth): Include wcwidth.h.
3948 * lib/mbswidth.c (wcwidth): Move from here...
3949 * lib/wcwidth.h: ...to this new file.
3951 2006-06-28 Derek R. Price <derek@ximbiot.com>
3953 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
3955 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
3957 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
3959 2006-06-28 Derek R. Price <derek@ximbiot.com>
3961 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
3962 Autoconf 2.60 says this stuff was obsolete.
3964 2006-06-28 Bruno Haible <bruno@clisp.org>
3966 * modules/wcwidth (Files): Add m4/wchar_t.m4.
3968 2006-06-28 Bruno Haible <bruno@clisp.org>
3970 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
3973 2006-06-28 Bruno Haible <bruno@clisp.org>
3975 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
3976 declaration for wcwidth.
3977 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
3979 2006-06-28 Bruno Haible <bruno@clisp.org>
3981 * lib/mkdtemp.c [MINGW]: Include <io.h>.
3982 (mkdir): Define using _mkdir.
3984 2006-06-28 Bruno Haible <bruno@clisp.org>
3986 * lib/getaddrinfo.h: Fix POSIX URL.
3987 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of _WIN32.
3988 (use_win32_p): Make static.
3989 (getaddrinfo): Reject service name if it is empty or does not consist
3990 solely of decimal digits, or if its value is > 65535.
3991 (getnameinfo): Remove useless casts.
3993 2006-06-27 Simon Josefsson <jas@extundo.com>
3995 * modules/sys_select: New file, suggested by Bruno Haible, Paul
3996 Eggert and Martin Lambers.
3998 2006-06-27 Simon Josefsson <jas@extundo.com>
4000 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
4001 Eggert and Martin Lambers.
4003 2006-06-27 Bruno Haible <bruno@clisp.org>
4005 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
4006 result to 0, not to empty.
4007 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
4009 2006-06-27 Bruno Haible <bruno@clisp.org>
4011 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
4013 2006-06-26 Simon Josefsson <jas@extundo.com>
4015 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
4018 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
4020 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
4021 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
4022 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
4024 2006-06-26 Mark D. Baushke <mdb@gnu.org>
4026 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
4028 2006-06-26 Bruno Haible <bruno@clisp.org>
4030 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
4032 2006-06-26 Bruno Haible <bruno@clisp.org>
4034 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
4036 2006-06-26 Bruno Haible <bruno@clisp.org>
4038 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
4039 SGI C compiler in pre-C99 mode.
4040 Suggested by Mark D. Baushke and Larry Jones.
4042 2006-06-26 Bruno Haible <bruno@clisp.org>
4044 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
4046 Reported by Mark D. Baushke and Larry Jones.
4048 2006-06-26 Bruno Haible <bruno@clisp.org>
4050 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
4052 Suggested by Mark D. Baushke and Larry Jones.
4054 2006-06-23 Simon Josefsson <jas@extundo.com>
4055 Bruno Haible <bruno@clisp.org>
4057 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
4058 Emit mostlyclean-local rule.
4059 (func_emit_tests_Makefile_am): Likewise.
4060 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
4062 2006-06-23 Mark D. Baushke <mdb@gnu.org>
4064 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
4066 2006-06-23 Bruno Haible <bruno@clisp.org>
4068 * tests/test-stdint.c: Update to match ISO C 99 Technical
4071 2006-06-23 Bruno Haible <bruno@clisp.org>
4073 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
4075 2006-06-23 Bruno Haible <bruno@clisp.org>
4077 * lib/stdint_.h: Treat IRIX like OpenBSD.
4079 2006-06-23 Bruno Haible <bruno@clisp.org>
4081 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
4082 ISO C 99 Technical Corrigendum 1.
4084 2006-06-22 Simon Josefsson <jas@extundo.com>
4086 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
4089 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
4091 * lib/glob.c (collated_compare): Remove 'const' uses that weren't needed.
4092 Some compiler complained about some of them. Problem reported by
4094 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
4096 2006-06-21 Simon Josefsson <jas@extundo.com>
4098 * tests/test-getaddrinfo.c: New file.
4100 * modules/getaddrinfo-tests: New file.
4102 * MODULES.html.sh: Add inet_pton.
4104 * modules/inet_pton: New file.
4106 2006-06-21 Simon Josefsson <jas@extundo.com>
4108 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
4109 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
4110 of using the (limited) gnulib implementation on Windows XP.
4112 * m4/inet_pton.m4: New file.
4114 2006-06-21 Simon Josefsson <jas@extundo.com>
4116 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
4119 * lib/socket_.h: Don't define WINVER.
4121 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
4122 slightly modified to work in gnulib.
4124 2006-06-21 Simon Josefsson <jas@extundo.com>
4126 * doc/gnulib.texi (Windows sockets): Add.
4128 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
4130 * lib/read-file.c (fread_file): Start with buffer allocation of
4131 0 bytes rather than 1 byte; this simplifies the code.
4132 Don't invoke feof; it's not needed. Refactor to avoid duplicate
4133 code to free buffer and save/restore errno.
4134 (internal_read_file): Remove unused local.
4136 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
4138 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
4139 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
4140 Problem reported by Denis Excoffier in
4141 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
4143 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4145 * modules/sys_socket, modules/socklen: Include sys/types since
4146 FreeBSD 4.x's sys/socket.h needs it.
4148 2006-06-19 Simon Josefsson <jas@extundo.com>
4150 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
4152 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
4154 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
4156 2006-06-19 Bruno Haible <bruno@clisp.org>
4158 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
4159 and FULL_PATH_INTTYPES_H in angle brackets.
4160 Reported by Mark D. Baushke <mdb@gnu.org>.
4162 2006-06-17 Eric Blake <ebb9@byu.net>
4164 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
4167 2006-06-17 Bruno Haible <bruno@clisp.org>
4169 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
4172 2006-06-17 Bruno Haible <bruno@clisp.org>
4174 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
4175 whether errno is declared. Assume <errno.h> declares errno.
4177 2006-06-17 Bruno Haible <bruno@clisp.org>
4179 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
4181 2006-06-17 Bruno Haible <bruno@clisp.org>
4183 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
4184 problem on Solaris 2.5.1.
4186 2006-06-16 Eric Blake <ebb9@byu.net>
4188 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
4189 * lib/unicodeio.c [!defined errno]: Likewise.
4190 * lib/strtol.c [!defined errno]: Likewise.
4191 * lib/strtod.c [!defined errno]: Likewise.
4193 2006-06-15 Eric Blake <ebb9@byu.net>
4195 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
4197 2006-06-15 Eric Blake <ebb9@byu.net>
4199 * config/srclist.txt (ssize_t.m4): Lose sync.
4201 2006-06-15 Bruno Haible <bruno@clisp.org>
4203 * modules/stdint (Files): Include m4/full-header-path.m4,
4204 m4/size_max.m4, m4/wchar_t.m4.
4205 (Makefile.am): Many more substitutions.
4206 * modules/stdint-tests: New file.
4207 * tests/test-stdint.c: New file.
4209 2006-06-15 Bruno Haible <bruno@clisp.org>
4211 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
4212 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
4213 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
4214 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
4215 gl_CHECK_TYPE_SAME): New macros.
4217 2006-06-15 Bruno Haible <bruno@clisp.org>
4219 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
4221 2006-06-15 Bruno Haible <bruno@clisp.org>
4223 * lib/stdint_.h: Rewritten to be fully auto-configured.
4224 Fixes bug on HP-UX/IA64.
4226 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
4228 * lib/getdate.y (__attribute__): Don't define if already defined.
4229 Problem reported by Larry Jones.
4230 * lib/utimens.c (__attribute__): Likewise.
4232 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
4234 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
4235 reported by Andreas Schwab.
4237 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4238 Bruno Haible <bruno@clisp.org>
4240 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
4241 check for the declaration of strnlen and a run test that exposes the
4242 AIX 5.1 strnlen bug. In the failure case, #define strndup to
4245 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4246 Bruno Haible <bruno@clisp.org>
4248 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
4250 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4252 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
4253 compile test, for Tru64 4.0D.
4255 2006-05-28 Karl Berry <karl@gnu.org>
4257 * config/srclist.txt (printf-args.c): lose sync.
4259 2006-05-26 Martin Lambers <marlam@marlam.de>
4261 * lib/getpass.c: Updates the test for the native W32 API, and adds
4262 missing includes, thus fixing compilation warnings.
4264 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
4266 * lib/exclude.c (exclude_fnmatch): New function.
4267 (excluded_file_name): Call exclude_fnmatch.
4268 * lib/exclude.h (excluded_file_name): New prototype
4270 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
4272 * lib/tempname.c (small_open, large_open): New macros.
4273 (__open, __open64) [!_LIBC]: Remove.
4274 (__gen_tempname): Use small_open and large_open instead of __open
4275 and __open64. This fixes a portability bug on HP-UX 11.11i
4276 reported by Simon Wing-Tang in
4277 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
4279 2006-05-24 Bruno Haible <bruno@clisp.org>
4281 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
4282 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
4283 Reported by Thorsten Maerz <torte@netztorte.de> via
4284 Aaron Stone <aaron@serendipity.cx>.
4286 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
4288 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
4289 gl_ rather than jm_. Link, don't run, so that cross-compiles are
4290 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
4291 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
4292 not really conditional on the cache.
4293 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
4295 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
4297 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
4298 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
4299 (my_usleep): Don't mishandle maximum value.
4301 2006-05-19 Jim Meyering <jim@meyering.net>
4303 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
4305 2006-05-17 Bruno Haible <bruno@clisp.org>
4308 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
4310 2006-05-17 Bruno Haible <bruno@clisp.org>
4312 * lib/stdint_.h: Fix recognition of Cygwin.
4314 2006-05-15 Bruno Haible <bruno@clisp.org>
4316 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
4317 on libtool patch by Ralf Wildenhues.
4319 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
4321 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
4322 test for C99 conformance; (bool) 0.5 is an integer constant
4323 expression, but (bool) -0.5 is not. Problem reported by Fedor
4324 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
4326 2006-05-11 Simon Josefsson <jas@extundo.com>
4328 * m4/xvasprintf.m4: Fix obvious typo.
4330 2006-05-11 Jim Meyering <jim@meyering.net>
4332 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From James Lemley.
4334 2006-05-10 Simon Josefsson <jas@extundo.com>
4336 * lib/md4.c: Typo fix, update copyright years.
4337 (K1, K2): Don't use L because it turn computations into 64-bit on
4340 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
4342 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
4343 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
4344 unwanted sign propagation, e.g., on hosts with 64-bit int.
4345 There still are some problems with reeelly weird theoretical hosts
4346 (e.g., 33-bit int) but it's not worth worrying about now.
4347 * lib/sha1.c (rol): Likewise.
4348 (K1, K2, K3, K4): Remove unnecessary L suffix.
4350 2006-05-10 Bruno Haible <bruno@clisp.org>
4352 * lib/des.c: Cast to avoid warnings.
4354 2006-05-09 Bruno Haible <bruno@clisp.org>
4356 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
4357 (Depends-on): Depend also on xsize, stdarg.
4358 (configure.ac): Add gl_XVASPRINTF.
4360 2006-05-09 Bruno Haible <bruno@clisp.org>
4362 * m4/xvasprintf.m4: New file.
4364 2006-05-09 Bruno Haible <bruno@clisp.org>
4366 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
4367 (EOVERFLOW): Define fallback value.
4368 (xstrcat): New function.
4369 (xvasprintf): Recognize the special case of a string concatenation.
4371 2006-05-08 Eric Blake <ebb9@byu.net>
4373 * gnulib-tool (func_version): Base copyright year on CVS date.
4374 (func_emit_copyright_notice): New function.
4375 (func_emit_lib_Makefile_am): Use it.
4376 (func_emit_tests_Makefile_am): Likewise.
4377 (func_import): Likewise.
4379 2006-05-08 Bruno Haible <bruno@clisp.org>
4381 * modules/stdarg: New file.
4382 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
4384 2006-05-08 Bruno Haible <bruno@clisp.org>
4386 * m4/stdarg.m4: New file, from GNU gettext.
4388 2006-05-08 Bruno Haible <bruno@clisp.org>
4390 * config/srclist.txt (build-aux/config.rpath): different from latest release.
4392 2006-05-08 Bruno Haible <bruno@clisp.org>
4394 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
4396 2006-05-05 Jim Meyering <jim@meyering.net>
4398 * m4/warning.m4: New file, derived from bison's file by the same name.
4400 2006-05-03 Bruno Haible <bruno@clisp.org>
4402 * lib/stdint_.h: Shorter URL.
4403 * lib/inttypes.h: Likewise.
4405 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4407 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
4409 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4411 * lib/verify.h: Document the internals better. Most of this change
4412 was written by Bruno Haible.
4414 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4416 * doc/verify.texi: New file, partly based on a proposal by Bruno Haible.
4418 2006-05-02 Bruno Haible <bruno@clisp.org>
4420 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
4422 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
4424 2006-04-29 Bruno Haible <bruno@clisp.org>
4426 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
4427 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
4429 2006-04-29 Bruno Haible <bruno@clisp.org>
4431 * gnulib-tool: Make --update option actually work.
4433 2006-04-29 Bruno Haible <bruno@clisp.org>
4435 * doc/gcd.texi: New file.
4436 * doc/gnulib.texi: Include it.
4438 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
4440 * lib/getdate.y (get_date): When adding relative date, start with the
4441 initial time, not with the result of the first mktime call.
4443 2006-04-25 Bruno Haible <bruno@clisp.org>
4445 * gnulib-tool (func_import): Output the include directives in three
4446 blocks, sorted separately.
4447 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4449 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
4451 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
4452 to define main with arguments, for C++. Reported by Eric Blake.
4453 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4454 Prefer 'int main ()' to 'int main (void)', for C++.
4455 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4456 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
4457 for 'main', for C99 and C++.
4459 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
4461 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
4462 Don't assume that exit status -1 is valid.
4463 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4464 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4465 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4466 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
4467 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
4468 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
4469 not AC_TRY_RUN. Use return, not exit. Don't assume that
4470 functions can be used without declaring them, or that you can
4471 exit with status -1.
4472 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
4474 2006-04-24 Karl Berry <karl@gnu.org>
4476 * config/srclist.txt (longdouble.m4): sync lost.
4478 2006-04-24 Eric Blake <ebb9@byu.net>
4480 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
4482 2006-04-24 Bruno Haible <bruno@clisp.org>
4484 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the poll()
4485 implementation in AIX.
4486 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4488 2006-04-24 Bruno Haible <bruno@clisp.org>
4490 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
4491 assigned exactly once.
4493 2006-04-23 Claudio Fontana <claudio@gnu.org>
4494 Bruno Haible <bruno@clisp.org>
4496 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
4497 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
4500 2006-04-23 Bruno Haible <bruno@clisp.org>
4502 * modules/copy-file: Depend on unistd.
4503 * modules/execute: Likewise.
4504 * modules/fatal-signal: Likewise.
4505 * modules/findprog: Likewise.
4506 * modules/mkdtemp : Likewise.
4507 * modules/pipe: Likewise.
4508 * modules/wait-process: Likewise.
4510 2006-04-23 Bruno Haible <bruno@clisp.org>
4512 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
4513 condition was already detected.
4514 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4516 2006-04-23 Bruno Haible <bruno@clisp.org>
4518 * lib/copy-file.c: Include <unistd.h> unconditionally.
4519 * lib/execute.c: Likewise.
4520 * lib/fatal-signal.c: Likewise.
4521 * lib/findprog.c: Likewise.
4522 * lib/mkdtemp.c: Likewise.
4523 * lib/pipe.h: Likewise.
4524 * lib/pipe.c: Likewise.
4525 * lib/wait-process.h: Likewise.
4527 2006-04-23 Bruno Haible <bruno@clisp.org>
4529 * gnulib-tool (func_usage): Fix --import description. Document --update.
4530 (func_import): Create temporary file in a temporary directory, if
4531 --dry-run is specified. Silence errors from 'grep' when there are no
4533 (func_create_testdir): Silence errors from 'grep' when there are no
4535 Reported by Karl Berry <karl@freefriends.org>.
4537 2006-04-20 Bruno Haible <bruno@clisp.org>
4539 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
4540 one argument, so that the code will be portable to Autoconf 2.60.
4541 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
4542 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4543 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
4545 2006-04-19 Derek Price <derek@ximbiot.com>
4546 Eric Blake <ebb9@byu.net>
4548 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h> rather
4549 than "/full/path.h". Update comment to match. Shorten & generalize
4550 m4_translit call via AS_TR_CPP.
4552 2006-04-19 Derek Price <derek@ximbiot.com>
4553 Eric Blake <ebb9@byu.net>
4555 * lib/inttypes.h: Correct grammar in comment.
4557 2006-04-18 Derek Price <derek@ximbiot.com>
4558 Paul Eggert <eggert@cs.ucla.edu>
4560 * modules/inttypes: New file.
4561 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
4563 2006-04-18 Derek Price <derek@ximbiot.com>
4564 Paul Eggert <eggert@cs.ucla.edu>
4566 * m4/_inttypes_h.m4, full-header-path.m4, include_next: New files.
4568 2006-04-18 Derek Price <derek@ximbiot.com>
4569 Paul Eggert <eggert@cs.ucla.edu>
4571 * lib/inttypes.h: New file.
4572 * lib/strtoimax.c: Assume <inttypes.h>.
4574 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
4576 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
4577 isn't mounted. Problem reported by Kir Kolyshkin.
4579 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
4581 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if RE_ENABLE_I18N
4582 is not defined. Problem reported by Mark D. Baushke via Derek R. Price.
4583 * lib/regex.h (RE_DUP_MAX): Update comment to match current implementation.
4585 2006-04-12 Eric Blake <ebb9@byu.net>
4587 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
4588 is now done automatically by the corresponding Autoconf macro.
4590 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
4592 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and time_r.h.
4594 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4596 Merge regex changes from libc, removing some of our
4597 POSIX-conformance changes that were rejected and redoing them in a
4600 * lib/regcomp.c (re_compile_internal, init_dfa):
4601 Length arg is now size_t, not Idx. All uses changed.
4602 (peek_token): Forward decl now says internal_function.
4603 (__re_error_msgid, __re_error_msgid_idx):
4604 Now static rather than extern with attribute_hidden.
4605 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
4606 For some reason libc prefers K&R style defns for external functions.
4607 (regerror) [!defined _LIBC]: Likewise.
4608 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
4609 (seek_collating_symbol_entry, lookup_collation_sequence_value):
4610 (build_range_exp, build_collating_symbol):
4612 (re_compile_fastmap): Use '\0' to memset, not 0.
4613 (utf8_sb_map): Make the calculations more obvious.
4614 (init_dfa, parse_bracket_exp, build_charclass_op):
4615 Call calloc and cast result, as glibc does.
4616 (init_word_char, fetch_token, peek_token, peek_token_bracket):
4617 (build_range_exp, build_collating_symbol):
4618 Now internal functions.
4620 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
4622 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
4623 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
4624 Don't depend on VMS; depend on __VMS instead, for POSIX
4625 namespace cleanness.
4626 (regoff_t): Define to ssize_t, not long int.
4628 Remove the REG_ macros named below. Instead, make the old names
4629 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
4631 (REG_BACKSLASH_ESCAPE_IN_LISTS):
4632 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
4633 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
4634 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
4635 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
4636 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
4637 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
4638 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
4639 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
4640 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
4641 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
4642 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
4643 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
4644 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
4645 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
4646 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
4647 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
4649 Remove. All uses replaced by the old RE_* names.
4650 (RE_BACKSLASH_ESCAPE_IN_LISTS):
4651 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
4652 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
4653 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
4654 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
4655 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
4656 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
4657 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
4658 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
4659 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
4660 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
4661 Don't bother having these macros be independent of each others'
4662 values, since they no longer exist in the POSIX name space.
4664 Rename the following member names back to their old names,
4665 unless !__USE_GNU_REGEX. All uses changed back.
4666 (buffer): Renamed from re_buffer.
4667 (allocated): Renamed from re_allocated.
4668 (used): Renamed from re_used.
4669 (syntax): Renamed from re_syntax.
4670 (fastmap): Renamed from re_fastmap.
4671 (translate): Renamed from re_translate.
4672 (can_be_null): Renamed from re_can_be_null.
4673 (regs_allocated): Renamed from re_regs_allocated.
4674 (fastmap_accurate): Renamed from re_fastmap_accurate.
4675 (no_sub): Renamed from re_no_sub.
4676 (not_bol): Renamed from re_not_bol.
4677 (not_eol): Renamed from re_not_eol.
4678 (newline_anchor): Renamed from re_newline_anchor.
4679 (num_regs): Renamed from rm_num_regs.
4680 (start): Renamed from rm_start.
4681 (end): Renamed from rm_end.
4683 (free_state): Move up a bit.
4685 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
4686 #define to be empty.
4687 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
4688 when that is what is intended.
4689 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
4690 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
4692 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
4693 All uses changed back to re_malloc, etc. It's now the caller's
4694 responsibility to check for overflow; all callers changed.
4695 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
4696 (re_x2nrealloc): Remove.
4697 (free_state): Remove decl.
4699 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
4700 (re_set_registers, re_exec):
4703 2006-01-31 Roland McGrath <roland@redhat.com>
4705 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
4706 Reported by Mike Frysinger <vapier@gentoo.org>.
4708 2006-01-15 Andreas Jaeger <aj@suse.de>
4711 * lib/regex_internal.c (re_string_reconstruct): Adjust for
4712 build_wcs_upper_buffer change.
4713 (build_wcs_upper_buffer): Change return type.
4715 2005-12-10 Ulrich Drepper <drepper@redhat.com>
4717 * lib/regex_internal.h: Include <stdint.h> if available.
4719 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
4721 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
4723 2005-10-14 Ulrich Drepper <drepper@redhat.com>
4725 * lib/regcomp.c: Adjust for changed secondary hash function.
4727 2005-09-30 Ulrich Drepper <drepper@redhat.com>
4729 * lib/regex.h: Pretty printing.
4730 Clean up namespace a bit.
4732 2005-09-30 Jakub Jelinek <jakub@redhat.com>
4734 * lib/regexec.c (update_cur_sifted_state, check_arrival,
4735 check_arrival_add_next_nodes): Avoid using uninitialized variable.
4737 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
4738 Ulrich Drepper <drepper@redhat.com>
4741 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses changed.
4742 (bitset_word_t): Renamed from bitset_word. All uses changed.
4744 2005-09-22 Ulrich Drepper <drepper@redhat.com>
4747 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
4748 * lib/regcomp.c: Remove unnecessary uses of
4749 unsigned RE_TRANSLATE_TYPE.
4750 * lib/regex_internal.h: Likewise.
4751 * lib/regex_internal.c: Likewise.
4752 * lib/regexec.c: Likewise.
4753 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
4755 2005-09-07 Ulrich Drepper <drepper@redhat.com>
4757 * lib/regexec.c (find_recover_state): Remove unnecessary
4759 (transit_state_bkref): Make DFA a const pointer.
4760 (get_subexp): Likewise.
4761 (check_arrival): Likewise.
4762 (update_cur_sifted_state): Likewise.
4763 (re_search_internal): Likewise.
4764 (prune_impossible_nodes): Likewise.
4765 (acquire_init_state_context): Likewise.
4766 (proceed_next_node): Likewise.
4767 (set_regs): Likewise.
4768 (free_fail_stack_return): Likewise.
4769 (check_arrival_expand_ecl): Mark DFA parameter as const.
4770 (check_arrival_expand_ecl_sub): Likewise.
4771 (check_subexp_limits): Likewise.
4772 (sub_epsilon_src_nodes): Likewise.
4773 (add_epsilon_src_nodes): Likewise.
4774 (merge_state_array): Likewise.
4775 (update_regs): Likewise.
4776 (build_trtable): Likewise.
4777 (sift_states_backward): Mark MCTX parameter as const.
4778 (build_sifted_states): Likewise.
4779 (update_cur_sifted_state): Likewise.
4780 (sift_states_mkref): Likewise.
4781 (check_arrival_expand_ecl): Mark eclosure as const.
4782 (check_dst_limits_calc_pos_1): Likewise.
4783 * lib/regex_internal.h (re_match_context_t): Make dfa a const
4786 2005-09-06 Ulrich Drepper <drepper@redhat.com>
4788 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
4789 (transit_state_sb): Likewise.
4790 (transit_state_mb): Likewise.
4791 (sift_states_iter_mb): Likewise.
4792 (check_arrival_add_next_nodes): Likewise.
4793 (check_node_accept_bytes): Change first parameter to pointer-to-const.
4794 [_LIBC] (re_search_2_stub): Use mempcpy.
4796 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
4797 mbrtowc for very simple UTF-8 case.
4799 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
4801 (re_acquire_state_context): Likewise.
4802 * lib/regex_internal.h: Adjust prototypes.
4804 * lib/regex.c: Prevent using C++ compilers.
4806 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
4807 (re_acquire_state_context): Likewise.
4809 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4811 * modules/regex (Depends-on): Add ssize_t.
4813 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4815 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
4818 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4820 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
4822 2006-03-29 Mark D. Baushke <mdb@gnu.org>
4823 Bruno Haible <bruno@clisp.org>
4825 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
4826 <sys/types.h> and <inttypes.h>.
4828 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4830 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
4831 `__error_t_defined', so argp.h will not typedef the former.
4833 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
4835 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
4836 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
4837 glibc names. Even if glibc is changed to conform to POSIX, the
4838 traditional names will be available anyway, since regex depends on
4839 the extensions module. Also, fix a longstanding typo in the
4840 implementation of Spencer ERE test #75 from grep 2.3. Problems
4841 reported by Emanuele Giaquinta. Also, change sense of cached
4842 variable, so that the message makes sense.
4844 2006-03-24 Simon Josefsson <jas@extundo.com>
4846 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
4847 including some doc fixes.
4848 (base64_encode_alloc): Fix +1 bug on allocation failures.
4850 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4852 * lib/base64.c (base64_encode): Do not read past end of array with
4853 unsanitized input on systems with CHAR_BIT > 8.
4855 2006-03-24 Eric Blake <ebb9@byu.net>
4857 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
4859 2006-03-22 Karl Berry <karl@gnu.org>
4861 * config/srclist.txt (*setenv.[ch]): get from coreutils.
4862 * config/srclistvars.sh (COREUTILS): new var.
4864 2006-03-17 Jim Meyering <jim@meyering.net>
4866 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
4867 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
4869 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
4871 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
4872 no longer needs it. Instead, check that regoff_t is as least
4873 as wide as ptrdiff_t.
4875 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
4876 so that our regex.h stays compatible with the installed regex.
4877 This is helpful for installers who configure --without-included-regex.
4878 Problem reported by Emanuele Giaquinta.
4880 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
4882 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
4883 Typedef to long int, not to off_, as POSIX will likely change
4886 2006-03-15 Eric Blake <ebb9@byu.net>
4888 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
4890 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
4892 * lib/argp-help.c (validate_uparams): Fix typo
4893 * lib/argp-parse.c (argp_default_options): Consistently begin help
4894 messages with a lowercase letter.
4896 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
4898 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
4899 overrun buffers and shouldn't be used (much as gets shouldn't be
4901 * lib/time_r.c (asctime_r, ctime_r): Likewise.
4903 2006-03-08 Simon Josefsson <jas@extundo.com>
4905 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
4906 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4908 2006-03-08 Simon Josefsson <jas@extundo.com>
4910 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
4911 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4913 2006-03-08 Simon Josefsson <jas@extundo.com>
4915 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
4916 signal that configure disabled the device.
4918 2006-03-08 Simon Josefsson <jas@extundo.com>
4920 * build-aux/maint.mk: Fix refresh-po, to handle no translated
4923 2006-03-07 Simon Josefsson <jas@extundo.com>
4925 * modules/getopt (Depends-on): Add unistd.
4927 * modules/unistd: New file.
4929 2006-03-07 Simon Josefsson <jas@extundo.com>
4931 * modules/gc-random: New file.
4933 2006-03-07 Simon Josefsson <jas@extundo.com>
4935 * m4/unistd_h.m4: New file.
4937 2006-03-07 Simon Josefsson <jas@extundo.com>
4939 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
4940 test to be side-effect free by storing the result in the cache
4941 variable gl_cv_lib_readline, and moving the assignment of
4942 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
4943 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4945 2006-03-07 Simon Josefsson <jas@extundo.com>
4947 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
4948 error on missing devices (the functions will return an error).
4950 * m4/gc.m4: Move random stuff to gc-random.m4
4952 2006-03-07 Simon Josefsson <jas@extundo.com>
4954 * lib/unistd_.h: New file.
4956 2006-03-07 Simon Josefsson <jas@extundo.com>
4958 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
4960 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
4962 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
4963 Problem reported by Juan Manuel Guerrero.
4965 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
4967 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
4969 * lib/getlogin_r.c: Likewise.
4970 * lib/getlogin_r.h: Likewise.
4971 * lib/glob.c: Likewise.
4972 * lib/pagealign_alloc.c: Likewise.
4973 * lib/unistd_.h: Remove; no longer needed.
4975 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
4977 * MODULES.html.sh (Support for systems lacking POSIX:2001):
4979 * modules/c-stack (Depends-on): Add unistd.
4980 * modules/getlogin_r: Likewise.
4981 * modules/glob: Likewise.
4982 * modules/pagealign_alloc: Likewise.
4983 * modules/unistd (Files): Remove lib/unistd_.h.
4984 (EXTRA_DIST): Remove.
4985 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
4987 (MOSTLYCLEANFILES): Remove unistd.h-t.
4989 2006-03-03 Simon Josefsson <jas@extundo.com>
4991 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
4993 2006-03-03 Simon Josefsson <jas@extundo.com>
4995 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
4998 2006-03-03 Simon Josefsson <jas@extundo.com>
5000 * build-aux/maint.mk: Add indent target.
5002 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
5004 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
5005 our replacement poll.h in any case, to avoid a differing
5006 declaration from a system header. Seen on AIX.
5008 2006-03-01 Simon Josefsson <jas@extundo.com>
5010 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
5013 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
5015 * modules/gettime (Depends-on): Add extensions module.
5016 * modules/nanosleep (Depends-on): Likewise.
5017 * modules/settime (Depends-on): Likewise.
5019 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
5021 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
5022 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
5024 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5025 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
5027 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
5028 not "==". Reported by Ralf Wildenhues.
5030 2006-03-01 Karl Berry <karl@gnu.org>
5032 * doc/Copyright/request-*: new files, synced from gnuorg.
5034 2006-03-01 Karl Berry <karl@gnu.org>
5036 * config/srclist.txt (Copyright/*): new entries.
5038 2006-02-28 Simon Josefsson <jas@extundo.com>
5040 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
5042 2006-02-27 Simon Josefsson <jas@extundo.com>
5044 * lib/base64.h: Indent #define's. From Jim Meyering
5047 2006-02-27 Jim Meyering <jim@meyering.net>
5049 Revert the change of 2006-02-24, so these files can continue
5050 to be sync'd from gettext.
5051 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
5054 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
5056 * modules/intprops: New file.
5057 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
5059 * modules/getloadavg (Files): Remove lib/intprops.h.
5060 (Depends-on): Add intprops.
5061 * modules/human: Likewise.
5062 * modules/inttostr: Likewise.
5063 * modules/openat: Likewise.
5064 * modules/sig2str: Likewise.
5065 * modules/userspec: Likewise.
5066 * modules/utimecmp: Likewise.
5067 * modules/xnanosleep: Likewise.
5068 * modules/xstrtol: Likewise.
5070 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
5072 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
5073 * modules/lock-tests (TESTS): Use $(EXEEXT).
5074 * modules/tls-tests: Likewise.
5075 * modules/argp-tests: Likewise.
5076 (check_PROGRAMS): New var, replacing...
5077 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
5079 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5081 * lib/mkdtemp.c, setenv.c, unsetenv.c: Normalize inclusion of `config.h'.
5083 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
5085 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
5087 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5089 Sync from coreutils.
5090 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
5093 2006-02-22 Jim Meyering <jim@meyering.net>
5095 Sync from coreutils.
5096 * m4/chdir-safer.m4: New file.
5098 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
5100 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
5101 AT_FDCWD exceeds INT_MAX.
5102 * lib/openat.h (AT_FDCWD): Likewise.
5104 2006-02-17 Eric Blake <address@hidden>
5106 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
5108 2006-02-16 Simon Josefsson <jas@extundo.com>
5110 * modules/getaddrinfo (Depends-on): Add sys_socket.
5112 2006-02-15 Simon Josefsson <jas@extundo.com>
5114 * build-aux/maint.mk: Add dsyntax-check rule.
5116 2006-02-15 Eric Blake <ebb9@byu.net>
5118 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
5119 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
5120 'present but cannot compile' warnings on cygwin.
5121 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
5122 use ws2tcpip.h if sys/socket.h works.
5123 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
5124 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
5126 2006-02-14 Simon Josefsson <jas@extundo.com>
5128 * modules/maintainer-makefile (Files): Rename.
5130 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
5131 and (the local) Makefile.cfg to maint-cfg.mk.
5133 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
5136 * modules/maintainer-makefile: New module.
5138 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
5139 severaly stripped to make it possible to build it up from scratch
5140 with reliable tests.
5142 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
5143 fixes to permit overriding the default actions when configure and
5144 makefile are not available.
5146 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
5148 Sync from coreutils.
5149 * modules/lstat (Depends-on): Don't depend on xalloc.
5150 (License): Change from GPL to LGPL, since this is now simply a
5151 replacement for a libc function.
5153 2006-02-14 Jim Meyering <jim@meyering.net>
5155 Sync from coreutils.
5157 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
5158 failure on deficient systems, and simplify gnulib lgpl dependencies.
5159 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
5160 xmalloc/lstat combination. Based on a patch from Bruno Haible.
5162 * lib/xalloc-die.c: Remove unused definition of N_.
5164 2006-02-14 Jim Meyering <jim@meyering.net>
5166 Sync from coreutils.
5167 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent)
5168 unconditionally so that tests of $ac_cv_func_getmntent (e.g., in
5169 gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses of that
5170 variable, to accommodate the rare case in which getmntent is
5171 available in none of the libraries checked. This happens at
5172 least on FreeBSD 5.0.
5174 2006-02-13 Simon Josefsson <jas@extundo.com>
5176 * gnulib-tool (Usage): Fix --import, from
5177 karl@freefriends.org (Karl Berry).
5179 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
5181 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
5183 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
5185 * lib/argp-namefrob.h: Restore changes accidentally lost during the
5186 "autoupdate" on 2005-12-12.
5188 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
5190 * modules/closeout (Depends-on): Remove atexit.
5192 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
5194 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
5195 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
5197 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
5199 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
5200 __EXTENSIONS__ if this causes compilation to fail. Problem
5201 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
5202 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
5204 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
5206 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
5207 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
5208 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
5211 2006-01-26 Simon Josefsson <jas@extundo.com>
5213 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
5214 prototype is visible on mingw32.
5216 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
5219 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
5222 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
5224 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
5225 attempt to open for write; this always fails, at least on POSIX
5226 hosts. This reinstates the 2006-01-09 change, which was
5227 inadvertently removed.
5229 2006-01-26 Bruno Haible <bruno@clisp.org>
5231 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
5232 Reported by Paul Eggert.
5234 2006-01-26 Bruno Haible <bruno@clisp.org>
5235 Paul Eggert <eggert@cs.ucla.edu>
5237 * lib/stdbool_.h (_Bool)
5238 [(! (defined __cplusplus || defined __BEOS__)
5239 && !defined __GNUC__
5240 && !(defined __HP_cc || defined __xlc__
5241 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
5242 || defined __sgi))]:
5243 #define to signed char in these cases too; this simplifies
5244 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
5245 etc., separately) and makes it more conservative.
5247 2006-01-25 Simon Josefsson <jas@extundo.com>
5249 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
5250 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
5251 ws2tcpip.h with WINVER=0x0501. All for mingw32.
5253 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
5255 * lib/argp-namefrob.h: Bugfix. Remove stray #
5257 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
5259 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
5260 so that we test the test.
5261 Check for yet another HP-UX cc bug involving *bool |= bool.
5263 2006-01-25 Karl Berry <karl@gnu.org>
5265 * config/srclist.txt (vasnprintf.c): sync lost.
5267 2006-01-25 Jim Meyering <jim@meyering.net>
5269 Sync from the stable (b5) branch of coreutils:
5271 * lib/fts.c (fts_children): Don't let close() clobber errno from
5274 * lib/fts.c (fts_stat): When following a symlink-to-directory,
5275 don't necessarily interpret stat-fails+lstat-succeeds as indicating
5276 a dangling symlink. That can also happen at least for ELOOP.
5277 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
5278 FYI, this bug predates the inclusion of fts.c in coreutils.
5280 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
5281 in their own block, so pre-c99 compilers don't object.
5283 Avoid the double-free (first in fts_read, second in fts_close) that
5284 would occur when an `active' directory is made inaccessible (e.g.,
5285 via chmod a-x) during a traversal.
5286 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
5287 before returning. Reproduce this failure by
5288 mkdir -p a/b; cd a; chmod a-x . b
5289 Reported by Stavros Passas.
5291 2006-01-25 Jim Meyering <jim@meyering.net>
5293 * lib/fileblocks.c: Remove more useless parentheses.
5294 * lib/readutmp.h: Likewise.
5296 2006-01-25 Bruno Haible <bruno@clisp.org>
5298 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
5300 Reported by Paul Eggert.
5302 2006-01-25 Bruno Haible <bruno@clisp.org>
5304 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
5305 rid of a trap command. For Solaris sh.
5306 Reported by Mark D. Baushke <mdb@gnu.org>.
5308 2006-01-24 Simon Josefsson <jas@extundo.com>
5310 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
5313 2006-01-24 Karl Berry <karl@gnu.org>
5315 * config/srclist.txt (argp-namefrob.h): sync lost.
5317 2006-01-24 Jim Meyering <jim@meyering.net>
5319 * modules/openat (Files): Add lib/intprops.h.
5320 From Mark D. Baushke.
5322 2006-01-24 Jim Meyering <jim@meyering.net>
5324 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
5325 Reported by Mark D. Baushke.
5327 2006-01-24 Jim Meyering <jim@meyering.net>
5329 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
5331 2006-01-24 Bruno Haible <bruno@clisp.org>
5333 * modules/strnlen (Maintainer): Change from glibc to all.
5335 2006-01-24 Bruno Haible <bruno@clisp.org>
5337 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
5338 Patch by Paul Eggert.
5340 2006-01-24 Bruno Haible <bruno@clisp.org>
5342 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler already
5344 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
5347 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as 'signed char'
5348 to avoid problems with the built-in _Bool type.
5349 Reported by Paul Eggert on 2005-11-26.
5351 2006-01-24 Bruno Haible <bruno@clisp.org>
5353 * gnulib-tool (func_import): Avoid constructing complicated sed
5354 expressions inside backquote.
5355 Report and solution by Mark D. Baushke <mdb@gnu.org>.
5357 2006-01-23 Ulrich Drepper <drepper@redhat.com>
5359 These changes imported from libc.
5360 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
5361 test and two separate function calls.
5362 * lib/strndup.c (__strndup): Add libc_hidden_def.
5364 2006-01-23 Simon Josefsson <jas@extundo.com>
5366 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
5367 Remove the test_*_SOURCES variable: automake infers it by default.
5368 * modules/tls-tests: Likewise.
5370 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5372 Work around porting bugs reported by Dieter in
5373 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
5374 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
5375 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
5376 Include "getopt.h" first, to check interface.
5377 (getenv): Declare only if defined HAVE_DECL_GETENV &&
5379 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
5380 (__strndup): Revert to K&R-style function dfns, the glibc style.
5381 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
5382 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
5383 Include strnlen.h first, to get prototype properly.
5384 (strnlen): Renamed from __strnlen.
5387 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5389 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
5391 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5393 * config/srclist.txt: Adjust to reflect glibc reorganization.
5394 This affects only comments.
5396 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
5398 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
5399 Reported by Bruce Korb <bkorb@gnu.org>.
5401 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
5403 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
5404 to pacify gcc -Wswitch-default.
5406 2006-01-22 Bruno Haible <bruno@clisp.org>
5408 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
5409 temporary buffer for sprintf, take into account the precision also
5410 for 'd', 'i', 'u', 'o', 'x', 'X'.
5412 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
5414 * modules/argp-tests: New module
5415 * tests/test-argp.c: New file
5416 * tests/test-argp-2.sh: New file
5418 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
5420 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
5421 (__argp_base_name): Removed
5422 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
5424 (__argp_base_name): Provide macro definition or extern declaration
5425 depending on the configuration
5427 2006-01-20 Simon Josefsson <jas@extundo.com>
5429 * modules/inet_ntop (Depends-on): Depend on sys_socket.
5431 2006-01-20 Simon Josefsson <jas@extundo.com>
5433 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
5435 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
5437 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
5438 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
5439 Suggested by Bruno Haible.
5441 2006-01-20 Karl Berry <karl@gnu.org>
5443 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
5444 until changes propagate, I guess.
5446 2006-01-19 Simon Josefsson <jas@extundo.com>
5448 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
5450 2006-01-19 Simon Josefsson <jas@extundo.com>
5452 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
5454 2006-01-19 Simon Josefsson <jas@extundo.com>
5456 * gnulib-tool: Set check_PROGRAMS.
5458 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
5459 modules/des-tests, modules/gc-arcfour-tests,
5460 modules/gc-arctwo-tests, modules/gc-des-tests,
5461 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
5462 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
5463 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
5464 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
5465 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
5466 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
5467 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
5470 2006-01-18 Simon Josefsson <jas@extundo.com>
5472 * modules/socklen (Depends-on): Depend on sys_socket.
5474 2006-01-18 Simon Josefsson <jas@extundo.com>
5476 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
5477 modules/des-tests, modules/gc-arcfour-tests,
5478 modules/gc-arctwo-tests, modules/gc-des-tests,
5479 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
5480 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
5481 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
5482 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
5483 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
5484 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
5485 $(EXEEXT) to automake TESTS variable, for mingw32.
5487 2006-01-17 Simon Josefsson <jas@extundo.com>
5489 * modules/socklen (Include): Need sys/socket.h.
5491 2006-01-17 Bruno Haible <bruno@clisp.org>
5493 * modules/ssize_t (Include): Add <sys/types.h>.
5495 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
5497 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
5498 it's not portable and it doesn't work with cross-compiles.
5499 Problem reported by Bruno Haible. Fix missing-$ typo in
5500 'test "gl_cv_ignore_unused_libraries" ...' that prevented
5501 -zignore from being used with Sun's C compiler.
5503 2006-01-12 Simon Josefsson <jas@extundo.com>
5505 * lib/base64.c: Fix warning, reported by Bruno Haible
5506 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
5508 2006-01-12 Bruno Haible <bruno@clisp.org>
5510 * modules/ldd: New file.
5511 * build-aux/ldd.sh.in: New file.
5512 * MODULES.html.sh (Support for building libraries and executables): Add
5515 2006-01-12 Bruno Haible <bruno@clisp.org>
5517 * m4/ldd.m4: New file.
5519 2006-01-12 Bruno Haible <bruno@clisp.org>
5521 * gnulib-tool (func_import, func_create_testdir): Don't go into an
5522 endless loop while replacing $auxdir with build-aux.
5524 2006-01-11 Simon Josefsson <jas@extundo.com>
5526 * lib/stdint_.h (SIZE_MAX): Add missing (.
5528 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
5530 Sync from coreutils.
5531 * lib/md5.c: Fix commentary typos.
5532 (alignof, UNALIGNED_P): No need for a GCC-specific version.
5533 * lib/md5.h (__attribute__): Remove; unused.
5534 * lib/sha1.c: Fix commentary to match md5 better.
5535 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
5536 so that we don't need to worry about alignment. All uses changed.
5537 This merges the 2005-10-28 md5 change into sha1.
5539 2006-01-11 Jim Meyering <jim@meyering.net>
5541 Sync from coreutils.
5542 * lib/md5.c (OP): Fix spacing.
5544 2006-01-11 Bruno Haible <bruno@clisp.org>
5546 Ensure automatic ordering between gl_LOCK and gl_ARGP.
5547 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
5548 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
5550 2006-01-11 Bruno Haible <bruno@clisp.org>
5552 Ensure automatic ordering between gl_LOCK and gl_ARGP.
5553 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
5554 the "early" section as well.
5556 2006-01-11 Bruno Haible <bruno@clisp.org>
5558 Avoid "ar: no archive members specified" error on MacOS X.
5559 * gnulib-tool (func_modules_add_dummy): New function.
5560 (func_import, func_create_testdir): Invoke it.
5562 2006-01-11 Bruno Haible <bruno@clisp.org>
5564 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
5565 with $auxdir in AC_CONFIG_FILES statements.
5567 2006-01-11 Bruno Haible <bruno@clisp.org>
5569 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5570 Initialize also noinst_HEADERS to empty.
5572 2006-01-11 Bruno Haible <bruno@clisp.org>
5574 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
5576 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
5579 2006-01-11 Bruno Haible <bruno@clisp.org>
5581 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
5582 overridable by the user.
5583 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5585 2006-01-10 Simon Josefsson <jas@extundo.com>
5587 * modules/sys_socket: New file.
5589 2006-01-10 Simon Josefsson <jas@extundo.com>
5591 * m4/sys_socket_h.m4: New file.
5593 2006-01-10 Simon Josefsson <jas@extundo.com>
5595 * lib/socket_.h: New file.
5597 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5599 * modules/readutmp (Maintainer): Add myself.
5601 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5603 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
5604 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
5605 People who are still concerned with buggy memcmp implementations
5606 can invoke gl_FUNC_MEMCMP themselves.
5608 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5610 * lib/regex_internal.h (BITSET_WORD_BITS):
5611 Work around a bug in 64-bit PGC (before version 6.1-2), where the
5612 preprocessor mishandles large unsigned values as if they were signed.
5613 Problem reported by Claudio Fontana in
5614 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
5616 2006-01-10 Jim Meyering <jim@meyering.net>
5618 Avoid the double-free (first in fts_read, second in fts_close) that
5619 would occur when an `active' directory is made inaccessible (e.g.,
5620 via chmod a-x) during a traversal.
5621 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
5622 before returning. Reproduce this failure by
5623 mkdir -p a/b; cd a; chmod a-x . b
5624 Reported by Stavros Passas.
5626 Sync from coreutils.
5627 * lib/sha1.c: Tweak grammar in a comment.
5629 2006-01-10 Jim Meyering <jim@meyering.net>
5631 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
5632 Patch by Joerg Sonnenberger.
5634 2006-01-10 Bruno Haible <bruno@clisp.org>
5636 * modules/readutmp: Depend on module free.
5637 * modules/strtok_r: Depend on module restrict.
5639 2006-01-10 Bruno Haible <bruno@clisp.org>
5641 * modules/gettext (configure.ac): Add an invocation of
5642 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
5644 2006-01-10 Bruno Haible <bruno@clisp.org>
5646 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
5647 Reported by Werner Lemberg <wl@gnu.org>.
5649 2006-01-10 Bruno Haible <bruno@clisp.org>
5651 * lib/localcharset.c: Update from GNU gettext.
5653 2006-01-10 Bruno Haible <bruno@clisp.org>
5655 * lib/argp.h (__const): Remove macro. Use const instead.
5656 * lib/argp-fmtstream.h (__const): Likewise.
5657 * lib/glob_.h (__const): Remove macro.
5658 * lib/glob-libc.h: Use const instead of __const.
5660 2006-01-10 Bruno Haible <bruno@clisp.org>
5662 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
5664 Needed to avoid an automake error regarding the 'gettext' module.
5666 2006-01-09 Simon Josefsson <jas@extundo.com>
5668 * modules/inet_ntop (Depends-on): Add restrict.
5670 2006-01-09 Simon Josefsson <jas@extundo.com>
5672 * modules/gc-rijndael-tests (License): Put under LGPL.
5674 * modules/gc-des-tests (License): Likewise.
5676 * modules/gc-arcfour-tests (License): Likewise.
5678 * modules/gc-arctwo-tests (License): Likewise.
5680 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
5682 * modules/gc-hmac-sha1-tests (Files): Likewise.
5684 * modules/gc-hmac-md5-tests (License): Likewise.
5686 * modules/gc-sha1-tests (License): Likewise.
5688 * modules/gc-md5-tests (License): Likewise.
5690 * modules/gc-md4-tests (License): Likewise.
5692 * modules/gc-md2-tests (License): Likewise.
5694 * modules/gc-tests (License): Likewise.
5696 * modules/des-tests (License): Likewise.
5698 * modules/md4-tests (License): Likewise.
5700 * modules/md2-tests (License): Likewise.
5702 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5704 Sync from coreutils:
5706 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
5707 * modules/lib-ignore: New file.
5708 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
5709 chdir-safer.m4, lchmod.m4.
5710 * modules/openat: Add mkdirat.c, openat-priv.h.
5712 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5714 Sync from coreutils.
5715 * m4/lib-ignore.m4: New file.
5716 * m4/lchmod.m4: New file.
5718 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5720 Sync from coreutils.
5721 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
5722 for write access: POSIX says that must fail.
5723 * lib/fts.c (diropen): Likewise.
5724 * lib/save-cwd.c (save_cwd): Likewise.
5725 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
5726 well, for minor improvements on hosts that lack O_DIRECTORY.
5727 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
5728 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
5729 Fall back on chown if open failed with EACCES.
5731 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
5732 Report an error at compile-time if only a 1-second nominal clock
5733 resolution is found.
5735 * lib/lchmod.h: New file.
5736 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
5737 (make_dir_parents): Use lchown rather than chown, and
5738 lchmod rather than chmod.
5740 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are dummies
5741 too. Problem with "none" reported by Bob Proulx. Problem with
5742 "proc" reported by n0dalus.
5744 * lib/mountlist.c: Include <limits.h>.
5745 (dev_from_mount_options)
5746 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
5747 New function. It no longer assumes "dev=" has the System V meaning
5748 on Linux (since it doesn't). It also parses "dev=" more carefully.
5749 (read_file_system_list)
5750 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
5751 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
5754 * lib/posixtm.h (PDS_PRE_2000): New macro.
5755 * lib/posixtm.c (year): Arg is now syntax_bits rather than allow_century.
5756 All usages changed. Reject dates outside the range 1969-1999 if
5757 PDS_PRE_2000 is used.
5759 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5761 Sync from coreutils.
5762 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
5763 (Time of day items): Mention the possibility of leap seconds.
5764 Problem reported by Dr. David Alan Gilbert.
5766 2006-01-09 Jim Meyering <jim@meyering.net>
5768 Sync from coreutils.
5770 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
5772 * lib/chdir-safer.h, chdir-safer.c: New files.
5774 * lib/modechange.c (mode_compile): Reject an invalid mode string
5775 that starts with an octal digit. From Andreas Gruenbacher.
5777 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
5778 and dup to open_safer and dup_safer, respectively.
5779 (openat_permissive): Fix typo in comment.
5781 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
5782 "gettext.h"; either no longer needed or are guaranteed by openat.h.
5783 (_): Remove; no longer needed.
5784 (openat): Renamed from rpl_openat; no need for rpl_openat
5785 since openat.h renames openat for us.
5786 Replace most of the body with a call to openat_permissive,
5787 to avoid duplicate code.
5788 Port to (probably hypothetical) environments were mode_t is
5790 (openat_permissive): Require mode arg, so that we can check
5791 types better. Put it just after flags. Change cwd failure
5792 indicator from pointer-to-bool to pointer-to-errno-value.
5793 All callers changed.
5794 Invoke openat_save_fail and/or openat_restore_fail if
5795 cwd_errno is null, so that openat can call us.
5796 (openat_permissive, fdopendir, fstatat, unlinkat):
5797 Simplify errno handling to avoid some duplicate code,
5798 as it's OK to set errno on success.
5799 * lib/openat.h: Revamp code so that function macros depend on
5800 __OPENAT_PREFIX only, not also on AT_FDCWD.
5801 (openat_ro): Remove. Caller changed to use openat_permissive.
5802 (openat_permissive): Now a macro, if not a function.
5803 (openat_restore_fail, openat_save_fail): Now always functions,
5804 since mkdirat needs them even if __OPENAT_PREFIX is defined.
5806 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
5808 * lib/mkdirat.c: Include openat-priv.h.
5809 Remove definitions of macros defined therein.
5810 * lib/openat.c: Likewise.
5812 * lib/mkdirat.c (mkdirat): New file and function.
5813 * lib/openat.h (mkdirat): Declare.
5815 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
5817 * lib/openat.h (openat_permissive): Declare.
5818 (openat_ro): Define.
5820 * lib/openat.c (EXPECTED_ERRNO): New macro.
5821 (openat_permissive): New function -- used in remove.c rewrite.
5822 (all functions): Set errno just before returning, only if there
5823 was an actual failure.
5824 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
5826 Emulate openat-family functions using Linux's procfs, if possible.
5827 Idea and some code based on Ulrich Drepper's glibc changes.
5829 * lib/openat.c: (BUILD_PROC_NAME): New macro.
5830 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
5831 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
5832 before falling back on save_cwd and restore_cwd.
5833 (fdopendir, fstatat, unlinkat): Likewise.
5835 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
5836 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
5838 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
5839 as second argument to va_arg. Otherwise, some versions of gcc
5840 warn that `if this code is reached, the program will abort'.
5842 2006-01-09 Jim Meyering <jim@meyering.net>
5844 Sync from coreutils.
5845 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
5846 Require openat-priv.h.
5848 2006-01-09 Bruno Haible <bruno@clisp.org>
5850 * modules/strnlen (Include): Use strnlen.h.
5852 2006-01-09 Bruno Haible <bruno@clisp.org>
5854 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
5856 2006-01-09 Bruno Haible <bruno@clisp.org>
5858 * lib/sysexit_.h (EX_OK): New macro.
5859 Suggested by Martin Lambers <marlam@marlam.de>.
5861 2006-01-09 Bruno Haible <bruno@clisp.org>
5863 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
5864 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
5866 2006-01-09 Bruno Haible <bruno@clisp.org>
5868 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
5871 2006-01-09 Bruno Haible <bruno@clisp.org>
5873 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
5874 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
5875 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
5876 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
5878 2006-01-09 Bruno Haible <bruno@clisp.org>
5880 * build-aux/javacomp.sh.in: New file, moved from lib/.
5881 * modules/javacomp-script (Files): Update.
5882 (configure.ac): Add AC_CONFIG_FILES invocation.
5883 (EXTRA_DIST): Remove variable.
5885 * build-aux/javaexec.sh.in: New file, moved from lib/.
5886 * modules/javaexec (Files): Update.
5887 (configure.ac): Add AC_CONFIG_FILES invocation.
5888 (EXTRA_DIST): Remove javaexec.sh.in.
5890 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
5891 * modules/csharpcomp-script (Files): Update.
5892 (configure.ac): Add AC_CONFIG_FILES invocation.
5893 (EXTRA_DIST): Remove variable.
5895 * build-aux/csharpexec.sh.in: New file, moved from lib/.
5896 * modules/csharpexec (Files): Update.
5897 (configure.ac): Add AC_CONFIG_FILES invocation.
5898 (EXTRA_DIST): Remove csharpexec.sh.in.
5900 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
5902 Sync from coreutils.
5904 Add POSIX ACL support
5905 * lib/acl.h (copy_acl, set_acl): Add declarations.
5906 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
5907 systems other than Linux.
5908 (chmod_or_fchmod): New function: use fchmod when possible,
5909 and chmod otherwise.
5910 (file_has_acl): Add a POSIX ACL implementation, with a
5911 Linux-specific subcase.
5912 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
5913 S_ISVTX from one file to another. Fall back to fchmod/chmod when
5914 acls are unsupported.
5915 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
5916 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
5919 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
5921 Sync from coreutils.
5922 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
5924 2006-01-07 Bruno Haible <bruno@clisp.org>
5926 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
5929 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
5931 * lib/strftime.c (tzname): Don't declare if it is already #defined.
5932 Problem reported for Mingw by Mark Junker.
5934 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
5936 * README: Gnulib normally doesn't generate a tarball.
5938 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
5940 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
5941 long int, not int, for nanosecond counts, so that people who are
5942 used to POSIX struct timespec won't be surprised. Reported by Jim
5945 2005-12-28 Bruno Haible <bruno@clisp.org>
5947 * build-aux/config.rpath: Update from GNU gettext.
5949 2005-12-16 Jim Meyering <jim@meyering.net>
5951 * modules/fprintftime: New module.
5952 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
5954 2005-12-16 Jim Meyering <jim@meyering.net>
5956 * m4/fprintftime.m4: New file.
5958 2005-12-16 Jim Meyering <jim@meyering.net>
5960 * lib/fprintftime.c, fprintftime.h: New files.
5962 2005-12-15 Simon Josefsson <jas@extundo.com>
5964 * modules/socklen (configure.ac): Fix M4 macro name, to align with
5967 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
5969 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
5970 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
5972 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
5974 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
5975 * lib/argp-help.c (fill_in_uparams): Check if the constructed
5976 struct uparams is valid. Fall back to the default values if it is
5979 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
5981 * modules/argp (Files): Add argp-pin.c
5982 (Depends-on): dirname
5983 (lib_SOURCES): Add argp-pin.c
5985 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
5987 * m4/argp.m4: Check if program_invocation_name and
5988 program_invocation_short_name are declared and define appropriate
5989 macros if they are not.
5991 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
5993 * lib/argp-help.c (__argp_base_name): New function
5994 (__argp_short_program_name): Rewrite using __argp_base_name
5995 * lib/argp-namefrob.h: Define program_invocation_name and
5996 program_invocation_short_name if requested
5997 (__argp_base_name): Add prototype
5998 * lib/argp-parse.c (argp_def): Use gettext wrappers
5999 (argp_default_parser): Use __argp_base_name
6000 * lib/argp-pin.c: New file. Defines program_invocation_name and
6001 program_invocation_short_name on systems that lack them.
6003 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
6005 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
6006 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
6007 porting problem reported by Georg Schwarz in
6008 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
6010 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
6012 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
6013 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
6014 porting problem reported by Georg Schwarz in
6015 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
6017 2005-12-05 Bruno Haible <bruno@clisp.org>
6019 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
6020 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
6021 Reported by Mark Junker <mjscod@gmx.de>.
6023 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
6025 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
6026 Use implementation from Albert Chin, with some
6027 comments/corrections by Stepan Kasal and myself.
6029 2005-12-02 Bruno Haible <bruno@clisp.org>
6031 * gnulib-tool (func_import): Accept GPLed build tool modules when
6033 * modules/csharpcomp-script: New file.
6034 * modules/csharpcomp: Depend on it.
6035 * modules/javacomp-script: New file.
6036 * modules/javacomp: Depend on it.
6037 Suggested by Simon Josefsson.
6039 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
6041 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
6042 statement, to work around an HP-UX 10.20 compiler bug reported by
6045 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
6047 * modules/savedir (Depends-on): Add openat.
6049 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
6051 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
6052 (uintmax_t) [defined uintmax_t]: Do not declare.
6053 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
6054 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
6055 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
6056 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
6057 sake of portability to weird hosts that C allows (though we don't
6058 know of any practical examples).
6060 * lib/savedir.h (fdsavedir): New decl.
6061 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
6062 contains most of the former guts of savedir.
6063 (savedir): Use savedirstream.
6066 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
6068 * modules/obstack (Files): Add m4/ulonglong.m4.
6069 Problem reported by Davide Angelocola.
6071 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
6073 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
6074 coreutils no longer futzes with rounding modes.
6076 2005-11-14 Jim Meyering <jim@meyering.net>
6078 * lib/mkstemp-safer.c: Include <config.h>, required for possible
6079 replacement of mkstemp.
6081 2005-11-10 Simon Josefsson <jas@extundo.com>
6083 * lib/readline.c: Remove EOL.
6085 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6087 * modules/gethrxtime (Depends-on): Add gettime.
6089 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6091 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
6092 or gettimeofday; no longer needed.
6094 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6096 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time / time
6098 (gethrxtime) [! (HAVE_NANOUPTIME
6099 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
6100 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
6101 our own approximation.
6103 2005-11-08 Eric Blake <ebb9@byu.net>
6105 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
6107 2005-11-08 Eric Blake <ebb9@byu.net>
6109 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
6111 2005-11-04 Bruno Haible <bruno@clisp.org>
6113 * gnulib-tool: Implement --update mode.
6115 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
6117 Fix porting problem reported by Theodoros V. Kalamatianos.
6118 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
6119 Don't assume that futimes failing means we must fail.
6121 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
6123 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
6124 variables to suggest the intended function of the PATH_MAX check.
6126 2005-10-30 Kean Johnston <jkj@sco.com>
6128 Trivial changes to support SCO systems.
6129 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
6131 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
6132 where __ptr is null when no I/O is pending.
6134 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
6136 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
6137 leave errno alone. Problem reported by Dmitry V. Levin.
6139 2005-10-28 Simon Josefsson <jas@extundo.com>
6141 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
6144 * tests/test-gc-md2.c, tests/test-md2.c: New files.
6146 * modules/md2, modules/md2-tests: New files.
6148 2005-10-28 Simon Josefsson <jas@extundo.com>
6150 * m4/inet_ntop.m4: More tests.
6152 * m4/gc-md2.m4, md2.m4: New file.
6154 2005-10-28 Simon Josefsson <jas@extundo.com>
6156 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
6157 "restrict" keywords, as per POSIX. Protect the function
6158 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
6159 Don't use K&R prototypes. Check the sprintf return values.
6160 Re-define EAFNOSUPPORT if not present. Indent.
6162 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
6163 suggested by Bruno Haible <bruno@clisp.org>.
6165 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
6167 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
6169 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
6172 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
6174 * lib/md2.h, md2.c: New files.
6176 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
6178 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
6179 errno alone. Problem reported by Frederic Jolliton.
6181 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
6183 * modules/verify (License): Change from GPL to LGPL. This is a
6184 tiny module and there are apparently near-equivalents that are
6185 under the BSD license.
6187 2005-10-24 Simon Josefsson <jas@extundo.com>
6189 * modules/sha1: Relicense to LGPL.
6191 2005-10-24 Simon Josefsson <jas@extundo.com>
6193 * lib/md4.h: Shrink buffer size, now that we changed the type.
6195 2005-10-23 Simon Josefsson <jas@extundo.com>
6197 * gnulib-tool (func_import): Fix --tests-base.
6199 2005-10-22 Simon Josefsson <jas@extundo.com>
6201 * modules/arcfour (Depends-on): Need stdint.
6203 2005-10-22 Simon Josefsson <jas@extundo.com>
6205 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
6206 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
6208 2005-10-22 Simon Josefsson <jas@extundo.com>
6210 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
6211 suggested by Bruno Haible <bruno@clisp.org>.
6213 2005-10-22 Simon Josefsson <jas@extundo.com>
6215 * lib/crc.h: Include stddef.h, for size_t.
6217 2005-10-22 Simon Josefsson <jas@extundo.com>
6219 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
6220 arcfour_context struct (simplify test vector testing in GNU
6223 2005-10-21 Simon Josefsson <jas@extundo.com>
6225 * modules/des, modules/des-tests: New files.
6227 * modules/gc-des, modules/gc-des-tests: New files.
6229 * tests/test-des.c, tests/test-gc-des.c: New file.
6231 2005-10-21 Simon Josefsson <jas@extundo.com>
6233 * modules/arctwo, modules/arctwo-tests: New files.
6235 * tests/test-arctwo.c: New file.
6237 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
6239 * tests/test-gc-arctwo.c: New file.
6241 2005-10-21 Simon Josefsson <jas@extundo.com>
6243 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
6244 Bruno Haible <bruno@clisp.org>.
6246 * m4/gc-des.m4: New file.
6248 2005-10-21 Simon Josefsson <jas@extundo.com>
6250 * m4/arctwo.m4: New file.
6252 * m4/gc-arctwo.m4: New file.
6254 2005-10-21 Simon Josefsson <jas@extundo.com>
6256 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
6259 2005-10-21 Simon Josefsson <jas@extundo.com>
6261 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
6264 * lib/hmac-sha1.c (hmac_sha1): Likewise.
6266 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
6267 Bruno Haible <bruno@clisp.org>.
6269 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
6272 2005-10-21 Simon Josefsson <jas@extundo.com>
6274 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
6276 2005-10-21 Simon Josefsson <jas@extundo.com>
6278 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
6280 2005-10-21 Simon Josefsson <jas@extundo.com>
6282 * lib/des.h, des.c: New files.
6284 * lib/gc-gnulib.c: Support DES.c
6286 2005-10-21 Simon Josefsson <jas@extundo.com>
6288 * lib/arctwo.h, arctwo.c: New files.
6290 * lib/gc-gnulib.c: Support ARCTWO.
6292 2005-10-21 Simon Josefsson <jas@extundo.com>
6294 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
6295 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6297 2005-10-21 Simon Josefsson <jas@extundo.com>
6299 * gnulib-tool (func_import, func_create_testdir): Define automake
6300 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
6301 Makefile.am snippet),
6302 suggested by Bruno Haible <bruno@clisp.org>.
6304 * modules/gc (Makefile.am): Use it.
6306 2005-10-21 Bruno Haible <bruno@clisp.org>
6308 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
6311 2005-10-19 Simon Josefsson <jas@extundo.com>
6313 * tests/test-gc-rijndael.c: New file.
6315 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
6317 2005-10-19 Simon Josefsson <jas@extundo.com>
6319 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
6322 2005-10-19 Simon Josefsson <jas@extundo.com>
6324 * tests/test-gc-arcfour.c: New file.
6326 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
6328 2005-10-19 Simon Josefsson <jas@extundo.com>
6330 * modules/gc-md4, modules/gc-md4-tests: New file.
6332 * tests/test-gc-md4.c: New file.
6334 2005-10-19 Simon Josefsson <jas@extundo.com>
6336 * m4/gc-md4.m4: New file.
6338 2005-10-19 Simon Josefsson <jas@extundo.com>
6340 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
6341 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
6344 2005-10-19 Simon Josefsson <jas@extundo.com>
6346 * m4/gc-arcfour.m4: New file.
6348 * m4/gc-rijndael.m4: New file.
6350 2005-10-19 Simon Josefsson <jas@extundo.com>
6352 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
6354 2005-10-19 Simon Josefsson <jas@extundo.com>
6356 * lib/gc-gnulib.c: Support ARCFOUR.
6358 2005-10-19 Simon Josefsson <jas@extundo.com>
6360 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
6363 * lib/gc.h: Add ECB enum type.
6365 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
6367 2005-10-18 Simon Josefsson <jas@extundo.com>
6369 * tests/test-md5.c: New file.
6371 * modules/md5-tests: New file.
6373 2005-10-18 Simon Josefsson <jas@extundo.com>
6375 * tests/test-md4.c: New file.
6377 * modules/md4, modules/md4-tests: New files.
6379 2005-10-18 Simon Josefsson <jas@extundo.com>
6381 * m4/md4.m4: New file.
6383 2005-10-18 Simon Josefsson <jas@extundo.com>
6385 * lib/md4.h, md4.c: New files, based on md5.?.
6387 2005-10-17 Stepan Kasal <kasal@ucw.cz>
6389 * gnulib-tool (func_create_testdir): Omit the second check whether
6390 BUILT_SOURCES in nonempty.
6392 2005-10-17 Simon Josefsson <jas@extundo.com>
6394 * tests/test-rijndael.c: New file.
6396 2005-10-17 Simon Josefsson <jas@extundo.com>
6398 * modules/sha1: Depend on stdint instead of md5.
6400 * modules/md5: Depend on stdint, remove uint32_t.
6402 2005-10-17 Simon Josefsson <jas@extundo.com>
6404 * modules/gc-sha1-tests: New file.
6406 * tests/test-gc-sha1.c: New file.
6408 2005-10-17 Simon Josefsson <jas@extundo.com>
6410 * m4/md5.m4: Remove call to uint32_t.m4.
6412 2005-10-17 Simon Josefsson <jas@extundo.com>
6414 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
6416 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
6419 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
6421 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
6423 2005-10-17 Simon Josefsson <jas@extundo.com>
6425 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
6427 2005-10-17 Simon Josefsson <jas@extundo.com>
6429 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
6431 2005-10-17 Simon Josefsson <jas@extundo.com>
6433 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
6435 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
6437 2005-10-17 Bruno Haible <bruno@clisp.org>
6439 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so that
6440 it can also be used in a test.
6442 2005-10-16 Bruno Haible <bruno@clisp.org>
6444 * gnulib-tool (func_emit_tests_Makefile_am): Also define
6445 TESTS_ENVIRONMENT, so that individual tests can augment it.
6447 * gnulib-tool (func_create_testdir): Use an intermediate target for
6448 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
6449 macros, like $(ALLOCA_H), which cannot be passed through the command
6452 2005-10-15 Simon Josefsson <jas@extundo.com>
6454 * modules/rijndael-tests: New file.
6456 * modules/rijndael: New file.
6458 2005-10-15 Simon Josefsson <jas@extundo.com>
6460 * m4/rijndael.m4: New file.
6462 2005-10-15 Simon Josefsson <jas@extundo.com>
6464 * lib/rijndael-api-fst.h, rijndael-api-fst.c: New files.
6466 * lib/rijndael-alg-fst.h, rijndael-alg-fst.c: New files.
6468 2005-10-14 Simon Josefsson <jas@extundo.com>
6470 * tests/test-arcfour.c: New file.
6472 * modules/arcfour, modules/arcfour-tests: New files.
6474 2005-10-14 Simon Josefsson <jas@extundo.com>
6476 * m4/arcfour.m4: New file.
6478 2005-10-14 Simon Josefsson <jas@extundo.com>
6480 * lib/arcfour.h, arcfour.c: New files.
6482 2005-10-14 Roland McGrath <roland@redhat.com>
6484 Import from libc. [BZ #1331]
6485 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
6487 Reported by Matej Vela <vela@debian.org>.
6489 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
6491 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
6492 include <wchar.h>; no longer needed.
6494 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
6496 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
6498 2005-10-14 Jakub Jelinek <jakub@redhat.com>
6499 and Ulrich Drepper <drepper@redhat.com>
6502 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
6503 instead of inline stream orientation test and two separate
6504 function calls. Pay no attention to USE_IN_LIBIO.
6506 2005-10-13 Simon Josefsson <jas@extundo.com>
6508 * modules/gc-hmac-md5-tests: New file.
6510 * tests/test-gc-hmac-sha1.c: New file.
6512 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
6514 * modules/gc-hmac-md5-tests: New file.
6516 * tests/test-gc-md5.c: New file.
6518 * modules/gc-md5-tests: New file.
6520 2005-10-13 Simon Josefsson <jas@extundo.com>
6522 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
6523 Move memory allocation outside of loop.
6525 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
6527 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
6528 intermediate directory is in a read-only file system. Problem
6529 reported by Eric Blake.
6531 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
6533 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
6535 2005-10-12 Simon Josefsson <jas@extundo.com>
6537 * tests/test-hmac-sha1.c: New file.
6539 * modules/hmac-sha1-tests: New file.
6541 * modules/hmac-sha1: New file.
6543 2005-10-12 Simon Josefsson <jas@extundo.com>
6545 * modules/gc-sha1: New file.
6547 2005-10-12 Simon Josefsson <jas@extundo.com>
6549 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
6551 * tests/test-gc-pbkdf2-sha1.c: New file.
6553 2005-10-12 Simon Josefsson <jas@extundo.com>
6555 * modules/gc-md5, modules/gc-hmac-md5: New files.
6557 * modules/gc (Files): Remove md5, memxor and hmac files.
6559 2005-10-12 Simon Josefsson <jas@extundo.com>
6561 * m4/gc-pbkdf2-sha1.m4: New file.
6563 * m4/gc-hmac-sha1.m4: New file.
6565 * m4/gc-sha1: New file.
6567 * m4/hmac-sha1.m4: New file.
6569 2005-10-12 Simon Josefsson <jas@extundo.com>
6571 * m4/gc-md5.m4, gc-hmac-md5: New files.
6573 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
6575 2005-10-12 Simon Josefsson <jas@extundo.com>
6577 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
6578 suggested by Bruno Haible <bruno@clisp.org>.
6580 2005-10-12 Simon Josefsson <jas@extundo.com>
6582 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
6584 2005-10-12 Simon Josefsson <jas@extundo.com>
6586 * lib/gc-pbkdf2-sha1.c: New file.
6588 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
6590 2005-10-12 Simon Josefsson <jas@extundo.com>
6592 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
6594 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
6596 2005-10-12 Simon Josefsson <jas@extundo.com>
6598 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
6599 GC_USE_HMAC_MD5, respectively.
6601 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
6604 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
6606 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
6608 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
6610 2005-10-12 Bruno Haible <bruno@clisp.org>
6612 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
6613 Reported by Stepan Kasal <kasal@ucw.cz>.
6615 2005-10-11 Simon Josefsson <jas@extundo.com>
6617 * tests/test-crc.c: New file.
6619 * modules/crc, modules/crc-tests: New files.
6621 2005-10-11 Simon Josefsson <jas@extundo.com>
6623 * m4/crc.m4: New file.
6625 2005-10-11 Simon Josefsson <jas@extundo.com>
6627 * lib/gc.h: Add gc_hash and gc_hash_buffer.
6629 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
6631 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
6633 2005-10-11 Simon Josefsson <jas@extundo.com>
6635 * lib/crc.h, crc.c: New files.
6637 * lib/gc.h (gc_hash_buffer): Add doc.
6639 2005-10-11 Bruno Haible <bruno@clisp.org>
6641 * modules/c-strcasestr: New file.
6642 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
6644 2005-10-11 Bruno Haible <bruno@clisp.org>
6646 * modules/c-strcase: New file.
6647 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
6649 2005-10-11 Bruno Haible <bruno@clisp.org>
6651 * lib/strcasecmp.c: Include limits.h.
6652 (strcasecmp): Avoid integer overflow on exotic platforms.
6653 * lib/strncasecmp.c: Include limits.h.
6654 (strncasecmp): Avoid integer overflow on exotic platforms.
6655 Reported by Paul Eggert.
6657 2005-10-11 Bruno Haible <bruno@clisp.org>
6659 * lib/c-strcasestr.h: New file, from GNU gettext.
6660 * lib/c-strcasestr.c: New file, from GNU gettext.
6662 2005-10-11 Bruno Haible <bruno@clisp.org>
6664 * lib/c-strcase.h: New file, from GNU gettext.
6665 * lib/c-strcasecmp.c: New file, from GNU gettext.
6666 * lib/c-strncasecmp.c: New file, from GNU gettext.
6668 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
6670 * modules/mempcpy (License): GPL -> LGPL.
6671 * modules/strchrnul (License): Likewise.
6672 * modules/sysexits (License): Likewise.
6674 2005-10-08 Simon Josefsson <jas@extundo.com>
6676 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
6678 2005-10-07 Simon Josefsson <jas@extundo.com>
6680 * m4/memxor.m4: Remove gl_C_RESTRICT call.
6682 2005-10-06 Simon Josefsson <jas@extundo.com>
6684 * tests/test-hmac-md5.c: New file.
6686 * modules/hmac-md5-tests: New file.
6688 * modules/hmac-md5: New file.
6690 2005-10-06 Simon Josefsson <jas@extundo.com>
6692 * m4/hmac-md5.m4: New file.
6694 * m4/memxor.m4: Require gl_C_RESTRICT.
6696 2005-10-06 Simon Josefsson <jas@extundo.com>
6698 * lib/memxor.c (memxor): Avoid casts and warnings.
6700 2005-10-06 Simon Josefsson <jas@extundo.com>
6702 * lib/hmac-md5.c: New file.
6704 * lib/hmac.h: New file.
6706 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
6708 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
6709 promotes to int, not unsigned int, to catch the AIX 5.3
6712 2005-10-05 Simon Josefsson <jas@extundo.com>
6714 * modules/memxor: New file.
6716 * modules/iconv (Files): Move config.rpath to havelib, it is used
6719 * modules/havelib (Files): Add config.rpath.
6721 2005-10-05 Simon Josefsson <jas@extundo.com>
6723 * m4/memxor.m4: New file.
6725 2005-10-05 Simon Josefsson <jas@extundo.com>
6727 * lib/memxor.c (memxor): Fix compiler error.
6729 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
6730 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
6732 * lib/memxor.h, memxor.c: New files.
6734 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
6735 we assume all systems have it, suggested by Jim Meyering
6736 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
6737 any systems lack sys/socket.h; mingw32 is known to lack it, but we
6738 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
6741 2005-10-05 Simon Josefsson <jas@extundo.com>
6743 * config/srclist.txt: Add glibc bug 1423 for md5.h.
6745 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
6747 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
6748 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
6749 needed, since the source code now assumes these .h files.
6751 2005-10-05 Derek Price <derek@ximbiot.com>
6753 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
6755 2005-10-05 Bruno Haible <bruno@clisp.org>
6757 * modules/stdint (License): Change to LGPL.
6759 2005-10-04 Simon Josefsson <jas@extundo.com>
6761 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
6762 D. Baushke" <mdb@gnu.org>.
6764 2005-10-04 Bruno Haible <bruno@clisp.org>
6766 * lib/verify.h (verify_true): Provide alternative definition for C++.
6768 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
6770 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
6771 (SSIZE_MAX): New macro, if not already defined.
6772 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
6775 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6777 Sync from coreutils.
6778 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
6779 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
6780 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
6781 ULLONG_MAX doesn't work with 2.7.2.1.
6783 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6785 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
6788 * modules/exclude (Depends-on): Depend on verify.
6789 * modules/strtoimax (Depends-on): Likewise.
6790 * modules/utimecmp (Depends-on): Likewise.
6792 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6794 * lib/exclude.c: Include verify.h.
6795 (verify): Remove. All callers changed to use verify.h's version.
6796 * lib/strtoimax.c: Likewise.
6797 * lib/utimecmp.c: Likewis.e
6799 Sync from coreutils.
6800 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h, getpass.c
6801 mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
6802 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
6803 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
6804 bother returning ENOSYS if settimeofday or stime fails; just let
6805 them return whatever errno they want to return.
6806 * lib/utimens.c: Include unistd.h, for dup2.
6807 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
6808 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
6810 2005-10-02 Jim Meyering <jim@meyering.net>
6812 Sync from coreutils.
6813 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
6814 from glibc-2.2.5 that fails for read-only files.
6816 2005-10-02 Jim Meyering <jim@meyering.net>
6818 Sync from coreutils.
6819 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
6820 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H'.
6821 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
6822 Remove AT_FDCWD test.
6823 Do not consume the fd unless successful.
6824 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
6825 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
6826 block, so that we don't even try to compile it if settimeofday is
6827 available. This works around a compilation failure on OSF1 V5.1,
6828 due to stime requiring a `long int*' while tv_sec is `int'.
6830 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
6832 Sync from coreutils.
6833 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
6834 against `yes', rather than just testing for nonempty.
6836 2005-10-01 Simon Josefsson <jas@extundo.com>
6838 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
6841 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
6842 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
6843 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
6844 freeaddrinfo and gai_strerror are declared by the POSIX headers.
6845 Check if struct addrinfo is declared.
6847 2005-10-01 Simon Josefsson <jas@extundo.com>
6849 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
6850 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
6851 AI_* and EAI_* definitions. Protect function declarations.
6853 2005-10-01 Jim Meyering <jim@meyering.net>
6855 Sync from coreutils.
6857 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
6858 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
6859 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
6860 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
6861 in the inet and nsl libraries. Required on Solaris 5.7.
6863 2005-10-01 Jim Meyering <jim@meyering.net>
6865 Sync from coreutils.
6866 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
6867 in the inet and nsl libraries. Required on Solaris 5.7.
6869 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
6871 * lib/getdelim.c (getdelim): Remove unused variables.
6873 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
6875 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
6876 so that the code works even with ancient cpp. Portability problem
6877 with GCC 2.7.2.1 reported by Thomas M.Ott.
6879 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
6881 * modules/regex (Depends-on): Add strcase.
6883 * modules/gethostname (Licence): Change from GPL to LGPL, since
6884 gethostname.c is a trivial implementation of a standard library
6886 * modules/poll (License): Change from GPL to LGPL, since it's
6887 derived from LGPL code.
6889 2005-09-27 Jim Meyering <jim@meyering.net>
6891 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef HAVE_CONFIG_H.
6893 * lib/intprops.h (signed_type_or_expr__): Define.
6894 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
6897 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
6899 * lib/verify.h (verify_expr): Remove, replacing with:
6900 (verify_true): New macro that returns true instead of void.
6901 (verify_type__): Remove.
6902 (verify): Use verify_true rather than verify_type__.
6904 2005-09-26 Bruno Haible <bruno@clisp.org>
6906 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
6908 (lib_SOURCES): Remove mbchar.c.
6909 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
6910 (Files): Add m4/mbrtowc.m4.
6911 * modules/mbiter: Likewise.
6912 * modules/mbuiter: Likewise.
6914 2005-09-26 Bruno Haible <bruno@clisp.org>
6916 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't compile
6917 mbchar.c if they are not both present.
6918 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
6919 * m4/mbiter.m4 (gl_MBITER): Likewise.
6920 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
6921 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
6922 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
6924 2005-09-25 Jim Meyering <jim@meyering.net>
6926 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
6927 also uses socklen_t.
6929 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
6931 * lib/utimens.c (ENOSYS): Define if not already defined.
6932 (futimens): Support having a null PATH if the file descriptor
6935 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
6937 (__attribute): Define to empty unless GCC 3.1 or later.
6938 This works around a core dump on OpenBSD 3.4, which has GCC
6939 2.95.3, which dumps core when given __attribute__(()). It also
6940 simplifies other tests, since we really don't want to bother with
6941 worrying about which ancient version of GCC supported what.
6942 Original problem reported by Yoann Vandoorselaere, with part of
6943 the fix suggested by Derek Price.
6945 2005-09-24 Jim Meyering <jim@meyering.net>
6947 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
6948 so we can once again use a positive bitfield width of 1 -- now we
6949 don't have to explain why we were using a bitfield width of 2.
6951 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
6953 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
6954 and similarly for the other external symbols. Problem reported
6957 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
6958 bug reported by Jim Meyering.
6960 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
6961 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
6962 not needed, since socklen is a prerequisite module.
6964 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
6966 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
6967 Problem reported by Eric Blake.
6968 (getaddrinfo): Initialize se so that it's not garbage.
6969 Redo internal storage allocation so that it doesn't make unportable
6970 assumptions about alignment.
6973 * lib/utimens.c (futimens): Use futimesat if available.
6974 Prefer it to futimes since it doesn't have the futimes bug.
6976 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
6977 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
6978 Instead, declare a function that returns a pointer to an array,
6979 and use verify_type__ to declare the size of the array.
6980 Problem and germ of a solution reported by Bruno Haible.
6981 (verify_type__): Use 2, not 1, for bitfield size, to avoid
6982 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
6984 2005-09-23 Jim Meyering <jim@meyering.net>
6986 Sync from coreutils.
6987 Correct build failure (socklen_t not defined) on at least
6988 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
6989 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
6991 2005-09-23 Jim Meyering <jim@meyering.net>
6993 * modules/getaddrinfo (Depends-on): Add socklen.
6995 2005-09-23 Bruno Haible <bruno@clisp.org>
6997 * tests/test-verify.c: New file.
6999 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7001 Sync from coreutils.
7003 * modules/argmatch (Depends-on): Add verify.
7004 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
7006 * modules/save-cwd (Depends-on): Likewise.
7008 * modules/openat (Files): Add lib/openat-die.c.
7009 (Depends-on): Remove error, exitfail.
7012 * modules/verify: New file.
7013 * MODULES.html.sh (Diagnostics <assert.h>): New section,
7014 with "verify" module.
7016 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7018 Sync from coreutils.
7020 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
7021 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
7022 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
7023 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
7024 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
7025 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
7026 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
7027 Don't bother checking for string.h, stdlib.h, unistd.h.
7028 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
7029 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
7031 * m4/jm-macros.m4 (gl_MACROS): Likewise.
7032 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
7034 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
7035 (gl_GETDATE): Use it.
7037 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
7039 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7041 Sync from coreutils.
7043 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
7045 * lib/argmatch.h: Include verify.h
7046 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
7047 (ARGMATCH_ASSERT): Remove; unused.
7048 * lib/canonicalize.c: Assume STDC_HEADERS.
7049 * lib/exclude.c: Include "strcase.h".
7050 * lib/regex_internal.h [!defined _LIBC]: Likewise.
7051 * lib/getusershell.c: Include stdio--.h rather than stdio.h
7053 (getusershell): Call fopen, not fopen_safer.
7054 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
7055 Do not include unistd-safer.h.
7056 (save_cwd): Don't call fd_safer; no longer needed
7057 now that we include fcntl--.h.
7059 * lib/getdate.y (relative_time): New type.
7060 (RELATIVE_TIME_0): New constant.
7061 (parser_control): Use relative_time instead of doing it ourselves.
7062 (%union): Add new relative_time rel member.
7063 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
7065 (relunit, relunit_snumber): Now of type rel.
7066 (zone, rel, relunit, get_date): Adjust to above changes.
7068 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
7069 Do not include unistd-safer.h.
7070 (getloadavg): Don't call fd_safer; no longer needed
7071 now that we include fcntl--.h.
7073 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
7074 (make_dir_parents): Treat ENOSYS like EEXIST.
7076 Improve quality of diagnostics on restore_cwd failure.
7077 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
7078 (make_dir_parents): Last arg is now int * (for errno), not bool *.
7079 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
7080 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
7081 each time through the loop. Do not diagnose restore_cwd failure;
7082 that is the caller's job (and perhaps the caller does not care).
7084 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
7085 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
7086 If the file already exists but is not a directory, don't bother
7087 to try to make its parents.
7088 Close potential file descriptor leak if we can't chdir("/") (!).
7089 Don't always return true if chdir($PWD) fails; return true only
7090 if the requested action was done successfully (except for the
7092 Don't log final directory unless we actually made it.
7093 Refactor to avoid duplicate code to fix up permissions.
7094 Don't attempt to fix up parent permissions if chdir($PWD) fails.
7096 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
7097 to make it a bit faster and (I hope) clearer.
7098 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
7099 Fix bug in formats like %2N.
7101 * lib/verify.h: New file.
7103 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7105 Sync from coreutils.
7106 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
7108 2005-09-22 Jim Meyering <jim@meyering.net>
7110 Sync from coreutils.
7112 * m4/lstat.m4 (gl_FUNC_LSTAT):
7113 Use AC_LIBSOURCES to require lstat.c and lstat.h.
7114 Remove obsolete comment.
7115 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
7116 * m4/xstrtod.m4: Likewise.
7118 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
7120 2005-09-22 Jim Meyering <jim@meyering.net>
7122 Sync from coreutils.
7124 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
7126 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
7127 the .tm_year member, since otherwise gcc-4.0 would now warn about
7128 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
7130 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
7131 order to avoid an unsuppressible warning from gcc on 64-bit systems.
7133 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
7134 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
7135 when run in a time zone for which daylight savings time is in effect
7136 for the starting date.
7138 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
7139 stop us from restricting permissions of just-created absolute-named
7141 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
7142 to restore initial working directory.
7143 * lib/mkdir-p.c (make_dir_parents): New parameter: different_working_dir,
7144 to tell caller if/when we change the working directory and are
7145 unable to return to the initial one.
7146 * lib/mkdir-p.h (make_dir_parents): Update prototype.
7147 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
7148 `return false'. This fixes a bug introduced on 2004-07-30.
7150 * lib/openat.c (fdopendir): Be sure to close the supplied
7151 file descriptor before returning. This makes our replacement
7152 implementation a little closer to Solaris's, where fdopendir
7153 ties the file descriptor to the returned DIR* pointer.
7154 * lib/openat.c (unlinkat): New function.
7155 * lib/openat.h (unlinkat): Add prototype.
7156 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
7157 (openat_restore_fail): Rename from openat_restore_die.
7158 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
7160 Provide an alternative to exiting immediately upon save_cwd or
7161 restore_cwd failure. Now, an application can arrange e.g.,
7162 to perform a longjump in that case.
7163 * lib/openat.c: Include dirname.h.
7164 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
7165 (rpl_openat, fdopendir, fstatat): Call openat_save_die
7166 and openat_restore_die rather than calling error directly.
7167 Don't include "error.h" or "exitfail.h"; they're no longer needed.
7169 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
7170 * lib/openat.h (openat_save_die, openat_restore_die): Declare and define.
7172 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
7173 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
7174 int utc, int nanoseconds);
7176 date should not have to allocate a megabyte of virtual memory to
7177 handle a format argument like +%1048575T. When implemented with
7178 strftime, it must allocate such a buffer, use strftime to fill it
7179 in, print it, then free it.
7180 With fprintftime, it simply prints everything and exits.
7181 With no need for memory allocation, that's one fewer way to fail.
7182 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
7183 optional field width, not before, so we accept %9:z, not %:9z.
7184 (my_strftime): Be sure to use L_('x') for literals.
7186 * lib/backupfile.c, canon-host.c, canonicalize.c, chown.c, cloexec.c:
7187 * lib/dup-safer.c, dup2.c, euidaccess.c, fd-safer.c, fileblocks.c:
7188 * lib/fopen-safer.c, fsusage.c, ftruncate.c, getcwd.c, getcwd.h:
7189 * lib/getloadavg.c, getopt_.h, getpagesize.h, getugroups.c, group-member.c:
7190 * lib/human.h, idcache.c, mkdir-p.c, mountlist.c, nanosleep.c, pathmax.h:
7191 * lib/physmem.c, posixver.c, putenv.c, raise.c, safe-read.c, same.c:
7192 * lib/save-cwd.c, setenv.c, settime.c, tempname.c, unlinkdir.c:
7193 * lib/unsetenv.c, userspec.c, xgethostname.c, xreadlink.c:
7194 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
7196 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
7197 * lib/getloadavg.c, mountlist.c, openat.h, save-cwd.c, tempname.c:
7198 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
7199 and don't include <sys/file.h>).
7201 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
7203 Sync from coreutils.
7205 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
7206 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
7207 [!LDAV_DONE]: Avoid unused variable warning.
7209 2005-09-21 Bruno Haible <bruno@clisp.org>
7211 * lib/unicodeio.h (unicode_to_mb): New declaration.
7213 2005-09-20 Derek Price <derek@ximbiot.com>
7215 * lib/getaddrinfo.c: Don't include <netdb.h> included from getaddrinfo.h.
7217 2005-09-20 Bruno Haible <bruno@clisp.org>
7219 * gnulib-tool: Remove trailing slashes from the values specified for
7220 --source-base, --m4-base, --tests-base, --aux-dir.
7221 Suggested by Simon Josefsson <jas@extundo.com>.
7223 2005-09-20 Bruno Haible <bruno@clisp.org>
7225 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
7226 func_modules_to_filelist, func_import, func_create_testdir): Make all
7227 sorting results locale-independent, so that gnulib-cache.m4 doesn't
7228 change when gnulib-tool is invoked in a different locale.
7230 2005-09-19 Simon Josefsson <jas@extundo.com>
7232 * m4/socklen.m4: Fix typo.
7234 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7236 Use a consistent style for including <config.h>.
7237 * lib/__fpending.c, acl.c, argmatch.c,
7238 argp-help.c, argp-parse.c,
7239 argp-pvh.c, backupfile.c, basename.c, c-stack.c,
7240 calloc.c, check-version.c, cloexec.c, closeout.c, copy-file.c,
7241 creat-safer.c, cycle-check.c, dirfd.c, dirname.c, dup-safer.c,
7242 dup2.c, euidaccess.c, exclude.c, exitfail.c, fatal-signal.c,
7243 fd-safer.c, file-type.c, fileblocks.c, filemode.c,
7244 filenamecat.c, findprog.c, fnmatch.c, fopen-safer.c, free.c,
7245 fsusage.c, ftruncate.c, full-write.c, fwriteerror.c,
7246 getaddrinfo.c, getcwd.c, getdelim.c, getline.c, getlogin_r.c,
7247 getndelim2.c, getnline.c, getopt1.c, getpass.c, group-member.c,
7248 hard-locale.c, hash-pjw.c, hash.c, human.c, idcache.c,
7249 inet_ntop.c, isdir.c, long-options.c, malloc.c, memcasecmp.c,
7250 memcmp.c, memcoll.c, memcpy.c, memmove.c, mkdir-p.c,
7251 modechange.c, mountlist.c, open-safer.c, physmem.c,
7252 pipe-safer.c, pipe.c, poll.c, posixver.c, progname.c,
7253 progreloc.c, putenv.c, quote.c, quotearg.c, readline.c,
7254 readlink.c, realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c,
7255 safe-read.c, same.c, save-cwd.c, savedir.c, sig2str.c,
7256 strcspn.c, strerror.c, stripslash.c, strncasecmp.c, strndup.c,
7257 strnlen.c, strnlen1.c, strsep.c, strstr.c, strtod.c,
7258 strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c,
7259 userspec.c, utimecmp.c, version-etc-fsf.c,
7260 version-etc.c, wait-process.c, xalloc-die.c, xgetcwd.c,
7261 xmalloc.c, xmemcoll.c, xnanosleep.c, xreadlink.c, xsetenv.c,
7262 xstrndup.c, xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c:
7263 Standardize inclusion of config.h.
7264 * lib/__fpending.h, dirfd.h, getdate.h, human.h,
7265 inttostr.h: Removed inclusion of config.h from header files.
7266 * lib/inttostr.c: Adjusted in-tree users.
7267 * lib/timespec.h: Remove superfluous warning to include config.h.
7268 * lib/atexit.c, chdir-long.c chown.c, fchown-stub.c, getgroups.c,
7269 gettimeofday.c, lchown.c, lstat.c, mkdir.c, mkstemp.c,
7270 nanosleep.c, openat.c, raise.c, readtokens0.c, readutmp.c,
7271 unlinkdir.c: Guard inclusion of config.h with HAVE_CONFIG_H.
7273 2005-09-19 Jim Meyering <jim@meyering.net>
7275 * modules/pathmax (License): Change to LGPL.
7277 2005-09-19 Derek Price <derek@ximbiot.com>
7279 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
7281 2005-09-19 Bruno Haible <bruno@clisp.org>
7283 * gnulib-tool (import): Provide default for --tests-base.
7285 2005-09-19 Bruno Haible <bruno@clisp.org>
7287 * doc/quote.texi: New file, extracted from gnulib.texi.
7288 * doc/ctime.texi: New file, extracted from gnulib.texi.
7289 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
7290 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
7291 * doc/gnulib.texi: Include them.
7293 2005-09-18 Bruno Haible <bruno@clisp.org>
7296 * gnulib-tool (func_readlink): New function.
7297 (func_ln_if_changed): Use it.
7299 2005-09-18 Bruno Haible <bruno@clisp.org>
7301 * gnulib-tool: Support --with-tests also with --import.
7302 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
7303 (func_import): Use variables $testsbase and $inctests. Emit a
7304 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
7305 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
7306 SUBDIRS += $testsdir.
7307 (func_create_testdir): Update.
7309 2005-09-18 Bruno Haible <bruno@clisp.org>
7311 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
7312 instead of $dry_run.
7313 (func_cp_if_changed, func_mv_if_changed): Remove functions.
7314 (func_ln_if_changed): Don't handle dry-run here.
7315 (func_import): In dry-run mode, detect more precisely which actions
7316 would be performed, and don't use "...ing" verbs.
7318 2005-09-18 Bruno Haible <bruno@clisp.org>
7320 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
7321 (func_import): Use join on two temporary files instead of three nested
7322 loops, in order to determine which files are new or old.
7324 2005-09-18 Bruno Haible <bruno@clisp.org>
7326 * gnulib-tool (func_import): Comment out code that spits out the
7327 new files with --dry-run.
7329 2005-09-18 Bruno Haible <bruno@clisp.org>
7331 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
7333 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7335 * lib/stat-time.h: New file.
7336 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
7337 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
7339 (timespec_cmp): New function.
7340 * lib/utimecmp.c: Include stat-time.h.
7341 (SYSCALL_RESOLUTION): Depend on whether various struct stat
7342 members exist, not on the obsolescent ST_MTIM_NSEC.
7343 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
7345 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7347 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
7349 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7351 * MODULES.html.sh (File system functions): Add stat-time.
7352 * modules/stat-time: New file.
7353 * modules/timespec (Files): Remove m4/st_mtim.m4; this
7354 is now done in a different way, by the stat-time module.
7355 * modules/utimecmp (Depends-on): Add stat-time.
7357 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
7359 * m4/st_mtim.m4: Remove. Superseded by...
7360 * m4/stat-time.m4: New file.
7361 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
7362 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
7364 2005-09-15 Derek Price <derek@ximbiot.com>
7366 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
7368 2005-09-15 Derek Price <derek@ximbiot.com>
7370 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
7371 * lib/regex_internal.c: Ditto, using this...
7372 (__GNUC_PREREQ): ...new macro.
7373 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1 using...
7374 (__GNUC_PREREQ): ...this new macro.
7376 * lib/strstr.h: Include string.h. Define strstr as a macro here.
7378 2005-09-15 Derek Price <derek@ximbiot.com>
7379 Paul Eggert <eggert@cs.ucla.edu>
7381 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
7382 changes, consolidating in...
7383 * lib/regex_internal.h: ...this file.
7385 2005-09-13 Jim Meyering <jim@meyering.net>
7387 * lib/canon-host.c: Filter through gnu indent and reword comments slightly.
7388 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
7390 2005-09-13 Derek Price <derek@ximbiot.com>
7392 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
7394 Reported by Jim Meyering <jim@meyering.net>.
7396 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
7398 * lib/base64.c: Typo.
7399 (base64_encode): Put b64str in initialized data section.
7401 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
7403 Merge glibc and coreutils changes into gnulib, plus a few
7405 * lib/md5.c: Use #error rather than a string.
7406 (CYCLIC): New macro, from glibc source. Use it instead of rol.
7407 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
7408 (__attribute__): Define to empty for non recent-GCC.
7409 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
7410 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
7411 Renamed from their non-__ counterparts, with new macros replacing
7412 them if not _LIBC. Add __THROW attribute.
7414 (struct md5_ctx): Align buffer if using GCC.
7415 * lib/sha1.h (struct sha1_ctx): Likewise.
7416 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
7417 The old name was backwards.
7418 (NOTSWAP): Remove; not used.
7419 (rol): New macro, moved here from md5.h.
7420 (sha1_process_block): Remove a FIXME that doesn't make sense.
7422 2005-09-12 Derek Price <derek@ximbiot.com>
7424 Return usable errors from canon-host.
7425 * lib/canon-host.h: New file.
7426 * lib/canon-host.c (canon_host): Wrap...
7427 (canon_host_r): ...this new function, which now relies exclusively on
7429 (ch_strerror): New function.
7430 (last_cherror): New global.
7431 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test interface.
7432 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
7434 (freeaddrinfo): Free ai->ai_canonname when set.
7436 2005-09-12 Derek Price <derek@ximbiot.com>
7438 Make canon-host require getaddrinfo.
7439 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
7440 AC_LIBSOURCE canon-host.h. Call...
7441 (gl_PREREQ_CANON_HOST): ...this new function, which requires
7443 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
7445 2005-09-12 Derek Price <derek@ximbiot.com>
7447 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
7449 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
7451 2005-09-12 Derek Price <derek@ximbiot.com>
7453 * lib/gai_strerror.c: Include config.h when available. Include
7454 getaddrinfo.h before other headers to test interface.
7455 Reported by Larry Jones <lawrence.jones@ugs.com>.
7457 2005-09-12 Derek Price <derek@ximbiot.com>
7458 Paul Eggert <eggert@cs.ucla.edu>
7460 * modules/glob (Files): Add glob-libc.h.
7462 2005-09-12 Derek Price <derek@ximbiot.com>
7463 Paul Eggert <eggert@cs.ucla.edu>
7465 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
7466 glob_.h, glob-libc.h.
7467 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
7469 2005-09-12 Derek Price <derek@ximbiot.com>
7470 Paul Eggert <eggert@cs.ucla.edu>
7472 * lib/glob-libc.h: Renamed from glob_.h. The new version is
7473 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
7474 protecting things that should be done only in gnulib contexts.
7475 * lib/glob_.h: New file, containing only the glob things needed for
7477 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
7478 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
7479 (glob, globfree, glob_pattern_p): Now defined simply in terms of
7480 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
7481 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
7482 and to respect the namespace rules better.
7484 2005-09-08 Simon Josefsson <jas@extundo.com>
7486 * modules/socklen: New file.
7488 2005-09-08 Simon Josefsson <jas@extundo.com>
7490 * m4/socklen.m4: New file.
7492 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7494 * modules/utimens (Files): Add m4/utimbuf.m4, since
7495 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
7496 Reported by Sergey Poznyakoff.
7498 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7500 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
7501 definitions, since that's the preferred style in glibc.
7502 Fix a minor spacing issue, and update copyright notice to match glibc's.
7504 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7506 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
7508 2005-09-06 Simon Josefsson <jas@extundo.com>
7510 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
7511 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
7513 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
7515 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall warning.
7517 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
7519 * config/srclist.txt: Add glibc bug 1302.
7521 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
7523 Change bitset word type from unsigned int to unsigned long int,
7524 as this has better performance on typical 64-bit hosts.
7525 Port bitset code to hosts with unusual word sizes.
7526 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
7527 (build_collating_symbol):
7528 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
7529 argument is a bitset. This is merely a style issue, but it makes
7530 it clearer that an entire array is expected.
7531 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
7532 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
7533 Port to the case where bitset_word is not the same as unsigned int.
7534 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
7535 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
7537 * lib/regexec.c (check_dst_limits_calc_pos_1, check_subexp_matching_top):
7538 (build_trtable, group_nodes_into_DFAstates):
7540 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
7541 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
7542 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
7543 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
7544 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
7545 * lib/regcomp.c (optimize_subexps, lower_subexp):
7546 Work even if bitset_word has holes in its bitwise representation.
7547 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
7548 * lib/regexec.c (check_dst_limits_calc_pos_1, check_subexp_matching_top):
7550 * lib/regex_internal.c (re_string_reconstruct):
7551 Don't assume UCHAR_MAX == 255.
7552 * lib/regex_internal.h (bitset_set_all): Likewise.
7553 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
7555 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
7556 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
7558 (BITSET_WORD_MAX): New macro.
7559 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
7560 (bitset_set_all, bitset_copy): Now inline functions, not macros.
7561 (bitset_empty, bitset_copy):
7562 Prefer sizeof (bitset) to multiplying it out ourselves.
7563 (bitset_not_merge): Remove; unused.
7564 (bitset_contain): Return bool, not unsigned int with one bit on.
7565 All callers changed.
7566 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
7567 alignment than re_node_set; do this by defining a new internal
7568 type struct dests_alloc and using it to allocate memory.
7570 2005-09-05 Bruno Haible <bruno@clisp.org>
7572 * gnulib-tool (func_import): Fix comparison in handling of symbolic
7575 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
7577 * modules/size_max (Makefile.am): Add size_max.h
7579 2005-09-04 Derek Price <derek@ximbiot.com>
7581 * gnulib-tool (func_import): Fix reversed $symbolic logic.
7583 2005-09-03 Simon Josefsson <jas@extundo.com>
7585 * gnulib-tool: Fix typo.
7587 2005-09-03 Simon Josefsson <jas@extundo.com>
7589 * config/srclist.txt: Add glibc bug 1293.
7591 2005-09-03 Derek Price <derek@ximbiot.com>
7593 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
7594 From Larry Jones <lawrence.jones@ugs.com>.
7596 2005-09-02 Simon Josefsson <jas@extundo.com>
7598 * modules/socklen: New file.
7600 2005-09-02 Simon Josefsson <jas@extundo.com>
7602 * modules/havelib: New module.
7604 * modules/gettext, modules/iconv, modules/lock, modules/readline:
7607 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
7609 Check for arithmetic overflow when calculating sizes, to prevent
7610 some buffer-overflow issues. These patches are conservative, in the
7611 sense that when I couldn't determine whether an overflow was possible,
7612 I inserted a run-time check.
7613 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New macros.
7614 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
7615 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
7616 (re_xnrealloc, re_x2nrealloc): New inline functions.
7617 * lib/regcomp.c (init_dfa, analyze, build_range_exp, parse_bracket_exp):
7618 (build_equiv_class, build_charclass): Check for arithmetic overflow
7619 in size expression calculations.
7620 * lib/regex_internal.c (re_string_realloc_buffers):
7621 (build_wcs_upper_buffer, re_node_set_add_intersect):
7622 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
7623 (re_dfa_add_node, register_state): Likewise.
7624 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
7625 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
7626 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
7627 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
7629 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
7631 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
7632 m4/ulonglong.m4. Problem reported by Martin Lambers.
7634 2005-09-02 Bruno Haible <bruno@clisp.org>
7636 Support for lib vs. lib64 distinction on biarch platforms.
7637 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
7638 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
7639 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
7641 2005-09-02 Bruno Haible <bruno@clisp.org>
7643 * gnulib-tool (import): In the other first-use case, provide defaults
7646 2005-09-02 Bruno Haible <bruno@clisp.org>
7648 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have patches
7649 not yet found in the latest gettext release.
7651 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
7653 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
7654 to avoid a collision with bits/local_lim.h in glibc.
7655 All uses changed. Problem reported by Dmitry V. Levin in
7656 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
7658 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
7659 bugs in int versus size_t comparisons.
7660 (re_string_context_at): Fix bug where the code assumed that
7663 Use bool where appropriate.
7664 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
7665 All callers changed.
7666 (calc_eclosure_iter): Likewise, for ROOT arg.
7667 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
7668 (build_charclass_op): Likewise, for NON_MATCH arg.
7669 * lib/regex_internal.c (re_string_allocate, re_string_construct):
7670 (re_string_construct_common): Likewise, for ICASE arg.
7671 * lib/regexec.c (re_search_2_stub, re_search_stub):
7672 Likewise, for RET_LEN arg.
7673 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
7674 (set_regs): Likewise, for FL_BACKTRACK arg.
7675 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
7676 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
7677 (calc_eclosure_iter, parse_bracket_exp):
7678 Use bool for internal variables that are booleans.
7679 * lib/regexec.c (re_search_internal, check_matching, proceed_next_node):
7680 (set_regs, build_sifted_states, sift_states_bkref):
7681 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
7682 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
7683 (find_collation_sequence_value):
7685 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
7686 (re_node_set_compare):
7687 Return bool, not int. All callers changed.
7688 * lib/regexec.c (check_halt_node_context, check_dst_limits):
7689 (build_trtable, check_node_accept): Likewise.
7690 * lib/regex_internal.h: Include stdbool.h.
7692 Fix bugs uncovered when converting to bool.
7693 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
7694 failure instead of charging ahead blindly.
7695 * lib/regex_internal.c (register_state): Likewise.
7696 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
7697 for freeing internal storage.
7698 (group_nodes_into_DFA_states): Use unsigned int, not int, for
7699 bitset pieces used as boolean, to avoid undefined behavior
7700 on hosts that do int overflow checking.
7702 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
7704 * config/srclist.txt: Add glibc bugs 1285-1287.
7706 2005-09-01 Jim Meyering <jim@meyering.net>
7708 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
7709 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
7710 Require gl_STAT_MACROS, too.
7712 2005-09-01 Bruno Haible <bruno@clisp.org>
7714 * gnulib-tool (import): In the first-use case, provide defaults.
7716 2005-09-01 Bruno Haible <bruno@clisp.org>
7718 * gnulib-tool (func_import): Remove the .tmp files.
7720 2005-09-01 Bruno Haible <bruno@clisp.org>
7722 * gnulib-tool (func_import): Fix handling of symbolic links.
7724 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7726 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
7727 old glibc regex code mishandles strings longer than 2**31 bytes.
7728 This patch fixes this when the regex code is used in gnulib
7729 (i.e., outside glibc).
7731 This patch should not affect the use of the regex code inside
7732 glibc. No doubt this problem also needs to be handled for glibc
7733 as well, but the result will be an incompatible change to the
7734 glibc ABI, and the old ABI will have to be supported too. That
7735 can be the the subject for another patch.
7737 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
7738 governing whether the rest of this patch is active. By default,
7739 the macro is disabled and the patch has no effect.
7740 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
7741 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
7742 (struct re_pattern_buffer, re_search, re_search_2, re_match):
7743 (re_match_2, re_set_registers): Use the new types.
7744 * lib/regex_internal.h (Idx, re_hashval_t): New types.
7745 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
7747 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
7748 (re_string_context_at, bin_tree_t, re_dfastate_t):
7749 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
7750 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
7751 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
7752 (re_string_char_size_at, re_string_wchar_at):
7753 (re_string_elem_size_at):
7754 Use the new types and macros to port to 64-bit hosts.
7755 Use unsigned types for internal values, so that the code
7756 mostly works even for arrays larger than SSIZE_MAX.
7757 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
7758 (search_duplicated_node, calc_eclosure_iter, fetch_number):
7759 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
7760 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
7761 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
7762 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
7763 (calc_inveclosure, parse_dup_op, build_range_exp):
7764 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
7765 (fetch_number, create_token_tree, mark_opt_subexp):
7767 * lib/regex_internal.c (re_string_construct_common, create_ci_newstate):
7768 (create_cd_newstate, re_string_allocate, re_string_construct):
7769 (re_string_realloc_buffers, build_wcs_upper_buffer):
7770 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
7771 (re_string_reconstruct, re_string_peek_byte_case):
7772 (re_string_fetch_byte_case, re_string_context_at):
7773 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
7774 (re_node_set_init_copy, re_node_set_add_intersect):
7775 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
7776 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
7777 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
7778 (re_acquire_state, re_acquire_state_context, register_state):
7780 * lib/regex.c (match_ctx_init, match_ctx_add_entry, search_cur_bkref_entry):
7781 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
7782 (re_search_internal, re_search_2_stub, re_search_stub)
7783 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
7784 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
7785 (update_cur_sifted_state, check_dst_limits):
7786 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
7787 (check_subexp_limits, sift_states_bkref, merge_state_array):
7788 (check_subexp_matching_top, get_subexp, get_subexp_sub):
7789 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
7790 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
7791 (expand_bkref_cache, check_node_accept_bytes):
7792 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
7793 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
7794 (acquire_init_state_context, check_halt_node_context):
7795 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
7796 (sift_states_backward, clean_state_log_if_needed):
7797 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
7798 (find_recover_state, transit_state_sb, transit_state_mb):
7799 (transit_state_bkref, build_trtable, match_ctx_clean):
7801 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
7802 to work around an assumption that REG_MISSING is negative.
7804 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
7805 (seek_collating_symbol_entry) [defined _LIBC]:
7806 (lookup_collation_sequence_value) [defined _LIBC]:
7807 (build_range_exp, build_collating_symbol) [defined _LIBC]:
7808 Use prototypes rather than old-style function definitions.
7809 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
7810 (transit_state_sb) [0]:
7811 (find_collation_sequence_value) [defined _LIBC]: Likewise.
7813 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
7816 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
7817 (optimize_subexps, lower_subexp):
7818 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
7819 since the signed shift might overflow. Use 1u<<31 instead.
7820 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain): Likewise.
7821 * lib/regexec.c (check_dst_limits_calc_pos_1, check_subexp_matching_top):
7824 * lib/regcomp.c (optimize_subexps, lower_subexp):
7825 Use CHAR_BIT rather than 8, for clarity.
7826 * lib/regexec.c (check_dst_limits_calc_pos_1):
7827 (check_subexp_matching_top): Likewise.
7828 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
7829 have to worry about portability issues when shifting it left.
7830 Remove no-longer-needed test for table_size > 0.
7831 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
7832 in a word, as the resulting behavior is undefined.
7833 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
7834 in one case, a <= should have been an <, and in another case the
7835 whole test was missing.
7836 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
7837 the standard name CHAR_BIT.
7838 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
7839 this is not true on one's complement and signed-magnitude hosts.
7841 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
7843 (struct re_dfa_t): Remove unused member states_alloc.
7844 * lib/regcomp.c (init_dfa): Don't initialize unused members.
7846 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7848 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
7849 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
7850 and large-file glibc and in 32-bit large-file Solaris.
7852 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7854 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
7855 lengths fit in regoff_t; this isn't true if regoff_t is the same
7857 * lib/regex.c (re_search_internal): 5th arg is LAST_START
7858 (= START + RANGE) instead of RANGE. This avoids overflow
7859 problems when regoff_t is the same width as size_t.
7860 All callers changed.
7861 (re_search_2_stub): Check for overflow when adding the
7862 sizes of the two strings.
7863 (re_search_stub): Check for overflow when adding START
7864 to RANGE; if it occurs, substitute the extreme value.
7866 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7868 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
7870 2005-08-31 Jim Meyering <jim@meyering.net>
7872 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
7874 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
7875 (register_state): Likewise.
7876 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
7877 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
7878 (group_nodes_into_DFAstates): Likewise.
7880 2005-08-31 Jim Meyering <jim@meyering.net>
7882 * check-module: Add a FIXME comment.
7884 2005-08-31 Eric Blake <ebb9@byu.net>
7886 * modules/unistd-safer (Files): Add unistd--.h.
7887 * modules/stdio-safer (Files): Add stdio--.h.
7889 2005-08-31 Derek Price <derek@ximbiot.com>
7891 * lib/getdelim.c (getdelim): Return EOF on EOF.
7892 Reported by Larry Jones <lawrence.jones@ugs.com>.
7894 2005-08-31 Bruno Haible <bruno@clisp.org>
7896 Avoid unnecessary diffs in the generated lib/Makefile.am.
7897 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
7898 the generated files.
7899 (func_import): Don't set cmd.
7901 2005-08-31 Bruno Haible <bruno@clisp.org>
7903 * lib/strstr.c: Include <stddef.h>, for NULL.
7904 * lib/strcasestr.c: Likewise.
7905 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7907 2005-08-31 Bruno Haible <bruno@clisp.org>
7909 * gnulib-tool: New option --macro-prefix.
7910 (func_import): Use macro_prefix.
7911 (import): Handle option --macro-prefix.
7913 2005-08-31 Bruno Haible <bruno@clisp.org>
7915 * gnulib-tool (import): Rename most ac_* variables to cached_*.
7916 Also use new variables cached_lgpl, cached_libtool.
7918 2005-08-31 Bruno Haible <bruno@clisp.org>
7920 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
7921 always instantiating them.
7923 2005-08-31 Bruno Haible <bruno@clisp.org>
7925 * gnulib-tool (func_import): Read the previous cached settings
7926 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
7927 earlier added by gnulib but are now dropped. Warn when a gnulib file
7928 overwrites a non-gnulib file.
7930 2005-08-31 Bruno Haible <bruno@clisp.org>
7932 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
7933 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
7934 projects that don't keep autogenerated files in CVS. Put into
7935 actioncmd only the specified modules, not the transitive closure.
7937 2005-08-31 Bruno Haible <bruno@clisp.org>
7939 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
7940 Create directories that shall be filled.
7941 (import): Don't look for gl_* macros in configure.ac. Recurse across
7942 all directories containing a gnulib-cache.m4 files, if meaningful.
7944 2005-08-31 Bruno Haible <bruno@clisp.org>
7946 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
7947 (import): Set seen_libtool when we see gl_LIBTOOL.
7949 2005-08-31 Bruno Haible <bruno@clisp.org>
7951 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
7952 declaration macro definitions from generated gnulib.m4.
7954 2005-08-30 "Oskar Liljeblad" <oskar@osk.mine.nu>
7956 * lib/iconvme.h: Add prototype for iconv_alloc.
7958 2005-08-29 Simon Josefsson <jas@extundo.com>
7960 * lib/iconvme.c: Fix errno.
7962 2005-08-29 Bruno Haible <bruno@clisp.org>
7964 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
7965 that it works when the directory contains spaces.
7967 2005-08-29 Bruno Haible <bruno@clisp.org>
7969 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
7971 2005-08-29 Bruno Haible <bruno@clisp.org>
7973 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
7976 2005-08-29 Bruno Haible <bruno@clisp.org>
7977 and Stepan Kasal <kasal@ucw.cz>
7979 * check-module: If more parameters are given, check each of them
7980 separately; add more exceptions, as noted by Jim Meyering.
7981 (check_module): New procedure.
7982 (%exempt_header): Now contains all exceptions.
7984 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
7986 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
7988 2005-08-29 "Oskar Liljeblad" <oskar@osk.mine.nu>
7990 * lib/iconvme.c: Split iconv_string into iconv_alloc.
7992 2005-08-28 Bruno Haible <bruno@clisp.org>
7994 * m4/gnulib-tool.m4: New file.
7996 2005-08-27 Jim Meyering <jim@meyering.net>
7998 * modules/unistd-safer (Files): Add pipe-safer.c.
7999 * modules/fcntl-safer (Files): Add creat-safer.c.
8001 2005-08-27 Jim Meyering <jim@meyering.net>
8003 * m4/stdlib-safer.m4: New file. From coreutils.
8004 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
8005 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
8006 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
8007 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
8008 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
8010 2005-08-27 Jim Meyering <jim@meyering.net>
8012 * lib/fopen-safer.c: Merge minor changes from coreutils.
8013 * lib/dup-safer.c: Likewise.
8014 * lib/fd-safer.c: Likewise.
8016 Merge from coreutils.
8017 * lib/stdio--.h: New file.
8018 * lib/stdlib--.h: New file.
8019 * lib/mkstemp-safer.c: New file.
8021 GNU tar needs these.
8022 * lib/pipe-safer.c: New file.
8023 * lib/creat-safer.c: New file.
8024 * lib/fcntl--.h (creat): Define to creat_safer.
8025 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
8026 * lib/unistd--.h (pipe): Define to pipe_safer.
8027 * lib/unistd-safer.h: Declare pipe_safer.
8029 2005-08-26 Simon Josefsson <jas@extundo.com>
8031 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
8032 Haible <bruno@clisp.org>.
8034 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
8036 * lib/regex_internal.h: Remove all references to
8037 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
8039 (bitset_not, bitset_merge, bitset_not_merge):
8040 (bitset_mask, re_string_allocate, re_string_construct):
8041 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
8042 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
8043 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
8044 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
8045 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8046 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8047 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
8048 (re_acquire_state_context):
8049 Remove unnecessary forward decls.
8050 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
8051 Put __attribute at function definition,
8052 now that the function decl has been removed.
8053 * lib/regex_internal.c (re_string_peek_byte_case):
8054 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
8057 2005-08-25 Stepan Kasal <kasal@ucw.cz>
8059 * m4/regex.m4: Add AC_PREREQ(2.50).
8060 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
8062 2005-08-25 Simon Josefsson <jas@extundo.com>
8064 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
8067 2005-08-25 Simon Josefsson <jas@extundo.com>
8069 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
8070 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
8071 GLIBC specific code.
8073 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8075 Make regex safe for g++. This fixes one real bug (an "err"
8076 that should have been "*err"). g++ problem reported by
8078 * lib/regex_internal.h (re_calloc): New macro, consistent with
8079 re_malloc etc. All callers of calloc changed to use re_calloc.
8080 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
8081 not int. All callers changed.
8082 * lib/regcomp.c (re_compile_fastmap_iter): Don't use alloca (mb_cur_max);
8083 just use an array of size MB_LEN_MAX.
8084 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
8085 (find_recover_state): Change "err" to "*err"; this fixes what
8086 appears to be a real bug.
8087 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
8090 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8092 * modules/regex (Depends-on): Add malloc, since the code
8093 assumes that !malloc(0) means failure.
8095 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8097 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
8099 alloca modernization/simplification for regex.
8100 * lib/regex.c: Remove portability cruft for alloca. This no longer
8101 needs to be at the start of the file, and can be moved into
8102 regex_internal.h and simplified.
8103 * lib/regex_internal.h: Include <alloca.h>.
8104 (__libc_use_alloca) [!defined _LIBC]: New macro.
8105 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
8106 now works outside glibc.
8108 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8110 * config/srclist.txt: Add glibc bugs 1241, 1245.
8112 2005-08-25 Jim Meyering <jim@meyering.net>
8114 * lib/open-safer.c: Include <config.h>.
8115 Otherwise, we'd lose LARGEFILE support in any file using
8118 2005-08-25 Bruno Haible <bruno@clisp.org>
8120 * m4/minmax.m4: Require autoconf 2.52.
8121 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
8122 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
8123 alternatives of translit over the alphabet.
8124 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
8126 2005-08-24 Simon Josefsson <jas@extundo.com>
8128 * tests/test-getpass.c: New file.
8130 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8132 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
8133 for GNU regex features.
8135 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8137 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
8138 * lib/regex.h (regerror): Likewise.
8140 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
8141 requires this. (The code never needed it.)
8143 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
8144 All uses of recently-renamed identifiers changed to use the new,
8145 POSIX-compliant names. The code will build and run just fine
8146 without these changes, but it's better to eat our own dog food
8147 and use the standard-conforming names.
8149 * lib/regex.h: Fix a multitude of POSIX name space violations.
8150 These changes have an effect only for programs that define
8151 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
8152 do not change anything for programs compiled in the normal way.
8153 Also, there is no effect on the ABI.
8155 (_REGEX_SOURCE): New macro.
8156 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
8157 defined and _GNU_SOURCE is not; this fixes a name space violation.
8159 Rename the following macros to obey POSIX requirements.
8160 The old names are still visible as macros if _REGEX_SOURCE is defined.
8161 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
8162 RE_BACKSLASH_ESCAPE_IN_LISTS.
8163 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
8164 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
8165 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
8166 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
8167 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
8168 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
8169 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
8170 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
8171 (REG_INTERVALS): renamed from RE_INTERVALS.
8172 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
8173 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
8174 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
8175 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
8176 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
8177 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
8178 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
8179 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
8180 RE_UNMATCHED_RIGHT_PAREN_ORD.
8181 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
8182 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
8183 (REG_DEBUG): renamed from RE_DEBUG.
8184 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
8185 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
8186 unusual, since we can't clash with the POSIX REG_ICASE.
8187 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
8188 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
8189 (REG_NO_SUB): renamed from RE_NO_SUB.
8190 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
8191 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
8192 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
8193 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
8194 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
8195 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
8196 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
8197 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
8198 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
8199 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
8200 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
8201 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
8202 RE_SYNTAX_POSIX_MINIMAL_BASIC.
8203 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
8204 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
8205 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
8206 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
8207 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
8208 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
8209 (REG_FIXED): Renamed from REGS_FIXED.
8210 (REG_NREGS): Renamed from RE_NREGS.
8212 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
8213 of other REG_* macros, since POSIX says the user is allowed to
8214 #undef these macros selectively.
8216 (reg_errcode_t): Update comment stating what other tables need
8219 Rename the following enum values to obey POSIX requirements.
8220 The old names are still visible as macros.
8221 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
8222 is not defined, since GNU is supposed to be a superset of POSIX as
8223 much as possible, and since we want reg_errcode_t to be a signed
8224 type for implementation consistency.
8225 (_REG_NOERROR): Renamed from REG_NOERROR.
8226 (_REG_NOMATCH): Renamed from REG_NOMATCH.
8227 (_REG_BADPAT): Renamed from REG_BADPAT.
8228 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
8229 (_REG_ECTYPE): Renamed from REG_ECTYPE.
8230 (_REG_EESCAPE): Renamed from REG_EESCAPE.
8231 (_REG_ESUBREG): Renamed from REG_ESUBREG.
8232 (_REG_EBRACK): Renamed from REG_EBRACK.
8233 (_REG_EPAREN): Renamed from REG_EPAREN.
8234 (_REG_EBRACE): Renamed from REG_EBRACE.
8235 (_REG_BADBR): Renamed from REG_BADBR.
8236 (_REG_ERANGE): Renamed from REG_ERANGE.
8237 (_REG_ESPACE): Renamed from REG_ESPACE.
8238 (_REG_BADRPT): Renamed from REG_BADRPT.
8239 (_REG_EEND): Renamed from REG_EEND.
8240 (_REG_ESIZE): Renamed from REG_ESIZE.
8241 (_REG_ERPAREN): Renamed from REG_ERPAREN.
8242 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
8243 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
8244 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
8245 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
8247 (_REG_RE_NAME, _REG_RM_NAME): New macros.
8248 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
8249 changed. But support the old name if the new one is not defined
8250 and if _REGEX_SOURCE.
8252 Change the following member names in struct re_pattern_buffer.
8253 The old names are still supported if !_REGEX_SOURCE.
8254 The new names are always supported, regardless of _REGEX_SOURCE.
8255 (re_buffer): Renamed from buffer.
8256 (re_allocated): Renamed from allocated.
8257 (re_used): Renamed from used.
8258 (re_syntax): Renamed from syntax.
8259 (re_fastmap): Renamed from fastmap.
8260 (re_translate): Renamed from translate.
8261 (re_can_be_null): Renamed from can_be_null.
8262 (re_regs_allocated): Renamed from regs_allocated.
8263 (re_fastmap_accurate): Renamed from fastmap_accurate.
8264 (re_no_sub): Renamed from no_sub.
8265 (re_not_bol): Renamed from not_bol.
8266 (re_not_eol): Renamed from not_eol.
8267 (re_newline_anchor): Renamed from newline_anchor.
8269 Change the following member names in struct re_registers.
8270 The old names are still supported if !_REGEX_SOURCE.
8271 The new names are always supported, regardless of _REGEX_SOURCE.
8272 (rm_num_regs): Renamed from num_regs.
8273 (rm_start): Renamed from start.
8274 (rm_end): Renamed from end.
8276 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
8277 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
8278 Prepend __ to parameter names.
8280 Undo yesterday's changes.
8282 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8284 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which supersedes it.
8285 Add glibc bugs 1237, 1238, 1240. Comment out lib/regex.c.
8287 2005-08-24 Jim Meyering <jim@meyering.net>
8289 Sync from coreutils.
8290 * m4/fcntl-safer.m4: New file.
8292 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
8293 and object files for this module.
8295 2005-08-24 Jim Meyering <jim@meyering.net>
8297 Sync from coreutils.
8298 * lib/fcntl--.h, fcntl-safer.h, open-safer.c: New files.
8300 2005-08-24 Jim Meyering <jim@meyering.net>
8302 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
8303 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
8305 2005-08-24 Jim Meyering <jim@meyering.net>
8307 * modules/fcntl-safer: New module.
8308 * modules/fts (Depends-on): Add fcntl-safer.
8309 * MODULES.html.sh (File descriptor based Input/Output):
8312 2005-08-24 Bruno Haible <bruno@clisp.org>
8314 Support for unit test modules.
8315 * modules/README: Mention tests modules.
8316 * modules/TEMPLATE-TESTS: New file.
8317 * gnulib-tool: New options --extract-tests-module, --with-tests and
8318 --tests-base (unused for the moment).
8319 (testsbase, inctests): New variables.
8320 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
8321 (func_verify_module): Exclude TEMPLATE-TESTS.
8322 (func_verify_nontests_module, func_verify_tests_module): New functions.
8323 (func_get_dependencies): Add implicit dependency for tests modules.
8324 (func_get_tests_module): New function.
8325 (func_modules_transitive_closure): When --with-tests was specified,
8326 include the unit tests as well, unless explicitly avoided.
8327 (func_emit_lib_Makefile_am): Ignore the tests modules here.
8328 (func_emit_tests_Makefile_am): New function.
8329 (func_create_testdir): When --with-tests was specified, emit a
8331 * MODULES.html.sh (Future developments): Update.
8333 2005-08-24 Bruno Haible <bruno@clisp.org>
8335 * modules/tls-tests: New file.
8336 * tests/test-tls.c: New file, from GNU gettext.
8338 2005-08-24 Bruno Haible <bruno@clisp.org>
8340 * modules/lock-tests: New file.
8341 * tests/test-lock.c: New file, from GNU gettext.
8343 2005-08-24 Bruno Haible <bruno@clisp.org>
8345 * lib/lock.h: Add multiple inclusion guard.
8346 * lib/tls.h: Add multiple inclusion guard.
8348 2005-08-24 Bruno Haible <bruno@clisp.org>
8350 * gnulib-tool: Add support for the --aux-dir option to
8351 --create-testdir, --create-megatestdir, --test, --megatest.
8352 (func_create_testdir, func_create_megatestdir): Optionally emit a
8353 AC_CONFIG_AUX_DIR directive.
8354 (create-testdir, create-megatestdir, test, megatest): Provide a
8355 default value for $auxdir.
8357 2005-08-24 Bruno Haible <bruno@clisp.org>
8359 * gnulib-tool (import): Use compound statement instead of subshell
8362 2005-08-24 Bruno Haible <bruno@clisp.org>
8364 * gnulib-tool (import): Change --aux-dir default to "build-aux".
8366 2005-08-24 Bruno Haible <bruno@clisp.org>
8368 * gnulib-tool (func_version): Update.
8370 2005-08-24 Bruno Haible <bruno@clisp.org>
8372 * gnulib-tool (func_import, func_create_testdir,
8373 func_create_megatestdir): Quote all autoconf macro arguments.
8375 2005-08-24 Bruno Haible <bruno@clisp.org>
8377 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
8378 option --force, because --force causes the aclocal.m4 of each
8379 subdirectory to be newer than the corresponding config.h.in.
8381 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8383 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
8384 All contents moved to gl_REGEX.
8385 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
8386 assume that it does.
8388 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8390 * lib/regex.h (REG_NOSYS)
8391 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
8392 Define, since POSIX requires it as of 2001.
8393 (_REG_ENOSYS) [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
8394 New private symbol, used to keep the enum signed in all cases.
8395 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James Youngman
8396 in <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
8398 * lib/regex_internal.c (re_string_skip_chars, register_state):
8400 Remove forward decls; no longer needed now that we use prototypes.
8401 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
8402 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
8403 (clean_state_log_if_needed): Likewise.
8405 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8407 * config/srclist.txt: Add glibc bugs 1231-1233.
8409 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8411 Fix problems reported by Sam Steingold in
8412 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
8413 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
8414 assumed that reg_errcode_t is a signed type, which is not
8415 necessarily true if _XOPEN_SOURCE is not defined.
8416 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type, since
8417 some compilers warn about it otherwise.
8419 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8421 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
8422 (init_word_char, create_initial_state, duplicate_node_closure):
8423 (fetch_token, peek_token_bracket, build_range_exp):
8424 (build_collating_symbol): Remove forward decls; no longer needed
8425 now that we use prototypes.
8428 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
8429 (re_compile_fastmap_iter, regcomp, regerror, regfree):
8430 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
8431 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
8432 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
8433 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
8434 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
8435 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
8436 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
8437 (build_range_exp, build_collating_symbol, parse_bracket_exp):
8438 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
8439 (build_charclass, build_charclass_op, fetch_number, create_tree):
8440 (create_token_tree, mark_opt_subexp, duplicate_tree):
8441 Use prototypes rather than old-style definitions.
8443 * lib/regex_internal.c:
8444 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
8445 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
8446 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
8447 (re_string_reconstruct, re_string_peek_byte_case):
8448 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
8449 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
8450 (re_node_set_init_copy, re_node_set_add_intersect):
8451 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8452 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8453 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
8454 (re_acquire_state, re_acquire_state_context, register_state):
8455 (create_ci_newstate, create_cd_newstate, free_state):
8457 * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2):
8458 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
8459 (re_search_internal, prune_impossible_nodes):
8460 (acquire_init_state_context, check_matching, static):
8461 (check_halt_node_context, check_halt_state_context, proceed_next_node):
8462 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
8463 (update_regs, sift_states_backward, build_sifted_states):
8464 (clean_state_log_if_needed, merge_state_array):
8465 (update_cur_sifted_state, add_epsilon_src_nodes):
8466 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
8467 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
8468 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
8469 (find_recover_state, check_subexp_matching_top, transit_state_mb):
8470 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
8471 (check_arrival, check_arrival_add_next_nodes):
8472 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
8473 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
8474 (check_node_accept_bytes, check_node_accept, extend_buffers):
8475 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
8476 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
8480 * lib/regex_internal.h:
8481 (re_string_allocate, re_string_construct, re_string_reconstruct):
8482 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
8483 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
8484 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
8485 (re_string_context_at, re_string_peek_byte_case):
8486 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
8487 is defined, since we now use prototypes always.
8489 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
8490 C89 or better. All uses removed.
8492 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8494 * config/srclist.txt: Add glibc bugs 1220-1227.
8496 2005-08-20 Jim Meyering <jim@meyering.net>
8498 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
8499 of unused local, dfa.
8501 2005-08-20 Bruno Haible <bruno@clisp.org>
8503 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
8505 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8507 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
8508 (re_node_set_insert_last, re_dfa_add_node):
8509 Rename local variables to avoid GCC shadowing warnings.
8511 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8513 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
8514 [defined lint]: Suppress bogus uninitialized-variable warnings.
8516 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
8517 and let the caller return REG_ESPACE if out of space. This
8518 removes an uninitialied-variable warning with GCC 4.0.1, and also
8519 avoids taking the address of a local variable. All callers
8522 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8524 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
8525 $LIBCSRC/posix/regexec.c.
8526 Add glibc bug 1217 for regcomp.c.
8528 2005-08-19 Jim Meyering <jim@meyering.net>
8530 * lib/regexec.c (proceed_next_node): Redo local variables to
8531 avoid GCC shadowing warnings.
8533 2005-08-18 Bruno Haible <bruno@clisp.org>
8535 * lib/strstr.c (strstr): Fix return value in multibyte case.
8536 * lib/strcasestr.c (strcasestr): Likewise.
8538 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
8540 * lib/regex.h: Remove useless space-before-tab. From coreutils.
8542 2005-08-17 Jim Meyering <jim@meyering.net>
8544 Make the %s format (seconds since the epoch) work for a negative
8545 number and when used with a zero-padded field width, e.g. %015s.
8547 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
8548 label so that it precedes the code to set `digits'. Otherwise,
8549 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
8550 print `00-22'. Now, it prints `-0022', as it should.
8552 2005-08-17 Bruno Haible <bruno@clisp.org>
8554 * modules/strstr (Files): Add m4/mbrtowc.m4.
8555 (Depends-on): Add mbuiter.
8557 2005-08-17 Bruno Haible <bruno@clisp.org>
8559 * modules/strcasestr: New file.
8560 * MODULES.html.sh (String handling, based on ANSI C 89): Add
8563 2005-08-17 Bruno Haible <bruno@clisp.org>
8565 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
8567 2005-08-17 Bruno Haible <bruno@clisp.org>
8569 * modules/mbuiter: New file.
8570 * MODULES.html.sh (Extended multibyte and wide character utilities):
8573 2005-08-17 Bruno Haible <bruno@clisp.org>
8575 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
8576 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
8578 2005-08-17 Bruno Haible <bruno@clisp.org>
8580 * m4/strcasestr.m4: New file.
8582 2005-08-17 Bruno Haible <bruno@clisp.org>
8584 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
8585 * lib/strstr.c: Completely rewritten, with multibyte locale support.
8587 2005-08-17 Bruno Haible <bruno@clisp.org>
8589 * lib/strcasestr.h: New file.
8590 * lib/strcasestr.c: New file.
8592 2005-08-17 Bruno Haible <bruno@clisp.org>
8594 * lib/strcasecmp.c: Use mbuiter.h.
8596 2005-08-17 Bruno Haible <bruno@clisp.org>
8598 * lib/mbuiter.h: New file.
8600 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
8602 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
8603 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
8604 and gl_GETOPT are both invoked via different paths (as happens
8605 with GNU tar CVS because it uses both argp and getopt), the former
8608 2005-08-16 Bruno Haible <bruno@clisp.org>
8610 * modules/tls: New file.
8611 * MODULES.html.sh (Multithreading): Add tls.
8613 2005-08-16 Bruno Haible <bruno@clisp.org>
8615 * modules/strnlen1: New file.
8616 * MODULES.html.sh (String handling): Add strnlen1.
8618 2005-08-16 Bruno Haible <bruno@clisp.org>
8620 * modules/strcase (Files): Add m4/mbrtowc.m4.
8621 (Depends-on): Add strnlen1, mbchar.
8623 2005-08-16 Bruno Haible <bruno@clisp.org>
8625 * modules/mbiter: New file.
8626 * MODULES.html.sh (Extended multibyte and wide character utilities):
8629 2005-08-16 Bruno Haible <bruno@clisp.org>
8631 * modules/mbfile: New file.
8632 * MODULES.html.sh (Extended multibyte and wide character utilities):
8635 2005-08-16 Bruno Haible <bruno@clisp.org>
8637 * modules/mbchar: New file.
8638 * MODULES.html.sh (Extended multibyte and wide character utilities):
8641 2005-08-16 Bruno Haible <bruno@clisp.org>
8643 * m4/tls.m4: New file, from GNU gettext.
8645 2005-08-16 Bruno Haible <bruno@clisp.org>
8647 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function always.
8648 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
8650 2005-08-16 Bruno Haible <bruno@clisp.org>
8652 * m4/mbiter.m4: New file.
8654 2005-08-16 Bruno Haible <bruno@clisp.org>
8656 * m4/mbfile.m4: New file.
8658 2005-08-16 Bruno Haible <bruno@clisp.org>
8660 * m4/mbchar.m4: New file.
8662 2005-08-16 Bruno Haible <bruno@clisp.org>
8664 * lib/tls.h: New file, from GNU gettext.
8665 * lib/tls.c: New file, from GNU gettext.
8667 2005-08-16 Bruno Haible <bruno@clisp.org>
8669 * lib/strnlen1.h: New file.
8670 * lib/strnlen1.c: New file.
8672 2005-08-16 Bruno Haible <bruno@clisp.org>
8674 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
8676 (mbi_avail, mbi_advance): Let the iteration end before the terminating
8677 NUL byte, not after it.
8679 2005-08-16 Bruno Haible <bruno@clisp.org>
8681 * lib/strcase.h (strcasecmp): Add note in comments.
8682 * lib/strncasecmp.c: Use code from strcasecmp.c.
8683 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
8684 (strcasecmp): Work correctly in multibyte locales.
8686 2005-08-16 Bruno Haible <bruno@clisp.org>
8688 * lib/mbiter.h: New file.
8690 2005-08-16 Bruno Haible <bruno@clisp.org>
8692 * lib/mbfile.h: New file.
8694 2005-08-16 Bruno Haible <bruno@clisp.org>
8696 * lib/mbchar.h: New file.
8697 * lib/mbchar.c: New file.
8699 2005-08-16 Bruno Haible <bruno@clisp.org>
8701 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
8702 the valid ones. Makes the comparison operations transitive:
8703 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
8704 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
8706 2005-08-15 Simon Josefsson <jas@extundo.com>
8708 * modules/ssize_t (License): Change to 'unlimited'.
8710 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
8712 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
8714 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
8715 Add comments for each pending glibc patch.
8717 2005-08-15 Bruno Haible <bruno@clisp.org>
8719 * lib/regex.h (__restrict_arr): Don't define to __restrict if __cplusplus
8722 2005-08-14 Jim Meyering <jim@meyering.net>
8724 Sync from coreutils.
8726 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
8727 Use the hash-table-based cycle-detection code not just when
8728 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
8729 Reported by James Youngman in
8730 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
8731 * lib/fts_.h: Mention that with FTS_LOGICAL, we use FTS_TIGHT_CYCLE_CHECK.
8732 * lib/fts.c (fts_cross_check) [FTS_DEBUG]: s/active_dir_ht/fts_cycle.ht/.
8733 This lets us compile with -DFTS_DEBUG, once again.
8734 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
8735 * lib/fts.c (fd_safer): Remove decl.
8736 Include fcntl--.h rather than unistd-safer.h
8737 (fts_safe_changedir): Don't call fd_safer; no longer needed
8738 now that we include fcntl--.h.
8740 2005-08-12 Simon Josefsson <jas@extundo.com>
8742 * modules/getndelim2: Use ssize_t module.
8743 * modules/getnline: Likewise.
8744 * modules/safe-read: Likewise.
8745 * modules/xreadlink: Likewise.
8747 * modules/ssize_t: New file.
8749 2005-08-12 Simon Josefsson <jas@extundo.com>
8751 * m4/readline.m4: Look for termcap, curses or ncurses if required.
8753 2005-08-12 Simon Josefsson <jas@extundo.com>
8755 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8758 2005-08-12 Simon Josefsson <jas@extundo.com>
8760 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
8761 readline, getdelim and check_version.
8762 (Support for systems lacking ISO C 99: Sizes of integer types):
8765 2005-08-12 Bruno Haible <bruno@clisp.org>
8767 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
8769 2005-08-11 Simon Josefsson <jas@extundo.com>
8771 * modules/readline: New file.
8773 * modules/strnlen (Files): Add strnlen.h.
8775 2005-08-11 Simon Josefsson <jas@extundo.com>
8777 * m4/readline.m4: New file.
8779 2005-08-11 Simon Josefsson <jas@extundo.com>
8781 * lib/readline.h, readline.c: New file.
8783 2005-08-11 Simon Josefsson <jas@extundo.com>
8785 * doc/gnulib.texi (Initial import, Finishing touches): Mention
8788 2005-08-11 Bruno Haible <bruno@clisp.org>
8790 * lib/strnlen.h (strnlen): Change parameter name to match comment.
8792 2005-08-10 Stepan Kasal <kasal@ucw.cz>
8794 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
8796 2005-08-10 Simon Josefsson <jas@extundo.com>
8798 * tests/test-iconvme.c: New file.
8800 2005-08-10 Simon Josefsson <jas@extundo.com>
8802 * m4/strnlen.m4: New file.
8804 * m4/strndup.m4: Don't check for strnlen declaration, done in
8807 2005-08-10 Simon Josefsson <jas@extundo.com>
8809 * lib/strndup.c: Use strnlen.h.
8811 * lib/strnlen.h: New file.
8813 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8817 2005-08-02 Simon Josefsson <jas@extundo.com>
8819 * modules/readline: New file.
8821 2005-08-02 Simon Josefsson <jas@extundo.com>
8823 * modules/getdelim: New file.
8825 * modules/getline: Rewrite, don't use getndelim2.
8827 2005-08-02 Simon Josefsson <jas@extundo.com>
8829 * m4/getline.m4: Separate out getdelim stuff into separate module.
8831 * m4/getdelim.m4: New file.
8833 2005-08-02 Simon Josefsson <jas@extundo.com>
8835 * lib/getline.h, getline.c: Rewrite.
8837 * lib/getdelim.h, getdelim.c: New files, ported from glibc.
8839 2005-07-31 Bruno Haible <bruno@clisp.org>
8841 * lib/lock.h (gl_lock_initializer): New macro.
8842 (gl_lock_define_initialized): Use it.
8843 (gl_rwlock_initializer): New macro.
8844 (gl_rwlock_define_initialized): Use it.
8845 (gl_recursive_lock_initializer): New macro.
8846 (gl_recursive_lock_define_initialized): Use it.
8848 2005-07-30 Karl Berry <karl@gnu.org>
8850 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
8851 Report from Ben Pfaff, regarding getopt.
8853 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
8855 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
8857 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
8858 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
8859 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
8860 (gl_GETOPT): Use the new macros. Most of the implementation
8861 is moved to the new macros. This is for programs like Emacs
8862 that don't want all the functionality of gl_GETOPT.
8864 2005-07-26 Bruno Haible <bruno@clisp.org>
8866 * m4/lock.m4: Update from GNU gettext.
8868 2005-07-26 Bruno Haible <bruno@clisp.org>
8870 * lib/lock.h: Update from GNU gettext.
8871 * lib/lock.c: Update from GNU gettext.
8873 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
8875 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
8876 obsolescent AC_TRY_RUN. Include the default includes files, for 'exit'.
8878 2005-07-24 Bruno Haible <bruno@clisp.org>
8880 * modules/visibility: New file.
8881 * MODULES.html.sh (Misc): Add visibility.
8883 2005-07-24 Bruno Haible <bruno@clisp.org>
8885 * m4/visibility.m4: New file.
8887 2005-07-24 Bruno Haible <bruno@clisp.org>
8889 * doc/visibility.texi: New file.
8891 2005-07-22 Bruno Haible <bruno@clisp.org>
8893 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
8894 $(ALLOCA_H), redundant through BUILT_SOURCES.
8895 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
8896 redundant through BUILT_SOURCES.
8897 * modules/byteswap (Makefile.am): Remove explicit dependency on
8898 $(BYTESWAP_H), redundant through BUILT_SOURCES.
8899 * modules/fnmatch (Makefile.am): Remove explicit dependency on
8900 $(FNMATCH_H), redundant through BUILT_SOURCES.
8901 * modules/getopt (Makefile.am): Remove explicit dependency on
8902 $(GETOPT_H), redundant through BUILT_SOURCES.
8903 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
8904 redundant through BUILT_SOURCES.
8905 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
8906 redundant through BUILT_SOURCES.
8907 * modules/stdbool (Makefile.am): Remove explicit dependency on
8908 $(STDBOOL_H), redundant through BUILT_SOURCES.
8909 * modules/stdint (Makefile.am): Remove explicit dependency on
8910 $(STDINT_H), redundant through BUILT_SOURCES.
8911 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
8912 Remove explicit dependency on $(SYSEXITS_H).
8913 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
8915 2005-07-18 Simon Josefsson <jas@extundo.com>
8917 * lib/check-version.c (check_version): Accept identical versions too.
8919 2005-07-18 Bruno Haible <bruno@clisp.org>
8921 * modules/lock: New file.
8922 * MODULES.html.sh (Multithreading): New section.
8924 2005-07-18 Bruno Haible <bruno@clisp.org>
8926 * m4/lock.m4: New file, from GNU gettext.
8928 2005-07-18 Bruno Haible <bruno@clisp.org>
8930 * lib/lock.h: New file, from GNU gettext.
8931 * lib/lock.c: New file, from GNU gettext.
8933 2005-07-18 Bruno Haible <bruno@clisp.org>
8935 * lib/lock.h (gl_once_t): New type.
8936 (gl_once_define, gl_once): New macros.
8937 * lib/lock.c (fresh_once): New variable.
8938 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
8941 2005-07-16 Simon Josefsson <jas@extundo.com>
8943 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
8944 workaround, suggested by Bruno.
8946 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
8948 * modules/xalloc (Depends-on): Add xalloc-die.
8949 * modules/xvasprintf (Depends-on): Add xalloc-die.
8951 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
8953 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
8954 with a minor change.
8956 2005-07-15 Bruno Haible <bruno@clisp.org>
8958 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
8959 When using lib/poll.c, define poll as rpl_poll.
8961 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
8963 * modules/argp (Depends-on): Remove unlocked-io.
8965 2005-07-14 Derek Price <derek@ximbiot.com>
8967 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check for
8970 2005-07-14 Bruno Haible <bruno@clisp.org>
8972 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
8973 Instead, test for *_unlocked function declarations directly.
8975 2005-07-11 Simon Josefsson <jas@extundo.com>
8977 * modules/size_max: New file.
8979 * modules/xsize: Depend on size_max module for size_max.m4.
8981 2005-07-11 Simon Josefsson <jas@extundo.com>
8983 * lib/size_max.h: New file.
8985 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
8987 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
8988 copyright symbol and the year.
8989 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
8990 (version_etc_va): Use parameterized copyright notice.
8991 Reword to conform to the current GNU coding standards.
8993 2005-07-11 Karl Berry <karl@gnu.org>
8995 * doc/gnulib.texi (Quoting): new node.
8996 (Initial import): more info, from Patrice.
8998 2005-07-11 Bruno Haible <bruno@clisp.org>
9000 * gnulib-tool (func_usage): Document option --avoid.
9001 (Command line options): Handle --avoid.
9002 (func_acceptable): New function.
9003 (func_modules_transitive_closure): Use it.
9005 2005-07-11 Bruno Haible <bruno@clisp.org>
9007 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
9008 Reported by Jim Meyering.
9010 2005-07-10 Bruno Haible <bruno@clisp.org>
9012 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
9013 Needed when size_t is smaller than 'unsigned int'.
9014 Reported by Paul Eggert.
9016 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
9018 * modules/argp (Depends-on): Add unlocked-io
9020 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
9022 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
9025 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
9027 * config/srclist.txt: Comment out regcomp.c, since we have a porting fix
9030 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
9031 and Paul Eggert <eggert@cs.ucla.edu>
9033 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
9034 in wint_t, not wchar_t. Remove now-unnecessary cast.
9036 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9038 * modules/regex (Files): Add lib/regex_internal.c,
9039 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
9040 (Depends-on): Add extensions.
9041 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
9043 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9045 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf.
9046 * m4/same.m4 (gl_SAME): Likewise.
9047 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
9049 * m4/regex.m4: Adjust to new libc regex implementation.
9050 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
9051 all the .c and .h parts of (the new) regex.
9052 Quote the m4 stuff better.
9053 Check for RE_ICASE bug of old gnulib.
9054 Check for REG_STARTEND of recent libc.
9055 Rename local variables from jm_* to gl_*.
9056 Quote operand of "test -f".
9057 Say "recent enough" version of libc, not "version 2".
9058 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
9059 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
9060 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
9061 Remove check for btowc, isascii.
9062 Require AM_LANGINFO_CODESET.
9064 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9066 * lib/regex.c, regex.h: Sync from libc.
9067 * lib/regcomp.c, regexec_internal.c, regex_internal.h, regexec.c:
9068 New files, synced from libc, except that regex_internal.h
9069 currently has a small porting fix.
9071 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9073 * config/srclist.txt: Add regcomp.c, regex.c, regex.h, regex_internal.c,
9075 Add regex_internal.h too, but as a comment, since the libc version
9076 is currently broken in gnulib mode.
9078 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
9080 Support programs like Emacs that use gnulib but not gettext.
9081 * MODULES.html.sh (Internationalization functions): Add gettext-h.
9082 * modules/gettext-h: New file.
9083 * modules/gettext (Files): Remove lib/gettext.h.
9084 (Depends-on): Add gettext-h.
9085 (Makefile.am): Remove lib_SOURCES.
9086 * modules/argmatch, modules/c-stack, modules/closeout:
9087 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
9088 * modules/execute, modules/file-type, modules/getaddrinfo:
9089 * modules/getopt, modules/human, modules/javacomp:
9090 * modules/javaexec, modules/mkdir-p, modules/obstack:
9091 * modules/openat, modules/pagealign_alloc, modules/pipe:
9092 * modules/quotearg, modules/regex, modules/rpmatch:
9093 * modules/unicodeio, modules/userspec, modules/version-etc:
9094 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
9096 Depend on gettext-h, not gettext.
9098 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
9100 * gnulib-tool (func_import): Add support for 'public domain' license.
9101 * modules/alloca, modules/atexit, modules/memmove:
9102 Now public domain, not GPL.
9103 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
9104 * modules/realloc, modules/strerror, modules/strtod:
9107 2005-07-05 Bruno Haible <bruno@clisp.org>
9109 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
9110 autoconf CVS. Needed for mingw.
9112 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9114 Remove the dependency of the strftime module on the tzset module.
9115 * modules/strftime (Depends-on): Remove dependency on tzset.
9117 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9119 Remove the dependency of the strftime module on the tzset module.
9120 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require gl_FUNC_TZSET_CLOBBER.
9122 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9124 Remove the dependency of the strftime module on the tzset module.
9125 * lib/strftime.c (my_strftime) [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
9126 Copy the input structure, to work around some of the bug with
9127 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
9128 Solaris releases, you should also use the tzset module, but we won't
9129 require it as a dependency any more since we don't want LGPLed code
9130 to depend on GPLed code.
9132 2005-07-02 Jim Meyering <jim@meyering.net>
9134 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
9135 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
9136 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
9137 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
9139 2005-07-02 Jim Meyering <jim@meyering.net>
9141 * lib/backupfile.c (backup_args): Change a `0' to NULL.
9143 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
9145 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
9146 declares only 'struct timespec;' (!).
9148 2005-07-01 Jim Meyering <jim@meyering.net>
9150 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
9151 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
9152 * lib/save-cwd.c, tempname.c:
9153 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
9154 and don't include <sys/file.h>).
9156 2005-06-29 Jim Meyering <jim@meyering.net>
9158 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
9159 type name. Use the variable name instead.
9160 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname): Likewise.
9162 2005-06-28 Simon Josefsson <jas@extundo.com>
9164 * modules/check-version (Files): Add check-version.m4.
9166 2005-06-28 Simon Josefsson <jas@extundo.com>
9168 * m4/check-version.m4: New file, suggested by Jim Meyering
9171 2005-06-28 Simon Josefsson <jas@extundo.com>
9173 * lib/check-version.h, check-version.c: New files.
9175 2005-06-28 Simon Josefsson <jas@extundo.com>
9177 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
9178 collision with global variable. Better indentation. Don't
9179 increment buffer pointer beyond buffer end. Based on comments
9180 from Paul Eggert <eggert@cs.ucla.edu>.
9182 * lib/base64.h: Indent.
9184 2005-06-28 Simon Josefsson <jas@extundo.com>
9186 * doc/gnulib.texi (Library version handling): New section.
9188 2005-06-28 Jim Meyering <jim@meyering.net>
9190 * check-module (find_included_lib_files): Hard-code another
9191 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
9192 but modules/fts-lgpl (correctly) does not list those files.
9194 * modules/canonicalize (Files): Add lib/pathmax.h.
9196 2005-06-25 Simon Josefsson <jas@extundo.com>
9198 * modules/check-version: New file.
9200 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
9202 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
9203 initializer of struct addrinfo, as an indication that we don't
9204 care how many members the structure has.
9206 2005-06-24 Derek Price <derek@ximbiot.com>
9207 and Bruno Haible <bruno@clisp.org>
9209 Remove stat module & update lstat.
9210 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
9211 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9212 * m4/stat.m4: Remove this file.
9214 2005-06-24 Derek Price <derek@ximbiot.com>
9215 and Bruno Haible <bruno@clisp.org>
9217 Remove stat module & update lstat.
9218 * lib/stat.c: Remove this file...
9219 (slash_aware_lstat): ...moving this content and its support...
9220 * lib/lstat.c (rpl_lstat): ...into here.
9221 * lib/lstat.h: New file.
9223 2005-06-24 Derek Price <derek@ximbiot.com>
9224 and Bruno Haible <bruno@clisp.org>
9226 Remove stat module & update lstat.
9227 * config/srclist.txt (libc sources): Remove stat.
9229 2005-06-24 Derek Price <derek@ximbiot.com>
9230 and Bruno Haible <bruno@clisp.org>
9232 Remove stat module & update lstat.
9233 * MODULES.html.sh (stat): Remove.
9234 * MODULES.html: Regenerated.
9235 * modules/lstat (Description): Correct function name.
9236 (Files): Add "lstat.h".
9237 (Depends-on): Remove stat, add xalloc, stat-macros.
9238 * modules/stat: Remove this file.
9239 (Include): Add "lstat.h", remove <sys/stat.h>.
9241 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
9243 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
9244 (ranged_convert): Don't save conversion in a temporary struct.
9245 This causes a warning with GCC 4.0.0, and anyway in the typical
9246 case it's not worth the extra 100 bytes or so of code.
9247 (ranged_convert, __mktime_internal): When calling a function via a
9248 pointer P, use P () rather than (*P) (), as we now assume C89 or
9251 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
9253 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
9254 "who -r" failed to give output. Problem reported by Tim Waugh.
9256 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
9257 (xcalloc): Use it to avoid needless tests.
9258 Problem reported by Jim Meyering.
9260 2005-06-20 Derek Price <derek@ximbiot.com>
9262 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
9263 unnecessary for Autoconfs > 2.59c.
9265 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
9267 * lib/argp.h (__option_is_short): Check upper limit of
9268 __key. Isprint() requires its argument to have the value
9269 of an unsigned char or EOF.
9271 2005-06-16 Jim Meyering <jim@meyering.net>
9273 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
9274 when either N or S is zero.
9276 2005-06-16 Derek Price <derek@ximbiot.com>
9278 * m4/bison.m4: Declare YACC & YFLAGS precious.
9280 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
9282 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
9283 multibyte string or pattern, fall back on unibyte matching.
9284 Problem reported by James Youngman.
9286 2005-06-08 Bruno Haible <bruno@clisp.org>
9288 * modules/csharpcomp: New file.
9289 * MODULES.html.sh (C#): Add csharpcomp.
9291 2005-06-08 Bruno Haible <bruno@clisp.org>
9293 * m4/csharpcomp.m4: New file, from GNU gettext.
9295 2005-06-08 Bruno Haible <bruno@clisp.org>
9297 * lib/csharpcomp.h: New file, from GNU gettext.
9298 * lib/csharpcomp.c: New file, from GNU gettext.
9299 * lib/csharpcomp.sh.in: New file, from GNU gettext.
9301 2005-06-08 Bruno Haible <bruno@clisp.org>
9303 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
9306 2005-06-07 Derek Price <derek@ximbiot.com>
9309 * lib/glob_.h: Indent nested #ifdef.
9311 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9313 Sync from coreutils.
9314 Use "file name" when talking about file names, instead of "filename"
9315 or "path", as per the GNU coding standards.
9316 * lib/mkdir-p.c: Renamed from makepath.c.
9317 (make_dir_parents): Renamed from make_path. All callers changed.
9318 * lib/mkdir-p.h: Likewise. All includers changed.
9319 * lib/filenamecat.c: Renamed from path-concat.c.
9320 (file_name_concat): Renamed from path_concat. All callers changed.
9321 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
9322 * lib/filenamecat.h: Likewise. All includers changed.
9323 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
9324 in comments or local variable names.
9325 * lib/basename.c: Likewise.
9326 * lib/canonicalize.c, canonicalize.h: Likewise.
9327 * lib/dirname.c, dirname.h: Likewise.
9328 * lib/euidaccess.c: Likewise.
9329 * lib/exclude.c: Likewise
9330 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
9331 * lib/fsusage.c, fsuage.h: Likewise.
9332 * lib/fts.c, fts_.h: Likewise.
9333 * lib/getcwd.c: Likewise.
9334 * lib/getloadavg.c: Likewise.
9335 * lib/mkstemp.c: Likewise.
9336 * lib/mountlist.c, mountlist.h: Likewise.
9337 * lib/openat.c, openat.h: Likewise.
9338 * lib/readlink-stub.c: Likewise.
9339 * lib/readutmp.c, readutmp.h: Likewise.
9340 * lib/rename.c: Likewise.
9341 * lib/rmdir.c: Likewise.
9342 * lib/same.c: Likewise.
9343 * lib/savedir.c: Likewise.
9344 * lib/stripslash.c: Likewise.
9345 * lib/tempname.c: Likewise.
9346 * lib/xreadlink.c: Likewise.
9347 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
9349 * lib/exclude.h: Likewise.
9351 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
9352 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9353 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
9354 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9355 * lib/pathmax.h: Include <limits.h> unconditionally, since other
9356 files have been getting away with it for years (MORE/BSD 4.3
9358 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
9359 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9361 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
9362 Define to 256, not 255, as per modern POSIX.
9364 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9366 Sync from coreutils.
9367 Use "file name" when talking about file names, instead of "filename"
9368 or "path", as per the GNU coding standards.
9369 * MODULES.html.sh: mkdir-p renamed from makepath.
9370 filenamecat renamed from path-concat.
9371 * modules/filenamecat: Renamed from modules/path-concat.
9372 (Files): filenamecat.h and filenamecat.c renamed from
9373 path-concat.h and path-concat.c.
9374 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
9375 (Include): filenamecat.h, not path-concat.h.
9376 * modules/mkdir-p: Renamed from modules/makepath.
9377 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and makepath.c.
9378 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
9379 (Include): mkdir-p.h, not makepath.h.
9381 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9383 Sync from coreutils.
9384 * m4/mkdir-p.m4: Renamed from makepath.m4.
9385 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
9386 Rename files from makepath.c to mkdir-p.c, and from
9387 makepath.h to mkdir-p.h.
9388 * m4/filenamecat.m4: Renamed from path-concat.m4.
9389 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
9390 Rename files from path-concat.c to filenamecat.c,
9391 and from path-concat.h to filenamecat.h.
9392 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
9393 "file name" in local variables or comments.
9394 * m4/rename.m4: Likewise.
9396 2005-06-01 Bruno Haible <bruno@clisp.org>
9398 * modules/csharpexec: New file.
9399 * MODULES.html.sh (C#): New section.
9401 2005-06-01 Bruno Haible <bruno@clisp.org>
9403 * m4/csharp.m4: New file, from GNU gettext.
9404 * m4/csharpexec.m4: New file, from GNU gettext.
9406 2005-06-01 Bruno Haible <bruno@clisp.org>
9408 * lib/csharpexec.h: New file, from GNU gettext.
9409 * lib/csharpexec.c: New file, from GNU gettext.
9410 * lib/csharpexec.sh.in: New file, from GNU gettext.
9412 2005-05-31 Derek Price <derek@ximbiot.com>
9413 Paul Eggert <eggert@cs.ucla.edu>
9416 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
9418 2005-05-31 Derek Price <derek@ximbiot.com>
9419 Paul Eggert <eggert@cs.ucla.edu>
9422 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
9424 2005-05-29 Derek Price <derek@ximbiot.com>
9426 * config/srclist.txt (glob_.h, glob.c): Add these files.
9428 2005-05-29 Derek Price <derek@ximbiot.com>
9430 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
9431 * modules/glob: New file.
9432 * modules/getlogin_r: Add link to POSIX spec in description.
9434 2005-05-29 Derek Price <derek@ximbiot.com>
9435 Paul Eggert <eggert@cs.ucla.edu>
9437 * m4/glob.m4: New file.
9439 2005-05-29 Derek Price <derek@ximbiot.com>
9440 Paul Eggert <eggert@cs.ucla.edu>
9442 * lib/glob_.h, glob.c: New files.
9444 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9446 * modules/fts (Files): Remove m4/inttypes-pri.m4.
9447 * modules/fts-lgpl (Depends-on): Remove gettext.
9449 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9451 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
9452 and don't require gt_INTTYPES_PRI.
9454 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9456 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
9458 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
9459 the configuration hassle isn't worth it.
9460 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
9461 (LONGEST_MODIFIER, PRIuMAX): Remove.
9463 2005-05-27 Bruno Haible <bruno@clisp.org>
9465 * lib/getlogin_r.h: Remove second include of <stddef.h>.
9467 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
9469 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
9470 _POSIX_PTHREAD_SEMANTICS for Solaris.
9472 2005-05-25 Derek Price <derek@ximbiot.com>
9474 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
9476 2005-05-25 Derek Price <derek@ximbiot.com>
9477 Paul Eggert <eggert@cs.ucla.edu>
9479 * modules/getlogin_r: New files.
9481 2005-05-25 Derek Price <derek@ximbiot.com>
9482 Paul Eggert <eggert@cs.ucla.edu>
9484 * m4/getlogin_r.m4: New files.
9486 2005-05-25 Derek Price <derek@ximbiot.com>
9487 Paul Eggert <eggert@cs.ucla.edu>
9489 * lib/getlogin_r.c, getlogin_r.h: New files.
9491 2005-05-25 Bruno Haible <bruno@clisp.org>
9492 Derek Price <derek@ximbiot.com>
9494 * lib/getlogin_r.h: Simplify API documentation.
9496 2005-05-23 Derek Price <derek@ximbiot.com>
9498 * modules/minmax (Files): Add m4/minmax.m4.
9499 (configure.ac): Add gl_MINMAX.
9501 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
9503 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
9504 so that unistd-safer.h (GPL'ed code) need not be included.
9506 2005-05-22 Bruno Haible <bruno@clisp.org>
9508 * m4/minmax.m4: New file.
9509 Based on a patch by Derek Price <derek@ximbiot.com>.
9511 2005-05-22 Bruno Haible <bruno@clisp.org>
9513 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
9514 (INT64_MIN): Fix definition.
9515 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
9517 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
9518 NEED_SIGNED_INT_TYPES.
9520 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
9521 HAVE_SYSTEM_INTTYPES.
9523 2005-05-22 Bruno Haible <bruno@clisp.org>
9525 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
9526 Also include <sys/param.h> if it defines MIN, MAX.
9527 Based on a patch by Derek Price <derek@ximbiot.com>.
9529 2005-05-21 Jim Meyering <jim@meyering.net>
9531 * modules/fts (Files): Add m4/inttypes-pri.m4.
9532 (Depends-on): Add lstat and remove gettext. Alphabetize.
9534 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9537 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
9538 (setup_dir, free_dir): New functions.
9539 (enter_dir, leave_dir): Define trivial
9540 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
9541 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
9542 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
9543 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
9544 Move to fts-cycle.c.
9545 (fts_open): Use setup_dir.
9546 (fts_close): Use free_dir.
9547 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
9548 This adds a label and some gotos, but the alternatives were messier.
9549 Check for memory allocation failure when entering a dir.
9550 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
9551 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
9552 (FTS): New member fts_cycle, that is a union that contains the
9553 old active_dir_ht and cycle_state. All uses changed to mention
9554 fts_cycle.ht and fts_cycle.state.
9555 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
9556 fts.c, with the following changes:
9557 (setup_dir, free_dir): New functions.
9558 (enter_dir): Now returns bool. Return true if successful, false
9559 if memory exhausted. All callers changed.
9560 Do not bother partly cleaning up on
9561 memory allocation failure; that is free_dir's job.
9562 However, free ad if hash_insert fails, to avoid memory leak.
9563 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
9564 fts->fts_options to see which union member to use.
9566 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9568 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
9569 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
9571 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9573 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
9575 2005-05-20 Jim Meyering <jim@meyering.net>
9577 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
9578 Now a macro, to pacify GCC.
9580 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
9582 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
9585 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
9587 * lib/chown.c (rpl_chown): Return -1 on failure.
9589 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
9591 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
9592 Don't check for stddef.h.
9593 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
9594 don't use its results.
9595 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
9596 since we include them unconditionally. Don't require
9597 AM_STDBOOL_H, since stdbool is a prerequisite.
9598 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
9599 since we assume C89 or better.
9600 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
9601 as we don't use their results.
9602 Don't check for fchdir, memmove, memset, strrchr, as we use
9603 them unconditionally.
9604 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
9605 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
9607 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
9609 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
9610 Include <stddef.h> unconditionally, since we assume C89 now.
9611 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
9612 * lib/fts.c: Include fts_.h first, to check interface.
9613 Do not include intprops.h; no longer needed.
9614 Include cycle-check.h and hash.h, since fts_.h no longer does.
9615 Remove unnecessary casts of closedir to void.
9616 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
9617 decide whether to decrement nlinks.
9618 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
9619 (FTS): Use struct hash_table * instead of Hash_table, so that
9620 we no longer need to include hash.h here.
9622 2005-05-18 Jim Meyering <jim@meyering.net>
9624 * modules/dirfd (License): Change to LGPL. Most of the code
9625 is already in the public domain.
9627 2005-05-18 Jim Meyering <jim@meyering.net>
9629 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
9630 Reported by Yoann Vandoorselaere.
9632 2005-05-17 Jim Meyering <jim@meyering.net>
9634 * m4/fts.m4: New file, from coreutils.
9636 2005-05-17 Jim Meyering <jim@meyering.net>
9638 * lib/fts.c, fts_.h: New files, from coreutils.
9640 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9642 Sync from coreutils.
9643 * m4/unlinkdir.m4: New file.
9645 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9647 Sync from coreutils.
9648 * lib/unlinkdir.c, unlinkdir.h: New files.
9649 * lib/gethrxtime.c, gethrxtime.h, getpass.h, mountlist.h, path-concat.c,
9650 regex.h, unlocked-io.h, xtime.h:
9651 White space changes only.
9652 * lib/makepath.c (make_path): Port to hosts where leading "//" is special.
9653 * lib/yesno.c: Include getline.h, not ctype.h.
9654 (yesno): Don't remove leading white space; POSIX doesn't allow it.
9655 Use getline to remove arbitrary restriction on response length.
9657 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9659 * config/srclist-update: Spell out "Street" in FSF postal
9660 mail address; this is the style the FSF seems to prefer.
9662 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
9663 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
9664 this updates FSF postal mail address.
9666 Sync from coreutils.
9667 * modules/unlinkdir: New file.
9668 * modules/yesno (Depends-on): Add getline.
9669 * MODULES.html.sh (File system functions): Add unlinkdir.
9671 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
9673 * lib/byteswap_.h, getsubopt.h, iconvme.h, strsep.c, strsep.h:
9674 Change the initial comment to refer to GPL, not LGPL.
9675 gnulib-tool will change it to LGPL as needed.
9677 * lib/__fpending.c, acl.c, acl.h, alloca_.h, allocsa.c, allocsa.h,
9678 argmatch.c, argmatch.h, argp-ba.c, argp-eexst.c, argp-fmtstream.c,
9679 argp-fmtstream.h, argp-fs-xinl.c, argp-help.c, argp-namefrob.h,
9680 argp-parse.c, argp-pv.c, argp-pvh.c, argp-xinl.c, argp.h, argz.c,
9681 argz_.h, asnprintf.c, asprintf.c, atanl.c, backupfile.c,
9682 backupfile.h, base64.c, base64.h, basename.c, binary-io.h,
9683 byteswap_.h, c-ctype.c, c-ctype.h, c-stack.c, c-stack.h,
9684 c-strtod.c, calloc.c, canon-host.c, canonicalize.c,
9685 canonicalize.h, ceill.c, chdir-long.c, chdir-long.h, chown.c,
9686 classpath.c, classpath.h, cloexec.c, closeout.c, closeout.h,
9687 concatpath.c, config.charset, copy-file.c, copy-file.h,
9688 cycle-check.c, cycle-check.h, diacrit.c, diacrit.h, dirfd.c,
9689 dirfd.h, dirname.c, dirname.h, dummy.c, dup-safer.c, dup2.c,
9690 eealloc.h, error.c, error.h, euidaccess.c, exclude.c, exclude.h,
9691 execute.c, execute.h, exit.h, exitfail.c, exitfail.h, expl.c,
9692 fatal-signal.c, fatal-signal.h, fd-safer.c, file-type.c,
9693 file-type.h, fileblocks.c, filemode.c, filemode.h, findprog.c,
9694 findprog.h, floorl.c, fnmatch.c, fnmatch_.h, fnmatch_loop.c,
9695 fopen-safer.c, free.c, frexpl.c, fsusage.c, fsusage.h,
9696 full-read.c, full-read.h, full-write.c, full-write.h,
9697 fwriteerror.c, fwriteerror.h, gai_strerror.c, gcd.c, gcd.h,
9698 getaddrinfo.c, getaddrinfo.h, getcwd.c, getcwd.h, getdate.h,
9699 getdate.y, getdomainname.c, getdomainname.h, getgroups.c,
9700 gethostname.c, gethrxtime.c, gethrxtime.h, getline.c, getline.h,
9701 getloadavg.c, getndelim2.c, getndelim2.h, getnline.c, getnline.h,
9702 getopt.c, getopt1.c, getopt_.h, getopt_int.h, getpagesize.h,
9703 getpass.c, getpass.h, getsubopt.c, getsubopt.h, gettext.h,
9704 gettime.c, gettimeofday.c, getugroups.c, getusershell.c,
9705 group-member.c, group-member.h, hard-locale.c, hard-locale.h,
9706 hash-pjw.c, hash-pjw.h, hash.c, hash.h, human.c, human.h,
9707 iconvme.c, iconvme.h, idcache.c, inet_ntop.h, intprops.h,
9708 inttostr.c, inttostr.h, isdir.c, javacomp.c, javacomp.h,
9709 javacomp.sh.in, javaexec.c, javaexec.h, javaexec.sh.in,
9710 lbrkprop.h, lchown.c, ldexpl.c, linebreak.c, linebreak.h,
9711 linebuffer.c, linebuffer.h, localcharset.c, localcharset.h,
9712 logl.c, long-options.c, long-options.h, lstat.c, makepath.c,
9713 makepath.h, malloc.c, mathl.h, mbswidth.c, mbswidth.h, md5.c,
9714 md5.h, memcasecmp.c, memcasecmp.h, memchr.c, memcmp.c, memcoll.c,
9715 memcoll.h, memcpy.c, memmem.c, memmem.h, mempcpy.c, mempcpy.h,
9716 memrchr.c, memrchr.h, memset.c, minmax.h, mkdir.c, mkdtemp.c,
9717 mkdtemp.h, mkstemp.c, mktime.c, modechange.c, modechange.h,
9718 mountlist.c, mountlist.h, nanosleep.c, obstack.c, obstack.h,
9719 openat.c, openat.h, pagealign_alloc.c, pagealign_alloc.h,
9720 path-concat.c, path-concat.h, pathmax.h, pathname.h, physmem.c,
9721 physmem.h, pipe.c, pipe.h, poll.c, poll_.h, posixtm.c, posixtm.h,
9722 posixver.c, printf-args.c, printf-args.h, printf-parse.c,
9723 printf-parse.h, progname.c, progname.h, progreloc.c, putenv.c,
9724 quote.c, quote.h, quotearg.c, quotearg.h, raise.c, readlink.c,
9725 readtokens.c, readtokens.h, readtokens0.c, readtokens0.h,
9726 readutmp.c, readutmp.h, realloc.c, ref-add.sin, ref-del.sin,
9727 regex.c, regex.h, rename.c, rmdir.c, rpmatch.c, safe-read.c,
9728 safe-read.h, safe-write.c, safe-write.h, same.c, same.h,
9729 save-cwd.c, save-cwd.h, savedir.c, savedir.h, setenv.c, setenv.h,
9730 settime.c, sh-quote.c, sh-quote.h, sha1.c, sha1.h, sig2str.c,
9731 sig2str.h, sincosl.c, snprintf.c, snprintf.h, sqrtl.c,
9732 stat-macros.h, stat.c, stdbool_.h, stdint_.h, stdio-safer.h,
9733 stpcpy.c, stpcpy.h, stpncpy.c, stpncpy.h, strcase.h, strcasecmp.c,
9734 strchrnul.c, strchrnul.h, strcspn.c, strdup.c, strdup.h,
9735 strerror.c, strftime.c, strftime.h, stripslash.c, strndup.c,
9736 strndup.h, strnlen.c, strpbrk.c, strpbrk.h, strsep.c, strsep.h,
9737 strstr.c, strstr.h, strtod.c, strtoimax.c, strtok_r.c, strtok_r.h,
9738 strtol.c, strtoll.c, strtoul.c, strtoull.c, strverscmp.c,
9739 strverscmp.h, sysexit_.h, tempname.c, time_r.c, time_r.h,
9740 timegm.c, timegm.h, timespec.h, trigl.c, trigl.h, ucs4-utf16.h,
9741 ucs4-utf8.h, unicodeio.c, unicodeio.h, unistd-safer.h,
9742 unlocked-io.h, unsetenv.c, userspec.c, utf16-ucs4.h, utf8-ucs4.h,
9743 utime.c, utimecmp.c, utimecmp.h, utimens.c, vasnprintf.c,
9744 vasnprintf.h, vasprintf.c, vasprintf.h, version-etc-fsf.c,
9745 version-etc.c, version-etc.h, vsnprintf.c, vsnprintf.h,
9746 w32spawn.h, wait-process.c, wait-process.h, xalloc-die.c,
9747 xalloc.h, xallocsa.c, xallocsa.h, xasprintf.c, xgetcwd.c,
9748 xgetcwd.h, xgetdomainname.c, xgetdomainname.h, xgethostname.c,
9749 xmalloc.c, xmemcoll.c, xnanosleep.c, xreadlink.c, xreadlink.h,
9750 xsetenv.c, xsetenv.h, xsize.h, xstrndup.c, xstrndup.h, xstrtod.c,
9751 xstrtod.h, xstrtoimax.c, xstrtol.c, xstrtol.h, xstrtoumax.c,
9752 xtime.h, xvasprintf.c, xvasprintf.h, yesno.c, yesno.h:
9753 Update FSF postal mail address.
9755 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
9757 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
9758 tests/test-memmem.c, tests/test-stpncpy.c:
9759 Update FSF postal mail address.
9761 2005-05-13 Bruno Haible <bruno@clisp.org>
9763 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
9764 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
9765 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
9766 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
9767 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
9768 Add support for 64-bit integers in the MSVC compiler.
9770 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
9772 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
9774 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
9776 * gnulib-tool (func_import): Sort and uniquify recommended includes.
9778 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
9780 * doc/getdate.texi (General date syntax): Don't say that date
9781 date --iso-8601=ns generates acceptable dates; it doesn't yet.
9782 Problem reported by Nic Ferrier.
9784 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9786 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
9787 specified in ai_socktype. Fix invalid ai_protocol
9788 check. ai_protocol is usually set to 0 or depending on
9789 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
9790 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
9791 ai_socktype / ai_protocol in the returned addrinfo structure.
9793 2005-05-10 Simon Josefsson <jas@extundo.com>
9795 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
9796 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9798 2005-05-10 Karl Berry <karl@gnu.org>
9800 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
9801 (from http://www.gnu.org/licenses).
9802 * doc/COPYING.LIB: also rename to COPYING.LESSER.
9803 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
9806 2005-05-10 Karl Berry <karl@gnu.org>
9808 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
9809 (COPYING.DOC): remove.
9811 * config/srclist-update: new FSF address.
9813 2005-05-10 Derek Price <derek@ximbiot.com>
9815 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
9818 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9819 Bruno Haible <bruno@clisp.org>
9821 * modules/inet_ntop: New file.
9822 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9825 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9826 Bruno Haible <bruno@clisp.org>
9828 * m4/inet_ntop.m4: New file.
9830 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9831 Bruno Haible <bruno@clisp.org>
9833 * lib/inet_ntop.h: New file.
9834 * lib/inet_ntop.c: New file, from glibc with modifications.
9836 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
9838 * modules/time_r (License): Change to LGPL.
9839 * modules/extensions (License): Change to LGPL. Actually,
9840 the license is more permissive than that, but currently gnulib-tool
9841 doesn't know how to handle more-permissive licenses.
9843 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
9844 Problem reported by Dave Love.
9846 2005-05-08 Jim Meyering <jim@meyering.net>
9848 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing blank.
9850 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
9852 * modules/argmatch (Depends-on): Add stdbool.
9853 * modules/backupfile (Depends-on): Likewise.
9854 * modules/chdir-long (Depends-on): Likewise.
9855 * modules/closeout (Depends-on): Likewise.
9856 * modules/cycle-check (Depends-on): Likewise.
9857 * modules/dirname (Depends-on): Likewise.
9858 * modules/fnmatch (Depends-on): Likewise.
9859 * modules/fsusage (Depends-on): Likewise.
9860 * modules/fwriteerror (Depends-on): Likewise.
9861 * modules/getcwd (Depends-on): Likewise.
9862 * modules/getloadavg (Depends-on): Likewise.
9863 * modules/hard-locale (Depends-on): Likewise.
9864 * modules/makepath (Depends-on): Likewise.
9865 * modules/mountlist (Depends-on): Likewise.
9866 * modules/nanosleep (Depends-on): Likewise.
9867 * modules/posixtm (Depends-on): Likewise.
9868 * modules/quotearg (Depends-on): Likewise.
9869 * modules/readtokens (Depends-on): Likewise.
9870 * modules/readtokens0 (Depends-on): Likewise.
9871 * modules/readutmp (Depends-on): Likewise.
9872 * modules/save-cwd (Depends-on): Likewise.
9873 * modules/strftime (Depends-on): Likewise.
9874 * modules/userspec (Depends-on): Likewise.
9875 * modules/utimecmp (Depends-on): Likewise.
9876 * modules/xgetcwd (Depends-on): Likewise.
9877 * modules/xnanosleep (Depends-on): Likewise.
9878 * modules/xstrtod (Depends-on): Likewise.
9879 * modules/yesno (Depends-on): Likewise.
9881 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
9883 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
9886 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
9888 Merge from coreutils. Among other things,
9889 add bulletproofing for cases where stdin, stdout, or stderr are closed.
9890 * lib/fd-safer.c: New file.
9891 * lib/fcntl-safer.h, open-safer.c: Remove.
9892 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
9893 * lib/dup-safer.c: Include unistd-safer.h first.
9894 Don't include errno.h.
9895 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
9896 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
9897 * lib/file-type.c: Rely on file-type.h change.
9898 * lib/getloadavg.c: Include unistd-safer.h.
9899 (getloadavg): Use safer open.
9900 * lib/getusershell.c: Include "stdio-safer.h".
9901 (getusershell): Use safer fopen.
9902 * lib/long-options.c (long_options): Use NULL rather than 0.
9903 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
9905 * lib/modechange.c: Likewise.
9906 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
9907 (MODE_DONE): New constant.
9908 (struct mode_change): Remove 'next' member.
9909 (make_node_op_equals): New function; like the old one of the
9910 same name, except it allocates an array.
9911 (mode_compile, mode_create_from_ref): Use it.
9912 (mode_compile): Allocate result as an array, not a linked list.
9913 Parse octal string ourself, so that we catch mistakes like "+0".
9914 (mode_adjust): Arg is an array, not a linked list.
9915 * lib/modechange.c: Include stat-macros.h, xalloc.h.
9916 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
9917 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
9918 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
9919 Remove. This is now stat-macros.h's job.
9920 (talloc): Remove. All callers replaced by xalloc, so that
9921 our invokers don't have to worry about reporting memory failures.
9922 (make_node_op_equals): Remove.
9923 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
9925 (struct mode_change): Moved here from modechange.h.
9926 (mode_append_entry): Remove.
9927 (mode_compile): Remove MASKED_OPS arg, since it encouraged
9928 apps to have incorrect behavior. Use simpler algorithm for head
9929 and tail. Don't futz with umask; that's now the job of mode_adjust.
9930 Detect more invalid usages rather than having somewhat-random behavior.
9931 Don't insert an "a=" action, as that leads to incorrect behavior.
9932 (mode_compile, mode_create_from_ref): Return NULL on error instead
9933 of an enum, since now there's only one way to have an error. All
9935 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
9936 at the correct time. Simplify calculation of "+u" and its ilk.
9937 Don't mishandle "+X".
9938 (mode_free): Remove "register" and localize decls.
9939 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
9940 (struct mode_change): Move to modechange.c; callers don't
9941 need to see this stuff.
9942 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
9943 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
9944 (mode_change, mode_adjust): Reflect the new signatures noted above.
9945 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
9946 that might redefine system include files.
9947 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
9948 (my_usleep): Use NULL rather than (void *) 0.
9949 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
9950 Use siginterrupt to specify that system calls should be interrupted.
9951 (rpl_nanosleep): Move initialization of suspended closer to call of
9953 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
9954 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
9955 (desirable_utmp_entry): New function.
9956 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
9957 using x2nrealloc, to simplify logic.
9958 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
9959 size calculation. Do not assume utmp file is a regular file.
9960 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
9961 (READ_UTMP_CHECK_PIDS): New constant.
9962 * lib/save-cwd.c: Include unistd-safer.h.
9963 (save_cwd): Use fd_safer.
9964 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
9965 [!_LIBC] Include "stat-macros.h" instead.
9966 * lib/unistd-safer.h (fd_safer): New decl.
9968 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
9970 * modules/getloadavg (Depends-on): Add unistd-safer.
9971 * modules/getusershell (Depends-on): Add stdio-safer.
9972 * modules/lstat (Depends-on): Remove xalloc.
9973 * modules/mkstemp (Depends-on): Add stat-macros.
9974 * modules/modechange (Depends-on): Remove xstrtol.
9975 Add stat-macros, xalloc.
9976 * modules/save-cwd (Depends-on): Add unistd-safer.
9977 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
9978 * modules/unistd-safer (Files): Add lib/fd-safer.c
9979 (Makefile.am): Remove lib_SOURCES.
9981 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
9982 Remove fcntl-safer; unistd-safer supersedes it.
9984 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
9986 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require AC_HEADER_STAT.
9987 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
9988 (gl_PREREQ_CHOWN): Remove.
9989 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
9990 it. Don't require AC_HEADER_STAT.
9991 (gl_PREREQ_LSTAT): Remove.
9992 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
9993 Don't require AC_HEADER_STAT.
9994 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
9995 (gl_PREREQ_RMDIR): Remove.
9996 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
9997 mention stat-macros.h or AC_HEADER_STAT, since we'll make
9998 the stat-macros module a prerequisite.
9999 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
10000 * m4/filemode.m4 (gl_FILEMODE): Likewise.
10001 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
10002 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
10003 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
10005 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
10006 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
10008 * m4/fcntl-safer.m4: Remove.
10009 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
10010 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
10011 Invoke gl_PREREQ_FD_SAFER.
10012 (gl_PREREQ_FD_SAFER): New macro.
10013 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
10014 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
10015 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
10016 Remove duplicate call to AC_LIBOBJ(readutmp).
10017 (gl_PREREQ_READUTMP): Remove. All uses inlined.
10019 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
10020 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
10022 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10024 * MODULES.html.sh (Misc): Add byteswap.
10026 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10028 * modules/getcwd (Depends-on): Add extensions.
10029 * modules/openat (Depends-on): Likewise.
10031 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10033 * modules/byteswap: New file.
10035 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10037 * m4/byteswap.m4: New file.
10039 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10041 * lib/byteswap_.h: New file.
10043 2005-04-25 Karl Berry <karl@gnu.org>
10045 * m4/gettext.m4: Update from GNU gettext 0.14.4.
10047 2005-04-25 Albert Chin <china@thewrittenword.com>
10049 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
10052 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
10054 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
10055 (func_ln_if_changed) Remove forcibly for no error message
10056 in case file does not exist.
10058 2005-04-19 Simon Josefsson <jas@extundo.com>
10060 * gnulib-tool (Options): Make --symlink mean --symbolic.
10062 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
10064 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
10066 2005-04-16 Simon Josefsson <jas@extundo.com>
10068 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
10070 2005-04-15 Simon Josefsson <jas@extundo.com>
10072 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
10074 2005-04-15 Simon Josefsson <jas@extundo.com>
10076 * gnulib-tool: Rename --symlink to --symbolic.
10078 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
10080 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
10081 symbolic links to files instead of copying/moving. Add --aux-dir,
10082 specifying directory relative --dir where auxiliary build tools
10085 2005-04-14 Bruno Haible <bruno@clisp.org>
10087 * modules/allocsa (License): Change to LGPL.
10088 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10090 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
10092 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
10093 that "UTC +1 second" continues to work. Problem reported
10094 by Dmitry V. Levin.
10095 (relunit_snumber): New rule.
10098 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
10100 * lib/getdate.y (universal_time_zone_table): New constant.
10101 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
10102 universal_time_zone_table.
10103 (lookup_zone): Prefer universal_time_zone_table to
10104 local_time_zone_table, so that "GMT" time stamps are allowed in
10105 London during the summer. Problem reported by Ian Abbott.
10107 2005-04-12 Jim Meyering <jim@meyering.net>
10109 * lib/human.c (humblock): Set *options even when returning due to
10110 xstrtoumax conversion failure. Thanks to a used-uninitialized
10111 warning from gcc-4.
10113 2005-04-09 Jim Meyering <jim@meyering.net>
10115 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
10116 -Wuninitialized: initialize tm0.tm_year.
10118 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
10120 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
10121 count, since there's no maximum. All uses changed.
10122 Add member dsts_seen.
10123 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
10125 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
10126 Use pc_rels_seen to decide whther a date is absolute.
10128 * lib/getdate.y (number): Don't overwrite year.
10129 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
10132 2005-04-02 Simon Josefsson <jas@extundo.com>
10134 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
10135 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
10137 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
10139 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
10140 where no absolute path name can be longer than PATH_MAX.
10142 2005-03-27 Jim Meyering <jim@meyering.net>
10144 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
10146 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
10148 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
10149 "one's complement" -> "ones' complement" in comment, as per Knuth.
10150 "value of type" -> "type or expression" in comment.
10151 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
10153 2005-03-26 Jim Meyering <jim@meyering.net>
10156 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
10157 Correct typos: s/or/of/.
10159 2005-03-26 Jim Meyering <jim@meyering.net>
10161 * modules/check-include-files: Move to ../ and rename to...
10162 * check-module: ...this.
10164 2005-03-25 Jim Meyering <jim@meyering.net>
10166 * modules/xvasprintf (Files): Add xalloc.h.
10168 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
10170 * modules/gettext (Files): config/config.rpath -> build-aux/config.rpath
10171 * modules/iconv (Files): Likewise.
10172 Problem reported by Oskar Liljeblad.
10174 2005-03-23 Jim Meyering <jim@meyering.net>
10176 * modules/check-include-files: New script to check for
10177 missing dependencies, multiple includes, etc.
10179 * modules/c-strtold (Depends-on): Add xalloc.
10180 * modules/c-strtod (Depends-on): Add xalloc.
10181 * modules/hash (Depends-on): Add xalloc.
10182 (Files): Remove lib/xalloc.h.
10184 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
10185 * modules/userspec (Files): Add lib/inttostr.h.
10187 2005-03-23 Jim Meyering <jim@meyering.net>
10189 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
10191 2005-03-22 Jim Meyering <jim@meyering.net>
10193 * modules/stat-macros: New module.
10194 * modules/canonicalize, modules/euidaccess, modules/file-type,
10195 * modules/filemode, modules/lchown, modules/makepath,
10196 * modules/rmdir, modules/stat: Depend on new stat-macros module
10197 rather than listing lib/stat-macros.h manually.
10198 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
10200 2005-03-22 Jim Meyering <jim@meyering.net>
10202 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
10204 2005-03-22 Bruno Haible <bruno@clisp.org>
10206 * config/srclist.txt: Replace target directory 'config' with 'build-aux'.
10207 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
10208 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to ../build-aux/.
10210 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
10212 * modules/chdir-long (Depends-on): Add mempcpy.
10214 * modules/acl, modules/backupfile, modules/c-strtod,
10215 modules/c-strtold, modules/canon-host, modules/canonicalize,
10216 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
10217 modules/exclude, modules/exitfail, modules/file-type,
10218 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
10219 modules/getdate, modules/getline, modules/getpagesize,
10220 modules/getpass, modules/getugroups, modules/group-member,
10221 modules/hard-locale, modules/hash, modules/human, modules/idcache,
10222 modules/inttostr, modules/long-options, modules/makepath,
10223 modules/md5, modules/memcasecmp, modules/memcoll,
10224 modules/modechange, modules/mountlist, modules/path-concat,
10225 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
10226 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
10227 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
10228 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
10229 modules/strftime, modules/strndup, modules/strverscmp,
10230 modules/timespec, modules/unlocked-io, modules/userspec,
10231 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
10233 Remove lib_SOURCES line from Makefile.am section, as this is now
10234 done automatically by the corresponding Autoconf macro.
10236 2005-03-21 Jim Meyering <jim@meyering.net>
10238 Changes imported from coreutils.
10240 * lib/cycle-check.c: Don't include xalloc.h.
10242 * lib/path-concat.c: Don't include assert.h.
10243 (path_concat): Remove assertion that would have triggered
10244 for ABASE starting with more than one slash.
10245 Reported by Andreas Schwab.
10247 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
10248 properly when ABASE is an absolute file name.
10249 Correct the description of this function.
10250 Include <assert.h>.
10251 Add an assertion and a test driver.
10252 This fixes a bug introduced on 2004-07-02.
10253 Andreas Schwab reported the resulting failure of cp --parents:
10254 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
10256 2005-03-21 Jim Meyering <jim@meyering.net>
10258 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
10259 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
10261 2005-03-21 Jim Meyering <jim@meyering.net>
10262 and Paul Eggert <eggert@cs.ucla.edu>
10264 * m4/acl.m4, backupfile.m4, c-strtod.m4, canon-host.m4, canonicalize.m4,
10265 cloexec.m4, closeout.m4, dirfd.m4, dirname.m4, exclude.m4,
10266 exitfail.m4, file-type.m4, filemode.m4, fpending.m4, fsusage.m4,
10267 getcwd.m4, getdate.m4, getline.m4, getpagesize.m4, getpass.m4,
10268 getugroups.m4, group-member.m4, hard-locale.m4, hash.m4, human.m4,
10269 idcache.m4, inttostr.m4, long-options.m4, makepath.m4, md5.m4,
10270 memcasecmp.m4, memcoll.m4, modechange.m4, mountlist.m4, nanosleep.m4,
10271 path-concat.m4, pathmax.m4, physmem.m4, posixtm.m4, posixver.m4,
10272 quote.m4, quotearg.m4, readtokens.m4, readutmp.m4, safe-read.m4,
10273 safe-write.m4, same.m4, savedir.m4, settime.m4, sha1.m4, sig2str.m4,
10274 strdup.m4, strftime.m4, strndup.m4, strverscmp.m4, timespec.m4,
10275 unlocked-io.m4, userspec.m4, utimecmp.m4, utimens.m4, xalloc.m4,
10276 xnanosleep.m4, xstrtol.m4, yesno.m4:
10277 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
10280 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
10282 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
10283 (which shouldn't happen), generate nothing instead of returning 0
10284 immediately, so that nstrftime (NULL, ...) doesn't return 0.
10286 2005-03-16 Bruno Haible <bruno@clisp.org>
10288 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
10289 HAVE_LONGLONG_64BIT.
10291 2005-03-16 Bruno Haible <bruno@clisp.org>
10293 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
10294 HAVE_LONGLONG_64BIT.
10296 2005-03-16 Bruno Haible <bruno@clisp.org>
10298 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of HAVE_LONGLONG_64BIT.
10300 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
10302 * lib/strftime.c (my_strftime): Prepend space to format so that we can
10303 reliably distinguish strftime failure from empty output on POSIX
10306 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
10308 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
10309 (iconv_string): Don't guess a size-zero buffer, as that might cause
10310 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
10311 result would be 'too large', where 'too large' is (heuristically)
10312 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
10313 overflow concerns. This will prevent some unwanted malloc failures
10314 when the inputs are very large.
10316 2005-03-15 Karl Berry <karl@gnu.org>
10318 * config/srclist.txt (config.rpath): from gettext.
10319 * config/config.rpath: update.
10321 2005-03-15 Bruno Haible <bruno@clisp.org>
10323 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not' to
10326 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
10329 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc results.
10331 2005-03-14 Simon Josefsson <jas@extundo.com>
10333 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
10336 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
10338 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
10339 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
10341 * lib/strtol.c: Likewise.
10343 2005-03-14 Jim Meyering <jim@meyering.net>
10345 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
10346 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
10347 to be nonzero so that we (and caller) can detect the difference
10348 between a valid zero-length expansion and an error return, even
10349 when the underlying strftime fails before writing anything into
10352 2005-03-14 Bruno Haible <bruno@clisp.org>
10354 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
10355 Update from GNU gettext 0.14.3.
10357 2005-03-10 Jim Meyering <jim@meyering.net>
10359 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
10361 2005-03-10 Jim Meyering <jim@meyering.net>
10363 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
10364 so that this module works on systems without fchdir.
10366 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
10368 Factor int-properties macros into a single file, except for
10369 glibc-related files.
10370 * lib/intprops.h: New file.
10371 * lib/getloadavg.c: Include it instead of limits.h.
10372 (INT_STRLEN_BOUND): Remove.
10373 * lib/human.c: Include intprops.h.
10374 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
10375 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000.
10376 * lib/inttostr.h: Include intprops.h instead of limits.h.
10377 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
10378 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
10379 for consistency with intprops.h.
10380 (time_t_is_integer, twos_complement_arithmetic): Use them.
10381 * lib/sig2str.h: Include <signal.h>, intprops.h.
10382 (INT_STRLEN_BOUND): Remove.
10383 * lib/strftime.c (TYPE_SIGNED): Remove.
10384 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
10385 * lib/strtol.c: Adjust comments to match intprops.h.
10386 * lib/userspec.c: Include intprops.h.
10387 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
10388 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
10389 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
10390 instead of rolling our own expressions.
10391 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
10393 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
10395 (my_strftime): Do not mishandle years close to INT_MAX, by doing
10396 the right thing even if adding 1900 would overflow. Similarly
10397 for tm_mon + 1 and tm_yday + 1.
10398 Make %Y always equivalent to %C%y, and similarly for %G and %g.
10399 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
10400 (DO_SIGNED_NUMBER): New macro.
10401 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
10403 2005-03-07 Bruno Haible <bruno@clisp.org>
10405 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
10407 2005-03-07 Bruno Haible <bruno@clisp.org>
10409 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
10411 2005-03-04 Derek R. Price <derek@ximbiot.com>
10413 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
10414 (func_import): Only replace files via --import when they have actually
10417 2005-03-03 Derek R. Price <derek@ximbiot.com>
10419 * m4/mmap-anon.m4: New file.
10420 * m4/pagealign_alloc.m4: New file.
10422 2005-03-03 Derek R. Price <derek@ximbiot.com>
10423 Bruno Haible <bruno@clisp.org>
10425 * modules/pagealign_alloc: New file.
10426 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
10428 2005-03-03 Derek R. Price <derek@ximbiot.com>
10429 Bruno Haible <bruno@clisp.org>
10431 * lib/pagealign_alloc.h: New file.
10432 * lib/pagealign_alloc.c: New file.
10434 2005-03-03 Bruno Haible <bruno@clisp.org>
10436 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
10437 Use an all-permissive copyright notice, recommended by RMS.
10439 2005-03-02 Bruno Haible <bruno@clisp.org>
10441 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because of
10442 AIX, the replacement has to be done only after <string.h> is included,
10443 therefore not in config.h. stpncpy.h does the replacement, and
10446 2005-03-02 Bruno Haible <bruno@clisp.org>
10448 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
10451 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10453 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
10454 The workaround isn't strictly needed for POSIX conformance, and
10455 it's too much of a pain to configure and maintain. We'll ask
10456 people to fix their kernels instead.
10457 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
10458 (NANOSLEEP_BUG_WORKAROUND): Remove.
10459 (xnanosleep): Remove the workaround.
10461 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10463 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
10464 Reported by Derek Price.
10465 (Include): Add "timespec.h".
10467 * modules/xnanosleep (Depends-on): Remove gethrxtime.
10469 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10471 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
10472 to detect nanosleep bug.
10474 2005-03-01 Bruno Haible <bruno@clisp.org>
10476 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
10478 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
10480 * modules/gethrxtime: New file.
10481 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
10482 (Depends-on): Add gethrxtime.
10483 (configure.ac): Add gl_XNANOSLEEP.
10484 (Makefile.am): Remove lib_SOURCES line.
10486 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
10488 * m4/gethrxtime.m4, xnanosleep.m4: New files.
10489 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
10491 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
10493 * lib/gethrxtime.h, gethrxtime.c, xtime.h: New files.
10494 * lib/timespec.h (gettime): Return void, since it always
10495 succeeds now. All uses changed.
10496 * lib/gettime.c (gettime) Likewise.
10497 [HAVE_NANOTIME]: Prefer nanotime.
10498 Assume gettimeofday succeeds, as POSIX requires.
10499 Assime time () succeeds, since other code already does.
10500 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
10501 (timespec_subtract): Remove.
10502 (NANOSLEEP_BUG_WORKAROUND): New constant.
10503 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
10504 things considerably. Use it only on GNU/Linux hosts, since the
10505 workaround shouldn't be needed elsewhere.
10507 2005-02-24 Bruno Haible <bruno@clisp.org>
10509 * modules/gettext (Files): Add m4/glibc2.m4.
10511 2005-02-24 Bruno Haible <bruno@clisp.org>
10513 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
10514 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
10516 Update from GNU gettext 0.14.2.
10517 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
10519 2005-02-24 Bruno Haible <bruno@clisp.org>
10521 * lib/localcharset.c: Update from GNU gettext 0.14.2.
10522 * lib/config.charset: Update from GNU gettext 0.14.2.
10524 2005-02-24 Bruno Haible <bruno@clisp.org>
10526 * lib/gettext.h: Update from GNU gettext 0.14.2.
10528 2005-02-23 Simon Josefsson <jas@extundo.com>
10530 * m4/iconvme.m4: New file.
10532 2005-02-23 Jim Meyering <jim@meyering.net>
10534 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's change.
10535 Thanks to Bruno Haible for catching it.
10537 2005-02-22 Simon Josefsson <jas@extundo.com>
10539 * modules/iconvme: New file.
10541 * MODULES.html.sh: Add iconvme.
10543 2005-02-22 Simon Josefsson <jas@extundo.com>
10545 * lib/iconvme.h, iconvme.c: New files, from libc.
10547 2005-02-22 Simon Josefsson <jas@extundo.com>
10549 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
10551 2005-02-22 Jim Meyering <jim@meyering.net>
10553 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo: s/ifndef/ifdef/.
10555 2005-02-20 Neil Conway <neilc@samurai.com>
10557 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
10558 returned by OSX/Darwin if the specified buffer is not large
10559 enough for the hostname.
10561 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10563 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
10564 pass it to _help, otherwise the latter coredumps trying to
10565 dereference state.root_argp.
10567 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10569 * modules/chdir-long (Depends-on): Add memrchr.
10570 * modules/memrchr (Files): Add lib/memrchr.h.
10571 (Include): "memrchr.h".
10573 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10575 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
10577 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10579 * lib/memrchr.h: New file.
10580 * lib/chdir-long.c: Include it.
10581 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
10582 Don't bother including stddef.h.
10584 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
10586 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
10588 Include <sys/types.h>, for dev_t.
10589 (ME_DUMMY, ME_REMOTE): Move from here....
10590 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
10591 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
10593 Include mountlist.h first, to test the interface.
10595 2005-01-29 Bruno Haible <bruno@clisp.org>
10597 * lib/progname.c (program_name): Initialize.
10598 Needed when linking statically on MacOS X.
10600 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
10602 Sync from coreutils.
10603 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
10604 (Depends-on): Add c-strtod.
10605 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
10607 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
10609 Sync from coreutils.
10610 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
10612 Remove files that are specific to coreutils.
10613 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
10615 2005-01-28 Bruno Haible <bruno@clisp.org>
10617 * modules/javacomp: New file.
10618 * MODULES.html.sh (Java): Add javacomp.
10620 2005-01-28 Bruno Haible <bruno@clisp.org>
10622 * m4/javacomp.m4: New file, from GNU gettext.
10624 2005-01-28 Bruno Haible <bruno@clisp.org>
10626 * lib/javacomp.sh.in: New file, from GNU gettext.
10627 * lib/javacomp.h: New file, from GNU gettext.
10628 * lib/javacomp.c: New file, from GNU gettext.
10630 2005-01-26 Simon Josefsson <jas@extundo.com>
10632 * lib/gai_strerror.c: Use GPL in header.
10634 2005-01-26 Bruno Haible <bruno@clisp.org>
10636 * modules/javaexec: New file.
10637 * MODULES.html.sh (Java): Add javaexec.
10639 2005-01-26 Bruno Haible <bruno@clisp.org>
10641 * m4/javaexec.m4: New file, from GNU gettext.
10643 2005-01-26 Bruno Haible <bruno@clisp.org>
10645 * lib/javaexec.sh.in: New file, from GNU gettext.
10646 * lib/javaexec.h: New file, from GNU gettext.
10647 * lib/javaexec.c: New file, from GNU gettext.
10649 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10651 * modules/lchown (Depends-on): Remove lchown.h
10653 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10655 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
10656 must be defined if the header file was not found, in order
10657 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
10659 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10661 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
10662 initializers for struct pentry_state.
10663 (__argp_error): Check return value of __asprintf
10664 (__argp_failure): Translate error message
10666 * lib/argp-parse.c: Removed braces around the expansion of N_()
10668 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
10670 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
10671 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
10672 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
10673 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
10674 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
10675 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
10676 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
10677 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
10678 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
10679 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
10680 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
10681 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
10682 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
10683 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
10684 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
10685 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
10686 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
10687 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
10688 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
10689 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
10690 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
10691 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
10692 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
10693 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
10694 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
10695 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
10696 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
10697 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
10698 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
10699 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
10700 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
10701 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
10702 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
10703 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
10704 xstrtol.m4, xstrtoumax.m4, yesno.m4:
10705 Use an all-permissive copyright notice, recommended by RMS.
10707 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
10709 * modules/chdir-long (Depends-on): Remove mempcpy.
10711 2005-01-21 Jim Meyering <jim@meyering.net>
10713 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
10714 same value as for Solaris 9.
10716 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
10717 component length. This included changing the parameter to be
10718 of type `char *' rather than `char const *'.
10719 * lib/chdir-long.h (chdir_long): Update prototype.
10721 * lib/openat.c (fdopendir, fstatat): New functions.
10722 * lib/openat.h: Include headers required for use of DIR and struct stat.
10723 [AT_SYMLINK_NOFOLLOW]: Define.
10724 (fdopendir, fstatat): Add prototypes.
10726 2005-01-21 Bruno Haible <bruno@clisp.org>
10728 * modules/classpath: New file.
10729 * MODULES.html.sh (Java): Add classpath.
10731 2005-01-21 Bruno Haible <bruno@clisp.org>
10733 * lib/classpath.h: New file, from GNU gettext.
10734 * lib/classpath.c: New file, from GNU gettext.
10736 2005-01-20 Simon Josefsson <jas@extundo.com>
10738 * modules/version-etc-fsf: New file.
10740 2005-01-20 Simon Josefsson <jas@extundo.com>
10742 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
10743 * lib/version-etc.c: Remove version_etc_copyright.
10744 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
10745 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
10747 2005-01-20 Simon Josefsson <jas@extundo.com>
10749 * lib/base64.h (isbase64): Add.
10751 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
10752 using a unsigned prototype, don't inline.
10753 (base64_decode): Use it.
10755 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10757 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume it.
10759 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10761 * lib/save-cwd.c (save_cwd): Remove code to support the case
10762 where fchdir is missing or flaky.
10764 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10766 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
10768 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
10770 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
10771 AC_LIBSOURCES now does this.
10772 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
10773 with new ullong_max module.
10775 2005-01-19 Bruno Haible <bruno@clisp.org>
10777 * modules/sh-quote: New file.
10778 * MODULES.html.sh (Executing programs): Add sh-quote.
10780 2005-01-19 Bruno Haible <bruno@clisp.org>
10782 * lib/sh-quote.h: New file, from GNU gettext.
10783 * lib/sh-quote.c: New file, from GNU gettext.
10785 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10787 Merge from coreutils.
10788 * m4/ullong_max.m4: New file.
10789 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
10790 (gl_MACROS): Assume localeconv exists.
10792 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10794 Merge changes from coreutils, as described below in several
10795 changelogs dated today.
10797 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
10798 (O_DIRECTORY): Remove; not needed here, since "." must be
10799 a directory. All uses removed.
10800 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
10801 universal on Suns, and we also need to test for IRIX.
10802 Revamp code to use 'if' rather than '#if'.
10803 Avoid unnecessary comparison of cwd->desc to 0.
10805 * lib/utimens.c (futimens): Robustify the previous patch, by checking
10806 for known valid error numbers rather than observed invalid ones.
10808 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10810 * modules/ullong_max: New file.
10812 * modules/chdir-long, modules/openat: New files.
10813 * modules/save-cwd (Depends-on): Depend on chdir-long.
10814 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
10816 2005-01-18 Jim Meyering <jim@meyering.net>
10818 Merge from coreutils.
10819 * m4/chdir-long.m4, openat.m4: New files.
10820 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
10821 save-cwd.h. Add AC_LIBOBJ for save-cwd.
10822 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
10823 is sane and DOES follow symlinks. Besides, testing 20 different
10824 systems found no broken chown implementations.
10825 Prompted by a change in rsync's copy of this macro.
10826 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
10828 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
10830 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
10831 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
10832 NULL-means-set-to-current-time semantics.
10833 Remove temporary file immediately, rather than waiting
10834 for configure's at-exit trap code to do it.
10836 2005-01-18 Jim Meyering <jim@meyering.net>
10838 * lib/version-etc.c (version_etc_copyright): Update copyright date.
10840 * lib/utimens.c (futimens): Account for the fact that futimes
10841 can also fail with errno == ENOSYS or errno == ENOENT.
10842 Patch from Dmitry V. Levin.
10844 Change the name of the robust chdir function from chdir to chdir_long.
10845 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
10846 (restore_cwd): Use chdir_long, not chdir.
10847 * lib/chdir-long.c: Renamed from chdir.c.
10848 * lib/chdir-long.h: Renamed from chdir.h.
10849 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
10852 2005-01-18 Bruno Haible <bruno@clisp.org>
10854 * m4/allocsa.m4, codeset.m4, copy-file.m4, eaccess.m4, eealloc.m4:
10855 * m4/eoverflow.m4, execute.m4, fatal-signal.m4, findprog.m4, glibc21.m4:
10856 * m4/iconv.m4, intmax_t.m4, inttypes_h.m4, lib-ld.m4, lib-link.m4:
10857 * m4/lib-prefix.m4, linebreak.m4, localcharset.m4, longdouble.m4:
10858 * m4/longlong.m4, mbrtowc.m4, mbstate_t.m4, mbswidth.m4, mkdtemp.m4:
10859 * m4/pipe.m4, readlink.m4, safe-read.m4, safe-write.m4, setenv.m4:
10860 * m4/sig_atomic_t.m4, signalblocking.m4, signed.m4, size_max.m4:
10861 * m4/ssize_t.m4, stdbool.m4, stdint_h.m4, stpcpy.m4, stpncpy.m4:
10862 * m4/strcase.m4, strcspn.m4, strpbrk.m4, strstr.m4, ucs4-utf.m4:
10863 * m4/uintmax_t.m4, ulonglong.m4, unicodeio.m4, utf-ucs4.m4, vasnprintf.m4:
10864 * m4/vasprintf.m4, wait-process.m4, wchar_t.m4, wint_t.m4, xsize.m4:
10865 Use an all-permissive copyright notice, recommended by RMS.
10867 2005-01-18 Bob Proulx <bob@proulx.com>
10869 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to simplify
10870 offsetof() macro construct to avoid compile failure with native HP-UX
10871 11.0 ANSI C compiler.
10873 2005-01-17 Bruno Haible <bruno@clisp.org>
10875 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming, redundant
10876 because stpncpy.m4 takes care of it.
10878 2005-01-17 Bruno Haible <bruno@clisp.org>
10880 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
10882 2005-01-17 Bruno Haible <bruno@clisp.org>
10884 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be used.
10886 2005-01-17 Bruno Haible <bruno@clisp.org>
10888 * lib/fwriteerror.h (fwriteerror): Change specification to include fclose.
10889 * lib/fwriteerror.c: Include <stdbool.h>.
10890 (fwriteerror): At the end, close the file stream. Record whether
10891 stdout was already closed.
10893 2005-01-17 Bruno Haible <bruno@clisp.org>
10895 * lib/execute.c (environ): Declare if needed.
10896 * lib/pipe.c (environ): Likewise.
10897 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
10899 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10901 * modules/argp: Depend on vsnprintf
10903 2005-01-10 Jim Meyering <jim@meyering.net>
10905 * modules/closeout (Depends-on): Add atexit.
10907 2005-01-06 Bruno Haible <bruno@clisp.org>
10909 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
10911 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
10913 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
10914 definitions to be after all include files, to avoid collisions.
10915 Problem reported by Bob Proulx.
10917 2005-01-04 Jim Meyering <jim@meyering.net>
10919 Changes imported from coreutils.
10920 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
10921 as the mkstemp template, use a temporary directory and an
10922 8.3-friendly template to avoid trouble on systems like DJGPP.
10923 Reported by Juan M. Guerrero via Stepan Kasal.
10924 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of close.
10925 Remove the temporary directory right away, rather than waiting
10926 for configure's at-exit trap code to do it.
10927 Suggestion from Stepan Kasal.
10929 2005-01-01 Simon Josefsson <jas@extundo.com>
10931 * gnulib-tool: Print #include directives when --import'ing.
10933 2004-12-28 Simon Josefsson <jas@extundo.com>
10935 * tests/test-base64.c: Include required header files. Remove
10938 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
10940 * modules/error (Depends-on): Remove gettext.
10942 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
10944 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
10945 not needed. This removes a dependency on the gettext module.
10946 [defined _LIBC]: Do not include <libintl.h>; not needed.
10948 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
10950 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
10951 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
10953 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
10955 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
10958 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
10960 * modules/getdate (Depends-on): Remove alloca-opt.
10962 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
10964 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
10966 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
10968 * lib/argp-parse.c: Include <stddef.h>.
10969 (alignof, alignto): New macros.
10970 (parser_init): Don't assume that void * is aligned sufficiently
10973 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
10974 need to extend the stack.
10975 (YYINITDEPTH): New macro, so that the initial stack isn't overly
10978 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10980 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
10982 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
10984 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
10985 (2004-10-24) change. Apparently this was a false alarm.
10987 * modules/getdate: Depend on alloca-opt, not alloca.
10989 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
10991 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
10992 Remove now-obsolete comment about AIX.
10993 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
10994 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
10995 (YYMAXDEPTH): New macro.
10997 2004-12-18 Simon Josefsson <jas@extundo.com>
10999 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
11001 2004-12-18 Bruno Haible <bruno@clisp.org>
11003 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
11005 2004-12-18 Bruno Haible <bruno@clisp.org>
11007 * lib/fatal-signal.c (fatal_signals): Make non-const.
11008 (init_fatal_signals): New function.
11009 (uninstall_handlers, install_handlers): Ignore signals that were set to
11011 (at_fatal_signal): Call init_fatal_signals.
11012 (init_fatal_signal_set): Likewise. Ignore signals that were set to
11014 Reported by Paul Eggert.
11016 2004-12-18 Bruno Haible <bruno@clisp.org>
11018 * doc/alloca.texi: New file.
11019 * doc/alloca-opt.texi: New file.
11021 2004-12-17 Jim Meyering <jim@meyering.net>
11023 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
11024 Otherwise, install-sh could exit with improper exit status when
11025 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
11027 2004-12-16 Simon Josefsson <jas@extundo.com>
11029 * tests/test-base64.c: Add license.
11031 2004-12-15 Stepan Kasal <address@hidden>
11033 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
11035 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
11037 * modules/getcwd (Files): Add m4/d-ino.m4.
11038 Suggested by Mark D. Baushke.
11040 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11042 * lib/getdate.y (textint): New member "negative".
11043 (time_zone_hhmm): New function.
11044 Expect 14 shift-reduce conflicts, not 13.
11045 (o_colon_minutes): New rule.
11046 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
11047 (yylex): Set the "negative" member of signed numbers.
11049 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11051 * doc/getdate.texi (Time of day items, Time zone items):
11052 Describe new formats +00:00, UTC+00:00.
11054 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
11056 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
11057 spurious "-l"s. Problem reported by Stepan Kasal.
11059 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
11061 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
11062 in Autoconf 2.59. Problem reported by Mark D. Baushke.
11064 2004-12-04 Simon Josefsson <jas@extundo.com>
11066 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
11067 Vandoorselaere <yoann@prelude-ids.org>.
11069 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11071 Changes imported from coreutils.
11072 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
11074 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
11076 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11078 Changes imported from coreutils.
11079 * lib/hard-locale.c: Assume <locale.h> exists.
11080 Include "strdup.h".
11081 (GLIBC_VERSION): New macro.
11082 (hard_locale): Assume setlocale exists.
11083 Rewrite to avoid #ifdef.
11084 Use strdup rather than malloc + strcpy.
11085 * lib/human.c: Assume <locale.h> exists.
11086 (human_readable): Assume localeconv exists.
11088 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11090 * modules/hard-locale (Depends-on): Add strdup.
11092 2004-12-01 Jakub Jelinek <jakub@redhat.com>
11094 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
11095 convert T2, not T. (Imported from libc.)
11097 2004-11-30 Simon Josefsson <jas@extundo.com>
11099 * modules/restrict (License): Change to LGPL.
11101 2004-11-30 Simon Josefsson <jas@extundo.com>
11103 * m4/restrict.m4: Add copyright and copying conditions.
11105 2004-11-30 Simon Josefsson <jas@extundo.com>
11107 * m4/base64.m4: New file.
11109 2004-11-30 Simon Josefsson <jas@extundo.com>
11111 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
11114 * tests/test-base64.c: New file.
11116 * modules/base64: New file.
11118 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
11120 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
11121 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
11123 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
11125 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
11127 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
11128 (__getcwd.c): Don't restore errno; glibc doesn't.
11129 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
11130 first, falling back to our code only if its results look suspicious.
11131 Ensure that the resulting buffer is only as large as necessary.
11133 * lib/readutmp.c: Include readutmp.h first.
11134 Include <errno.h>, since readutmp.h no longer does that.
11135 * lib/readutmp.h: Don't include <errno.h>,
11136 <sys/param.h>, <time.h>; not needed to establish interface.
11137 (errno): Remove decl.
11138 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
11139 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
11140 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
11142 2004-11-28 Simon Josefsson <jas@extundo.com>
11144 * lib/base64.h, base64.c: New file.
11146 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
11148 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
11150 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
11152 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
11153 (Depends-on): Remove pathmax, same. Add mempcpy.
11154 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
11155 (Makefile.am): Append getcwd.h to lib_SOURCES.
11156 (Include): Add getcwd.h.
11157 (Maintainer): Change from Jim Meyering to "all, glibc",
11158 since getdate now uses intended-for-glibc code.
11159 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
11160 (Depends-on): Depend on getcwd. Do not depend on pathmax.
11162 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
11164 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
11165 HP's ANSI C compiler.
11166 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
11167 Declaring int functions causes warnings on some modern systems and
11168 shouldn't be needed to compile on ancient ones.
11169 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
11172 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
11173 with the following changes.
11174 (__set_errno): Parenthesize properly.
11175 Include <stdbool.h>.
11176 (MIN, MAX, MATCHING_INO): New macros.
11177 (__getcwd): Define with prototype, not K&R form.
11178 Use heuristics to allocate default buffer on stack if possible.
11179 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
11180 behavior, and to avoid the PATH_MAX limit when computing
11182 Use MATCHING_INO to compare inode number to file.
11183 Check for arithmetic overflow in size calculations.
11184 Fix bug in reallocation of dot array that caused getcwd to fail
11185 on directories nested deeper than 75.
11186 Be more careful about saving errno on error.
11187 Do not use realloc; use only free+malloc, as this is a bit
11188 more flexible and avoids a needless copy operation.
11189 Do not inspect st_dev and st_ino for symbolic links; POSIX
11190 doesn't specify the latter.
11191 Check for closedir errors.
11192 Avoid needless casts.
11193 Use "#ifdef weak_alias" around weak_alias, to be like other
11195 The following changes to getcwd.c have effect only when used in
11196 gnulib; they have no effect inside glibc proper.
11197 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
11198 as alloca isn't used.
11199 (alloca, __alloca): Likewise.
11200 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
11201 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
11202 unconditionally, as gnulib assumes C89 or better.
11203 Do not include <sys/param.h>.
11204 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
11205 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
11207 (NULL) [!defined NULL]: Remove; we assume C89 or better.
11208 Include <dirent.h> in a way that is compatible with modern Autoconf.
11209 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
11210 New macros, if not already defined.
11211 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
11212 Use "_LIBC", not "defined _LIBC", for consistency.
11213 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
11215 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
11216 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
11217 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
11218 credit only to Jim Meyering and adjust the copyright dates.
11219 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
11220 <stdlib.h>, <unistd.h>, "pathmax.h".
11221 Instead, include "xgetcwd.h" (first) and "getcwd.h".
11222 (INITIAL_BUFFER_SIZE): Remove.
11223 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
11225 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
11227 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
11228 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
11229 Use the _ONCE methods, for efficiency.
11230 Check for fcntl.h. In test program, include <errno.h>
11231 and <fcntl.h> if available. Remove old K&R cruft from
11232 test program. Check for common errors in GNU/Linux,
11233 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
11234 don't do AC_LIBOBJ, as that's getcwd.m4's job.
11235 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
11236 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
11238 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
11239 accommodate new getcwd.c.
11240 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
11241 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
11242 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
11243 that's all we need now.
11245 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11247 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
11248 argp-parse.c depends on getopt internals, that means we should
11249 always use our getopt, to be on the safe side.
11250 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
11251 order not to spoil the result of an eventual previous invocation
11252 of gl_GETOPT_SUBSTITUTE.
11254 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11256 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
11257 redefinition warnings. To avoid them, include the defines
11258 in `#if !defined __need_getopt ... #endif'. The only place
11259 where __getopt_argv_const is used is in definitions
11260 of getopt_long and getopt_long_only below, which are as well
11261 protected by `#ifndef __need_getopt'.
11262 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
11263 __need_getopt after including <stdio.h> and <unistd.h> These
11264 headers might have defined it.
11266 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
11268 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
11270 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
11272 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
11273 (futimens): New function, which uses futimes if available.
11274 (futimens, utimens): Support timespec==NULL, with same semantics
11275 as utime and utimens.
11276 * lib/utimens.h (futimens): New decl.
11278 2004-11-23 Jim Meyering <jim@meyering.net>
11280 * lib/getopt_.h: Remove trailing blanks.
11282 2004-11-23 Jim Meyering <jim@meyering.net>
11284 * lib/__fpending.c: Add comment.
11286 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
11288 * modules/canonicalize (Depends-on): Add xreadlink.
11289 Problem reported by James Youngman.
11291 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
11293 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
11295 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
11296 optopt): Use them instead of invoking ## directly; otherwise, the
11297 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
11299 2004-11-19 Bruno Haible <bruno@clisp.org>
11301 * lib/strtok_r.c: Move comments from here...
11302 * lib/strtok_r.h: ... to here.
11304 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
11306 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc implementations
11307 that mishandle size_t overflow.
11309 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
11311 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
11312 might fail. Problem reported by Yoann Vandoorselaere.
11313 * lib/calloc.c (rpl_calloc): Defend against buggy calloc implementations
11314 that mishandle size_t overflow.
11316 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11318 * modules/canon-host (Depends-on): Add strdup.
11320 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11322 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
11324 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11326 * lib/canon-host.c: Include "strdup.h".
11327 (canon_host): Use getaddrinfo if available, so that IPv6 works.
11328 Use strdup instead of malloc/strcpy to duplicate strings.
11330 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
11331 (human_space_before_unit): New constant.
11332 * lib/human.c (human_readable): Support it.
11334 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
11335 (xgetcwd): Set errno correctly when failing.
11336 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
11337 the failure is actually due to a PATH_MAX problem.
11339 Further getopt changes to make it more likely that glibc will
11340 buy the changes back.
11341 * lib/getopt.c (POSIXLY_CORRECT): New constant.
11342 (getopt): Use it, so to preserve glibc semantic
11343 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
11344 when compiling for libc.
11345 * lib/getopt_.h (__getopt_argv_const): Bring it back.
11346 (getopt_long, getopt_long_only): Use it.
11348 * lib/getopt.c (_getopt_initialize, _getopt_internal_r, _getopt_internal):
11349 New arg POSIXLY_CORRECT. All callers changed.
11350 (getopt): Argv is now char * const *, as per standard.
11351 (_getopt_internal_r, _getopt_internal): Argv is now char **,
11352 not char *__getopt_argv_const *.
11353 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
11354 _getopt_long_only_r): Likewise.
11355 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
11356 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
11357 _getopt_long_r, _getopt_long_only_r): Likewise.
11358 * lib/getopt_.h (__getopt_argv_const): Remove.
11359 (getopt): Argv is now char * const *, as per standard.
11361 * lib/getdate.y (tORDINAL): New token.
11362 (day, relunit): Allow it for relative times.
11363 (relative_time_table): Use tORDINAL for ordinals.
11365 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11367 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
11368 Document that "second" isn't allowed as an ordinal number.
11370 2004-11-16 Jim Meyering <jim@meyering.net>
11372 * modules/closeout (Depends-on): Add fpending.
11374 2004-11-15 Jim Meyering <jim@meyering.net>
11376 * lib/closeout.c: Include "__fpending.h" once again.
11377 Include <stdbool.h>.
11378 (close_stdout): Don't fail just because stdout was closed initially,
11379 since some programs don't write to stdout in the normal course of
11380 operation (other than --version and --help), and we don't want this
11381 function to make e.g. `touch file >&-' fail.
11382 But do fail if it was closed and someone has tried to write to it.
11383 E.g., `printf foo >&-' must fail.
11385 2004-11-13 Jim Meyering <jim@meyering.net>
11387 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
11389 2004-11-12 Simon Josefsson <jas@extundo.com>
11391 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
11392 small doc fix is still pending.
11394 2004-11-11 Simon Josefsson <jas@extundo.com>
11396 * modules/strtok_r: New file.
11398 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11401 2004-11-11 Simon Josefsson <jas@extundo.com>
11403 * m4/strtok_r.m4: New file.
11405 * m4/getopt.m4: Replace opterr.
11407 2004-11-11 Simon Josefsson <jas@extundo.com>
11409 * lib/strtok_r.h, strtok_r.c: New file.
11411 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
11413 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
11414 of replacing opterr, getopt, etc. This should handle the
11415 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
11417 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
11419 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
11420 we can stop lying to compilers about the constness of argv when we
11421 are compiled outside glibc.
11422 (getopt, getopt_long, getopt_long_only): Use it.
11423 * lib/getopt.c (_getopt_initialize, _getopt_internal_r, _getopt_internal,
11425 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
11426 _getopt_long_only_r): Likewise.
11427 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r, _getopt_long_r,
11428 _getopt_long_only_r): Likewise.
11430 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
11431 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
11432 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
11433 the other external symbols.
11434 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
11435 declaration, since the above renaming now works around collisions.
11437 2004-11-11 Jim Meyering <jim@meyering.net>
11439 * lib/linebreak.c: Remove trailing blanks.
11440 * lib/alloca_.h: Likewise.
11441 * lib/acosl.c: Likewise.
11442 * lib/euidaccess.c: Likewise.
11443 * lib/allocsa.h: Likewise.
11445 2004-11-10 Simon Josefsson <jas@extundo.com>
11447 * m4/getaddrinfo.m4: New file.
11449 2004-11-10 Simon Josefsson <jas@extundo.com>
11451 * lib/getaddrinfo.h, getaddrinfo.c: New files.
11453 2004-11-10 Simon Josefsson <jas@extundo.com>
11455 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11458 * modules/getaddrinfo: New file.
11460 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
11462 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
11464 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
11466 * lib/mktime.c (SHR): New macro, which is a portable
11467 substitute for >> that should work even on Crays.
11468 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
11469 Problem reported by Mark D. Baushke in
11470 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
11471 * lib/getdate.y (SHR): Likewise.
11473 * lib/strftime.c (SHR): Likewise.
11475 * lib/quotearg.c (struct quoting_options): Use unsigned int for
11476 quote_these_too, so that right shifts are well defined. All uses
11479 2004-11-10 Jim Meyering <jim@meyering.net>
11481 Ensure that no close failure goes unreported.
11482 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
11483 return early when it seems there's nothing to flush.
11484 Don't include __fpending.h.
11486 2004-11-10 Jim Meyering <jim@meyering.net>
11488 * modules/closeout (Depends-on): Remove fpending.
11490 2004-11-10 Jim Meyering <jim@meyering.net>
11492 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
11494 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
11496 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
11498 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
11499 and AC_REQUIRE when possible, to avoid duplicate checks.
11500 Check for <wchar.h>.
11502 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
11504 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
11506 2004-11-09 Bruno Haible <bruno@clisp.org>
11508 * m4/sockpfaf.m4: New file.
11510 2004-11-05 Bruno Haible <bruno@clisp.org>
11512 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
11513 Reported by Mark D. Baushke <mdb@cvshome.org>.
11515 2004-11-04 Bruno Haible <bruno@clisp.org>
11517 2004-09-11 Bruno Haible <bruno@clisp.org>
11518 * allocsa.valgrind: New file.
11519 2004-02-06 Bruno Haible <bruno@clisp.org>
11520 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
11521 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
11522 Reported by Christopher Seip <chris.seip@hp.com>.
11524 2004-11-04 Bruno Haible <bruno@clisp.org>
11526 * modules/allocsa (Files): Add lib/allocsa.valgrind.
11527 (Makefile.am): Distribute it.
11529 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
11531 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
11532 with errno == ERANGE if the buffer is too small.
11533 Problem reported by Mark D. Baushke.
11535 2004-11-03 Albert Chin <china@thewrittenword.com>
11536 Paul Eggert <eggert@cs.ucla.edu>
11538 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
11539 equivalent, substitute $ac_type for equivalent type rather than
11540 blindly using uint32_t *always* which won't work if uint32_t is not
11541 available. Define _UINT32_T to work around typedef of uint32_t if
11542 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
11545 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11547 * m4/jm-macros.m4: Sync from coreutils.
11548 (gl_MACROS): Check for mbrlen, for pathchk.
11549 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
11551 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11553 * lib/xreadlink.c (MAXSIZE): New macro.
11554 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
11555 size does not exceed MAXSIZE. Avoid cast.
11556 As suggested by Mark D. Baushke in
11557 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
11558 if readlink fails with buffer size just under MAXSIZE, try again
11561 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11563 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
11565 2004-11-02 Derek R. Price <derek@ximbiot.com>
11566 and Paul Eggert <eggert@cs.ucla.edu>
11568 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
11569 (get_date): Overparenthesize to avoid GCC warning.
11571 2004-11-02 Bruno Haible <bruno@clisp.org>
11573 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
11576 2004-11-02 Bruno Haible <bruno@clisp.org>
11578 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
11579 function returns void.
11581 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
11583 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
11584 fflush_unlocked, flockfile, funlockfile, funlockfile,
11585 fputs_unlocked, putc_unlocked.
11587 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
11589 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
11590 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
11593 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11595 * modules/getdate (Files): Add doc/getdate.texi.
11596 (Depends-on): Add setenv, xalloc.
11598 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11600 * lib/getdate.y: Add support for TZ="foo" within a date string.
11601 Fix some bugs near time_t boundaries. Reject dates with
11602 out-of-range components, e.g., "Sept 31".
11603 Include <stdlib.h>, "setenv.h", "xalloc.h".
11604 (ISDIGIT_LOCALE): Remove; unused.
11605 Note that the TZ and time functions used here are not reentrant.
11606 (mktime_ok, get_tz): New functions.
11607 (TZBUFSIZE): New constant.
11608 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
11609 This requires that we sometimes generate our own TZ="XXX..." setting.
11611 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11613 * doc/getdate.texi: New file, from coreutils with modifications for
11614 the new TZ parsing.
11616 2004-10-27 Derek R. Price <derek@ximbiot.com>
11618 * lib/mktime.c (not_equal_tm): Remove redundant check.
11620 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
11622 * modules/regex (lib_SOURCES): Add regex.c.
11623 Reported by James Youngman in
11624 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
11626 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
11628 * lib/getdate.y: Use Bison 1.875 features, and some minor
11629 code cleanups. This change does not affect semantics.
11630 Don't include <stdlib.h>; no longer needed.
11631 Don't include unlocked-io.h; only the "#if TEST" code uses
11632 stdio, and performance isn't crucial there.
11633 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
11634 Bison 1.875 features as described below.
11635 All uses of "PC." replaced by "pc->".
11636 (YYSTYPE): Add a forward declaration.
11637 (yylex, yyerror): Use full prototypes in forward decls.
11638 Use "%pure-parser" rather than obsolescent "%pure_parser".
11639 Use %parse-param and %lex-param instead of obsolescent
11640 YYPARSE_PARAM and YYLEX_PARAM.
11641 (meridian_table, month_and_day_table, time_units_table,
11642 relative_time_table, time_zone_table, military_table,
11643 lookup_zone, lookup_word, get_date):
11644 Use NULL instead of 0 where appropriate.
11645 (to_hour): Avoid abort (), to avoid a dependency on
11647 (yyerror, yylex): Now accepts parser_control * arg.
11648 (main) [TEST]: Use '\0' rather than 0 for char.
11650 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
11652 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
11654 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
11656 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
11657 It's now the caller's responsibility to handle the case where
11658 !HAVE_GETPAGESIZE && !defined getpagesize.
11660 * lib/mktime.c (leapyear): Arg is long int, not int.
11662 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
11664 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
11666 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
11668 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
11669 missing. Problem reported by James Youngman.
11671 2004-10-16 Simon Josefsson <jas@extundo.com>
11673 * gnulib-tool: Fix comments. Fix parse problem.
11674 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
11676 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
11678 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
11679 implementation of getopt_long. Problem reported by Alexander Taler in:
11680 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
11682 2004-10-15 Bruno Haible <bruno@clisp.org>
11684 * gnulib-tool: Untabify. Initialize supplied_libname.
11685 (func_usage): More homogenous output.
11686 (func_modules_transitive_closure, func_modules_to_filelist,
11687 func_emit_lib_Makefile_am): New functions.
11688 (func_import): New function, extracted from big case statement. Use
11689 func_get_license, func_modules_transitive_closure,
11690 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
11691 opt_lgpl. Don't use test -a, as it's not portable.
11692 (func_create_testdir): Use func_modules_transitive_closure,
11693 func_modules_to_filelist, func_emit_lib_Makefile_am.
11695 2004-10-15 Bruno Haible <bruno@clisp.org>
11697 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
11699 2004-10-15 Bruno Haible <bruno@clisp.org>
11701 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
11702 the portions belonging to each module.
11703 Suggested by Derek Robert Price <derek@ximbiot.com>.
11705 2004-10-12 Simon Josefsson <jas@extundo.com>
11707 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
11708 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
11711 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11713 * modules/vsnprintf: New file.
11715 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11717 * m4/vsnprintf.m4: New file.
11719 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11721 * lib/vsnprintf.h: New file.
11722 * lib/vsnprintf.c: New file.
11724 2004-10-11 Bruno Haible <bruno@clisp.org>
11726 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
11729 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
11731 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
11733 2004-10-07 Bruno Haible <bruno@clisp.org>
11735 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result fits
11736 into the provided buffer.
11738 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
11740 * lib/diacrit.c, diacrit.h: Add GPL notice.
11742 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL notice.
11743 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
11744 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
11745 This avoids a potential constant-folding bug.
11747 2004-10-05 Bruno Haible <bruno@clisp.org>
11749 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
11750 for the declaration of strsep.
11752 2004-10-05 Bruno Haible <bruno@clisp.org>
11754 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
11756 2004-10-04 Simon Josefsson <jas@extundo.com>
11758 * modules/memmem: New file.
11759 * tests/test-memmem.c: New file.
11760 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
11762 2004-10-04 Simon Josefsson <jas@extundo.com>
11764 * m4/memmem.m4: New file.
11766 2004-10-04 Simon Josefsson <jas@extundo.com>
11768 * lib/memmem.h: New file.
11769 * lib/memmem.c: New file, taken from glibc.
11771 2004-10-04 Simon Josefsson <jas@extundo.com>
11773 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
11774 '#ifdef USE_UNLOCKED_IO'.
11776 2004-10-04 Simon Josefsson <jas@extundo.com>
11778 * config/srclist.txt: Add memmem from glibc.
11780 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11782 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
11784 * modules/argmatch, modules/argp, modules/closeout, modules/error,
11785 modules/exclude, modules/getdate, modules/getline,
11786 modules/getndelim2, modules/getpass, modules/getpass-gnu,
11787 modules/getusershell, modules/linebuffer, modules/md5,
11788 modules/mountlist, modules/posixtm, modules/readtokens,
11789 modules/readutmp, modules/regex, modules/sha1,
11790 modules/version-etc, modules/yesno:
11791 Remove dependency on unlocked-io.
11793 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11795 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
11797 * m4/unlocked-io.m4: Add copyright notice.
11798 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
11800 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11802 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
11803 * lib/xmalloc.c (xmemdup): Likewise.
11804 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
11805 XFREE): Remove these long-obsolescent macros.
11806 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
11807 * lib/xstrdup.c: Remove.
11809 * lib/regex.c (re_comp): Cast gettext return value to char *,
11810 Problem reported by Martin Neitzel via Mark D. Baushke.
11812 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11814 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
11815 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
11816 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
11817 regex.c, sha1.c, version-etc.c, yesno.c:
11818 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
11819 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
11820 the includer's responsibility.
11822 Sync from coreutils.
11824 * lib/modechange.c (mode_compile): Don't decrement a pointer that
11825 points to the start of a string, as the C Standard says the
11826 resulting behavior is undefined.
11828 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
11829 simple -> simple_backups, numbered_existing ->
11830 numbered_existing_backups, numbered -> numbered_backups
11831 to avoid shadowing problems. All uses changed.
11832 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
11833 * lib/backupfile.c (check_extension, numbered_backup):
11834 Rename locals to avoid shadowing 'basename'.
11835 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
11838 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
11839 * lib/.cvsignore: Add getopt.h.
11841 2004-10-04 Bruno Haible <bruno@clisp.org>
11843 * modules/README: New file.
11844 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
11847 2004-10-02 Jim Meyering <jim@meyering.net>
11849 * lib/dirfd.h, getpagesize.h: Add copyright notice.
11851 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
11853 * modules/strsep: New file.
11855 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
11857 * m4/strsep.m4: New file.
11859 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
11861 * lib/strsep.h: New file.
11862 * lib/strsep.c: New file.
11864 2004-10-01 Simon Josefsson <jas@extundo.com>
11866 * lib/snprintf.c (snprintf): Handle size==0.
11868 2004-10-01 Simon Josefsson <jas@extundo.com>
11869 Bruno Haible <bruno@clisp.org>
11871 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
11872 (snprintf): Declare 'args'.
11874 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
11876 * lib/snprintf.c: Remove comments as to why each header is needed.
11878 2004-10-01 Bruno Haible <bruno@clisp.org>
11880 * MODULES.html.sh: Add strsep.
11882 2004-09-30 Simon Josefsson <jas@extundo.com>
11884 * modules/snprintf: New file.
11886 2004-09-30 Simon Josefsson <jas@extundo.com>
11888 * m4/snprintf.m4: New file.
11890 2004-09-30 Simon Josefsson <jas@extundo.com>
11892 * lib/snprintf.h, snprintf.c: New files.
11894 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11896 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
11897 (hol_entry_help): Never translate an empty string.
11898 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
11899 * lib/argp.h (OPTION_NO_TRANS): New option.
11901 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
11903 * modules/argp (Maintainer): Replace Simon Josefsson
11904 by Sergey Poznyakoff.
11906 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
11908 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
11909 changes merged back into glibc.
11911 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
11913 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
11915 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
11917 * lib/xvasprintf.c: Include xalloc.h.
11918 (xvasprintf): Use xalloc_die, not xmalloc_die.
11920 2004-09-29 Bruno Haible <bruno@clisp.org>
11922 * modules/alloca-opt: New file, derived from modules/alloca.
11923 * modules/allocsa: Depend on alloca-opt instead of alloca.
11924 * modules/setenv: Likewise.
11925 * modules/vasnprintf: Likewise.
11926 * MODULES.html.sh: Add alloca-opt.
11928 2004-09-28 Simon Josefsson <jas@extundo.com>
11930 * gnulib-tool: New parameter --lgpl, to asseert that modules are
11931 LGPL, and to replace license template from GPL to LGPL.
11933 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
11935 * modules/dummy: Change license to LGPL.
11937 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
11939 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
11941 2004-09-24 Simon Josefsson <jas@extundo.com>
11943 * modules/minmax (License): Change from GPL to LGPL.
11945 2004-09-23 Simon Josefsson <jas@extundo.com>
11947 * gnulib-tool (--import): Typo.
11949 2004-09-23 Simon Josefsson <jas@extundo.com>
11951 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
11953 2004-09-22 Bruno Haible <bruno@clisp.org>
11955 * modules/*: Add 'License' field.
11956 * gnulib-tool: Accept --extract-license option.
11957 (func_get_license): New function.
11959 2004-09-21 Bruno Haible <bruno@clisp.org>
11961 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
11962 Reported by Simon Josefsson.
11964 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
11966 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
11967 gl_AC_TYPE_LONG_LONG.
11969 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
11971 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
11973 2004-09-18 Simon Josefsson <jas@extundo.com>
11974 and Paul Eggert <eggert@cs.ucla.edu>
11976 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
11977 calls with autoreconf. Define GL_LIB.
11979 2004-09-14 Karl Berry <karl@gnu.org>
11981 * config/srclist.txt: unsync setenv.c, sigh.
11983 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
11985 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
11986 Problem reported by Bruno Haible in:
11987 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
11989 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
11991 * config/srclist.txt: Comment out argp-pvh.c.
11993 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
11995 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
11996 in case some system header has #define'd it. Problem reported by
11997 Soeren D. Schulze in
11998 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
12000 2004-09-09 Karl Berry <karl@gnu.org>
12002 * regex.[ch]: delete from the root. These were supposed to be
12003 synced with emacs cvs, but this has not happened for about
12004 a year, and anyway nothing else uses emacs regex.[ch].
12005 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
12006 lib/regex[.ch] is untouched.
12008 2004-09-09 Bruno Haible <bruno@clisp.org>
12010 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
12012 2004-09-09 Bruno Haible <bruno@clisp.org>
12014 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
12016 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
12018 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
12020 * modules/xvasprintf: New file.
12021 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
12023 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
12025 * lib/xvasprintf.h: New file.
12026 * lib/xvasprintf.c: New file.
12027 * lib/xasprintf.c: New file.
12029 2004-09-08 Bruno Haible <bruno@clisp.org>
12031 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
12033 2004-09-08 Bruno Haible <bruno@clisp.org>
12035 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting length
12037 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any more.
12039 2004-09-08 Bruno Haible <bruno@clisp.org>
12041 * lib/stdint_.h: New file, taken from GNU clisp.
12043 2004-09-08 Bruno Haible <bruno@clisp.org>
12044 Oskar Liljeblad <oskar@osk.mine.nu>
12046 * modules/stdint: New file.
12047 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
12049 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12051 Import from coreutils.
12052 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
12053 strings on unbounded length. alloca's performance benefits aren't
12054 that important here.
12055 (V_STRDUP): Remove.
12056 (parse_with_separator): New function, with most of the internals
12057 of the old parse_user_spec. Allow user to omit both user and group,
12058 for compatibility with FreeBSD.
12059 Clone only the user name, not the entire spec.
12060 Do not set *uid, *gid unless entirely successful.
12061 Avoid memory leak in some failing cases.
12062 Fix regression for USER.GROUP reported by Dmitry V. Levin in
12063 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
12064 (parse_user_spec): Rewrite to use parse_with_separator.
12066 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12068 * modules/userspec: Don't depend on alloca.
12070 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12072 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
12074 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
12076 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
12077 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
12078 utimecmp, utimens, xnanosleep. Rename sha to sha1.
12080 2004-08-16 Simon Josefsson <jas@extundo.com>
12082 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
12083 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
12084 Add --dry-run for --import.
12085 Let user provided command line parameters override configure.ac
12088 2004-08-12 Simon Josefsson <jas@extundo.com>
12090 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
12091 as discussed with Paul Eggert in threads rooted at
12092 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
12094 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
12095 Before, the test was empty, and relied on ELIDE_CODE in source
12097 (gl_PREREQ_GETOPT): New macro.
12098 (gl_GETOPT): Use them.
12100 2004-08-12 Simon Josefsson <jas@extundo.com>
12102 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
12103 * lib/getopt_.h: Renamed from getopt.h.
12105 2004-08-12 Simon Josefsson <jas@extundo.com>
12107 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
12108 Change default library name from libfoo to libgnu.
12109 Now, if you have a configure.ac that says:
12112 gl_MODULES(error getopt etcetera)
12114 you can import all you need by running:
12115 ../gnulib/gnulib-tool --import
12117 * modules/getopt (Files): Rename getopt.h to getopt_.h.
12118 (Makefile.am): Rewrite, use logic from argz.
12119 (Include): Use <getopt.h> instead of "getopt.h".
12121 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12123 * modules/argp (Files): Add m4/unlocked-io.m4.
12124 (Depends-on): Add extensions.
12126 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12128 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
12129 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
12130 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
12131 Check for program_invocation_name, program_invocation_short_name,
12132 flockfile, funlockfile, features.h, _getopt_long_only_r.
12134 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12136 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
12137 its complicated substitute.
12138 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
12139 and program_invocation_name.
12140 (__argp_basename) [!_LIBC]: Remove; the only use was
12141 replaced by its body.
12142 (__argp_short_program_name): Change condition from
12143 !defined __argp_short_program_name to
12144 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
12145 to match argp-namefrob.h.
12146 (__argp_failure): Don't assume strerror_r returns char *.
12147 * lib/argp-parse.c (N_): Define unconditionally.
12148 (argp_default_options): Fill out initializers with 0 to avoid
12151 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12153 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
12156 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12158 Merge from coreutils.
12160 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
12162 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
12163 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
12165 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12167 Merge from coreutils.
12169 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
12170 wmemchr or wmemcpy. Problem reported by Robert Dahlem
12171 for Reliant Unix 5.43.
12173 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
12174 (union fooround): Use uintmax_t, not long int.
12175 The rest is a merge from libc:
12176 [defined _LIBC]: Include <shlib-compat.h>.
12177 (_obstack) [defined _LIBC]: Remove after 2.3.4.
12179 * lib/settime.c (settime): Recode to avoid warning with Sun Forte C 6U2.
12181 * lib/strverscmp.c: Convert to UTF-8.
12183 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12185 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
12188 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12190 * modules/xalloc-die: New file.
12191 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
12193 * modules/md5 (Files): Add m4/uint32_t.m4.
12194 * modules/sha1: Renamed from modules/sha.
12196 Rename lib/sha.h to lib/sha1.h.
12197 Rename lib/sha.c to lib/sha1.c.
12198 Rename m4/sha.m4 to m4/sha1.m4.
12199 (lib_SOURCES): Likewise.
12200 (configure.ac): Rename gl_SHA to gl_SHA1.
12201 (Include): sha.h -> sha1.h.
12203 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12205 * m4/uint32_t.m4, uintptr_t.m4: New files.
12206 * m4/sha1.m4: Renamed from sha.m4.
12207 (gl_SHA1): Renamed from gl_SHA. All uses changed.
12209 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12211 * lib/obstack.h (obstack_empty_p):
12212 Don't assume that chunk->contents is suitably aligned.
12213 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
12214 Likewise. Problem reported by Benno in
12215 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
12217 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
12218 readable. This could be improved further but it'd take some work.
12220 2004-08-08 Simon Josefsson <jas@extundo.com>
12222 * modules/xgethostname (Depends-on): Remove exit and error (not
12225 * modules/getpass-gnu: Add getpass.h.
12226 (Depends-on): Add stdbool.
12227 * modules/getpass: Add getpass.h.
12229 2004-08-08 Simon Josefsson <jas@extundo.com>
12231 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
12232 Check getpass declaration.
12234 2004-08-08 Simon Josefsson <jas@extundo.com>
12236 * lib/xgethostname.c: Don't include error.h (not used).
12238 * lib/getpass.h: Add.
12239 * lib/getpass.c: Include getpass.h first.
12241 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
12243 * lib/xalloc-die.c: New files.
12244 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
12246 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted): Likewise.
12247 Move inclusions of gettext.h, error.h, exitfail.h to xalloc-die.c.
12248 (_, N_, xalloc_die): Move to xalloc-die.c.
12249 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
12250 so that we needn't mess with xalloc_msg_memory_exhausted.
12252 * lib/sha1.h: Renamed from sha.h.
12253 (SHA1_H): Renamed from _SHA_H.
12254 (sha1_ctx): Renamed from sha_ctx.
12255 (sha1_init_ctx): Renamed from sha_init_ctx.
12256 (sha1_process_block): Renamed from sha_process_block.
12257 (sha1_process_bytes): Renamed from sha_process_bytes.
12258 (sha1_finish_ctx): Renamed from sha_finish_ctx.
12259 (sha1_read_ctx): Renamed from sha_read_ctx.
12260 (sha1_stream): Renamed from sha_stream.
12261 (sha1_buffer): Renamed from sha_buffer.
12262 * lib/sha1.c: Likewise; renamed from sha.c.
12263 Do not include <sys/types.h>.
12264 Include <stddef.h> rather than <stdlib.h>.
12266 2004-08-08 Bruno Haible <bruno@clisp.org>
12268 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
12269 FILESYSTEM_PREFIX_LEN.
12270 * lib/progreloc.c: Likewise.
12271 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
12273 2004-08-06 Simon Josefsson <jas@extundo.com>
12275 * modules/progname (Depends-on): Don't depend on stdbool.
12277 2004-08-06 Simon Josefsson <jas@extundo.com>
12279 * modules/getsubopt: New file.
12280 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12283 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12285 More merge from coreutils.
12287 * m4/utimens.m4, utimecmp.m4: New files.
12288 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
12289 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
12290 prereq.m4, sha.m4: Import changes from coreutils.
12292 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12294 More merge from coreutils.
12295 * modules/raise, modules/readtokens0, modules/utimens,
12296 modules/utimecmp, module/xnanosleep: New files.
12297 * modules/strftime: Add lib/strftime.h.
12298 Change include from <time.h> to "strftime.h".
12299 * modules/yesno: Add lib/yesno.h.
12300 * modules/backupfile: Remove lib/addext.c.
12301 * modules/euidaccess: Add stat-macros.h.
12302 * modules/canonicalize, modules/euidaccess,
12303 modules/filemode, modules/lchown, modules/makepath,
12304 modules/rmdir, modules/stat: Likewise.
12306 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12309 * lib/argp-help.c (make_hol, hol_append): Don't assume that
12310 SIZE_MAX is a valid preprocessor constant.
12311 (__argp_basename): Change from "#ifndef _LIBC"
12312 to "#ifndef __argp_short_program_name", so that
12313 we don't compile these functions for tar.
12315 More merges from coreutils.
12316 * lib/raise.c, readtokens0.h, readtokens0.c, strftime.h, utimens.h,
12317 utimens.c, utimecmp.h, utimecmp.c, xnanosleep.h, xnanosleep.c,
12318 yesno.h: New files.
12319 * lib/addext.c: Remove; no longer needed.
12320 * lib/yesno.c, argmatch.h, argmatch.c, backupfile.h, backupfile.c,
12321 euidaccess.c, filemode.c, closeout.c, dup2.c, exclude.c,
12322 fileblocks.c, filemode.c, fnmatch.c, fnmtahc_loop.c,
12323 fopen-safer.c, fsusage.c, fsusage.h, ftruncate.c, full-write.c,
12324 getdate.y, getloadavg.c, getugroups.c, hard-locale.c, hard-locale.h,
12325 hash.c, human.c, human.h, lchown.c, lchown.h, makepath.c, makepath.h,
12326 md5.c, md5.h, memchr.c, memcoll.c, memrchr.c, modechange.c,
12327 modechange.h, mountlist.c, mountlist.h, nanosleep.c, posixtm.c,
12328 putenv.c, quotearg.c, quotearg.h, readtokens.c, readutmp.c,
12329 readutmp.h, rmdir.c, safe-read.c, save-cwd.c, savedir.c, setenv.c,
12330 sig2str.c, stat.c, strtoimax.c, strverscmp.c, userspec.c, utime.c,
12331 version-etc.c., xgethostname.c, xmemcoll.c, xreadlink.c, xstrtod.c,
12332 xstrtod.h, xstrtoimax.c, xstrtol.c, xstrtol.h, xstrtoumax.c:
12333 Import changes from coreutils.
12335 2004-08-05 Simon Josefsson <jas@extundo.com>
12337 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
12339 2004-08-05 Simon Josefsson <jas@extundo.com>
12341 * m4/getsubopt.m4: New file.
12343 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12345 Merge from coreutils.
12347 * m4/c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
12350 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
12351 FILESYSTEM_PREFIX_LEN ->
12352 FILE_SYSTEM_PREFIX_LEN.
12353 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
12354 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
12355 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
12356 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
12358 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
12359 prerequisite modules now handle the DOS stuff.
12360 Don't check for unistd.h.
12362 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12364 Merge from coreutils.
12366 * lib/.gdb-history: Remove; this doesn't belong here.
12368 * lib/c-strtod.c, c-strtod.h, c-strtold.c, cycle-check.c,
12369 cycle-check.h, dev-ino.h, canonicalize.h, canonicalize.c,
12370 fcntl-safer.h, fcntl-safer.c, getcwd.c: New files.
12372 * lib/dirname.h: Include <stdbool.h>.
12373 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
12374 for consistency with POSIX terminology. All uses changed.
12375 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
12376 (strip_trailing_slashes): Use bool for booleans.
12377 * lib/stripslash.c (strip_trailing_slashes): Likewise.
12379 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
12380 sometimes returns a positive errno value even when it succeeds.
12381 (print_errno_message) [!LIBC]: Fall back on strerror if
12382 __strerror_r fails.
12384 * lib/path-concat.c (mempcpy): Don't define if a system header defines it.
12385 Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
12386 (longest_relative_suffix): New function.
12387 (path_concat): Use it. Assume first argument is not NULL.
12388 Port to DOS. Omit redundant separators.
12389 Report an error instead of returning NULL.
12390 Use mempcpy instead of memcpy.
12391 (xpath_concat): Remove: not declared or used.
12393 * lib/same.h: Include <stdbool.h>
12394 (same_name): Return bool, not int.
12395 * lib/same.c (same_name): Likewise.
12396 (errno): Don't declare; we assume C89 or better now.
12398 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
12399 if not already defined.
12401 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
12402 * lib/dup-safer.c (errno): Likewise.
12404 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12406 Merge from coreutils.
12407 * modules/c-strtod, modules/c-strtold, modules/canonicalize,
12408 modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
12409 * modules/path-concat: Don't depend on strdup.
12411 2004-08-03 Simon Josefsson <jas@extundo.com>
12413 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
12414 * lib/progname.h: Don't include stdbool.h.
12416 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12418 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
12419 * MODULES.html.sh (func_all_modules): Remove fatal.
12421 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12423 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
12425 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12427 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
12430 2004-08-02 Simon Josefsson <jas@extundo.com>
12432 * lib/getsubopt.h: New file, with comments from Bruno Haible.
12433 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
12434 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
12436 2004-08-01 Simon Josefsson <jas@extundo.com>
12438 * lib/xgetdomainname.c: Include stdlib.h, for free().
12440 2004-07-19 Bruno Haible <bruno@clisp.org>
12442 * MODULES.html.sh (func_all_modules): Add dummy.
12444 2004-07-16 Simon Josefsson <jas@extundo.com>
12446 * modules/dummy: New file.
12448 2004-07-16 Simon Josefsson <jas@extundo.com>
12450 * lib/dummy.c: New file.
12452 2004-07-16 Bruno Haible <bruno@clisp.org>
12454 * lib/backupfile.h: Add extern "C" for C++.
12455 * lib/closeout.h: Likewise.
12456 * lib/copy-file.h: Likewise.
12457 * lib/findprog.h: Likewise.
12458 * lib/full-write.h: Likewise.
12459 * lib/pathname.h: Likewise.
12460 * lib/progname.h: Likewise.
12461 * lib/stpcpy.h: Likewise.
12462 * lib/stpncpy.h: Likewise.
12463 * lib/strcase.h: Likewise.
12464 * lib/strstr.h: Likewise.
12465 * lib/xalloc.h: Likewise.
12467 * lib/mbswidth.h: Add extern "C" for C++.
12468 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
12470 2004-07-13 Robert Millan <robertmh@gnu.org>
12472 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
12474 2004-07-09 Simon Josefsson <jas@extundo.com>
12476 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
12477 failed without this.)
12479 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
12481 * modules/chown (Files): Add lib/fchown-stub.c, since
12482 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
12484 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
12486 * lib/fchown-stub.c: New file.
12488 2004-06-24 Jim Meyering <jim@meyering.net>
12490 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
12492 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12494 * modules/argz: Omit "#include".
12496 * MODULES.html.sh (func_all_modules): Add calloc, to match
12497 2004-06-01 addition of calloc module.
12499 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12501 * m4/argz.m4: New file, which is autoupdated from libtool.
12503 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12505 * lib/argz.c, argz_.h: New files, which are autoupdated from libtool.
12507 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12509 * config/srclist-update: Don't insist on "USA." before the close-comment,
12510 as libtool omits the period and puts the */ on a separate line.
12511 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
12512 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
12514 2004-06-22 Gary V. Vaughan <gary@gnu.org>
12516 * modules/argz: New file.
12517 * MODULES.html.sh (func_all_modules): Add argz.
12519 2004-06-12 Jim Meyering <jim@meyering.net>
12520 and Paul Eggert <eggert@cs.ucla.edu>
12522 * modules/hash (Files): Add lib/xalloc.h.
12523 * modules/pipe (Depends-on): Add wait-process.
12524 * modules/stat (Depends-on): Add xalloc.
12525 * modules/userspec (Files): Add lib/userspec.h.
12528 Upgrade from gettext-0.13.
12529 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
12530 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
12531 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
12533 2004-06-10 Jim Meyering <jim@meyering.net>
12535 * lib/calloc.c: New file.
12537 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
12539 * lib/getdate.y (yylex): Allow space between sign and number.
12540 Problem reported by Dan Jacobson.
12542 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
12544 Merge from coreutils CVS.
12546 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
12547 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
12548 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
12549 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
12550 xstrtol.m4: Fix copyright date and/or serial number.
12552 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
12553 See if we need an fchown replacement.
12554 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
12555 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
12556 and use the replacement function if we detect either defect.
12558 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
12561 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
12562 and Jim Meyering <jim@meyering.net>
12564 Merge from coreutils CVS.
12566 * lib/stat-macros.h: New file, with contents from file-type.h
12567 and coreutils' system.h.
12568 * lib/file-type.c: Include "stat-macros.h".
12569 * lib/file-type.h (file_type): Move all macro definitions to new file,
12572 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
12573 Wrap old code with this conditional.
12574 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
12575 function that does not dereference symlinks.
12576 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
12578 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
12579 dependency problems.
12580 (xreadlink): Accept new arg SIZE, for efficiency.
12581 All decls and uses changed.
12582 * lib/xreadlink.h: Include <stddef.h>, for size_t.
12584 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
12585 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
12587 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h, sysexits.h.
12589 2004-06-01 Jim Meyering <jim@meyering.net>
12591 * m4/calloc.m4: New file.
12593 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
12595 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
12596 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
12597 Also, fix a typo in a diagnostic.
12599 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
12601 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
12602 or AC_FUNC_REALLOC.
12604 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
12606 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
12607 macros to be defined.
12608 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
12609 the allocator returns NULL because the requested size is zero.
12611 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
12613 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
12614 var. Add comment explaining why libc still defines it. This
12615 merges the following patch from glibc:
12616 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
12618 2004-05-20 Andreas Schwab <schwab@suse.de>
12620 * m4/free.m4: Replace free if it not known to work, not the other
12623 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
12625 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
12626 present in glibc since revision 1.1 of this file.
12627 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
12628 obstack_alignment_mask, obstack_alloc, obstack_base,
12629 obstack_blank, obstack_blank_fast, obstack_chunk_size,
12630 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
12631 obstack_grow0, obstack_init, obstack_int_grow,
12632 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
12633 obstack_next_free, obstack_object_size, obstack_ptr_grow,
12634 obstack_ptr_grow_fast, obstack_room): Remove declarations of
12635 nonexistent functions.
12637 2004-05-18 Karl Berry <karl@gnu.org>
12639 * config/srclist.txt: break link for vasnprintf.c.
12641 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
12643 Port obstack to the AS/400, where pointers are 16 bytes wide and
12644 you cannot cast an integer to a valid pointer. This patch is
12645 currently waiting to be integrated into glibc; see
12646 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
12648 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
12649 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
12650 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
12651 (struct obstack): temp member is now a union of a pointer and
12652 an integer, instead of an integer. All integer uses changed.
12653 This does not affect the physical layout of struct obstack,
12654 except on hosts (like the AS/400) where the size or alignment of
12655 void * is greater than that of ptrdiff_t.
12656 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
12657 __STDC__)]: Store temporary in pointer member of union, not
12659 * lib/obstack.c: Include <stddef.h>, for offsetof.
12660 (struct fooalign): Remove; it doesn't need a name.
12661 (union fooround): Change double to long double, and add void *.
12662 (DEFAULT_ALIGNMENT): Use offsetof to compute.
12663 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
12664 not a macro. Hence the values are always int; so remove all
12665 casts-to-int in uses.
12667 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
12669 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
12670 we can get this patch merged into glibc.
12672 2004-05-17 Derek R. Price <derek@ximbiot.com>
12673 Paul Eggert <eggert@cs.ucla.edu>
12675 * m4/argp: Depend on alloca.
12677 2004-05-17 Derek R. Price <derek@ximbiot.com>
12678 Paul Eggert <eggert@cs.ucla.edu>
12680 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than freecoding.
12682 2004-05-17 Bruno Haible <bruno@clisp.org>
12684 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a precision
12685 that consists of a '.' followed by an empty digit string.
12686 Patch by Tor Lillqvist <tml@iki.fi>.
12688 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
12690 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
12691 for backward compatibility with older code. We need our own
12692 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
12693 it under some other name, and our alloca.h will define it.
12695 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
12696 Derek Price <derek@ximbiot.com>
12698 * lib/alloca.c: Include <alloca.h>, to get our interface.
12699 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
12700 include <alloca.h> first. Use C89 prototype for alloca; this
12701 requires including <stddef.h> for size_t. Use extern "C" if C++.
12702 Use #elif for simplicity, since we can assume C89 now.
12703 Don't try to source the system alloca.h since it will not be found
12704 and to prevent recursively including its replacement.
12705 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
12706 * lib/regex.c: Likewise.
12708 2004-05-16 Derek Price <derek@ximbiot.com>
12709 Paul Eggert <eggert@cs.ucla.edu>
12711 getline cleanup. This changes the getndelim2 API: both order of
12712 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
12715 * lib/getline.c: Don't include stddef.h or stdio.h, since our
12716 interface does that.
12717 (getline): Always use getdelim, so that we don't have two
12718 copies of this code.
12719 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
12721 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
12722 (GETNDELIM2_MAXIMUM): New macro.
12723 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
12724 instead of the old practice of delim2==0. All callers changed.
12725 Return -1 on overflow, instead of returning junk.
12726 Do not set *linesize unless allocation succeeds.
12727 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
12728 that we include sys/types.h.
12729 * lib/getnline.h: Likewise.
12730 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
12731 (getndelim2): Reorder arguments.
12732 * lib/getnline.c (getnline, getndelim):
12733 Don't discard the NMAX argument.
12734 (getnline): Invoke getndelim, to avoid code duplication.
12735 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
12736 of (size_t) -1 by callers of the getnline family.
12738 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
12740 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
12741 Check for gettimeofday.
12742 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
12743 Check for settimeofday, stime.
12745 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
12747 * lib/nanosleep.c (suspended): Change its type from int to
12748 sig_atomic_t volatile.
12749 (first_call): Make it private to rpl_nanosleep, and have it
12750 be zero initially as that's a bit faster.
12751 (my_usleep): Round up fractional times instead of truncating them,
12752 as this is the usual meaning for 'sleep'.
12754 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
12756 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
12757 (ENOSYS): Define if not defined.
12758 (settime): Fall back on stime if it exists and settimeofday fails.
12759 But don't bother with fallbacks if a method fails with errno == EPERM.
12761 2004-05-11 Jim Meyering <jim@meyering.net>
12763 Prior to this change, the save_cwd caller required read access to the
12764 current directory on most systems (ones with the fchdir function).
12766 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
12767 fails, try write-only, and finally, resort to using xgetcwd.
12769 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
12771 * lib/obstack.c, obstack.h: Import changes from libc.
12773 2004-04-28 Bruno Haible <bruno@clisp.org>
12775 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it also
12776 implicitly appends .exe to executables.
12777 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
12778 accepts Windows pathnames.
12779 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN): Treat
12780 Cygwin like Windows, since it now accepts Windows pathnames.
12781 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN): Treat
12782 Cygwin like Windows, since it now accepts Windows pathnames.
12783 Reported by Derek Robert Price <derek@ximbiot.com>.
12785 2004-04-21 Karl Berry <karl@gnu.org>
12787 * config/srclist.txt (localcharset.c): break sync.
12789 2004-04-20 Paul Eggert <eggert@twinsun.com>
12791 * m4/host-os.m4: Add a copyright notice.
12793 2004-04-20 Jim Meyering <jim@meyering.net>
12795 Change UTILS_ to gl_ in AC_DEFINE'd names.
12796 Change utils_- and jm_-prefixed variables, too.
12797 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
12798 UTILS_FUNC_MKDIR_TRAILING_SLASH.
12799 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
12801 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
12802 Don't emit trailing blanks.
12803 Also rename jm_-prefixed variables to have gl_ prefix.
12805 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
12806 Also rename jm_-prefixed variables to have gl_ prefix.
12808 * m4/jm-macros.m4: Reflect the renamings.
12809 * m4/prereq.m4: Likewise.
12811 2004-04-20 Jim Meyering <jim@meyering.net>
12813 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak memory.
12815 2004-04-20 Jim Meyering <jim@meyering.net>
12816 Bruno Haible <bruno@clisp.org>
12818 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
12819 memory when realloc fails.
12821 2004-04-19 Jim Meyering <jim@meyering.net>
12823 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
12824 now that readutmp.c may call `free (0)'.
12826 2004-04-19 Bruno Haible <bruno@clisp.org>
12828 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
12829 * m4/inttypes_h.m4: Likewise.
12830 * m4/stdint_h.m4: Likewise.
12831 * m4/intmax_t.m4: Likewise.
12832 * m4/uintmax_t.m4: Likewise.
12834 2004-04-18 Jim Meyering <jim@meyering.net>
12836 * m4/prereq.m4: Don't forbid jm_ prefix.
12838 * m4/afs.m4, allocsa.m4, assert.m4, backupfile.m4, bison.m4:
12839 * m4/check-decl.m4, chown.m4, d-ino.m4, d-type.m4, dirname.m4, dos.m4:
12840 * m4/error.m4, fpending.m4, fstypename.m4, fsusage.m4, ftruncate.m4:
12841 * m4/getdate.m4, getgroups.m4, gettext.m4, glibc21.m4, group-member.m4:
12842 * m4/human.m4, intmax.m4, intmax_t.m4, inttostr.m4, inttypes.m4:
12843 * m4/inttypes_h.m4, jm-macros.m4, jm-winsz1.m4, jm-winsz2.m4, lchown.m4:
12844 * m4/lib-check.m4, link-follow.m4, localcharset.m4, longlong.m4:
12845 * m4/ls-mntd-fs.m4, lstat.m4, makepath.m4, mbrtowc.m4, mbswidth.m4:
12846 * m4/memchr.m4, memcmp.m4, mkdtemp.m4, mkstemp.m4, mountlist.m4:
12847 * m4/nanosleep.m4, path-concat.m4, perl.m4, prereq.m4, putenv.m4:
12848 * m4/quotearg.m4, regex.m4, stat.m4, stdint_h.m4, strftime.m4:
12849 * m4/strtoimax.m4, strtoll.m4, strtoull.m4, strtoumax.m4, timespec.m4:
12850 * m4/uintmax_t.m4, ulonglong.m4, unlink-busy.m4, unlocked-io.m4:
12851 * m4/uptime.m4, utimbuf.m4, utime.m4, utimes-null.m4, vasnprintf.m4:
12852 * m4/xstrtoimax.m4, xstrtol.m4, xstrtoumax.m4:
12853 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
12855 2004-04-18 Jim Meyering <jim@meyering.net>
12857 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc failure,
12858 don't leak memory and do call END_UTMP_ENT.
12860 2004-04-16 Jim Meyering <jim@meyering.net>
12862 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
12863 coreutils' stat program.
12864 (gl_PREREQ): Don't require jm_PREREQ_STAT.
12866 2004-04-11 Paul Eggert <eggert@twinsun.com>
12868 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume C89.
12869 (CHAR_BIT): Remove, since we assume C89.
12870 Include <stdint.h> if available, as per current Autoconf CVS advice.
12872 2004-03-31 Jim Meyering <jim@meyering.net>
12874 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
12875 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
12876 * m4/xalloc.m4: Likewise.
12878 2004-03-30 Paul Eggert <eggert@twinsun.com>
12880 Merge from coreutils.
12882 * m4/inttostr.m4: New file.
12883 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
12884 Require AM_STDBOOL_H and gl_TIMESPEC instead.
12885 Require gl_CLOCK_TIME.
12886 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
12888 2004-03-30 Paul Eggert <eggert@twinsun.com>
12890 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
12891 not bool, to be more consistent with Unix conventions.
12892 Suggested by Bruno Haible.
12894 Merge from coreutils.
12896 * lib/imaxtostr.c, inttostr.c, inttostr.h, offtostr.c, umaxtostr.c:
12899 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
12900 the usual <time.h> dance.
12901 (get_date): Change signature to support fractional time stamps.
12902 All callers changed.
12903 * lib/getdate.y: Include "getdate.h" first, as we can now
12904 assume C89 and don't need to worry about 'const'.
12905 Similarly, include "unlocked-io.h" near start, not in middle.
12906 Include <limits.h>.
12907 (textint.value): Use long int rather than int.
12908 (textint.digits): Use size_t rather than int.
12909 (BILLION, LOG10_BILLION): New constants.
12910 (parser_control): New member rel_ns. Members day_ordinal,
12911 time_zone, month, day, hour, minutes, rel_year, rel_month,
12912 rel_day, rel_hour, rel_minutes, rel_seconds
12913 are now long int, not int. Member seconds is now struct timespec,
12914 not int. New member timespec_seen. Members dates_seen, days_seen,
12915 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
12917 (%union.intval): Now long int, not int.
12918 New member timespec.
12919 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
12920 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
12921 (spec): Now is a timespec or an item list.
12922 (timespec, items): New nonterminals.
12923 (time, rel, relunit, number, get_date):
12924 Add support for fractional seconds.
12925 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
12926 (gmtime, localtime, mktime): Remove decls; not needed with C89.
12927 (to_hour): First arg is now long int, not int.
12928 (to_year): Returns long int, not int.
12929 Don't treat year -70 like 70.
12930 (tm_diff): Returns long int, not int.
12931 (lookup_word): Use bool instead of int when appropriate.
12932 (yylex): Use size_t for count, not int.
12933 Detect overflow when parsing large integer constants.
12934 Add support for fractions.
12935 (get_date): Make pointers 'const' if possible.
12936 Use more-portable code to detect integer overflow.
12937 (main) [TEST]: Adjust to above changes. Test for localtime failure.
12938 Don't use ctime; it's not reliable if the year has >4 digits.
12940 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
12941 This is for compatibility with BSD.
12943 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
12944 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
12945 From coreutils' system.h.
12947 * lib/userspec.c: Don't include "posixver.h".
12948 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
12949 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
12950 compatible extension. Simplify code by removing a boolean int
12951 that was always nonzero if a string was nonnull.
12953 2004-03-30 Jim Meyering <jim@meyering.net>
12955 Merge from coreutils.
12957 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
12958 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
12959 on some systems one must include <grp.h> before it.
12960 Reported by Christian Krackowizer.
12962 2004-03-30 Jim Meyering <jim@meyering.net>
12964 Merge from coreutils.
12966 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
12968 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
12969 an empty input stream.
12971 * lib/readtokens.c: Include <stdbool.h>.
12972 (readtoken): Use `size_t' rather than int/long.
12973 All callers adjusted.
12974 Use `bool' rather than `int' where appropriate.
12975 Use memset rather than an explicit loop.
12976 Use x2nrealloc rather than xrealloc.
12977 Allow the use of `\0' as a delimiter.
12978 (readtokens): Likewise.
12979 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
12981 2004-03-30 Jim Meyering <jim@meyering.net>
12983 * m4/realloc.m4: Remove file, since now it does no more than
12984 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
12985 the `configure.ac' section of module/realloc.
12986 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
12988 2004-03-30 Bruno Haible <bruno@clisp.org>
12990 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
12993 2004-03-29 Paul Eggert <eggert@twinsun.com>
12995 Merge changes to getloadavg.c from coreutils and Emacs.
12997 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
12998 Define to an expression, not to the empty string.
12999 Include cloexec.h and xalloc.h.
13000 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
13001 Use set_cloexec_flag rather than rolling our own.
13002 * lib/cloexec.c, cloexec.h: New files.
13004 2004-03-29 Paul Eggert <eggert@twinsun.com>
13006 * m4/cloexec.m4: New file.
13008 2004-03-18 Paul Eggert <eggert@twinsun.com>
13010 * lib/getopt.h: Sync with libc CVS.
13012 2004-03-18 Paul Eggert <eggert@twinsun.com>
13013 Bruno Haible <bruno@clisp.org>
13015 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
13018 2004-03-18 Paul Eggert <eggert@twinsun.com>
13019 Bruno Haible <bruno@clisp.org>
13021 * lib/mbswidth.h: Include <wchar.h> only if HAVE_DECL_MBSWIDTH_IN_WCHAR_H,
13022 not on all platforms that have <wchar.h>.
13023 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
13025 2004-03-09 Paul Eggert <eggert@twinsun.com>
13027 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
13028 Sync with libc CVS.
13029 * lib/getopt_int.h: New file, also synced from libc.
13031 2004-03-09 Paul Eggert <eggert@twinsun.com>
13033 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
13034 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
13035 Bring back getopt.c, getopt.h, getopt1.c.
13037 2004-03-07 Paul Eggert <eggert@twinsun.com>
13039 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
13040 All uses changed. Check for sa_sigaction member; this fixes
13041 a bug first reported by Jason Andrade in
13042 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
13044 2004-03-07 Paul Eggert <eggert@twinsun.com>
13046 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
13047 '#if' expressions. Unlike the code it replaces, it does not
13048 depend on (defined _SC_PAGESIZE). However, it does depend on
13049 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
13050 first reported by Jason Andrade in
13051 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
13053 2004-02-25 Simon Josefsson <jas@extundo.com>
13055 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
13057 2004-02-25 Simon Josefsson <jas@extundo.com>
13059 * lib/strdup.h: New file.
13060 * lib/strdup.c: Include it.
13061 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
13062 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
13064 2004-02-23 Karl Berry <karl@gnu.org>
13066 * doc/maintain.texi, standards.texi, make-stds.texi: new files
13067 (from fencepost.gnu.org:/gd/gnuorg).
13069 2004-02-23 Karl Berry <karl@gnu.org>
13071 * config/srclistvars.sh (GNUORG) [karl]: redefine.
13072 * config/srclist.txt: add maintain/standards documents.
13074 2004-02-18 Bruno Haible <bruno@clisp.org>
13076 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
13077 Reported by Derek Robert Price <derek@ximbiot.com>.
13079 2004-02-16 Karl Berry <karl@gnu.org>
13081 * config/mkinstalldirs, install-sh: update from automake.
13083 2004-02-06 Karl Berry <karl@gnu.org>
13085 * m4/po.m4: update from gettext 0.14.1.
13087 2004-02-06 Karl Berry <karl@gnu.org>
13089 * lib/config.charset: update from gettext 0.14.1.
13091 2004-02-05 Paul Eggert <eggert@twinsun.com>
13093 Add comments and code, prompted by suggestions from Bruno Haible
13095 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
13096 describing the enum quoting_style values.
13097 * lib/quotearg.c (quotearg_alloc): New function.
13098 (quotearg_buffer_restyled): Treat lone { and } as special.
13099 Treat = as special. Work around bug with older shells
13100 that "see" a '\' that is really the 2nd byte of a multibyte char.
13101 Quote empty string with shell_quoting_style.
13103 2004-02-03 Bruno Haible <bruno@clisp.org>
13105 * m4/pipe.m4: New file, from GNU gettext.
13107 2004-02-03 Bruno Haible <bruno@clisp.org>
13109 * lib/pipe.h: New file, from GNU gettext.
13110 * lib/pipe.c: New file, from GNU gettext.
13112 2004-01-27 Bruno Haible <bruno@clisp.org>
13114 * m4/execute.m4: New file, from GNU gettext.
13116 2004-01-27 Bruno Haible <bruno@clisp.org>
13118 * lib/execute.h: New file, from GNU gettext.
13119 * lib/execute.c: New file, from GNU gettext.
13120 * lib/w32spawn.h: New file, from GNU gettext.
13122 2004-01-24 Paul Eggert <eggert@twinsun.com>
13124 Merge from diffutils.
13126 * lib/file-type.c (file_type): Add typed memory objects.
13127 * lib/file-type.h (S_TYPEISTMO): New macro.
13129 * lib/c-stack.h (c_stack_action): Remove argv argument.
13130 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
13131 (die): Don't calculate message unless segv_action returns.
13132 (get_stack_location, min_address_from_argv, max_address_from_argv,
13133 volatile stack_base, volatile_stack_size): Remove.
13134 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
13135 that every segmentation violation is a stack overflow. (Ouch!)
13136 See Debian bug 136249 (still outstanding) for more info about why
13137 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
13139 2004-01-24 Paul Eggert <eggert@twinsun.com>
13141 Exit-status fix from coreutils.
13143 Use exit_failure consistently in place of EXIT_FAILURE,
13144 so that program exit statuses are consistent on failure.
13146 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
13147 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
13148 * lib/argmatch.h: Comment fix to match the above.
13149 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
13150 Now a macro referring to exit_failure, instead of a separate
13151 variable. Include "exitfail.h" to get it.
13152 * lib/xstrtol.h: Include "exitfail.h".
13153 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
13155 * lib/long-options.c (parse_long_options): Use prototype
13156 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
13159 2004-01-21 Jim Meyering <jim@meyering.net>
13161 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
13162 so as not to conflict with a different-sized __mktime_internal
13163 function in GNU libc.
13164 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
13165 Problem building statically-linked `ls' reported by Michael Brunnbauer.
13167 2004-01-20 Karl Berry <karl@gnu.org>
13169 * config/config.guess: update from config.
13171 * config/srclistvars.sh: GNUWWWLICENSES for karl.
13173 2004-01-20 Bruno Haible <bruno@clisp.org>
13175 Safer stack allocation.
13176 * lib/setenv.c: Include allocsa.h.
13177 (alloca): Remove fallback definition.
13178 (freea): Remove macro.
13179 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
13182 2004-01-20 Bruno Haible <bruno@clisp.org>
13184 * m4/eealloc.m4: New file, from GNU gettext.
13186 2004-01-20 Bruno Haible <bruno@clisp.org>
13188 * m4/allocsa.m4: New file, from GNU gettext.
13190 2004-01-20 Bruno Haible <bruno@clisp.org>
13192 * lib/xallocsa.h: New file, from GNU gettext.
13193 * lib/xallocsa.c: New file, from GNU gettext.
13195 2004-01-20 Bruno Haible <bruno@clisp.org>
13197 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
13199 2004-01-20 Bruno Haible <bruno@clisp.org>
13201 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
13202 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE specially.
13204 2004-01-20 Bruno Haible <bruno@clisp.org>
13206 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid() patch.
13208 2004-01-20 Bruno Haible <bruno@clisp.org>
13210 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
13212 2004-01-20 Bruno Haible <bruno@clisp.org>
13214 * lib/eealloc.h: New file.
13216 2004-01-20 Bruno Haible <bruno@clisp.org>
13218 * lib/binary-io.h: Avoid warnings on Cygwin.
13220 2004-01-20 Bruno Haible <bruno@clisp.org>
13222 * lib/allocsa.h: New file, from GNU gettext.
13223 * lib/allocsa.c: New file, from GNU gettext.
13225 2004-01-18 Karl Berry <karl@gnu.org>
13227 * doc/gpl.texi, lgpl.texi: new files.
13229 2004-01-18 Karl Berry <karl@gnu.org>
13231 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
13232 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
13234 2004-01-15 Paul Eggert <eggert@twinsun.com>
13236 Merge from coreutils.
13238 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
13239 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
13240 (gl_DEFAULT_POSIX2_VERSION): Move
13241 the documentation from 'configure' into 'config.hin',
13242 so that 'configure --help' isn't burdened by it and
13243 we don't have to worry about its formatting there.
13244 Reword the documentation so that it's more succinct
13245 and can be run together into a single paragraph.
13246 * m4/same.m4 (gl_SAME): Check for pathconf.
13248 2004-01-15 Paul Eggert <eggert@twinsun.com>
13250 Merge from coreutils.
13252 * lib/posixver.c: Include posixver.h.
13254 * lib/same.c: Include <stdbool.h>, <limits.h>.
13255 (_POSIX_NAME_MAX): Define if not defined.
13257 (same_name): If file names are silently truncated, report
13258 that the file names are the same if they are the same after
13259 the silent truncation.
13261 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
13262 conversion function.
13263 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
13264 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
13267 2004-01-15 Jim Meyering <jim@meyering.net>
13269 Merge from coreutils.
13271 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
13272 if no library is required.
13273 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
13274 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
13275 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
13276 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
13277 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
13278 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
13279 value, $ac_cv_search_crypt, if it's "none required".
13280 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
13281 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
13282 not gl_FUNC_GETLOADAVG.
13283 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
13284 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
13286 2004-01-15 Jim Meyering <jim@meyering.net>
13288 Merge from coreutils.
13290 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
13291 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
13292 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
13294 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
13295 optional configure-time default.
13297 * lib/version-etc.c (version_etc_copyright): Update copyright date.
13299 * lib/xreadlink.c (xreadlink): Correct outdated comment.
13301 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
13303 Merge from coreutils.
13305 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
13306 value, $ac_cv_search_nanosleep, if it's "none required".
13308 2004-01-14 Paul Eggert <eggert@twinsun.com>
13310 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
13311 with like-named macro in fnmatch.c.
13312 (EXT): Use an internal constant instead.
13314 Merge fnmatch patches from glibc.
13315 * lib/fnmatch.c (mbsinit): Remove define.
13316 Add libc_hidden_ver (__fnmatch, fnmatch).
13317 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
13318 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
13320 2004-01-14 Karl Berry <karl@gnu.org>
13322 * config/install-sh: update from automake.
13324 2004-01-13 Karl Berry <karl@gnu.org>
13326 * config/install-sh: update from automake.
13328 2004-01-09 Karl Berry <karl@gnu.org>
13330 * config/install-sh: update from automake.
13332 2004-01-05 Karl Berry <karl@gnu.org>
13334 * config/config.{sub,guess}: update from config.
13336 2003-12-31 Karl Berry <karl@gnu.org>
13338 * config/depcomp: update from automake.
13340 2003-12-14 Karl Berry <karl@gnu.org>
13342 * lib/config.charset: update from gettext-runtime.
13344 2003-12-03 Paul Eggert <eggert@twinsun.com>
13346 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
13347 Bug reported by Alfred M. Szmidt.
13349 2003-12-03 Bruno Haible <bruno@clisp.org>
13351 * m4/gettext.m4: Upgrade from gettext-0.13.
13352 * m4/po.m4: Upgrade from gettext-0.13.
13353 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
13354 * m4/intmax.m4: New file, from gettext-0.13.
13355 * m4/printf-posix.m4: New file, from gettext-0.13.
13357 2003-11-29 Karl Berry <karl@gnu.org>
13359 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
13361 2003-11-25 Paul Eggert <eggert@twinsun.com>
13362 Bruno Haible <bruno@clisp.org>
13364 * lib/printf-parse.h: Don't include sys/types.h.
13365 (ARG_NONE): New macro.
13366 (char_directive): Change type of *arg_index fields to size_t.
13367 * lib/printf-parse.c: Don't include sys/types.h.
13368 (SSIZE_MAX): Remove macro.
13369 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
13370 Remove unnecessary overflow check.
13371 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
13374 2003-11-25 Bruno Haible <bruno@clisp.org>
13376 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
13378 2003-11-25 Bruno Haible <bruno@clisp.org>
13380 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
13383 2003-11-24 Paul Eggert <eggert@twinsun.com>
13385 * modules/alloca: Remove dependency on xalloc.
13387 2003-11-24 Paul Eggert <eggert@twinsun.com>
13389 * lib/alloca.c: Remove dependency on xalloc module.
13390 (xalloc_die): Remove.
13391 (memory_full) [!defined emacs]: New macro.
13392 [!defined emacs]: Don't include xalloc.h.
13393 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
13394 address arithmetic overflows. Change datatypes a bit to avoid
13397 2003-11-22 Jim Meyering <jim@meyering.net>
13399 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments: s/size/size_t/.
13401 2003-11-21 Karl Berry <karl@gnu.org>
13403 * config/config.{sub,guess}: update from config.
13405 2003-11-18 Karl Berry <karl@gnu.org>
13407 * config/config.{sub,guess}: update from config.
13409 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
13411 2003-11-17 Paul Eggert <eggert@twinsun.com>
13413 * README: Mention that S+T cannot overflow if S is the size of
13414 an existing object and T is sufficiently small.
13416 2003-11-17 Jim Meyering <jim@meyering.net>
13418 On systems without utime and without a utimes function capable of
13419 dealing with a NULL struct utimbuf* argument, this utime replacement
13420 could -- in unusual circumstances -- leak a file descriptor.
13421 * lib/utime.c: Include <unistd.h> and <errno.h>.
13422 (utime_null): Be sure to close `fd' and to preserve errno.
13423 Reported by Geoff Collyer via Arnold Robbins.
13425 2003-11-17 Bruno Haible <bruno@clisp.org>
13427 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
13428 (Depends-on): Add xsize.
13430 2003-11-17 Bruno Haible <bruno@clisp.org>
13432 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
13434 2003-11-17 Bruno Haible <bruno@clisp.org>
13436 * lib/vasnprintf.c (alloca): Remove fallback definition.
13437 (freea): Remove definition.
13438 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
13439 Reported by Paul Eggert.
13441 2003-11-16 Paul Eggert <eggert@twinsun.com>
13442 Bruno Haible <bruno@clisp.org>
13444 Protect against address arithmetic overflow.
13445 * lib/printf-args.h: Include stddef.h.
13446 (arguments): Change type of field 'count' to size_t.
13447 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
13448 'unsigned int' where appropriate.
13449 * lib/printf-parse.h: Include sys/types.h.
13450 (char_directive): Change type of *arg_index fields to ssize_t.
13451 (char_directives): Change type of fields 'count', max_*_length to
13453 * lib/printf-parse.c: Include sys/types.h and xsize.h.
13454 (SSIZE_MAX): Define fallback value.
13455 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
13456 instead of 'int' where appropriate. Check a_allocated, d_allocated
13457 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
13458 * lib/vasnprintf.c: Include xsize.h.
13459 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
13460 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
13461 overflow. Avoid wraparound when converting a width or precision from
13464 2003-11-16 Bruno Haible <bruno@clisp.org>
13466 Update from GNU gettext.
13467 * lib/printf-parse.c: Generalize to it can be compiled for wide strings.
13468 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
13469 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
13470 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
13471 SNPRINTF): New macros.
13472 Don't include <alloca.h> if the file is used inside libintl.
13473 (local_wcslen): New function, for Solaris 2.5.1.
13474 (VASNPRINTF): Use it instead of wcslen.
13476 2003-11-16 Bruno Haible <bruno@clisp.org>
13478 * lib/xsize.h (xmax): New function.
13479 (xsum, xsum3, xsum4): Declare as "pure" functions.
13481 2003-11-12 Paul Eggert <eggert@twinsun.com>
13483 * modules/xalloc (Files): Undo latest change, since xalloc.h
13484 no longer needs SIZE_MAX or PTRDIFF_MAX.
13486 2003-11-12 Paul Eggert <eggert@twinsun.com>
13488 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
13491 2003-11-12 Paul Eggert <eggert@twinsun.com>
13493 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
13494 "return", to pacify some unknown compiler. Problem reported
13495 by Joerg Schilling.
13497 2003-11-12 Paul Eggert <eggert@twinsun.com>
13499 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
13500 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
13501 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
13502 heuristic is just as accurate as far as we know, and it removes a
13503 dependency on size_max.m4 and ptrdiff_max.m4.
13505 2003-11-11 Bruno Haible <bruno@clisp.org>
13507 * modules/xsize (Files): Add m4/size_max.m4.
13508 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
13510 2003-11-11 Bruno Haible <bruno@clisp.org>
13512 * m4/size_max.m4: New file.
13513 * m4/ptrdiff_max.m4: New file.
13514 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
13515 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
13516 (gl_XALLOC): Invoke it.
13518 2003-11-11 Bruno Haible <bruno@clisp.org>
13520 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
13521 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
13524 2003-11-10 Paul Eggert <eggert@twinsun.com>
13526 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
13527 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
13528 rejected some allocations of exactly SIZE_MAX - 2 bytes.
13530 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
13531 not (size_t) -1, since it's defined here.
13533 2003-11-09 Karl Berry <karl@gnu.org>
13535 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
13537 2003-11-06 Paul Eggert <eggert@twinsun.com>
13539 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
13540 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
13541 Reject sizes of exactly SIZE_MAX bytes.
13542 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
13543 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
13545 2003-11-05 Bruno Haible <bruno@clisp.org>
13547 * lib/xsize.h: Include limits.h, to avoid a possible collision with
13548 SIZE_MAX defined in <limits.h> on Solaris.
13550 2003-11-04 Jim Meyering <jim@meyering.net>
13552 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
13553 variable names, rather than @VAR@.
13554 * modules/poll: Likewise.
13556 2003-11-04 Bruno Haible <bruno@clisp.org>
13558 * modules/xsize: New file.
13559 * modules/linebreak: Depend on xsize.
13560 * MODULES.html.sh (func_all_modules): Add xsize.
13562 2003-11-04 Bruno Haible <bruno@clisp.org>
13564 * m4/xsize.m4: New file.
13566 2003-11-04 Bruno Haible <bruno@clisp.org>
13568 * lib/xsize.h: New file.
13569 * lib/linebreak.c: Include xsize.h.
13570 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
13571 argument for overflow.
13572 Suggested by Paul Eggert.
13574 2003-11-03 Karl Berry <karl@gnu.org>
13576 * config/config.{guess,sub}: update from config.
13578 2003-11-03 Jim Meyering <jim@meyering.net>
13580 * modules/userspec (lib_SOURCES): Add userspec.h.
13581 (Include): Add "userspec.h".
13582 Improve description.
13584 2003-11-03 Jim Meyering <jim@meyering.net>
13586 * lib/userspec.c: Include "userspec.h".
13587 * lib/userspec.h: New file.
13589 2003-11-03 Bruno Haible <bruno@clisp.org>
13591 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
13593 2003-11-03 Bruno Haible <bruno@clisp.org>
13595 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if available,
13596 to avoid (extremely rare) race condition.
13597 Suggested by Paul Eggert.
13599 2003-11-02 Karl Berry <karl@gnu.org>
13601 * config/srclist.txt (vasprintf.c): sync broken, sigh.
13603 2003-10-31 Paul Eggert <eggert@twinsun.com>
13605 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
13606 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
13607 (read_filesystem_list): Set and use me_type_malloced.
13608 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
13609 whatever the type happens to be), for brevity and consistency.
13610 Check for size calculation overflow on Alphas running OSF/1.
13612 2003-10-31 Jim Meyering <jim@meyering.net>
13614 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
13616 * lib/linebuffer.c: Include <string.h> for declaration of memset.
13618 2003-10-30 Paul Eggert <eggert@twinsun.com>
13619 Bruno Haible <bruno@clisp.org>
13621 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
13622 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
13624 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
13626 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
13627 netbsd*-gnu*. Suggested by Robert Millan.
13629 2003-10-29 Paul Eggert <eggert@twinsun.com>
13631 * modules/group-member: Depend on stdbool.
13633 2003-10-29 Paul Eggert <eggert@twinsun.com>
13635 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
13637 2003-10-29 Paul Eggert <eggert@twinsun.com>
13639 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
13640 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
13641 after the 'gnu' in these cases. This fixes some bugs in the
13642 previous change, and is based on suggestions by Robert Millan.
13644 2003-10-29 Paul Eggert <eggert@twinsun.com>
13646 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
13647 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
13649 * lib/quotearg.c (quotearg_n_options): Use it.
13650 * lib/group-member.c: Include <stdbool.h>.
13651 (free_group_info): Arg is now const *; don't free arg.
13652 (get_group_info): Now returns bool and accepts struct group_info *,
13653 rather than returning a malloc'ed struct group_info *.
13654 All uses changed. Check for overflow in internal size calculation.
13656 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
13657 rather than xmalloc/xrealloc.
13658 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
13659 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
13660 conformance bug: the old code used a pointer after freeing the
13661 storage that it addressed.
13662 * lib/hash.c (hash_initialize): Simplify the code by using xalloc_oversized
13663 rather than doing it by hand.
13664 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
13665 the buffer preserved. Use free and xmalloc instead.
13666 * lib/quotearg.c (quotearg_n_options): Likewise.
13667 Use a simpler test for size overflow. Don't use xalloc_oversized
13668 because unsigned int might be wider than size_t (!); this suggests
13669 that we should switch from unsigned int to size_t for slot numbers.
13671 2003-10-28 Paul Eggert <eggert@twinsun.com>
13673 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
13674 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
13675 NetBSD kernels. Requested by Richard Stallman.
13677 2003-10-27 Paul Eggert <eggert@twinsun.com>
13679 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
13680 to allocate the returned structure. Do not allocate a subarray,
13681 as x2nrealloc will do that.
13682 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
13683 instead of xnrealloc.
13684 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
13686 2003-10-27 Bruno Haible <bruno@clisp.org>
13688 * lib/stdbool_.h: Better support for BeOS.
13690 2003-10-26 Paul Eggert <eggert@twinsun.com>
13692 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
13695 2003-10-26 Paul Eggert <eggert@twinsun.com>
13697 * lib/xalloc.h (xalloc_oversized): New static inline function, for
13698 callers that want to do their own size-overflow checking. Include
13699 <stdbool.h>, since xalloc_oversized returns bool.
13700 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
13701 to use xalloc_oversized.
13703 Add two functions x2realloc, x2nrealloc, for programs that grow
13704 arrays dynamically by doubling their sizes.
13705 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
13706 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
13709 Port to C99 semantics for 'inline' of external functions.
13710 Bug reported by Bruno Haible.
13711 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
13712 with the old contents of xnmalloc.
13713 (xnmalloc, xmalloc): Use it.
13714 (xnrealloc_inline): New static inline function,
13715 with the old contents of xnrealloc.
13716 (xnrealloc, xrealloc): Use it.
13718 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for that.
13720 2003-10-26 Karl Berry <karl@gnu.org>
13722 * config/srclist.txt (COPYING.DOC): no longer available from
13723 /gd/gnuorg; don't know where the ultimate source is.
13725 2003-10-25 Paul Eggert <eggert@twinsun.com>
13727 Fix several address-calculation bugs in the hash modules,
13728 plus some minor code cleanup.
13730 * lib/hash.h: Include <stdbool.h>, for bool.
13731 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
13732 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
13733 hash_get_n_entries, hash_get_max_bucket_length,
13734 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
13735 hash_rehash): Use size_t rather than unsigned.
13736 * lib/hash.c (struct hash_table, hash_get_n_buckets,
13737 hash_get_n_buckets_used, hash_get_n_entries,
13738 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
13739 hash_get_entries, hash_do_for_each, hash_string, is_prime,
13740 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
13742 (SIZE_MAX): Define if not defined.
13743 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
13744 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
13746 Use const * when possible.
13747 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
13748 (check_tuning): Fix bug: if tuning parameters were very close to
13749 0 or 1, rounding errors could have caused subscript violations.
13750 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
13751 (hash_initialize): Add 'fail:' label
13752 to free table and return NULL, and use it to simplify code.
13753 Use calloc rather than clearing the storage ourself.
13754 (hash_initialize, hash_rehash): Check for arithmetic overflow in
13755 buffer size calculations.
13756 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
13757 Include <stddef.h>, for size_t.
13758 * lib/hash-pjw.c (hash_pjw): Likewise.
13759 Switch to method described by Bruno Haible.
13760 Include <limits.h>, for CHAR_BIT.
13761 (SIZE_BITS): New macro.
13763 2003-10-23 Paul Eggert <eggert@twinsun.com>
13765 * m4/getline.m4 (AM_FUNC_GETLINE):
13766 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
13767 hosts. Problem reported by Derek Robert Price in
13768 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
13769 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
13770 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
13772 2003-10-21 Paul Eggert <eggert@twinsun.com>
13774 * lib/getndelim2.c (getndelim2): When size calculation overflows,
13775 ceiling the allocation at NMAX bytes rather than silently
13776 discarding input bytes before NMAX is reached. This makes
13777 a difference only if NMAX exceeds SIZE_MAX / 2.
13779 * lib/obstack.c: Merge from glibc.
13780 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
13781 Add libc_hidden_def (_obstack_newchunk).
13782 (_obstack_free) [! defined _LIBC]: Remove.
13783 [defined _LIBC]: Make a strong alias from obstack_free, rather than
13784 a clone of the function body.
13785 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
13786 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
13788 * lib/obstack.h: Indenting cleanup, to make it easier to merge with glibc.
13789 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
13792 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
13793 (obstack_ptr_grow_fast, obstack_int_grow_fast):
13794 Don't use lvalue casts, as GCC plans to remove support for them
13795 in GCC 3.5. Reported by Joseph S. Myers. This bug
13796 was also present in the non-GCC version, indicating that this
13797 code had always been buggy and had never been widely used.
13798 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
13799 Use the fast variant of each macro, rather than copying the
13800 definiens of the fast variant; that way, we'll be more likely to
13801 catch future bugs in the fast variants.
13803 2003-10-20 Bruno Haible <bruno@clisp.org>
13805 * modules/wait-process: New file.
13806 * MODULES.html.sh (func_all_modules): Add wait-process.
13808 2003-10-20 Bruno Haible <bruno@clisp.org>
13810 * m4/wait-process.m4: New file.
13812 2003-10-20 Bruno Haible <bruno@clisp.org>
13814 * lib/wait-process.h: New file, from GNU gettext.
13815 * lib/wait-process.c: New file, from GNU gettext.
13817 2003-10-19 Jim Meyering <jim@meyering.net>
13819 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on HPUX 10.20.
13821 2003-10-18 Karl Berry <karl@gnu.org>
13823 * config/config.guess: update from config.
13825 2003-10-16 Paul Eggert <eggert@twinsun.com>
13827 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
13828 (getgroups): First arg is int, not size_t.
13829 Don't let 'free' mangle errno.
13831 2003-10-16 Paul Eggert <eggert@twinsun.com>
13833 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
13835 2003-10-16 Karl Berry <karl@gnu.org>
13837 * config/config.{guess,sub}: update from config.
13839 2003-10-16 Jim Meyering <jim@meyering.net>
13841 * lib/xmalloc.c: Include <string.h>, for declarations of memset and memcpy.
13843 2003-10-15 Paul Eggert <eggert@twinsun.com>
13845 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
13846 (SIZE_MAX): Remove.
13847 (new_exclude, add_exclude_file): Initial size no longer needs to
13849 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
13850 our own address arithmetic overflow checking.
13852 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
13853 (fnmatch): Do not alloca more than 2000 wide characters;
13854 instead, use malloc for large buffers.
13855 Check for address arithmetic overflow, and return -1
13856 with errno set to ENOMEM in that case.
13857 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
13858 (NEW_PATTERN): Do not alloca more than 8000 bytes;
13859 instead, return -1. Check for address arithmetic overflow.
13861 2003-10-14 Paul Eggert <eggert@twinsun.com>
13863 Handle invalid suffixes and overflow independently, so that
13864 callers can treat them independently as needed. Fix some bugs in
13865 suffix handling, e.g., "100k@" was not diagnosed as an invalid
13866 suffix for a human-readable blocksize. The major caller-visible
13867 change is the addition of a new
13868 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
13869 that both overflow and suffix chars were found.
13871 * lib/human.c (humblock): Don't check separately for invalid suffix
13872 char; that is xstrtoumax's job (now that its bug is fixed).
13873 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
13874 INTMAX_MAX]: New macros.
13875 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
13876 TYPE_MAXIMUM): New macros.
13877 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
13878 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
13879 if overflow occurs, as it's what __strtol does and it's more useful
13881 (__xstrtol): If __strtol reports some error other than ERANGE,
13882 reflect it to the caller as LONGINT_INVALID. If it reports
13883 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
13884 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
13885 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
13887 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
13888 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
13889 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
13890 [defined UINTMAX_MAX]: New macros.
13892 2003-10-14 Bruno Haible <bruno@clisp.org>
13894 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
13896 2003-10-14 Bruno Haible <bruno@clisp.org>
13898 * m4/sig_atomic_t: New file, from GNU gettext.
13899 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
13901 2003-10-14 Bruno Haible <bruno@clisp.org>
13903 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
13904 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
13905 Also use volatile where needed.
13907 2003-10-12 Paul Eggert <eggert@twinsun.com>
13909 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
13910 Change maintainer from Bruno Haible to 'all'.
13912 2003-10-12 Paul Eggert <eggert@twinsun.com>
13914 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
13916 2003-10-12 Paul Eggert <eggert@twinsun.com>
13918 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
13919 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
13920 and define in terms of the other primitives.
13921 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
13922 (SIZE_MAX): Define if not already defined.
13923 (array_size_overflow): New function.
13924 (xalloc_die): Abort instead of exiting if 'error' returns.
13925 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
13926 (xmalloc, xrealloc): Use them.
13927 (xcalloc): Check for address arithmetic overflow.
13928 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
13929 a bit faster than strcpy.
13931 2003-10-10 Simon Josefsson <jas@extundo.com>
13933 * modules/argp (Depends-on): Add restrict and strcase.
13935 2003-10-10 Simon Josefsson <jas@extundo.com>
13937 * m4/argp.m4: Add AC_C_INLINE.
13939 2003-10-08 Paul Eggert <eggert@twinsun.com>
13941 Merge getpass from libc, plus a few fixes.
13943 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
13944 Include <stdbool.h>.
13945 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
13946 __fsetlocking to empty.
13947 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
13948 do include <bits/libc-lock.h>.
13949 Do not include <fcntl.h>; not needed.
13950 [_LIBC]: Include <wchar.h>.
13951 (NOTCANCEL_MODE): New macro.
13952 (flockfile, funlockfile) [_LIBC]: New macros.
13953 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
13954 [!_LIBC]: New macros.
13955 (call_fclose): New function.
13956 (getpass): Use it. Save tty stream separately; this simplifies the
13957 code and makes it more reliable if stdin happens to equal stdout.
13958 Invoke __fsetlocking on tty.
13959 Handle thread cancellation if needed.
13960 Namespace cleanup (use __tcgetattr, __getline).
13961 Use bool for Booleans.
13962 [USE_IN_LIBIO]: Handle wide streams.
13963 [!_LIBC]: Unconditionally do the fseek, since we don't know what
13964 stream might go where.
13966 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
13967 doesn't have to include <stdio.h> before us.
13968 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
13969 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
13970 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
13971 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
13972 if not declared, so that we can use getpass.c code from libc without
13974 (flockfile, ftrylockfile, funlockfile): New macros.
13976 2003-10-08 Paul Eggert <eggert@twinsun.com>
13978 * modules/getpass: Depend on stdbool.
13980 2003-10-08 Paul Eggert <eggert@twinsun.com>
13982 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
13984 2003-10-07 Karl Berry <karl@gnu.org>
13986 * config/config.{guess,sub}: update from config.
13988 2003-10-06 Jim Meyering <jim@meyering.net>
13989 Bruno Haible <bruno@clisp.org>
13991 This lets translators provide better translations for the
13992 "Written by ..." part of --version output.
13993 * lib/version-etc.h: Include stdarg.h.
13994 (version_etc_copyright): Declare as readonly.
13995 (version_etc): Make this function variadic with a NULL-terminated list
13996 of author name strings.
13997 (version_etc_va): New declaration.
13998 * lib/version-etc.c: Include stdarg.h, stdlib.h.
13999 (version_etc_copyright): Declare as readonly.
14000 (version_etc_va): New function. Provide a different translatable string
14001 for each possible number of authors < 10. Abbreviate when there are 10
14003 (version_etc): Make this function variadic. Call version_etc_va.
14004 Suggestion from Gary V. Vaughan.
14006 * lib/long-options.h (parse_long_options): Change prototype: the authors
14007 string is moved to the end and becomes variadic.
14008 * lib/long-options.c: Include stdarg.h.
14009 (parse_long_options): Make this function variadic, too.
14010 Call version_etc_va, not version_etc.
14012 2003-10-06 Bruno Haible <bruno@clisp.org>
14014 * modules/version-etc-2: Remove file.
14015 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
14017 2003-10-06 Bruno Haible <bruno@clisp.org>
14019 * modules/fatal-signal: New file.
14020 * MODULES.html.sh (func_all_modules): Add fatal-signal.
14022 2003-10-06 Bruno Haible <bruno@clisp.org>
14024 * m4/fatal-signal.m4: New file.
14025 * m4/signalblocking.m4: New file, from GNU gettext.
14027 2003-10-06 Bruno Haible <bruno@clisp.org>
14029 * lib/version-etc-2.h: Remove file.
14030 * lib/version-etc-2.c: Remove file.
14032 2003-10-06 Bruno Haible <bruno@clisp.org>
14034 * lib/fatal-signal.h: New file, from GNU gettext.
14035 * lib/fatal-signal.c: New file, from GNU gettext.
14037 2003-10-05 Paul Eggert <eggert@twinsun.com>
14039 * README: Rework advice for preventing empty .o files.
14040 Don't recommend ELIDE constructs. Recommend <stddef.h>,
14043 2003-10-04 Karl Berry <karl@gnu.org>
14045 * lib/argp*: update from libc.
14047 2003-10-04 Karl Berry <karl@gnu.org>
14049 * config/config.{guess,sub}: update from config.
14051 2003-10-02 Bruno Haible <bruno@clisp.org>
14053 * modules/lchown (Include): Add lchown.h.
14054 * modules/time_r (Include): Use "..." syntax.
14055 * modules/xgetdomainname (Include): Add xgetdomainname.h.
14057 2003-10-01 Simon Josefsson <jas@extundo.com>
14059 * MODULES.html.sh (func_all_modules): Move gethostname from section
14060 'based on' to section 'lacking' POSIX:2001.
14062 2003-10-01 Larry Jones <lawrence.jones@eds.com>
14064 * lib/getpass.c (getpass): Use a no-op fseek when switching from input to
14065 output mode on the same stream.
14067 2003-09-29 Paul Eggert <eggert@twinsun.com>
14069 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
14070 Fix arg typo in previous patch.
14072 2003-09-28 Jim Meyering <jim@meyering.net>
14074 * lib/error.c: Correct cpp indentation.
14076 2003-09-27 Paul Eggert <eggert@twinsun.com>
14078 * modules/free: New file.
14080 2003-09-27 Paul Eggert <eggert@twinsun.com>
14082 * m4/free.m4: New file.
14084 2003-09-27 Paul Eggert <eggert@twinsun.com>
14086 * lib/minmax.h (MIN, MAX) [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
14087 Omit the special code that used __typeof__, since we worry that
14088 it could be more trouble than it's worth. See:
14089 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
14090 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
14092 * lib/free.c: New file.
14094 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
14096 Trivial fixes to Makefile.am parts of module listings.
14097 * modules/strstr: Append strstr.h to lib_SOURCES.
14098 * modules/strcase: Likewise, for strcase.h.
14100 2003-09-27 Karl Berry <karl@gnu.org>
14102 * config/mkinstalldirs: update from automake.
14104 2003-09-26 Paul Eggert <eggert@twinsun.com>
14106 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
14107 (error_tail): Do not loop, reallocating temporary buffer, since
14108 the output cannot contain more wide characters than the input
14109 contains bytes, the size must be big enough already. This avoids
14110 one potential size overflow calculation. Check for size overflow
14111 when calculating temporary buffer size. Free temporary buffer
14112 when done, if it was allocated with malloc; this plugs a memory
14113 leak. Remove casts from void * to pointers, that are no longer
14114 needed now that we're assuming C89 or better.
14116 Merge error changes from glibc.
14118 * lib/error.c, error.h: Update copyright notice header to match glibc.
14119 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
14120 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
14121 Disable cancellation while printing error.
14122 * lib/error.h: Prepend __ to parameter names.
14124 2003-09-26 Jim Meyering <jim@meyering.net>
14126 * lib/error.c (error_tail): Move some declarations
14127 into inner scope where the local variables are used.
14129 2003-09-26 Bruno Haible <bruno@clisp.org>
14131 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX stpncpy().
14132 Don't define stpncpy through config.h; it's now done through stpncpy.h.
14134 2003-09-26 Bruno Haible <bruno@clisp.org>
14136 * lib/stpncpy.h (gnu_stpncpy): New declaration.
14137 (stpncpy): Define as alias for gnu_stpncpy.
14138 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
14140 2003-09-25 Simon Josefsson <jas@extundo.com>
14142 * lib/xgetdomainname.h: New file.
14143 * lib/xgetdomainname.c: New file.
14145 2003-09-25 Simon Josefsson <jas@extundo.com>
14146 Bruno Haible <bruno@clisp.org>
14148 * modules/getdomainname: New file.
14149 * modules/xgetdomainname: New file.
14150 * MODULES.html.sh (func_all_modules): Add getdomainname, xgetdomainname.
14152 2003-09-25 Simon Josefsson <jas@extundo.com>
14153 Bruno Haible <bruno@clisp.org>
14155 * m4/getdomainname.m4: New file.
14157 2003-09-25 Simon Josefsson <jas@extundo.com>
14158 Bruno Haible <bruno@clisp.org>
14160 * lib/getdomainname.h: New file.
14161 * lib/getdomainname.c: New file.
14163 2003-09-25 Karl Berry <karl@gnu.org>
14165 * lib/argp-fmtstream.c, argp-help.c: update from libc.
14167 2003-09-25 Karl Berry <karl@gnu.org>
14169 * config/install-sh: update from automake.
14171 2003-09-25 Bruno Haible <bruno@clisp.org>
14173 * modules/version-etc-2: New file, from modules/version-etc with
14175 * MODULES.html.sh (func_all_modules): Add version-etc-2.
14177 2003-09-25 Bruno Haible <bruno@clisp.org>
14179 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
14180 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
14182 2003-09-24 Simon Josefsson <jas@extundo.com>
14184 * modules/xgethostname: Add xgethostname.h.
14186 2003-09-24 Paul Eggert <eggert@twinsun.com>
14188 * lib/linebuffer.c (freebuffer): Don't free the argument, just
14189 the buffer associated with the argument. Bug reported by
14192 2003-09-24 Paul Eggert <eggert@twinsun.com>
14194 * README: Document assumptions that 'int' is at least 32 bits
14195 wide, that integer arithmetic is 2's complement without overflow,
14196 that there are no holes in integer values, that adding sizes of
14197 two nonoverlapping objects can't overflow, and that all-bits-zero
14198 yields scalar zero. Fix spelling and capitalization typos.
14200 2003-09-19 Karl Berry <karl@gnu.org>
14202 * lib/argp.h: update from libc.
14204 2003-09-17 Paul Eggert <eggert@twinsun.com>
14206 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
14207 to avoid spurious warnings like "AC_RUN_IFELSE was called before
14208 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
14210 2003-09-17 Paul Eggert <eggert@twinsun.com>
14212 * gnulib-tool: Use "test -h", not "test -L", for portability
14213 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
14214 (tags_regexp): Remove, since \| doesn't conform to POSIX.
14215 (sed_extract_prog): Issue s commands one-by-one, rather than
14216 using \| in one s command.
14218 2003-09-16 Paul Eggert <eggert@twinsun.com>
14220 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
14221 input error, instead of returning NULL the next time we are called
14222 (and therefore losing track of errno).
14224 2003-09-16 Bruno Haible <bruno@clisp.org>
14226 * gnulib-tool (func_create_testdir): Warn about duplicated
14229 2003-09-15 Paul Eggert <eggert@twinsun.com>
14231 * modules/argmatch, modules/fatal, modules/obstack,
14232 modules/xalloc, modules/xgethostname: Sort dependencies by
14233 importance, not alphabetically.
14235 2003-09-15 Paul Eggert <eggert@twinsun.com>
14237 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
14238 fails, so that the caller gets the proper errno.
14240 * lib/readutmp.c (read_utmp): Likewise.
14241 Check for fstat error. Close stream and free storage
14244 2003-09-14 Karl Berry <karl@gnu.org>
14246 * config/srclist.txt (strdup.c): disable for c89 changes.
14248 2003-09-14 Jim Meyering <jim@meyering.net>
14250 * lib/getloadavg.c: Correct cpp indentation.
14251 * lib/strdup.c: Likewise.
14252 * lib/vasnprintf.c: Likewise.
14254 2003-09-14 Bruno Haible <bruno@clisp.org>
14256 * modules/fwriteerror: New file.
14257 * MODULES.html.sh (func_all_modules): Add fwriteerror.
14259 2003-09-14 Bruno Haible <bruno@clisp.org>
14261 * lib/fwriteerror.h: New file.
14262 * lib/fwriteerror.c: New file.
14264 2003-09-12 Paul Eggert <eggert@twinsun.com>
14266 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
14267 modules/xgethostname, modules/xalloc: Depend on exit.
14269 2003-09-12 Paul Eggert <eggert@twinsun.com>
14271 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
14273 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
14274 and AC_MINIX, too, so that their extensions are available.
14276 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
14277 This macro has been superseded by gl_BACKUPFILE.
14279 More patches to assume C89 or better.
14281 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
14283 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
14285 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
14286 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
14287 Include <string.h>, <stdlib.h> unconditionally.
14288 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
14289 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
14290 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C headers
14292 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
14295 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C headers.
14296 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
14297 * m4/userspec.m4 (gl_USERSPEC): Likewise.
14298 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
14299 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
14300 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14301 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
14303 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
14304 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
14305 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h, strtol.
14306 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
14307 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
14308 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
14311 2003-09-12 Paul Eggert <eggert@twinsun.com>
14313 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
14314 * lib/obstack.c [!defined _LIBC]: Likewise.
14315 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
14316 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
14317 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
14319 More changes to assume C89 or better.
14321 * lib/error.c (error_tail): Assume vprintf.
14323 * lib/argmatch.c (getenv): Remove decl.
14324 * lib/progreloc.c (get_full_program_name): Define via prototype.
14325 * lib/setenv.c (clearenv): Likewise.
14326 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
14328 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
14329 (malloc, memcpy): Remove decls.
14330 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
14331 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
14332 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
14333 (memcpy): Remove macro.
14334 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
14335 (__P): Remove. All uses removed.
14336 (PTR): Remove. All uses changed to void *.
14337 (CHAR_BIT, NULL): Remove.
14338 (spaces, zeros, memset_space, memset_zero)
14339 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
14341 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
14342 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
14343 Define with prototype.
14344 Remove now-unnecessary prototype decl.
14345 (extra_args_spec): Assume ANSI C. All uses changed.
14346 (extra_args_spec_iso): Remove.
14347 (my_strftime, emacs_strftimeu): Define via prototype.
14348 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
14350 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
14351 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
14352 (strtoul, strtol): Remove decls.
14353 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
14355 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
14356 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
14357 (LOCALE_PARAM_PROTO): New macro.
14358 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
14359 (INTERNAL (strtol), strtol): Define with a prototype.
14360 (PARAMS): Remove. All uses removed.
14361 * lib/tempname.c: Include <string.h> unconditionally.
14362 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
14363 * lib/xgethostname.c (main): Define with a prototype.
14364 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
14365 Include <stdlib.h> unconditionally.
14366 (calloc, malloc, realloc, free): Remove decls.
14367 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
14368 Include <stdlib.h> unconditionally. Sort include file names.
14370 (xstrtod): Define with a prototype.
14371 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
14372 (strtol, strtoul): Remove decls.
14374 2003-09-11 Paul Eggert <eggert@twinsun.com>
14376 More patches to assume C89 or better.
14377 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
14378 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
14379 string.h, memchr, STDC_HEADERS.
14381 2003-09-11 Paul Eggert <eggert@twinsun.com>
14383 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
14384 Include <stdlib.h>, <string.h> unconditionally.
14385 Remove now-unnecessary cast to char *.
14386 * lib/strnlen.c: Include <string.h> unconditionally.
14387 * lib/yesno.c (yesno): Define with a prototype.
14389 2003-09-11 Bruno Haible <bruno@clisp.org>
14391 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
14393 2003-09-10 Jim Meyering <jim@meyering.net>
14395 * lib/error.c: Correct indentation of cpp directives.
14397 2003-09-10 Bruno Haible <bruno@clisp.org>
14399 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
14400 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
14401 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
14402 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
14403 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
14404 <stdlib.h> and <string.h> checks.
14405 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
14406 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
14408 2003-09-10 Bruno Haible <bruno@clisp.org>
14410 * lib/strcspn.c: Include <string.h> unconditionally.
14411 * lib/strpbrk.c: Include <string.h> unconditionally.
14412 * lib/strstr.c: Include <string.h> unconditionally.
14413 * lib/unicodeio.c: Include <string.h> unconditionally.
14414 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
14415 * lib/unsetenv.c: Likewise.
14416 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
14417 * lib/yesno.c: Include <stdlib.h> unconditionally.
14418 (rpmatch): Add prototype.
14420 2003-09-09 Paul Eggert <eggert@twinsun.com>
14422 More patches to assume C89 or better.
14423 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
14424 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
14425 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
14427 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for stdlib.h.
14428 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard C
14430 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
14432 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
14433 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
14434 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
14436 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
14437 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
14439 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
14441 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
14442 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
14443 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
14444 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
14445 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
14446 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
14448 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
14449 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
14450 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
14451 C headers, or for string.h.
14452 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
14453 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
14454 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
14455 headers, memory.h, stdlib.h, string.h, strings.h.
14456 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
14457 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
14458 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
14460 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
14461 headers, memory.h, string.h.
14462 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
14463 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
14465 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C headers.
14466 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
14467 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
14468 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
14469 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
14470 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
14472 2003-09-09 Paul Eggert <eggert@twinsun.com>
14476 * lib/acosl.c (main): Use a prototype.
14477 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
14480 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
14482 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
14483 (getopt, etopt_long, getopt_long_only, _getopt_internal)
14484 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
14486 * lib/getopt.c (const): Remove macro.
14487 Include <string.h> unconditionally.
14488 (my_index): Remove; all uses changed to strchr.
14489 (strlen): Remove decl.
14490 (exchange): Remove forward decl; no longer needed.
14491 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
14492 Define with prototype.
14493 * lib/getopt1.c (const): Remove macro.
14494 (getopt_long, getopt_long_only, main): Define with prototype.
14496 * lib/getugroups.c: Include <string.h> unconditionally.
14498 * lib/getusershell.c: Include <stdlib.h> unconditionally.
14499 (getusershell, setusershell, endusershell, readname, main):
14500 Define with prototypes.
14502 * lib/group-member.c: Include group-member.h first.
14503 Include <stdlib.h> unconditionally.
14505 * lib/hard-locale.c: Include hard-locale.h first.
14506 Include <stdlib.h>, <string.h> unconditionally.
14508 * lib/hash.c (free, malloc): Remove decls.
14509 Include <stdlib.h> unconditionally.
14511 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
14512 (getenv): Do not declare.
14514 * lib/idcache.c: Include <string.h> unconditionally.
14516 * lib/long-options.c: Include long-options.h first, to test interface.
14517 Include <stdlib.h> unconditionally.
14519 * lib/makepath.c: Include makepath.h first, to test interface.
14520 Include <stdlib.h> and <string.h> unconditionally.
14522 * lib/linebuffer.c: Include <stdlib.h>.
14523 (free): Remove decl.
14525 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with stddef.h.
14526 rpl_malloc returns void *, not char *.
14527 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a prototype.
14529 * lib/md5.h: Include <limits.h> unconditionally.
14530 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
14531 (__P): Remove; all uses removed.
14532 * lib/md5.c: Include "md5.h" first.
14533 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
14534 md5_buffer, md5_process_bytes, md5_process_block):
14535 Define with prototypes.
14536 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
14537 * lib/sha.c: Include "sha.h" first.
14538 Include <stdlib.h>, <string.h> unconditionally.
14540 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
14541 * lib/memcmp.c (__ptr_t): Likewise.
14542 * lib/memrchr.c (__ptr_t): Likewise.
14543 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
14544 Include <string.h> unconditionally.
14545 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
14546 * lib/memchr.c: Include <stdlib.h> unconditionally.
14547 * lib/memchr.c (LONG_MAX): Remove.
14548 * lib/memrchr.c (LONG_MAX): Likewise.
14549 * lib/memchr.c (__memchr): Define via a prototype.
14550 * lib/memrchr.c (__memrchr): Likewise.
14551 * lib/memcmp.c (__P): Remove, and remove all uses.
14552 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
14553 Remove forward decls; no longer needed.
14554 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
14555 Use types required by C89 in prototype.
14557 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
14558 * lib/savedir.c: Likewise.
14559 * lib/mkdir.c (free): Remove decl.
14560 * lib/rmdir.c (rmdir): Define with a prototype.
14561 * lib/savedir.c: Include savedir.h first, to test interface.
14563 * lib/mktime.c (STDC_HEADERS): Remove.
14564 Include <stdlib.h>, <string.h> unconditionally.
14566 * lib/modechange.c: Include <stdlib.h> unconditionally.
14567 (malloc): Remove decl.
14569 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
14570 (free): Remove decl.
14572 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
14573 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
14574 (This type really should be intptr_t, but that's a C99ism.)
14575 (_obstack_memcpy): Remove: all uses changed to memcpy.
14576 Include <string.h> unconditionally.
14577 (struct obstack): Assume __STDC__ for types of members
14578 chunkfun, freefun, extra_arg.
14579 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
14580 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
14581 obstack_begin, obstack_specify_allocation,
14582 obstack_specify_allocation_with_arg, obstack_chunkfun,
14583 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
14584 Remove unprototyped decls and the macros that use them.
14585 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
14586 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
14587 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
14588 (defined __STDC__ && __STDC__)]:
14589 Remove nonprototyped code.
14590 Include <stdlib.h> unconditionally.
14591 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
14592 _obstack_allocated_p, _obstack_free, obstack_free,
14593 _obstack_memory_used, print_and_abort):
14594 Define using prototypes.
14595 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
14596 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
14597 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
14598 obstack_next_free, obstack_object_size, obstack_room) [0]:
14599 Remove unused, unprototyped code.
14601 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
14603 * lib/physmem.c (physmem_total, physmem_available, main): Define
14606 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
14607 (main): Define with a prototype.
14609 * lib/posixver.c (getenv): Remove decl.
14611 * lib/putenv.c (malloc): Returns void *, not char *.
14612 Include <string.h> unconditionally.
14613 (strchr, memcpy, NULL): Do not define.
14615 * lib/readtokens.c: Include readtokens.h first, to test interface.
14616 Include <stdlib.h>, <string.h> unconditionally.
14617 (init_tokenbuffer): Define with a prototype.
14619 * lib/regex.c (PARAMS): Remove. All uses removed.
14620 All uses of _RE_ARGS removed, too.
14621 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14623 (bzero): Assume memset exists.
14624 (memcmp, memcpy, NULL): Remove.
14625 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
14626 char, or assignments to local vars of type signed char.
14627 (init_syntax_once, PREFIX(extract_number_and_incr),
14628 PREFIX(print_partial_compiled_pattern),
14629 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
14630 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
14631 PREFIX(regex_grow_registers), PREFIX(regex_compile),
14632 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
14633 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
14634 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
14635 wcs_compile_range, byte_compile_range, truncate_wchar,
14636 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
14637 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
14638 count_mbs_length, wcs_re_match_2_internal,
14639 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
14640 PREFIX(alt_match_null_string_p),
14641 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
14642 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
14643 regfree, PREFIX(extract_number)): Define with prototype. Remove
14644 now-unnecessary declaration, if any.
14645 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
14647 Remove now-unnecessary casts among pointer types.
14648 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
14650 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
14651 (free): Remove decl.
14653 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
14655 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
14656 (free): Remove decl.
14658 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
14659 * lib/xgetcwd.c: Likewise.
14661 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
14662 (free): Remove decl.
14664 * lib/strchrnul.c (strchrnul): Define with a prototype.
14665 Fix bug: c_in was not converted to char before searching.
14667 The following changes are not K&R related:
14669 * lib/group-member.h: Include <sys/types.h>, so that this file is
14671 * lib/makepath.h: Likewise.
14673 * lib/getusershell.c (readname, default_index, line_size, readname):
14674 Use size_t, not int, for sizes.
14675 (readname): If the size overflows, report an error instead of
14678 2003-09-09 Paul Eggert <eggert@twinsun.com>
14680 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
14683 2003-09-09 Paul Eggert <eggert@twinsun.com>
14685 * README: New section: portability guidelines.
14687 2003-09-09 Derek Robert Price <derek@ximbiot.com>
14689 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
14692 2003-09-09 Derek Robert Price <derek@ximbiot.com>
14694 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
14696 2003-09-08 Paul Eggert <eggert@twinsun.com>
14698 Assume C89 or better; remove K&R cruft.
14699 A few of these changes were first proposed by Derek Robert Price
14700 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
14702 * lib/addext.c: Include <string.h> unconditionally.
14703 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
14704 Don't declare getenv or malloc.
14706 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
14707 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
14709 (find_stack_direction, alloca): Use prototypes.
14711 * lib/atexit.c (atexit): Define using a prototype.
14713 * lib/basename.c, dirname.c, stripslash.c:
14714 Include <string.h> unconditionally.
14716 * lib/bcopy.c: Include <stddef.h>.
14717 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
14719 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
14721 * lib/error.h (error, error_at_line, error_print_progname)
14722 [! (defined (__STDC__) && __STDC__)]: Remove decls.
14723 * lib/error.c: Include error.h first, to check interface.
14724 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
14725 (VA_START): Remove; all uses changeed to va_start.
14726 (exit, strerror): Remove decls.
14727 (error_print_progname): Prototype uncondionally.
14728 Don't include <errno.h>; no longer needed.
14729 (private_strerror): Remove.
14730 (error_tail): Always define.
14731 (error, error_at_line): Assume C89 or better; always use prototypes.
14732 * lib/fatal.c: Include "fatal.h" first, to test interface.
14733 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
14734 (VA_START): Remove; all uses changed to va_start.
14735 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
14737 (exit): Remove decl.
14738 (fatal): Prototype unconditionally. Assume va_start works.
14739 Abort at end, to pacify gcc.
14741 * lib/euidaccess.c (main): Define with a prototype.
14743 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
14745 * lib/exitfail.c: Include <stdlib.h> unconditionally.
14747 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
14749 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
14750 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
14751 (getenv): Remove decl.
14752 (fnmatch): Define using a prototype.
14753 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
14754 (FCT): Define using a prototype.
14756 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
14758 * lib/gethostname.c: Include <stddef.h>.
14759 (gethostname): Define with prototype. Length is size_t, not int.
14761 2003-09-08 Paul Eggert <eggert@twinsun.com>
14763 Assume C89 or better; remove K&R cruft.
14764 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
14765 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
14766 string.h, getenv, malloc.
14767 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
14769 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
14770 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
14771 do not check for strerror.
14772 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
14773 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
14774 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
14775 do not check for doprnt or vprintf.
14776 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
14777 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
14779 2003-09-08 Paul Eggert <eggert@twinsun.com>
14781 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
14782 getversion.c should have been removed then, but was accidentally
14785 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
14786 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
14788 2003-09-08 Karl Berry <karl@gnu.org>
14790 * config/config.sub, config.guess, srclistvars.sh: update from savannah
14791 config, forget about prep.
14793 * config/depcomp, missing: update from automake.
14795 2003-09-07 Paul Eggert <eggert@twinsun.com>
14797 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
14798 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
14800 2003-09-07 Paul Eggert <eggert@twinsun.com>
14802 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
14803 copy_tm_result. Bug reported by Simon Josefsson in
14804 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
14806 2003-09-06 Paul Eggert <eggert@twinsun.com>
14808 * m4/time_r.m4: New file.
14809 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
14810 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime is.
14811 Check for timegm declaration.
14812 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
14813 Do not check for gmtime_r.
14814 Replace mktime if __mktime_internal does not exist and if mktime
14815 hasn't been replaced already.
14817 2003-09-06 Paul Eggert <eggert@twinsun.com>
14819 * lib/time_r.c, time_r.h: New files.
14821 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
14823 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
14824 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
14826 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
14828 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
14829 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
14830 Include <time_r.h>.
14832 * lib/timegm.c: Switch to glibc implementation, with the following changes:
14833 [defined HAVE_CONFIG_H]: Include <config.h>.
14834 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
14835 (__mktime_internal) [!defined _LIBC]: New decl.
14836 (__gmtime_r) [!defined _LIBC]: New macro and function.
14837 (timegm): Use a prototype, since gnulib assumes C89.
14838 Do not bother declaring tmp to be const, as it's not really usefu.
14839 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
14840 (timegm): Declare only if HAVE_DECL_TIMEGM.
14842 2003-09-06 Paul Eggert <eggert@twinsun.com>
14844 * MODULES.html.sh (func_all_modules): Add time_r.
14845 * modules/time_r: New file.
14846 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
14847 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
14849 2003-09-03 Paul Eggert <eggert@twinsun.com>
14851 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
14852 Bug reported by Lute Kamstra in
14853 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
14855 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
14856 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
14857 course with correspondingly smaller numbers for tomorrow and
14858 yesterday. From Tadayoshi Funaba. Originally installed into
14859 sh-utils on 1999-08-07, but the patch got lost (I guess during the
14862 2003-08-31 Simon Josefsson <jas@extundo.com>
14864 * modules/timegm: New file.
14865 * MODULES.html.sh (func_all_modules): Add timegm.
14867 2003-08-31 Simon Josefsson <jas@extundo.com>
14869 * m4/timegm.m4: New file.
14871 2003-08-31 Simon Josefsson <jas@extundo.com>
14873 * lib/timegm.h: New file.
14874 * lib/timegm.c: New file. Based on wget-1.8.2/src/http.c:mktime_from_utc.
14876 2003-08-31 Karl Berry <karl@gnu.org>
14878 * lib/argp.h: update from libc.
14880 2003-08-28 Bruno Haible <bruno@clisp.org>
14882 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
14883 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
14884 followed by '#define fnmatch fnmatch_posix' gives an error.
14886 2003-08-28 Bruno Haible <bruno@clisp.org>
14888 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
14889 warning on QNX, which defines O_BINARY to 000000.
14891 2003-08-27 Jim Meyering <jim@meyering.net>
14893 * m4/mkstemp.m4: Require that the system mkstemp be able to create
14894 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
14895 would fail after 32. Reported by Danny Levinson. Details here:
14896 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
14898 2003-08-24 Bruno Haible <bruno@clisp.org>
14900 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
14901 MSVC7 <stdio.h> is included later.
14903 2003-08-22 Simon Josefsson <jas@extundo.com>
14905 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
14907 2003-08-20 Karl Berry <karl@gnu.org>
14909 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
14911 2003-08-20 Bruno Haible <bruno@clisp.org>
14913 * modules/progname: New file.
14914 * MODULES.html.sh (func_all_modules): Add progname.
14916 2003-08-20 Bruno Haible <bruno@clisp.org>
14918 * lib/progname.h: New file, from GNU gettext.
14919 * lib/progname.c: New file, from GNU gettext.
14920 * lib/progreloc.c: New file, from GNU gettext.
14922 2003-08-19 Jim Meyering <jim@meyering.net>
14924 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
14925 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
14927 2003-08-19 Bruno Haible <bruno@clisp.org>
14929 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any more.
14931 2003-08-19 Bruno Haible <bruno@clisp.org>
14933 * lib/xstrdup.c: Assume <string.h> exists.
14935 2003-08-18 Paul Eggert <eggert@twinsun.com>
14937 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
14940 2003-08-18 Jim Meyering <jim@meyering.net>
14942 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
14943 * m4/lib-ld.m4: Likewise.
14945 2003-08-18 Jim Meyering <jim@meyering.net>
14947 * lib/setenv.h: Indent nested cpp directive.
14948 * lib/vasnprintf.c: Remove trailing blanks.
14950 2003-08-17 Simon Josefsson <jas@extundo.com>
14952 * modules/xstrndup: New file.
14953 * MODULES.html.sh (func_all_modules): Add xstrndup.
14955 2003-08-17 Simon Josefsson <jas@extundo.com>
14957 * modules/argp: Fix autoconf macro name. Add more dependencies.
14959 2003-08-17 Simon Josefsson <jas@extundo.com>
14961 * m4/xstrndup.m4: New file.
14963 2003-08-17 Simon Josefsson <jas@extundo.com>
14965 * m4/argp.m4: New file.
14967 2003-08-17 Simon Josefsson <jas@extundo.com>
14968 Bruno Haible <bruno@clisp.org>
14970 * lib/xstrndup.h: New file.
14971 * lib/xstrndup.c: New file.
14973 2003-08-17 Bruno Haible <bruno@clisp.org>
14975 * modules/strndup (Files, Include): Add lib/strndup.h.
14977 2003-08-17 Bruno Haible <bruno@clisp.org>
14979 * modules/euidaccess (Files): Add lib/euidaccess.h.
14981 2003-08-17 Bruno Haible <bruno@clisp.org>
14983 * lib/strndup.h: New file.
14985 2003-08-17 Bruno Haible <bruno@clisp.org>
14987 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
14988 like AC_GNU_SOURCE.
14989 * modules/extensions (configure.ac): Comment out the invocation of
14990 gl_USE_SYSTEM_EXTENSIONS.
14992 2003-08-16 Paul Eggert <eggert@twinsun.com>
14994 Merges from coreutils, etc.
14995 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
14996 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
14997 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
14999 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
15000 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
15002 2003-08-16 Paul Eggert <eggert@twinsun.com>
15004 Document merge from coreutils.
15005 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
15006 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
15007 * modules/utime: Add m4/utimes-null.m4.
15009 2003-08-16 Paul Eggert <eggert@twinsun.com>
15011 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
15012 space, undoing this 2003-08-12 change:
15013 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
15015 2003-08-16 Paul Eggert <eggert@twinsun.com>
15017 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
15018 strtoul.c from libc, undoing this 2003-08-12 change:
15019 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
15021 2003-08-16 Jim Meyering <jim@meyering.net>
15023 Merges from coreutils.
15024 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
15025 prefix. Adjust cache variables similarly. Create 500 rather than
15026 just 300 files, to exercise bug on Darwin6.5, too.
15027 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined $missing_dir.
15028 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not AM_SYS_POSIX_TERMIOS.
15029 Reported by mkc@mathdogs.com.
15030 Also change use of $am_cv_sys_posix_termios
15031 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
15032 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
15033 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
15034 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point in
15035 /proc/mounts until it finds one with matching device number. This is
15036 unnecessary when the FILE argument *is* a mount point. No stat call
15037 is necessary in that case. So, disable the statvfs-testing code on
15038 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
15039 as RedHat bug# 84846.
15040 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
15041 to 1MB, so as not to render systems with no stack size limit (e.g.,
15042 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
15043 Include <unistd.h>. On some systems,
15044 it is required for the definition of _SC_PAGESIZE.
15046 2003-08-16 Jim Meyering <jim@meyering.net>
15048 Merge from coreutils.
15049 * lib/xstrtoimax.c: #else #if -> #elif.
15050 * lib/xstrtoumax.c: Likewise.
15052 2003-08-16 Jim Meyering <jim@meyering.net>
15054 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
15055 * m4/utimes.m4: Removed.
15056 * m4/utimes-null.m4: Renamed from utimes.m4.
15058 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
15059 to 1MB, so as not to render systems with no stack size limit (e.g.,
15060 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
15061 Include <unistd.h>. On some systems,
15062 it is required for the definition of _SC_PAGESIZE.
15064 2003-08-16 Jim Meyering <jim@meyering.net>
15065 and Paul Eggert <eggert@cs.ucla.edu>
15067 Merges from coreutils, etc.
15069 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
15070 using the latest version from cvs. This avoids problems with #line
15071 directives using a vendor (Sun) compiler.
15072 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
15073 Don't set GETGROUPS_LIB here; now it's
15074 done via getgroups.m4's wrapper function.
15075 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
15076 rather than just in sh-util/configure.in, so that the
15077 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
15079 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
15080 AC_FUNC_GETLOADAVG where to find getloadavg.c.
15081 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
15082 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
15083 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
15084 Remove code that is now done by the newly-required macros.
15085 Append $(EXEEXT) to DF_PROG.
15086 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
15087 Do not invoke or require the following here,
15088 since prereq.m4 or some gnulib .m4 now does this for us:
15089 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
15090 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
15091 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
15092 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
15093 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
15094 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
15095 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
15097 Do not replace the following functions, as this is now the job
15098 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
15099 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
15100 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
15101 atexit getpass, strdup, getpagesize.
15103 Do not check for the following functions, as this is now the job
15104 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
15105 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
15107 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
15108 Check for sys/sysctl.h.
15109 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
15110 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
15111 of checking for ssize_t ourselves.
15113 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
15114 Require every macro that gnulib/modules/* suggests for us.
15115 (jm_PREREQ_ADDEXT): New macro.
15116 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
15117 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
15119 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
15120 (gl_PHYSMEM): Use it.
15121 Also check for `table' function.
15122 Check for new headers and functions.
15123 Add check for sys/sysmp.h.
15124 With suggestions from Kaveh Ghazi.
15125 Ignore headers that are present but cannot be compiled. This
15126 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
15129 2003-08-15 Paul Eggert <eggert@twinsun.com>
15131 Document merge from coreutils.
15132 * modules/userspec: Depend on posixver.
15133 * modules/strftime: Depend on tzset.
15135 2003-08-15 Paul Eggert <eggert@twinsun.com>
15137 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
15138 rather than tab, after '#' in shell-script copyright notices.
15139 Suggested by Bruno Haible.
15141 2003-08-15 Paul Eggert <eggert@twinsun.com>
15143 * config/srclist-update: Use three spaces, rather than tab, after '#'
15144 in shell-script copyright notices. Suggested by Bruno Haible.
15145 Remove unnecessary parenthesization in regular expression.
15147 2003-08-15 Jim Meyering <jim@meyering.net>
15149 Merge from coreutils.
15150 * lib/xgethostname.c: Include <stdlib.h>.
15151 (xghostname): Don't exit for anything other than memory-related
15152 failure; just return NULL.
15153 * lib/userspec.c: Include "posixver.h".
15154 (parse_user_spec): Accept `.' as a separator only
15155 in pre-POSIX-200112 mode.
15156 * lib/strtoimax.c: Use #elif rather than #else #if.
15157 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
15158 Remove function, now that we can rely on a working tzset function.
15159 [!_LIBC]: Ensure that the required autoconf test has been run.
15160 [!defined _NL_CURRENT && HAVE_STRFTIME]:
15161 Use underlying_strftime for %r.
15162 * lib/sha.c: Merge in some clean-up and optimization changes from glibc.
15163 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
15164 Ensure that it is a multiple of 64.
15165 Rearrange loop exit tests so as to avoid performing an
15166 additional fread after encountering an error or EOF.
15167 * lib/realloc.c: Update copyright date.
15169 2003-08-15 Jim Meyering <jim@meyering.net>
15170 and Paul Eggert <eggert@twinsun.com>
15172 Merge from coreutils.
15173 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
15174 member but strut utmpx does not. Needed for AIX 4.3.3.
15175 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
15177 2003-08-15 Jim Meyering <jim@meyering.net>
15178 and Paul Eggert <eggert@cs.ucla.edu>
15180 Merges from coreutils, etc.
15181 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
15182 Require gl_FUNC_TZSET_CLOBBER.
15183 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit, ut_exit.e_exit,
15184 ut_exit.ut_termination, and ut_exit.e_termination members.
15186 2003-08-14 Paul Eggert <eggert@twinsun.com>
15188 Help the merge from coreutils.
15189 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
15190 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
15191 * m4/tzset.m4: Use it too.
15193 2003-08-14 Paul Eggert <eggert@twinsun.com>
15195 * modules/tzset: New file.
15197 2003-08-14 Jim Meyering <jim@meyering.net>
15199 Merges from coreutils.
15200 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
15201 variable names, rather than @FNMATCH_H@.
15202 * modules/alloca: Likewise for $(ALLOCA_H).
15204 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
15205 the three copies of the literal target, `fnmatch.h'.
15206 * modules/alloca (alloca.h): Likewise.
15208 2003-08-14 Jim Meyering <jim@meyering.net>
15210 Merge from coreutils.
15211 * m4/tzset.m4: New file.
15212 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the MOUNTED_VMOUNT
15213 test to precede the MOUNTED_GETMNTENT1 tests, since otherwise, AIX 5.1
15214 systems would end up using the latter. MOUNTED_GETMNTENT1 support
15215 is inadequate on such systems: 1) detecting whether a file system
15216 is remote doesn't work 2) the MOUNTED_VMOUNT code reports the
15217 HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1 code reports
15218 merely /MOUNT_POINT. Reported by Mike Jetzer.
15220 2003-08-14 Jim Meyering <jim@meyering.net>
15222 Merge from coreutils.
15223 * lib/obstack.h: Whitespace changes.
15224 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
15225 and xcalloc return values.
15226 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
15227 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
15228 hang on OSF/1 5.1 for DIR on both local and remote file systems.
15229 Reported by (and fix confirmed by) Nelson H. F. Beebe.
15230 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
15232 Use mntctl's return value to drive the entry-processing loop, since
15233 we can't rely on the value of the vmt_length member in the last
15234 entry. On some systems doing so could result in exhausting
15235 virtual memory. Based in part on a patch from Mike Jetzer.
15237 2003-08-14 Jim Meyering <jim@meyering.net>
15238 and Paul Eggert <eggert@twinsun.com>
15240 Merges from coreutils, plus other fixes.
15241 * lib/physmem.c: Merge in portability changes from gcc/libiberty
15242 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
15243 for credits and details. Thanks to Kaveh Ghazi for helping
15244 to keep these files in sync.
15245 (ARRAY_SIZE): Define it.
15246 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
15247 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
15248 (memcasecmp): Don't assume size_t fits in unsigned int.
15249 Remove casts and duplicate code.
15250 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
15251 (memcpy): Remove definition.
15252 Merge in some clean-up and optimization changes from glibc.
15253 [BLOCKSIZE]: Move definition to top of file.
15254 Ensure that it is a multiple of 64.
15255 Rearrange loop exit tests so as to avoid performing an
15256 additional fread after encountering an error or EOF.
15257 * lib/md5.h (md5_uintptr): Define.
15258 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
15259 return to the initial working directory. Preserve errno
15261 * lib/idcache.c: Include "xalloc.h".
15262 (xmalloc, xrealloc): Remove decls.
15263 (getuser): Remove casts no longer required in C89.
15264 * lib/human.c: Include stdio.h, for sprintf.
15265 * lib/group-member.c: Include "xalloc.h".
15266 (xmalloc, xrealloc): Remove decls.
15267 (get_group_info): Remove casts no longer required in C89.
15268 * lib/getusershell.c (readname): Remove casts no longer required in C89.
15269 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
15270 * lib/getline.c: Whitespace fix, from coreutils.
15272 2003-08-13 Paul Eggert <eggert@twinsun.com>
15274 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
15277 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
15278 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
15279 Undo previous (whitespace-only) change.
15281 2003-08-13 Paul Eggert <eggert@twinsun.com>
15283 * lib/exclude.c: Include <ctype.h>
15284 (IN_CTYPE_DOMAIN): New macro.
15285 (is_space): New fn.
15286 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
15289 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
15290 Undo previous (whitespace-only) change.
15292 2003-08-13 Paul Eggert <eggert@twinsun.com>
15294 * config/srclist-update: Change update back to the old behavior, leaving
15295 whitespace alone. Use one 'sed' command rather than a pipeline.
15296 (fixlicense): Now a variable, not a function.
15297 (remove_trailing_blanks): Remove.
15298 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
15299 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
15300 Undo previous (whitespace-only) change.
15302 2003-08-12 Paul Eggert <eggert@twinsun.com>
15304 Merge from coreutils.
15305 * modules/euidaccess: Add lib_SOURCES, include for new
15308 2003-08-12 Paul Eggert <eggert@twinsun.com>
15310 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
15311 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
15312 Normalize leading white space and remove trailing white space.
15314 Merge from coreutils
15315 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
15317 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
15318 0.12.1. These files are now being upgraded automatically by
15319 ../config/srclist-update.
15321 2003-08-12 Paul Eggert <eggert@twinsun.com>
15323 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
15324 Normalize leading white space and remove trailing white space.
15325 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
15326 notice, as per ../config/srclist-update.
15328 Merge from coreutils.
15329 * lib/euidaccess.h: New file.
15330 * lib/euidaccess.c: Include it.
15331 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
15332 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
15333 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
15335 2003-08-12 Paul Eggert <eggert@twinsun.com>
15337 * config/srclist-update: Add copyright notice.
15338 (remove_id_lines, remove_trailing_blanks): New constants.
15339 (fixfile): Use them to normalize spacing a bit in copied files.
15340 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
15341 Normalize leading white space and remove trailing white space.
15343 * config/texinfo.tex: Sync with texinfo.
15345 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
15346 strtoul.c from libc, to merge coreutils whitespace changes.
15348 * config/srclist.txt: Get the following m4 files from gettext:
15349 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
15350 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
15351 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
15354 2003-08-12 Karl Berry <karl@gnu.org>
15356 * config/srclist.txt: can't sync vasnprintf.c any more, changes have been
15359 2003-08-11 Paul Eggert <eggert@twinsun.com>
15361 * modules/gnu-source, m4/gnu-source.m4:
15362 Remove; we're assuming Autoconf 2.54 or later now.
15363 Suggested by Bruno Haible.
15364 * MODULES.html.sh (func_all_modules): Remove gnu-source.
15366 2003-08-11 Bruno Haible <bruno@clisp.org>
15368 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
15370 2003-08-11 Bruno Haible <bruno@clisp.org>
15372 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
15373 (vasnprintf): Use it instead of wcslen.
15375 2003-08-11 Bruno Haible <bruno@clisp.org>
15377 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
15378 value to ensure that _Bool promotes to int. Use #define for _Bool when
15379 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
15381 2003-08-10 Karl Berry <karl@gnu.org>
15383 * lib/regex.h: update from libc (whitespace fix).
15385 2003-08-09 Paul Eggert <eggert@twinsun.com>
15387 Merge some files from coreutils. These changes were
15388 originally made by Jim Meyering.
15389 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
15390 many older Unixes require this.
15391 * lib/alloca.c (alloca): Remove cast to argument of free;
15392 no longer needed in C89.
15393 * lib/alloca_.h, regex.h: Fix white space to match
15394 what GNU indent does.
15396 2003-08-09 Paul Eggert <eggert@twinsun.com>
15398 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
15399 apparently Emacs's Unicode mode got confused before my 2003-08-05
15402 2003-08-08 Paul Eggert <eggert@twinsun.com>
15404 * m4/extensions.m4: New file.
15405 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
15406 Require gl_USE_SYSTEM_EXTENSIONS.
15407 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
15408 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
15410 2003-08-08 Paul Eggert <eggert@twinsun.com>
15412 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
15413 * modules/extensions, modules/gnu-source: New files.
15414 * modules/timespec, modules/unlocked-io: Depend on extensions.
15416 2003-08-07 Paul Eggert <eggert@twinsun.com>
15418 * modules/restrict: New file.
15419 * MODULES.html.sh (func_all_modules): Add restrict.
15420 * modules/regex: Depend on restrict.
15422 2003-08-07 Paul Eggert <eggert@twinsun.com>
15424 * m4/restrict.m4: New file.
15425 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
15427 2003-08-07 Bruno Haible <bruno@clisp.org>
15429 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
15430 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
15432 2003-08-07 Bruno Haible <bruno@clisp.org>
15434 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This makes
15435 the module 'getndelim2' compatible with the module 'getline'.
15437 2003-08-05 Paul Eggert <eggert@twinsun.com>
15439 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
15440 byte with "\201" to avoid glitches when editing that source file
15441 with multi-gnome-terminal.
15443 2003-08-05 Paul Eggert <eggert@twinsun.com>
15445 * lib/bumpalloc.h: Remove.
15447 2003-08-05 Paul Eggert <eggert@twinsun.com>
15449 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
15450 * modules/bumpalloc: Remove.
15452 2003-08-04 Paul Eggert <eggert@twinsun.com>
15454 * lib/getloadavg.c: Change copyright notice and spacing to conform to
15457 Merge from coreutils.
15458 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is 1.
15460 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
15461 from Karl Berry, implemented by Jim Meyering.
15462 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
15463 from Dmitry V. Levin.
15464 Remove anachronistic cast of xrealloc.
15465 * lib/fnmatch_.h (__const): Remove. Use 'const'.
15466 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
15467 type. Otherwise, it wouldn't compile with at least /bin/cc on
15468 ymp-cray-unicos9.0.2.X.
15469 Combine two mostly-identical uses of alloca into one.
15470 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
15472 2003-08-04 Dave Love <d.love@dl.ac.uk>
15476 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
15477 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
15478 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
15479 obsolete NLIST_NAME_UNION.
15480 [__GNU__]: Undef BSD and FSCALE.
15481 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
15483 2003-08-03 Paul Eggert <eggert@twinsun.com>
15485 * lib/stdbool_.h (_Bool): Make it signed char, instead of
15486 an enum type, so that it's guaranteed to promote to int. See:
15487 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
15489 2003-08-03 Karl Berry <karl@gnu.org>
15491 * config/depcomp: update from automake.
15493 2003-07-31 Paul Eggert <eggert@twinsun.com>
15495 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
15496 (strerror): Don't assume that a printable int fits in 14 bytes.
15498 2003-07-31 Bruno Haible <bruno@clisp.org>
15500 * modules/getpass-gnu: New file.
15501 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
15503 2003-07-31 Bruno Haible <bruno@clisp.org>
15505 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
15507 2003-07-24 Karl Berry <karl@gnu.org>
15509 * config/missing: update from automake.
15511 2003-07-24 Derek Robert Price <derek@ximbiot.com>
15512 Bruno Haible <bruno@clisp.org>
15514 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
15515 * lib/getline.c (getline, getdelim): Likewise.
15516 Remove _GNU_SOURCE define; now it's defined in config.h through
15519 2003-07-23 Karl Berry <karl@gnu.org>
15521 * config/config.sub: update from prep.
15523 2003-07-22 Paul Eggert <eggert@twinsun.com>
15525 * modules/xalloc (Depends-on): Add exitfail.
15526 * modules/xmemcoll: Likewise.
15528 2003-07-22 Paul Eggert <eggert@twinsun.com>
15530 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
15531 over-parenthesization in macros.
15533 Sync with coreutils.
15535 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
15538 Use `exit_failure' for xalloc and xmemcoll instead of their own
15539 private exit-failure variables.
15540 * lib/xalloc.h (xalloc_exit_failure): Remove.
15541 * lib/xmalloc.c: Likewise. Include exitfail.h.
15542 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
15543 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
15544 * lib/xmemcoll.c: Likewise. Include exitfail.h.
15545 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
15547 2003-07-20 Jim Meyering <jim@meyering.net>
15549 * modules/closeout (Depends-on): Add exitfail.
15550 Suggestion from Bruno Haible.
15552 2003-07-19 Karl Berry <karl@gnu.org>
15554 * config/config.sub: update from prep.
15556 2003-07-18 Paul Eggert <eggert@twinsun.com>
15558 * lib/closeout.h (close_stdout_set_status, close_stdout_status): Remove.
15559 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
15560 to test that it can stand by itself. Include "exitfail.h".
15561 Clients should set exit_failure instead.
15562 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
15564 2003-07-18 Bruno Haible <bruno@clisp.org>
15566 * modules/getndelim2: New file.
15567 * modules/getline: Share files with module getndelim2.
15568 * modules/getnline: Depend on getndelim2 instead of sharing files with
15569 it. Add getnline.c to lib_SOURCES.
15570 * MODULES.html.sh (func_all_modules): Add getndelim2.
15572 2003-07-18 Bruno Haible <bruno@clisp.org>
15574 * m4/getndelim2.m4: New file.
15575 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
15576 invoke gl_PREREQ_GETNDELIM2.
15577 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
15578 gl_PREREQ_GETNDELIM2.
15579 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
15582 2003-07-18 Bruno Haible <bruno@clisp.org>
15584 * lib/getndelim2.h: New file.
15585 * lib/getndelim2.c: Make into a module of its own. Include config.h,
15587 (getndelim2): Make non-static. Change return type to ssize_t.
15588 * lib/getline.h: Change argument names.
15589 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
15590 * lib/getnline.c: Include getndelim2.h.
15592 2003-07-18 Andreas Schwab <schwab@suse.de>
15594 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
15596 2003-07-17 Karl Berry <karl@gnu.org>
15598 * config/config.sub: update from prep.
15600 2003-07-17 Bruno Haible <bruno@clisp.org>
15602 * modules/getnline: New file.
15603 * modules/getline: Add lib/getndelim2.c to source file list.
15604 * MODULES.html.sh (func_all_modules): Add getnline.
15606 2003-07-17 Bruno Haible <bruno@clisp.org>
15608 * m4/getnline.m4: New file.
15610 2003-07-17 Bruno Haible <bruno@clisp.org>
15612 * m4/Makefile.am.in: Remove file.
15613 * m4/Makefile.am: Remove file.
15614 * m4/Makefile.in: Remove file.
15616 2003-07-17 Bruno Haible <bruno@clisp.org>
15618 * lib/getnline.h: New file.
15619 * lib/getnline.c: New file.
15620 * lib/getndelim2.c: New file, extracted from getline.c.
15621 (getndelim2): Renamed from getdelim2, with added nmax argument.
15622 * lib/getline.c: Include getndelim2.c.
15623 (getdelim2): Moved out to getndelim2.c.
15624 (getline, getdelim): Update.
15626 2003-07-17 Bruno Haible <bruno@clisp.org>
15628 * lib/Makefile.am: Remove file.
15629 * lib/Makefile.in: Remove file.
15631 2003-07-17 Bruno Haible <bruno@clisp.org>
15633 * configure.in: Remove file.
15634 * Makefile.in: Remove file.
15636 2003-07-17 Bruno Haible <bruno@clisp.org>
15638 * MODULES.html.sh: Put the </BODY> right before </HTML>.
15640 2003-07-16 Karl Berry <karl@gnu.org>
15642 * config/srclist-update: was running fixlicense twice, which caused
15643 texinfo.tex to be nullified for some reason. Simplify,
15644 $gplsrc is no longer needed as far as I can see?
15646 2003-07-16 Jim Meyering <jim@meyering.net>
15648 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
15650 2003-07-15 Paul Eggert <eggert@twinsun.com>
15652 * config/srclist.txt: Get the following files from gettext-runtime/intl
15653 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
15654 ref-del.sin. From Bruno Haible.
15655 * config/srclist-update (fixfile): Change grep pattern again, since the
15656 previous fix didn't work (there was another trailing $). Use
15657 '[$]' to escape the $s.
15659 2003-07-15 Karl Berry <karl@gnu.org>
15661 * lib/vasnprintf.c: update from gettext.
15663 2003-07-15 Karl Berry <karl@gnu.org>
15665 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
15666 gets expanded when surrounded by '$'.
15668 2003-07-15 Jim Meyering <jim@meyering.net>
15670 * modules/save-cwd: Don't depend on error. From Derek Price.
15672 2003-07-15 Jim Meyering <jim@meyering.net>
15674 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
15676 2003-07-14 Simon Josefsson <jas@extundo.com>
15678 * modules/mempcpy: New file.
15679 * MODULES.html.sh (func_all_modules): Add mempcpy.
15681 2003-07-14 Simon Josefsson <jas@extundo.com>
15683 * m4/mempcpy.m4: New file.
15685 2003-07-14 Simon Josefsson <jas@extundo.com>
15687 * lib/mempcpy.h: New file.
15688 * lib/mempcpy.c: New file.
15690 2003-07-14 Paul Eggert <eggert@twinsun.com>
15692 * modules/getdate, modules/posixtm: Depend on mktime.
15694 2003-07-14 Paul Eggert <eggert@twinsun.com>
15696 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
15697 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
15698 unicodeio.c, unicodeio.h, unlocked-io.h:
15699 Switch from LGPL to GPL.
15701 2003-07-14 Paul Eggert <eggert@twinsun.com>
15703 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
15704 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
15705 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
15706 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
15707 vasprintf.c, vasprintf.h: Regenerate. These files are now being
15708 updated automatically by ../config/srclist-update. This changes
15709 their license from LPGL to GPL.
15711 2003-07-14 Paul Eggert <eggert@twinsun.com>
15713 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
15714 assumed to refer to the root of the most recent stable gettext version.
15715 * config/srclistvars.sh: Add defaults for eggert.
15716 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
15717 Match "This program" as well as "The program". This is needed
15720 2003-07-14 Jim Meyering <jim@meyering.net>
15722 Don't emit diagnostics. Let callers do that.
15723 * lib/save-cwd.c: Don't include "error.h".
15724 (save_cwd): Don't call error. Ensure that errno is valid
15725 when returning nonzero.
15727 * lib/save-cwd.h (restore_cwd): Update prototype.
15728 * lib/save-cwd.c (restore_cwd): Remove two parameters.
15729 Simplify. Don't call error upon failure. Let callers do that.
15730 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
15731 when auditing is enabled. But don't bother updating the #if.
15733 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
15735 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
15736 it breaks C++ compilation.
15737 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
15739 2003-07-10 Simon Josefsson <jas@extundo.com>
15741 * modules/strchrnul (Makefile.am): Add strchrnul.h.
15743 2003-07-10 Jim Meyering <jim@meyering.net>
15745 * m4/clock_time.m4: Remove trailing blank.
15746 * m4/intmax_t.m4: Likewise.
15748 2003-07-10 Jim Meyering <jim@meyering.net>
15750 * lib/vasnprintf.c: Remove trailing blanks.
15751 Make cpp indentation consistent.
15753 2003-07-09 Paul Eggert <eggert@twinsun.com>
15755 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
15756 posixver.c, strftime.c, strnlen.c, strverscmp.c:
15757 Switch from LGPL to GPL.
15759 2003-07-09 Paul Eggert <eggert@twinsun.com>
15761 * config/srclist.txt: Sort sublists. Add $LIBCSRC/sysdeps/generic/strtoul.c.
15762 In comments, add more libc files that differ from gnulib for one
15763 reason or another; we'd like this list to be smaller but for now
15764 let's document what we have.
15766 2003-07-08 Paul Eggert <eggert@twinsun.com>
15768 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding the
15769 use of GNU extensions. Change "x=`eval echo $x`" to the shorter
15770 and sweeter "eval x=$x".
15771 * config/srclist.txt: Get lib/argp* from glibc.
15773 2003-07-07 Paul Eggert <eggert@twinsun.com>
15775 * lib/mktime.c: Fix some boundary cases and remove need for floating point.
15777 Issue a compile-time diagnostic if time_t is floating point, or if
15778 two's complement arithmetic is not in effect, or if arithmetic
15779 right shift does not propagate the sign. These assumptions were
15780 all in the original code but they weren't checked.
15782 (TIME_T_MIDPOINT, verify): New macros.
15783 (__isleap): Remove; it has integer overflow problems.
15784 (leapyear): New function, without those problems.
15785 (ydhms_tm_diff): Remove; splitting into two parts.
15786 (ydhms_diff): New function, containing the arithmetic part of
15787 the old ydhms_tm_diff function. Issue a compile-time
15788 diagnostic if we are not using C99 integer division.
15789 Avoid casts when possible.
15790 (guess_time_tm): New function, containing the checking part of
15791 the old ydhms_tm_diff function. Return the new value, rather than
15792 the difference between it and the old. Accept a new argument T
15793 so that *T specifies the old value. Check for overflow in the result.
15795 (__mktime_internal): Use a time_t offset, not a long int offset.
15796 This undoes the 2003-06-04 change, which is no longer needed now
15797 that we have better overflow checking.
15798 (localtime_offset): Likewise.
15800 (__mktime_internal): Avoid harmful overflow on hosts where time_t
15801 and long are 64-bit but int is only 32-bit.
15802 (ydhms_diff): Use long int to store year1 and yday1.
15803 Issue a compile-time diagnostic if long int is not wide enough.
15805 (__mktime_internal): Use long int to store adjusted year and yday.
15806 Use plain C rather than preprocessor commands, if that doesn't
15808 Check for overflow (and try to repair) after each probe
15809 rather than checking only at the very end. This avoids some bugs
15810 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
15811 does not equal GMT offset at maximum time).
15812 Use integer to check for overflow rather than floating point; this
15813 is more portable to non-IEEE hosts, and is a tad faster.
15814 When we detect that we are oscillating between two values,
15815 don't check whether tm_isdst has the requested value, since
15816 we already know the answer. When tm_isdst has the wrong value,
15817 use a different heuristic to find the right one, based on the
15818 extreme values actually observed in practice in tz2003a,
15819 rather than the (overly optimistic) "previous 3 calendar quarters".
15821 (not_equal_tm, print_tm, check_result): Use "const T" rather than
15822 "T const" to accommodate glibc style.
15823 (check_result): Use less-confusing report format. "long" -> "long int.
15825 Don't loop if the iteration overflows time_t.
15826 Allow a negative step in the iteration.
15828 2003-07-06 Karl Berry <karl@gnu.org>
15830 * config/depcomp: update from automake.
15831 * config/config.sub: update from prep.
15833 2003-07-03 Karl Berry <karl@gnu.org>
15835 * config/config.guess: update from prep.
15837 2003-07-01 Paul Eggert <eggert@twinsun.com>
15839 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
15840 xreadlink.c now includes it unconditionally.
15842 2003-07-01 Paul Eggert <eggert@twinsun.com>
15844 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
15845 having it depend on HAVE_SYS_TYPES_H.
15847 2003-07-01 Bruno Haible <bruno@clisp.org>
15849 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>. <sys/types.h>
15850 should be sufficient.
15851 Reported by Paul Eggert.
15853 2003-06-26 Karl Berry <karl@gnu.org>
15855 * config/depcomp: update from automake.
15857 2003-06-26 Bruno Haible <bruno@clisp.org>
15859 * modules/human: Depend on module stdbool.
15861 2003-06-25 Bruno Haible <bruno@clisp.org>
15863 * modules/readlink: New file.
15864 * modules/xreadlink: Depend on it.
15865 * MODULES.html.sh (func_all_modules): Add readlink.
15867 2003-06-25 Bruno Haible <bruno@clisp.org>
15869 * m4/readlink.m4: New file.
15871 2003-06-25 Bruno Haible <bruno@clisp.org>
15873 * lib/readlink.c: New file.
15875 2003-06-22 Karl Berry <karl@gnu.org>
15877 * config/srclist.txt: update mkinstalldirs from automake.
15878 * config/mkinstalldirs: update.
15880 2003-06-22 Bruno Haible <bruno@clisp.org>
15882 Portability to mingw32.
15883 * m4/ssize_t.m4: New file, from GNU gettext.
15884 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
15885 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
15887 2003-06-22 Bruno Haible <bruno@clisp.org>
15889 * modules/safe-read: Add m4/ssize_t.m4.
15890 * modules/xreadlink: Add m4/ssize_t.m4.
15892 2003-06-20 Bruno Haible <bruno@clisp.org>
15894 Assume C89, so PARAMS isn't needed.
15895 * lib/unicodeio.h (PARAMS): Remove.
15896 * lib/unicodeio.c: Don't use PARAMS.
15898 2003-06-18 Karl Berry <karl@gnu.org>
15900 * config/config.{guess,sub}: update from prep.
15902 2003-06-18 Jim Meyering <jim@meyering.net>
15904 Merge changes from coreutils.
15905 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
15906 Remove explicit declarations of xmalloc and realloc.
15908 (read_utmp): Remove anachronistic cast of xmalloc.
15910 2003-06-17 Paul Eggert <eggert@twinsun.com>
15912 Assume C89, so PARAMS isn't needed.
15913 * lib/backupfile.h (PARAMS): Remove. All uses removed.
15914 * lib/closeout.h, dirname.h, filemode.h, fsusage.h, getdate.h, getline.h,
15915 group-member.h, hard-locale.h, hash.h, linebuffer.h, long-options.h,
15916 makepath.h, memcasecmp.h, memcoll.h, modechange.h, mountlist.h,
15917 path-concat.h, physmem.h, posixtm.h, quote.h, readutmp.h, same.h,
15918 save-cwd.h, savedir.h, stdio-safer.h, strtoimax.c, strverscmp.h,
15919 unistd-safer.h, version-etc.h, xalloc.h, xreadlink.h, xstrtod.h,
15920 xstrtol.h: Likewise.
15921 * lib/filemode.h, hard-locale.h, memcoll.h, modechange.h, physmem.h,
15922 same.h, strverscmp.h: Do not include config.h; no longer needed.
15923 Anyway, config.h should always be included before any other file.
15925 2003-06-11 Simon Josefsson <jas@extundo.com>
15927 * modules/sysexits: New file.
15928 * MODULES.html.sh (func_all_modules): Add sysexits.
15930 2003-06-11 Simon Josefsson <jas@extundo.com>
15932 * lib/sysexit_.h: New file.
15934 2003-06-11 Derek Price <derek@ximbiot.com>
15936 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is necessary.
15938 2003-06-11 Bruno Haible <bruno@clisp.org>
15940 * m4/sysexits.m4: New file.
15942 2003-06-10 Simon Josefsson <jas@extundo.com>
15944 * lib/argp.h: New file, from glibc.
15945 * lib/argp-ba.c: New file, from glibc.
15946 * lib/argp-eexst.c: New file, from glibc.
15947 * lib/argp-fmtstream.c: New file, from glibc.
15948 * lib/argp-fmtstream.h: New file, from glibc.
15949 * lib/argp-fs-xinl.c: New file, from glibc.
15950 * lib/argp-help.c: New file, from glibc.
15951 * lib/argp-namefrob.h: New file, from glibc.
15952 * lib/argp-parse.c: New file, from glibc.
15953 * lib/argp-pv.c: New file, from glibc.
15954 * lib/argp-pvh.c: New file, from glibc.
15955 * lib/argp-xinl.c: New file, from glibc.
15957 2003-06-10 Simon Josefsson <jas@extundo.com>
15959 * modules/strchrnul: New file.
15961 2003-06-10 Simon Josefsson <jas@extundo.com>
15963 * modules/argp: New file.
15965 2003-06-10 Simon Josefsson <jas@extundo.com>
15967 * m4/strchrnul.m4: New file.
15969 2003-06-10 Simon Josefsson <jas@extundo.com>
15971 * lib/strchrnul.h: New file.
15972 * lib/strchrnul.c: New file.
15974 2003-06-10 Bruno Haible <bruno@clisp.org>
15976 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
15978 2003-06-07 Karl Berry <karl@gnu.org>
15980 * config/config.{guess,sub}: update from prep.
15982 2003-06-07 Jim Meyering <jim@meyering.net>
15984 * modules/strtod: Use $(...) notation, not @...@ for
15985 AC_REPLACE'd variables.
15986 * modules/localcharset: Likewise.
15988 2003-06-07 Jim Meyering <jim@meyering.net>
15990 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
15991 in place of my name in the copyright comment.
15992 Remove definition and uses of __P.
15995 * lib/stat.c: Don't declare xmalloc explicitly.
15996 Instead, include "xalloc.h".
15997 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
15998 xrealloc, and xcalloc return values.
15999 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
16001 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
16003 2003-06-07 Bruno Haible <bruno@clisp.org>
16005 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
16006 avoid AC_CONFIG_LINKS.
16007 * modules/fnmatch (Makefile.am): Use explicit creation rule for
16008 fnmatch.h, to avoid AC_CONFIG_LINKS.
16009 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
16011 2003-06-07 Bruno Haible <bruno@clisp.org>
16013 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
16014 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
16015 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
16017 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
16018 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
16021 2003-06-06 Jim Meyering <jim@meyering.net>
16023 Merge from coreutils.
16024 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
16025 Consolidate declarations and initializations of *_base* locals.
16027 Merge from coreutils.
16028 This avoids a core dump on systems without GNU putenv,
16029 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
16030 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
16031 (unsetenv): New static function, from GNU libc.
16032 (rpl_putenv): Use it.
16034 * lib/modechange.c: Remove trailing blanks.
16036 Merge from coreutils.
16037 * lib/fsusage.c: Remove declaration of statfs.
16038 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
16040 * lib/posixtm.c: Include <stdbool.h> unconditionally.
16042 2003-06-06 Jim Meyering <jim@meyering.net>
16044 * lib/stdbool_.h: Renamed from stdbool.h.in.
16046 2003-06-06 Jim Meyering <jim@meyering.net>
16047 Bruno Haible <bruno@clisp.org>
16049 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
16050 Adjust Makefile.am snippet not to redirect directly to target.
16051 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
16053 2003-06-05 Paul Eggert <eggert@twinsun.com>
16055 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
16056 mismatch, look in future quarters as well as past. This fixes a
16057 bug when processing fall-backwards gaps immediately after a long
16058 period of daylight-saving time.
16060 * lib/mktime.c: Assume freestanding C89 or better.
16061 (HAVE_LIMITS_H): Remove. Assume it's 1.
16062 (__P): Remove; not used.
16063 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
16064 (mktime, not_equal_tm, print_tm, check_result,
16065 main): Use prototypes. Use const * where appropriate.
16066 (main): Fix typo in testing code that uncovered by above changes.
16067 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
16069 2003-06-04 Paul Eggert <eggert@twinsun.com>
16071 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
16072 locale.h, localeconv. This merges changes from coreutils.
16074 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
16075 It can be removed after the next Autoconf is released.
16076 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
16079 2003-06-04 Paul Eggert <eggert@twinsun.com>
16081 * lib/mktime.c: Fix Debian bug 177940
16082 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
16083 (localtime_offset): Now long int, not time_t, because we want it
16084 to be guaranteed to be signed. All uses changed.
16085 (__mktime_internal): If overflow would occur when adding offset,
16088 Merge 'human' changes from coreutils. Rewrite to support
16089 locale-specific notations like thousands separators.
16090 * lib/human.c: Simplify authorship notice.
16091 Include human.h immediately after config.h.
16092 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
16093 <limits.h>: Do not include, since human.h does.
16094 (SIZE_MAX, UINTMAX_MAX): New macros.
16095 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
16096 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
16097 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
16098 (power_letter): Renamed from suffixes.
16099 (generate_suffix_backwards): Remove.
16100 (adjust_value): Now takes int style (because of human.h changes)
16101 and long double value (for greater precision on some platforms).
16102 (group_number): New function.
16103 (human_readable): Use it. Use integer options, not enum.
16104 Put the options before the sizes in the arg list.
16105 Support all the new options.
16106 The old human_readable function has been removed;
16107 use inttostr.h instead.
16108 (human_readable, default_block_size, humblock):
16109 Use uintmax_t, not int, for block sizes.
16110 (human_readable_inexact, block_size_types): Remove.
16111 (block_size_opts): New constant.
16112 (human_options): Renamed from human_block_size, with new signature
16113 that allows block sizes up to UINTMAX_MAX. All callers changed.
16114 * lib/human.h: Add copyright and authorship notice.
16115 Include <limits.h> and <stdbool.h> unconditionally.
16116 (PARAMS): Remove. All uses removed.
16117 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
16118 (enum human_inexact_style): Remove tag; now a nameless enum.
16119 (human_floor, human_ceiling, human_round_to_even): Now have
16120 values 2, 0, 1 rather than -1, 1, 0.
16121 (human_group_digits, human_suppress_point_zero, human_autoscale,
16122 human_base_1024, human_SI, human_B): New constants.
16123 (human_readable_inexact, human_block_size): Remove.
16124 (human_readable): Size args are now uintmax_t, not int.
16125 (human_options): New decl.
16127 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
16128 unnecessary now that we assume C89 or better. This change
16129 imported from coreutils.
16131 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
16132 arbitrarily. This is the same patch as 2003-05-28, but it got lost
16133 in the 2003-05-30 sync from glibc.
16135 .h files should stand alone, but we shouldn't include <sys/types.h>
16136 if we can get away with just <stddef.h>.
16138 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
16139 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
16140 rather than <sys/types.h>, as we merely need size_t.
16141 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
16143 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
16144 Include <stdio.h>, to get FILE.
16145 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
16146 memcasecmp.h has included <stddef.h> and all we need is size_t.
16147 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
16148 our interface, instead of including <sys/types.h>
16150 2003-06-04 Paul Eggert <eggert@twinsun.com>
16152 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for now,
16153 as glibc mktime is buggy on non-glibc systems.
16155 2003-06-03 Karl Berry <karl@gnu.org>
16157 * config/config.sub: update from prep.
16159 2003-06-02 Paul Eggert <eggert@twinsun.com>
16162 Fix some minor time-related bugs with POSIX time arguments.
16163 Some valid time stamps were being rejected (notably -1, and
16164 time stamps before 1900 on 64-bit hosts). And some invalid
16165 time stamps were being accepted, e.g. September 31.
16167 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
16168 that we can return (time_t) -1 successfully.
16169 * lib/posixtm.c: Likewise.
16170 [HAVE_STDBOOL_H]: Include <stdbool.h>.
16171 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
16172 (t): Remove static var.
16173 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
16174 of static var. All uses changed.
16175 (year): Do not reject years before 1900; they can occur with
16177 (posix_time_parse): Do not check for out-of-range components;
16178 that is now the caller's responsibility, since our checks were
16179 only approximations.
16180 (posixtime): Use mktime to check for out-of-range components,
16181 since it knows them exactly.
16182 If mktime returns (time_t) -1, check whether an error actually occurred
16183 by invoking localtime on -1.
16184 (main) [TEST_POSIXTIME]: Check for input data errors, and report
16185 posixtime failures better.
16186 Improve the test data (in comments only).
16188 2003-06-02 Karl Berry <karl@gnu.org>
16190 * config/mkinstalldirs (version): new variable.
16191 (--version): new option.
16192 (usage): improve message.
16194 2003-05-30 Karl Berry <karl@gnu.org>
16196 * lib/mktime.c: update from libc.
16198 2003-05-30 Bruno Haible <bruno@clisp.org>
16200 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
16201 * config/config.rpath: Upgrade to gettext-0.12.1.
16203 2003-05-30 Bruno Haible <bruno@clisp.org>
16205 * m4/gettext.m4: Upgrade to gettext-0.12.1.
16206 * m4/nls.m4: New file, from gettext-0.12.1.
16207 * m4/po.m4: New file, from gettext-0.12.1.
16208 * m4/progtest.m4: Upgrade to gettext-0.12.1.
16210 2003-05-30 Bruno Haible <bruno@clisp.org>
16212 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
16213 * lib/localcharset.h: Likewise.
16214 * lib/localcharset.c: Likewise.
16216 2003-05-29 Karl Berry <karl@gnu.org>
16218 * config/config.rpath: update from gettext.
16220 2003-05-28 Paul Eggert <eggert@twinsun.com>
16222 Assume the headers required for C89 freestanding compilers.
16223 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
16224 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
16225 * m4/human.m4 (gl_HUMAN): Likewise.
16226 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
16227 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
16228 * m4/userspec.m4 (gl_USERSPEC): Likewise.
16229 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
16230 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
16231 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
16233 2003-05-28 Paul Eggert <eggert@twinsun.com>
16235 Assume the headers required for C89 freestanding compilers.
16236 * lib/addext.c, backupfile.c, fsusage.c, human.c, pathmax.h,
16237 rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h>
16238 without checking for HAVE_LIMITS_H.
16239 * lib/backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c,
16240 xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed
16242 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
16243 * lib/exclude.c: Include <stdbool.h> unconditionally.
16244 * lib/tempname.c: Include <stddef.h> unconditionally.
16245 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
16246 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
16247 <stddef.h> does that.
16248 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
16249 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
16250 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed.
16251 * lib/xstrtol.c: Likewise.
16252 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
16253 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
16255 * lib/addext.c (addext): Use assignment rather than cast, to avoid
16256 warnings on some platforms.
16258 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
16261 2003-05-26 Jim Meyering <jim@meyering.net>
16263 Merge in a change from coreutils:
16264 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
16265 that is guaranteed to be `no'. Use `no_such_member' to indicate
16266 that condition, rather than `-1' which is slightly misleading.
16267 Change the name of the cache variable to have the gl_ prefix.
16268 Prompted by a patch from Richard Dawe for DJGPP.
16270 2003-05-24 Karl Berry <karl@gnu.org>
16272 * config/config.guess: update from prep.
16274 2003-05-22 Karl Berry <karl@gnu.org>
16276 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
16278 2003-05-20 Karl Berry <karl@gnu.org>
16280 * config/config.guess: update from prep.
16282 2003-05-18 Karl Berry <karl@gnu.org>
16284 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF might
16285 actually be set by the user.
16287 * config/depcomp, install-sh, mdate-sh: update from automake.
16289 2003-05-17 Bruno Haible <bruno@clisp.org>
16291 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an invalid
16292 expansion for AC_EGREP_CPP.
16293 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16294 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16295 Suggested by Akim Demaille <akim@epita.fr> in
16296 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
16298 2003-05-12 Jim Meyering <jim@meyering.net>
16300 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
16301 the space-padded-by-default conversion specifiers, %e, %k, %l.
16303 2003-05-12 Bruno Haible <bruno@clisp.org>
16305 * lib/linebreak.c (iconv_string_length): Don't return -1 just because the
16306 string is longer than 4 KB.
16308 2003-05-11 Karl Berry <karl@gnu.org>
16310 * config/config.{guess,sub}: update from prep.
16312 2003-05-09 Bruno Haible <bruno@clisp.org>
16314 * modules/error: Add m4/strerror_r.m4 to file list.
16316 2003-05-03 Bruno Haible <bruno@clisp.org>
16318 Upgrade to Unicode-4.0.
16319 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
16320 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
16321 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
16322 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
16323 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
16324 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
16325 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
16326 Change width of U+E0100..U+E01EF from 1 to 0.
16328 2003-04-25 Jim Meyering <jim@meyering.net>
16330 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
16331 of type size_t, not int.
16333 2003-04-25 Bruno Haible <bruno@clisp.org>
16335 * lib/copy-file.c: Include <stddef.h>, for size_t.
16337 2003-04-21 Paul Eggert <eggert@twinsun.com>
16339 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
16340 code which expansion is under static control. Patch imported from
16341 Akim Demaille's patch to Bison; see
16342 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
16344 2003-04-14 Bruno Haible <bruno@clisp.org>
16346 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
16348 2003-04-11 Jim Meyering <jim@meyering.net>
16350 Merge changes from Coreutils.
16352 2003-03-22 Jim Meyering <jim@meyering.net>
16354 * lib/strftime.c (widen): Cast alloca return value to proper type.
16356 2003-01-19 Ulrich Drepper <drepper@redhat.com>
16359 * lib/strftime.c (my_strftime): Handle very large width
16360 specifications for numeric values correctly. Improve checks for
16363 2003-01-19 Jim Meyering <jim@meyering.net>
16365 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical definitions.
16366 (nl_get_alt_digit) [! defined my_strftime]: Define.
16367 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
16368 _nl_get_alt_digit and _nl_get_walt_digit.
16370 * lib/strftime.c (my_strftime): Merge in locale-related changes from libc.
16371 These changes have no effect outside of _LIBC.
16373 2003-04-10 Bruno Haible <bruno@clisp.org>
16375 * modules/findprog: New file.
16376 * MODULES.html.sh (func_all_modules): Add it.
16378 2003-04-10 Bruno Haible <bruno@clisp.org>
16380 * m4/findprog.m4: New file.
16381 * m4/eaccess.m4: New file.
16383 2003-04-10 Bruno Haible <bruno@clisp.org>
16385 * lib/findprog.h: New file, from GNU gettext.
16386 * lib/findprog.c: New file, from GNU gettext.
16388 2003-04-05 Jim Meyering <jim@meyering.net>
16390 Merge changes from Coreutils.
16392 * lib/exclude.h (PARAMS): Remove definition and uses.
16393 * lib/exclude.c: Remove uses of `PARAMS'.
16395 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
16396 Add test-cases for DOS filenames. Declare program_name.
16397 (main): Set up program_name. Patch by Rich Dawe.
16399 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
16401 Use mntctl's return value to drive the entry-processing loop, since
16402 we can't rely on the value of the vmt_length member in the last
16403 entry. On some systems doing so could result in exhausting
16404 virtual memory. Based in part on a patch from Mike Jetzer.
16406 2003-04-04 Bruno Haible <bruno@clisp.org>
16408 * modules/linebreak: New file.
16409 * MODULES.html.sh (func_all_modules): Add it.
16411 2003-04-04 Bruno Haible <bruno@clisp.org>
16413 * m4/linebreak.m4: New file.
16415 2003-04-04 Bruno Haible <bruno@clisp.org>
16417 * lib/linebreak.h: New file, from GNU gettext.
16418 * lib/linebreak.c: New file, from GNU gettext with slight modifications.
16419 * lib/lbrkprop.h: New file, from GNU gettext.
16421 2003-04-03 Bruno Haible <bruno@clisp.org>
16423 * modules/utf8-ucs4: New file.
16424 * modules/utf16-ucs4: New file.
16425 * modules/ucs4-utf8: New file.
16426 * modules/ucs4-utf16: New file.
16427 * MODULES.html.sh (func_all_modules): Add them.
16429 2003-04-03 Bruno Haible <bruno@clisp.org>
16431 * m4/utf-ucs4.m4: New file.
16432 * m4/ucs4-utf.m4: New file.
16434 2003-04-03 Bruno Haible <bruno@clisp.org>
16436 * lib/utf8-ucs4.h: New file, from GNU gettext.
16437 * lib/utf16-ucs4.h: New file, from GNU gettext.
16438 * lib/ucs4-utf8.h: New file, from GNU gettext.
16439 * lib/ucs4-utf16.h: New file, from GNU gettext.
16441 2003-04-02 Bruno Haible <bruno@clisp.org>
16443 * modules/binary-io: New file.
16444 * MODULES.html.sh (func_all_modules): Add it.
16446 2003-04-02 Bruno Haible <bruno@clisp.org>
16448 * lib/binary-io.h: New file, from GNU gettext.
16450 2003-04-01 Bruno Haible <bruno@clisp.org>
16452 * modules/pathname: New file.
16453 * MODULES.html.sh (func_all_modules): Add it.
16455 2003-04-01 Bruno Haible <bruno@clisp.org>
16457 * lib/pathname.h: New file, from GNU gettext.
16458 * lib/concatpath.c: New file, from GNU gettext.
16460 2003-03-30 Bruno Haible <bruno@clisp.org>
16462 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
16464 2003-03-30 Bruno Haible <bruno@clisp.org>
16466 * lib/copy-file.c (copy_file_preserving): Don't set owner if the function
16467 chown() doesn't exist.
16469 2003-03-28 Bruno Haible <bruno@clisp.org>
16471 * modules/copy-file: New file.
16472 * MODULES.html.sh (func_all_modules): Add it.
16474 2003-03-28 Bruno Haible <bruno@clisp.org>
16476 * m4/copy-file.m4: New file.
16478 2003-03-28 Bruno Haible <bruno@clisp.org>
16480 * lib/copy-file.h: New file, from GNU gettext.
16481 * lib/copy-file.c: New file, from GNU gettext.
16483 2003-03-18 Jim Meyering <jim@meyering.net>
16485 * lib/quote.c (quote_n): Fix typo in comment.
16487 2003-03-18 Bruno Haible <bruno@clisp.org>
16489 * m4/onceonly.m4: Use m4_defn instead of defn, for better error checking.
16490 * m4/onceonly_2_57.m4: Likewise.
16492 2003-03-17 Bruno Haible <bruno@clisp.org>
16494 * m4/onceonly.m4: Require autoconf 2.54 or newer.
16495 (m4_quote): Remove macro.
16496 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
16498 2003-03-14 Jim Meyering <jim@meyering.net>
16500 Merge changes from Coreutils.
16501 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
16502 to be const, in order to avoid warnings.
16503 (obstack_room): Likewise.
16504 (obstack_empty_p): Likewise.
16506 2003-03-14 Bruno Haible <bruno@clisp.org>
16508 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
16509 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
16511 2003-03-13 Paul Eggert <eggert@twinsun.com>
16513 Merge changes from Bison.
16514 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
16515 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
16516 when compiling Bison 1.875's `bitset bset = obstack_alloc
16517 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
16518 * lib/hash.c: Include <stdbool.h> unconditionally.
16520 2003-03-13 Paul Eggert <eggert@twinsun.com>
16522 * m4/onceonly.m4 (m4_quote): New macro.
16523 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
16524 Quote AC_FOREACH variable-expansions properly.
16526 2003-03-13 Paul Eggert <eggert@twinsun.com>
16528 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
16530 2003-03-09 Paul Eggert <eggert@twinsun.com>
16532 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
16533 Reported by Bruce Becker; see:
16534 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
16536 2003-03-03 Paul Eggert <eggert@twinsun.com>
16537 Bruno Haible <bruno@clisp.org>
16539 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
16540 Reported by John Hughes, see
16541 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
16543 2003-02-20 Bruno Haible <bruno@clisp.org>
16545 * MODULES.html.sh (func_all_modules): Add poll.
16547 2003-02-19 Paolo Bonzino <bonzini@gnu.org>
16549 * modules/poll: New file.
16551 2003-02-19 Paolo Bonzino <bonzini@gnu.org>
16553 * lib/poll_.h: New file.
16554 * lib/poll.c: New file.
16556 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
16558 * m4/poll.m4: New file.
16560 2003-02-18 Paolo Bonzino <bonzini@gnu.org>
16562 * modules/mathl: New file.
16564 2003-02-18 Paolo Bonzino <bonzini@gnu.org>
16566 * lib/mathl.h: New file.
16567 * lib/acosl.c: New file.
16568 * lib/asinl.c: New file.
16569 * lib/atanl.c: New file.
16570 * lib/ceill.c: New file.
16571 * lib/cosl.c: New file.
16572 * lib/expl.c: New file.
16573 * lib/floorl.c: New file.
16574 * lib/frexpl.c: New file.
16575 * lib/ldexpl.c: New file.
16576 * lib/logl.c: New file.
16577 * lib/sincosl.c: New file.
16578 * lib/sinl.c: New file.
16579 * lib/sqrtl.c: New file.
16580 * lib/tanl.c: New file.
16581 * lib/trigl.c: New file.
16582 * lib/trigl.h: New file.
16584 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
16586 * m4/mathl.m4: New file.
16588 2003-02-18 Bruno Haible <bruno@clisp.org>
16590 * MODULES.html.sh (func_all_modules): Add mathl.
16592 2003-02-17 Bruno Haible <bruno@clisp.org>
16594 * modules/mkdtemp: New module.
16595 * MODULES.html.sh (func_all_modules): Add it.
16597 2003-02-17 Bruno Haible <bruno@clisp.org>
16599 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
16601 2003-02-17 Bruno Haible <bruno@clisp.org>
16603 * lib/mkdtemp.h: New file, from GNU gettext.
16604 * lib/mkdtemp.c: New file, from GNU gettext.
16606 2003-02-02 Jim Meyering <jim@meyering.net>
16608 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
16611 2003-01-31 Bruno Haible <bruno@clisp.org>
16613 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
16615 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
16617 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
16619 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
16622 2003-01-31 Bruno Haible <bruno@clisp.org>
16624 * lib/rename.c: #undef rename before defining rpl_rename.
16625 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
16627 2003-01-30 Bruno Haible <bruno@clisp.org>
16629 * modules/vasnprintf, modules/vasprintf: New modules.
16630 * MODULES.html.sh (func_all_modules): Add them.
16632 2003-01-30 Bruno Haible <bruno@clisp.org>
16634 * m4/signed.m4: New file, from GNU gettext.
16635 * m4/longdouble.m4: New file, from GNU gettext.
16636 * m4/wchar_t.m4: New file, from GNU gettext.
16637 * m4/wint_t.m4: New file, from GNU gettext.
16638 * m4/vasnprintf.m4: New file.
16639 * m4/vasprintf.m4: New file.
16641 2003-01-30 Bruno Haible <bruno@clisp.org>
16643 * lib/printf-args.h: New file, from GNU gettext.
16644 * lib/printf-args.c: New file, from GNU gettext.
16645 * lib/printf-parse.h: New file, from GNU gettext.
16646 * lib/printf-parse.c: New file, from GNU gettext.
16647 * lib/vasnprintf.h: New file, from GNU gettext.
16648 * lib/vasnprintf.c: New file, from GNU gettext.
16649 * lib/asnprintf.c: New file, from GNU gettext.
16650 * lib/vasprintf.h: New file, from GNU gettext with modifications.
16651 * lib/vasprintf.c: New file, from GNU gettext.
16652 * lib/asprintf.c: New file, from GNU gettext.
16654 2003-01-29 Bruno Haible <bruno@clisp.org>
16656 * modules/stpncpy: New module.
16657 * MODULES.html.sh (func_all_modules): Add it.
16659 2003-01-29 Bruno Haible <bruno@clisp.org>
16661 * m4/stpncpy.m4: New file.
16663 2003-01-29 Bruno Haible <bruno@clisp.org>
16665 * lib/stpncpy.h: New file, from GNU gettext with modifications.
16666 * lib/stpncpy.c: New file, from GNU gettext with modifications.
16668 2003-01-28 Bruno Haible <bruno@clisp.org>
16670 * modules/c-ctype: New module.
16671 * MODULES.html.sh (func_all_modules): Add it.
16673 2003-01-28 Bruno Haible <bruno@clisp.org>
16675 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
16677 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
16680 2003-01-27 Bruno Haible <bruno@clisp.org>
16682 * modules/xsetenv: New module.
16683 * MODULES.html.sh (func_all_modules): Add it.
16685 2003-01-27 Bruno Haible <bruno@clisp.org>
16687 * lib/xsetenv.h: New file, from GNU gettext.
16688 * lib/xsetenv.c: New file, from GNU gettext.
16690 2003-01-23 Jim Meyering <jim@meyering.net>
16692 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
16693 from working on systems without dirfd (at least Irix and OSF1/Tru64).
16695 2003-01-23 Bruno Haible <bruno@clisp.org>
16697 * modules/minmax: New module.
16698 * MODULES.html.sh (func_all_modules): Add it.
16700 2003-01-23 Bruno Haible <bruno@clisp.org>
16702 * lib/minmax.h: New file, from GNU gettext, with comments from Paul Eggert.
16704 2003-01-22 Bruno Haible <bruno@clisp.org>
16706 * modules/exit: New module.
16707 * MODULES.html.sh (func_all_modules): Add it.
16709 2003-01-22 Bruno Haible <bruno@clisp.org>
16711 * lib/exit.h: New file, from GNU gettext.
16713 2003-01-19 Bruno Haible <bruno@clisp.org>
16715 * gnulib-tool: Recognize option --extract-maintainer.
16716 (func_get_maintainer): New function.
16717 * modules/*: Add Maintainer entry.
16719 2003-01-16 Jim Meyering <jim@meyering.net>
16721 * m4/regex.m4: The `regex' struct is both input and output.
16722 Initialize it before each use. Patch by Tim Waugh.
16724 2003-01-16 Bruno Haible <bruno@clisp.org>
16726 * MODULES.html.sh: Add a table of contents. Add the module name as
16727 leftmost column. Add hyperlinks.
16729 2003-01-15 Bruno Haible <bruno@clisp.org>
16731 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
16733 2003-01-15 Bruno Haible <bruno@clisp.org>
16735 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
16736 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
16739 2003-01-15 Bruno Haible <bruno@clisp.org>
16741 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
16743 2003-01-15 Bruno Haible <bruno@clisp.org>
16745 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
16746 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
16748 2003-01-14 Jim Meyering <jim@meyering.net>
16750 * lib/same.c (same_name): Tweak a comment.
16752 2003-01-14 Bruno Haible <bruno@clisp.org>
16754 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
16755 when a string comparison is sufficient.
16757 2003-01-14 Bruno Haible <bruno@clisp.org>
16759 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
16762 2003-01-14 Bruno Haible <bruno@clisp.org>
16764 * lib/hash-pjw.c: Add comment about low quality of this function.
16766 2003-01-13 Bruno Haible <bruno@clisp.org>
16768 * modules/stpcpy: Distribute lib/stpcpy.h.
16769 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
16771 2003-01-13 Bruno Haible <bruno@clisp.org>
16773 * modules/*: Add a description.
16774 * modules/strpbrk: Fix Makefile.am snippet.
16775 * modules/strtoimax: Fix dependencies.
16776 * modules/strtoumax: Likewise.
16778 2003-01-13 Bruno Haible <bruno@clisp.org>
16780 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
16781 * modules/alloca (Makefile.am): All object files depend on alloca.h.
16782 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
16784 2003-01-13 Bruno Haible <bruno@clisp.org>
16786 * gnulib-tool (func_create_testdir): Store config/* files in the main
16788 * config.rpath: Move to ...
16789 * config/config.rpath: ... here.
16790 * modules/gettext: Contains config/config.rpath, not config.rpath.
16791 * modules/iconv: Likewise.
16793 2003-01-12 Paul Eggert <eggert@twinsun.com>
16795 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
16796 to avoid collisions with libcurses and libreadline.
16798 * m4/getstr.m4: Remove.
16799 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
16801 2003-01-12 Paul Eggert <eggert@twinsun.com>
16803 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
16804 to avoid collisions with libcurses and libreadline.
16806 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
16807 * lib/getstr.h, getstr.c: Remove.
16808 * lib/getline.c: Include "getline.h", to check interface.
16809 Move body of old getstr.c here: this defines MIN_CHUNK and
16810 declares getdelim2, which is renamed from getstr.
16811 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
16813 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
16815 * lib/linebuffer.h: Likewise.
16816 (readline): Remove backward-compatibility macro.
16818 2003-01-12 Paul Eggert <eggert@twinsun.com>
16820 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
16821 to avoid collisions with libcurses and libreadline.
16823 * MODULES.html.sh: Remove getstr.
16824 * modules/getline: Depend on unlocked-io, not getstr.
16826 2003-01-12 Jim Meyering <jim@meyering.net>
16828 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
16830 2003-01-10 Bruno Haible <bruno@clisp.org>
16832 * modules/alloca: Change Makefile.am requirements. Simplify Include
16833 requirements. Add lib/alloca_.h to file list.
16835 2003-01-10 Bruno Haible <bruno@clisp.org>
16837 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
16839 2003-01-10 Bruno Haible <bruno@clisp.org>
16841 * lib/alloca_.h: New file.
16842 * lib/getdate.y: Unconditionally include alloca.h.
16843 * lib/makepath.c: Likewise.
16844 * lib/setenv.c: Likewise.
16845 * lib/userspec.c: Likewise.
16847 2003-01-09 Karl Berry <karl@gnu.org>
16849 * MODULES.html.sh: include `dirname $0` in PATH, to find
16852 2003-01-09 Bruno Haible <bruno@clisp.org>
16854 * modules/stdbool: Change configure.ac, Makefile.am requirements.
16855 Simplify Include requirements. Add lib/stdbool.h.in to file list.
16857 2003-01-09 Bruno Haible <bruno@clisp.org>
16859 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
16861 2003-01-09 Bruno Haible <bruno@clisp.org>
16863 * lib/stdbool.h.in: New file.
16865 2003-01-09 Bruno Haible <bruno@clisp.org>
16867 * gnulib-tool (func_all_modules): Ignore files ending in ~.
16868 * MODULES.html.sh: Likewise.
16870 2003-01-08 Jim Meyering <jim@meyering.net>
16872 * lib/full-write.c: Undefine and define-away `const' after inclusion
16873 of errno.h, not before. Suggestion from Bruno Haible.
16875 2003-01-08 Bruno Haible <bruno@clisp.org>
16877 * modules/full-read: Depend on full-write.
16879 2003-01-08 Bruno Haible <bruno@clisp.org>
16881 * lib/safe-read.c: Include specification header first, to ensure its
16883 * lib/full-write.c: Likewise.
16885 2003-01-07 Jim Meyering <jim@meyering.net>
16887 * lib/full-write.c: Rework so that it may serve to define full_read, too.
16888 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
16890 2003-01-07 Bruno Haible <bruno@clisp.org>
16892 * lib/strtoimax.c: Include <stdint.h> as an alternative to <inttypes.h>.
16893 * lib/xstrtol.h: Likewise.
16894 * lib/xstrtoimax.c: Likewise.
16895 * lib/xstrtoumax.c: Likewise.
16896 * lib/human.h: Likewise.
16898 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
16899 on systems that have <inttypes.h> but not <stdint.h>.
16901 2003-01-07 Bruno Haible <bruno@clisp.org>
16903 * MODULES.html.sh: Add copyright notice.
16904 (missed_files): Omit CVS directory entries.
16905 (func_module): Make it work with sed-3.02.
16906 * MODULES.txt: Remove file.
16908 2003-01-06 Jim Meyering <jim@meyering.net>
16910 * lib/version-etc.c: Update year in translatable copyright string.
16912 2003-01-03 Karl Berry <karl@gnu.org>
16914 * config/config.{guess,sub}: update from prep.
16916 2003-01-02 Karl Berry <karl@gnu.org>
16918 * doc/COPYING.DOC: belatedly updated to 1.2.
16920 2003-01-01 Karl Berry <karl@gnu.org>
16922 * gnulib-tool (func_verify_module): report module name $module in
16923 error message, not $1.
16924 * gnulib-tool (create-testdir): don't complain if destdir couldn't
16925 be created, only if it doesn't exist.
16926 * gnulib-tool (last_checkin_date): don't expand the $Date here.
16928 2002-12-31 Paul Eggert <eggert@twinsun.com>
16930 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
16932 2002-12-31 Paul Eggert <eggert@twinsun.com>
16934 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
16935 memcmp if strcoll doesn't work.
16937 2002-12-31 Bruno Haible <bruno@clisp.org>
16939 * lib/utime.c (utime_null): No need to call ftruncate if the file was
16942 2002-12-31 Bruno Haible <bruno@clisp.org>
16944 * lib/memcoll.c (STRCOLL): New macro.
16947 2002-12-31 Bruno Haible <bruno@clisp.org>
16949 * lib/localcharset.h: New file.
16950 * lib/localcharset.c: Include it.
16951 * lib/unicodeio.c: Likewise.
16953 2002-12-31 Bruno Haible <bruno@clisp.org>
16955 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
16956 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
16958 2002-12-31 Bruno Haible <bruno@clisp.org>
16960 * lib/getline.h: Include <stddef.h>, for size_t.
16962 * lib/unicodeio.h: Include <stddef.h>, for size_t.
16963 * lib/unicodeio.c: Don't include <stddef.h>.
16965 2002-12-31 Bruno Haible <bruno@clisp.org>
16967 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
16969 2002-12-24 Karl Berry <karl@gnu.org>
16971 * config/config.guess: update from prep.
16973 2002-12-24 Bruno Haible <bruno@clisp.org>
16975 General infrasructure.
16976 * m4/README: Rewritten.
16977 * m4/onceonly.m4: New file.
16978 * m4/onceonly_2_57.m4: New file.
16981 * m4/atexit.m4: New file.
16984 * m4/strtod.m4: New file.
16987 * m4/strtol.m4: New file.
16990 * m4/strtoul.m4: New file.
16993 * m4/memchr.m4: New file.
16996 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
16997 (jm_FUNC_MEMCMP): Invoke it.
17000 * m4/memcpy.m4: New file.
17003 * m4/memmove.m4: New file.
17006 * m4/memset.m4: New file.
17009 * m4/strcspn.m4: New file.
17012 * m4/strpbrk.m4: New file.
17015 * m4/strstr.m4: New file.
17018 * m4/strerror.m4: New file.
17021 * m4/mktime.m4: Renamed from jm-mktime.m4.
17022 (gl_PREREQ_MKTIME): New macro.
17023 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
17026 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
17027 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
17028 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
17031 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
17032 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
17033 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
17036 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
17037 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
17038 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
17040 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
17043 * m4/xalloc.m4: New file.
17046 * m4/alloca.m4: New file.
17049 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17050 (jm_FUNC_PUTENV): Invoke it.
17053 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
17054 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
17055 when invoked twice.
17056 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
17060 * m4/memrchr.m4: New file.
17063 * m4/stpcpy.m4: New file.
17066 * m4/strcase.m4: New file.
17069 * m4/strdup.m4: New file.
17072 * m4/strnlen.m4: New file.
17075 * m4/strndup.m4: New file.
17078 * m4/xstrtod.m4: New file.
17081 * m4/xstrtol.m4: New file.
17084 * m4/getdate.m4: New file.
17086 Module unlocked-io.
17087 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
17088 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
17089 * m4/jm-glibc-io.m4n: Remove file.
17091 Module long-options.
17092 * m4/long-options.m4: New file.
17095 * m4/md5.m4: New file.
17098 * m4/sha.m4: New file.
17101 * m4/getstr.m4: New file.
17104 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
17105 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
17106 <sys/types.h>, for size_t. Use the function name gnu_getline, not
17107 simply getline. Infoke gl_PREREQ_GETLINE.
17110 * m4/obstack.m4: New file.
17113 * m4/hash.m4: New file.
17116 * m4/readtokens.m4: New file.
17119 * m4/strverscmp.m4: New file.
17122 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for OSF/1.
17125 * m4/strtoll.m4: New file.
17128 * m4/strtoull.m4: New file.
17131 * m4/strtoimax.m4: New file.
17134 * m4/strtoumax.m4: New file.
17137 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from jm_AC_PREREQ_XSTRTOIMAX.
17138 Moved the strtol prerequisites to strtol.m4.
17139 Moved the strtoll prerequisites to strtoll.m4.
17140 Moved the strtoimax prerequisites to strtoimax.m4.
17143 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from jm_AC_PREREQ_XSTRTOUMAX.
17144 Moved the strtoul prerequisites to strtoul.m4.
17145 Moved the strtoull prerequisites to strtoull.m4.
17146 Moved the strtoumax prerequisites to strtoumax.m4.
17149 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
17150 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
17153 * m4/dup2.m4: New file.
17156 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
17157 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
17160 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
17161 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
17163 Module gettimeofday.
17164 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
17165 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
17166 gl_PREREQ_GETTIMEOFDAY.
17169 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
17170 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
17173 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
17174 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
17175 jm_AC_TYPE_UINTMAX_T.
17176 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
17179 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
17180 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
17183 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
17184 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
17187 * m4/timespec.m4 (gl_TIMESPEC): New macro.
17188 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
17189 * m4/st_mtim.m4: Indentation.
17192 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
17193 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
17194 gl_PREREQ_NANOSLEEP.
17197 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
17198 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
17199 (gl_REGEX): New macro.
17202 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
17203 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
17206 * m4/rmdir.m4: New file.
17209 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
17210 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
17211 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
17214 * m4/dirname.m4: New file.
17217 * m4/getopt.m4: New file.
17219 Module unistd-safer.
17220 * m4/unistd-safer.m4: New file.
17223 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
17225 (gl_PREREQ_FNMATCH_EXTRA): New macro.
17226 (gl_FUNC_FNMATCH_POSIX): New macro.
17227 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
17228 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
17232 * m4/exclude.m4: New file.
17235 * m4/human.m4: New file.
17241 * m4/backupfile.m4: New file.
17242 * m4/d-ino.m4: Indentation.
17245 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
17246 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
17247 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
17250 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP requirements.
17253 * m4/euidaccess.m4: New file.
17256 * m4/file-type.m4: New file.
17259 * m4/fileblocks.m4: New file.
17262 * m4/filemode.m4: New file.
17265 * m4/isdir.m4: New file.
17268 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
17269 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
17272 * m4/makepath.m4: New file.
17275 * m4/modechange.m4: New file.
17278 * m4/mountlist.m4: New file.
17279 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
17282 Module path-concat.
17283 * m4/path-concat.m4: New file.
17286 * m4/pathmax.m4: New file.
17289 * m4/same.m4: New file.
17292 * m4/save-cwd.m4: New file.
17295 * m4/savedir.m4: New file.
17298 * m4/xgetcwd.m4: New file.
17299 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
17302 * m4/xreadlink.m4: New file.
17305 * m4/safe-read.m4: New file.
17308 * m4/safe-write.m4: New file.
17311 * m4/closeout.m4: New file.
17313 Module stdio-safer.
17314 * m4/stdio-safer.m4: New file.
17317 * m4/getpass.m4: New file.
17320 * m4/getugroups.m4: New file.
17322 Module group-member.
17323 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
17324 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
17327 * m4/idcache.m4: New file.
17330 * m4/userspec.m4: New file.
17333 * m4/clock_time.m4: New file.
17334 * m4/gettime.m4: New file.
17337 * m4/settime.m4: New file.
17340 * m4/posixtm.m4: New file.
17342 Module gethostname.
17343 * m4/gethostname.m4: New file.
17346 * m4/canon-host.m4: New file.
17349 * m4/codeset.m4: New file, from gettext-0.11.5.
17350 * m4/gettext.m4: New file, from gettext-0.11.5.
17351 * m4/glibc21.m4: New file, from gettext-0.11.5.
17352 * m4/iconv.m4: New file, from gettext-0.11.5.
17353 * m4/intdiv0.m4: New file, from gettext-0.11.5.
17354 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
17355 * m4/inttypes.m4: New file, from gettext-0.11.5.
17356 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
17357 * m4/isc-posix.m4: New file, from gettext-0.11.5.
17358 * m4/lcmessage.m4: New file, from gettext-0.11.5.
17359 * m4/lib-ld.m4: New file, from gettext-0.11.5.
17360 * m4/lib-link.m4: New file, from gettext-0.11.5.
17361 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
17362 * m4/progtest.m4: New file, from gettext-0.11.5.
17363 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
17364 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
17365 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
17367 Module localcharset.
17368 * m4/localcharset.m4: New file.
17370 Module hard-locale.
17371 * m4/hard-locale.m4: New file.
17374 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
17376 * m4/mbrtowc.m4: Add comment.
17379 * m4/memcasecmp.m4: New file.
17382 * m4/memcoll.m4: New file.
17385 * m4/unicodeio.m4: New file.
17388 * m4/rpmatch.m4: New file.
17391 * m4/yesno.m4: New file.
17394 * m4/exitfail.m4: New file.
17397 * m4/c-stack.m4 (gl_C_STACK): New macro.
17398 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
17401 * m4/error.m4 (gl_ERROR): New macro.
17402 (jm_PREREQ_ERROR): Use onceonly macros.
17405 * m4/fatal.m4: New file.
17408 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
17409 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
17411 Module getpagesize.
17412 * m4/getpagesize.m4: New file.
17414 Module getusershell.
17415 * m4/getusershell.m4: New file.
17418 * m4/physmem.m4: New file.
17421 * m4/posixver.m4: New file.
17424 * m4/quotearg.m4: New file.
17427 * m4/quote.m4: New file.
17430 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
17433 * m4/sig2str.m4: New file.
17436 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
17438 * m4/intmax_t.m4: New file.
17439 * m4/d-type.m4: Indentation.
17440 * m4/jm-macros.m4: Update.
17441 * m4/prereq.m4 (jm_PREREQ): Update.
17442 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
17443 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
17444 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
17445 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
17446 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
17447 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
17448 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
17449 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
17450 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
17451 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
17452 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
17453 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
17454 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
17455 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
17456 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
17457 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
17458 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
17459 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
17460 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
17462 2002-12-24 Bruno Haible <bruno@clisp.org>
17464 * MODULES.txt: Update according to m4/ changes.
17467 * config.rpath: New file, from gettext-0.11.5.
17469 * modules/*: New module descriptions.
17470 * gnulib-tool: New file.
17471 * MODULES.html.sh: New file.
17473 2002-12-21 Karl Berry <karl@gnu.org>
17475 * doc/fdl.texi: update to version 1.2.
17477 2002-12-19 Karl Berry <karl@gnu.org>
17479 * config/config.guess: update from prep.
17481 2002-12-18 Bruno Haible <bruno@clisp.org>
17483 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
17484 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
17486 2002-12-17 Bruno Haible <bruno@clisp.org>
17488 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
17489 stdlib.h, string.h.
17491 2002-12-17 Bruno Haible <bruno@clisp.org>
17493 * lib/canon-host.c (strdup): Remove unused declaration.
17495 * lib/fsusage.c: Include full_read.h.
17496 (get_fs_usage): Use full_read instead of safe_read.
17498 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
17500 2002-12-12 Karl Berry <karl@gnu.org>
17502 * config/config.guess: update from prep.
17504 2002-12-11 Bruno Haible <bruno@clisp.org>
17506 * m4/setenv.m4: New file, from gettext-0.11.5.
17508 2002-12-11 Bruno Haible <bruno@clisp.org>
17510 * lib/setenv.h: Rewritten to cope with systems that have setenv() but not
17512 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
17515 2002-12-11 Bruno Haible <bruno@clisp.org>
17517 * setenv.c (alloca): Fall back to malloc.
17518 (freea): New macro.
17519 (setenv): Use freea() to free memory allocated with alloca().
17521 2002-11-13 Bruno Haible <bruno@clisp.org>
17523 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
17524 function declarations.
17525 * unsetenv.c (unsetenv): Likewise.
17527 2002-03-04 Bruno Haible <bruno@clisp.org>
17529 Portability to AIX 4.3.3.
17530 * unsetenv.c: New file, extracted from setenv.c.
17531 * setenv.c: Move the unsetenv() function to unsetenv.c.
17533 2001-12-20 Bruno Haible <bruno@clisp.org>
17535 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
17536 use malloc instead. For SunOS 4.
17538 2001-12-11 Bruno Haible <bruno@clisp.org>
17540 * setenv.c: Declare alloca.
17541 (compar_fn_t): New typedef.
17542 (KNOWN_VALUE, STORE_VALUE): Use it.
17544 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
17547 2002-12-10 Paul Eggert <eggert@twinsun.com>
17549 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
17550 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
17551 Choose values that are less likely to collide with system fnmatch
17553 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
17554 defined (e.g., a pure POSIX system).
17555 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
17556 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
17558 2002-12-06 Paul Eggert <eggert@twinsun.com>
17560 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
17561 a pain in practice to deal with generated m4 files. This change
17562 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
17564 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
17565 and jm-glibc-io.m4, as they are no longer a special case.
17566 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
17567 kludge and the auto-generation stuff. Check only whether the
17568 functions are declared, not whether they exist, since older hosts
17569 that don't declare the functions can't use the optimization anyway.
17571 2002-12-06 Jim Meyering <jim@meyering.net>
17573 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
17575 Merge in changes from libc's misc/error.c, in preparation
17576 for the merge of gnulib's changes back into libc.
17578 * lib/error.c (_): Define only if not already defined.
17579 Move definition to follow all #include directives.
17580 Include unlocked-io.h only if !_LIBC.
17581 [_LIBC]: Include <libio/libioP.h>.
17582 [USE_IN_LIBIO]: Include <libio/iolibio.h>
17583 (fflush): Tweak definition to use INTUSE.
17586 2002-12-05 Paul Eggert <eggert@twinsun.com>
17588 * lib/alloca.c [defined emacs]: Include "lisp.h".
17589 (xalloc_die) [defined emacs]: New macro.
17590 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
17591 [! defined emacs]: Include <xalloc.h>.
17592 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
17593 (pointer): Typedef to POINTER_TYPE *.
17594 (malloc): Remove decl; we now always use xmalloc.
17595 (alloca): Use old-style definition, since Emacs needs this.
17596 Check for arithmetic overflow when computing combined size.
17598 2002-12-04 Paul Eggert <eggert@twinsun.com>
17600 Do not generate unlocked-io.h automatically, since it's easier to
17601 maintain it by hand.
17603 * lib/unlocked-io.h: New file, from GNU diffutils,
17604 but with proper copyright notice and attribution.
17605 * lib/gen-uio: Remove.
17606 * lib/Makefile.am: Add copyright notice.
17607 (libfetish_a_SOURCES): Add unlocked-io.h.
17608 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
17609 (DISTCLEANFILES, io_functions): Remove macros.
17610 (EXTRA_DIST): Remove gen_uio.
17611 (unlocked-io.h): Remove rule.
17613 2002-12-04 Jim Meyering <jim@meyering.net>
17615 Reflect the fact that stat.c and lstat.c are no longer generated.
17616 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
17617 (DISTCLEANFILES): Likewise.
17618 (EXTRA_DIST): Likewise.
17619 (all_local): Don't depend on stat.c or lstat.c.
17620 (stat.c, lstat.c): Remove rules.
17621 (EXTRA_DIST): Remove xstat.in.
17623 * lib/xstat.in: Remove file. Contents moved into stat.c.
17624 * lib/stat.c: New file. Contents mostly from xstat.in.
17625 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
17626 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
17628 * lib/safe-read.c: Rework so that it may serve to define safe_write, too.
17629 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
17631 2002-12-03 Jim Meyering <jim@meyering.net>
17633 * lib/safe-read.c, safe-write.c: Change variable names and comments, but
17634 not semantics, to minimize the differences between these two files.
17635 (safe_read): Change comment to mention SAFE_READ_ERROR.
17637 * lib/safe-read.c (IS_EINTR): Define.
17638 (safe_read): Use IS_EINTR in place of in-function cpp directives.
17640 2002-12-02 Jim Meyering <jim@meyering.net>
17642 * lib/safe-read.c (EINTR): Define.
17643 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
17644 (INT_MAX): Provide fallback.
17645 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
17647 * lib/safe-read.h (SAFE_READ_ERROR): Define.
17649 2002-12-02 Bruno Haible <bruno@clisp.org>
17651 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
17652 Define, taken from safe-read.c.
17653 (INT_MAX): Provide fallback.
17654 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
17655 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
17657 * lib/safe-read.c (EINTR): Remove definition.
17658 (safe_read): Don't use EINTR if it is absent.
17660 2002-12-01 Jim Meyering <jim@meyering.net>
17662 * lib/safe-read.c: (safe_read): Also exit the loop when read returns zero.
17663 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
17665 2002-11-27 Paul Eggert <eggert@twinsun.com>
17667 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
17668 hash_rehash): Replace `if (limit <= value) abort ();' with
17669 `if (! (value < limit)) abort ();', for readability.
17671 2002-11-26 Karl Berry <karl@gnu.org>
17673 * lib/strdup.c: copy from libc again, with jim's ok.
17674 * lib/.cppi-disable: re-add strdup.c
17676 2002-11-25 Karl Berry <karl@gnu.org>
17678 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
17679 instead of "strtol.c".
17681 2002-11-25 Karl Berry <karl@gnu.org>
17683 * config/install-sh: update from automake for variable quoting, $0 in
17686 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
17687 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
17690 2002-11-25 Jim Meyering <jim@meyering.net>
17692 * lib/mktime.c: Sync from libc, now that it has the latest fix.
17694 2002-11-24 Karl Berry <karl@gnu.org>
17696 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
17697 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
17699 2002-11-24 Jim Meyering <jim@meyering.net>
17701 Update from coreutils:
17703 * lib/mktime.c: Merge in changes from libc.
17705 Avoid a link-time failure on some Linux systems.
17706 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static' (otherwise).
17707 (__mon_yday): Declare with the STATIC attribute.
17708 (__mktime_internal): Likewise.
17709 Based on a report from Greg Schafer.
17711 2002-11-23 Jim Meyering <jim@meyering.net>
17713 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
17714 Use `unsigned', not `int', as type of index.
17716 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
17718 * lib/fsusage.c: Remove unneeded parentheses around operands of `defined'.
17720 2002-11-22 Paul Eggert <eggert@twinsun.com>
17722 * lib/quotearg.h: Allow multiple inclusion by surrounding with
17723 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
17724 so that we can be included first.
17725 (PARAMS): Remove; we now assume C89 or later. All uses removed.
17726 * lib/quotearg.c: Include quotearg.h immediately after config.h.
17727 No need to include stddef.h or sys/types.h any more.
17728 Surround local include files with "", not "<>".
17729 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
17730 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
17731 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
17732 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
17733 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
17734 (ISPRINT): Remove; no longer needed now that we assume C89.
17736 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
17739 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
17740 quotearg_char): Use SIZE_MAX rather than
17741 (size_t) -1 when we are talking about "infinity".
17743 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
17745 2002-11-22 Paul Eggert <eggert@twinsun.com>
17747 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
17748 hint that one should use `if (! x) abort ();' rather than `assert
17749 (x);', and anyway it's one less thing to worry about configuring.
17750 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
17751 hash_rehash, hash_insert): Use abort rather than assert.
17753 2002-11-22 Bruno Haible <bruno@clisp.org>
17755 * lib/safe-read.h: Assume C89. Add comments.
17756 (safe_read): Change return type to size_t.
17757 * lib/safe-read.c (safe_read): Change return type to size_t. Handle byte
17758 counts > SSIZE_MAX correctly.
17759 * lib/safe-write.h: New file.
17760 * lib/safe-write.c: New file.
17761 * lib/full-read.h: New file.
17762 * lib/full-read.c: New file.
17763 * lib/full-write.h: Assume C89. Add comments.
17764 * lib/full-write.c: Include safe-write.h.
17765 (full_write): Rewritten to use safe_write.
17766 Suggested by Jim Meyering and Paul Eggert.
17768 2002-11-21 Jim Meyering <jim@meyering.net>
17770 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
17772 Merge in changes from the coreutils.
17774 2002-09-25 Paul Eggert <eggert@twinsun.com>
17775 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>.
17776 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
17777 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
17778 int. Work more efficiently if X is the same width as uintmax_t.
17779 Do not compare X to -1, to avoid bogus compiler warning.
17780 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
17781 Don't assume that f_frsize and f_bsize are the same type.
17783 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning
17786 * lib/makepath.c (make_path): Restore umask *before* creating the final
17788 (make_path): Minor reformatting.
17790 * lib/xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC
17791 and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC.
17793 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy
17794 ones. At least on GNU/Linux systems, `auto' means something else.
17795 From Michael Stone.
17797 2002-11-21 Bruno Haible <bruno@clisp.org>
17799 Remove case insensitive option matching.
17800 * lib/argmatch.h (argcasematch): Remove declaration.
17801 (ARGCASEMATCH): Remove macro.
17802 (__xargmatch_internal): Remove case_sensitive argument.
17803 (XARGMATCH): Update.
17804 (XARGCASEMATCH): Remove macro.
17805 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
17806 case_sensitive argument.
17807 (argcasematch): Remove function.
17808 (__xargmatch_internal): Remove case_sensitive argument.
17809 (main): Use XARGMATCH instead of XARGCASEMATCH.
17811 * lib/xmalloc.c: Change compile-time error message. Add comment about
17812 required autoconf version.
17814 2002-11-20 Paul Eggert <eggert@twinsun.com>
17816 Merge argmatch cleanups from Bison. Assume C89.
17818 * lib/argmatch.c: Include config.h here, not in argmatch.h.
17819 Include stdlib.h, for EXIT_FAILURE.
17820 Always include <string.h>, since we assume C89.
17821 (EXIT_FAILURE): Remove pre-C89 bug workaround.
17822 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
17823 Include <stddef.h> instead, since it's all we need for size_t.
17824 (PARAMS): Remove. All uses removed.
17825 (ARRAY_CARDINALITY): Do not bother to #undef.
17826 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
17827 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
17828 Remove unnecessary parentheses.
17829 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
17830 Insert necessary parentheses.
17831 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
17832 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
17834 2002-11-19 Bruno Haible <bruno@clisp.org>
17836 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
17837 * lib/mbswidth.h: Include <stddef.h>, for size_t.
17839 * lib/mbswidth.h (PARAMS): Remove macro.
17840 (mbswidth, mbsnwidth): Use ANSI C function declarations.
17841 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
17843 * lib/gcd.h (PARAMS): Remove macro.
17844 (gcd): Use ANSI C function declarations.
17845 * lib/gcd.c (gcd): Likewise.
17847 2002-11-15 Bruno Haible <bruno@clisp.org>
17849 * lib/strcspn.c: Include <stddef.h>.
17850 (strcspn): Use ANSI C function declaration. Change return type to
17852 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
17853 (strpbrk): Use NULL.
17854 * lib/strpbrk.h (PARAMS): Remove macro.
17855 (strpbrk): Use ANSI C function declaration.
17856 * lib/strstr.c: Don't include <sys/types.h>.
17857 * lib/strstr.h (PARAMS): Remove macro.
17858 (strstr): Use ANSI C function declarations.
17860 2002-11-14 Karl Berry <karl@gnu.org>
17862 * config/mkinstalldirs: `do' on separate line, instead of `for var; do'.
17864 2002-11-06 Bruno Haible <bruno@clisp.org>
17866 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
17867 * lib/gcd.c (gcd): Likewise.
17869 2002-11-05 Bruno Haible <bruno@clisp.org>
17871 * lib/gcd.h: New file, from gettext-0.11.5.
17872 * lib/gcd.c: New file, from gettext-0.11.5.
17874 2002-11-05 Bruno Haible <bruno@clisp.org>
17876 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
17877 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
17878 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
17879 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
17881 * lib/argmatch.c: Include gettext.h instead of <locale.h> and <libintl.h>.
17882 * lib/makepath.c: Include gettext.h instead of <locale.h> and <libintl.h>.
17884 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
17885 * lib/human.c: Include gettext.h instead of <libintl.h>.
17886 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
17887 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
17888 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
17889 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
17890 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
17891 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
17892 (textdomain): Remove definition.
17893 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
17895 * lib/long-options.c: Remove include of <libintl.h> and definition of _.
17896 * lib/same.c: Remove include of <libintl.h> and definition of _.
17898 2002-11-04 Owen Taylor <otaylor@redhat.com>
17900 * lib/config.charset: A few additions for Solaris.
17902 2002-11-04 Bruno Haible <haible@clisp.cons.org>
17904 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
17905 * lib/localcharset.c (locale_charset): Declare as extern "C".
17907 2002-11-04 Bruno Haible <haible@clisp.cons.org>
17909 * lib/config.charset: msdos in uk_UA uses CP1125.
17911 2002-11-04 Bruno Haible <bruno@clisp.org>
17913 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
17914 * lib/strcase.h: New file, from GNU gettext-0.11.5.
17915 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
17916 * lib/strstr.h: New file, from GNU gettext-0.11.5.
17917 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
17919 2002-11-04 Bruno Haible <bruno@clisp.org>
17921 * lib/localcharset.c (locale_charset): Don't return an empty string.
17923 2002-11-04 Bruno Haible <bruno@clisp.org>
17925 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
17928 2002-11-04 Bruno Haible <bruno@clisp.org>
17930 * lib/config.charset: Update for newest glibc. Add canonical names
17931 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
17933 2002-11-04 Bruno Haible <bruno@clisp.org>
17935 * lib/config.charset: Add support for NetBSD.
17937 2002-11-04 Bruno Haible <bruno@clisp.org>
17939 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
17941 2002-11-01 Bruno Haible <bruno@clisp.org>
17943 * configure.in: Add AC_CONFIG_AUX_DIR call.
17944 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
17946 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
17948 2002-09-28 Karl Berry <karl@gnu.org>
17950 * config/srclist.txt: can't copy install-sh/mkinstalldirs from installed
17951 automake until the next release, since changes have been made.
17953 2002-09-25 Karl Berry <karl@gnu.org>
17955 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
17956 * lib/getopt*: copy from libc/posix.
17957 * lib/gettext.h: copy from gettext.
17958 * lib/.cppi-disable: add strdup.c, gettext.h.
17960 2002-09-25 Karl Berry <karl@gnu.org>
17962 * config/srclist.txt: enable gettext.h check.
17963 * config/config.{guess,sub}: update from prep.
17964 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
17965 from automake 1.6.3.
17968 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
17970 * regex.c (PATFETCH): Remove the translating fetch.
17971 (PATFETCH_RAW): Rename to PATFETCH.
17972 (set_image_of_range): New fun.
17973 (SET_RANGE_TABLE_WORK_AREA): Use it.
17974 (regex_compile): Don't translate the pattern chars so eagerly.
17975 Only do it when inserting an `exactn' bytecode or when handling
17977 (mutually_exclusive_p): Avoid empty statement.
17979 2002-07-06 Jim Meyering <meyering@lucent.com>
17981 * m4/README: Don't mention Makefile.am.in.
17982 Outline how I've tested changes to .m4 files. Yep, it's a pain.
17984 2002-07-01 Jim Meyering <meyering@lucent.com>
17986 * lib/c-stack.c: Include sys/time.h.
17987 From Volker Borchert.
17989 2002-06-26 Paul Eggert <eggert@twinsun.com>
17991 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
17993 2002-06-26 Paul Eggert <eggert@twinsun.com>
17995 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
17996 New macro. Use it uniformly instead of
17997 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
17998 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
17999 reported by Vin Shelton.
18001 2002-06-22 Paul Eggert <eggert@twinsun.com>
18003 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
18004 Do not assume SA_SIGINFO behavior.
18005 Bug reported by Jim Meyering on NetBSD 1.5.2.
18007 2002-06-22 Jim Meyering <meyering@lucent.com>
18009 * m4/c-stack.m4: New file, from diffutils-2.8.2.
18010 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
18012 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
18013 now that configure.ac uses AC_GNU_SOURCE.
18014 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
18015 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
18017 Update to latest tools. Suggestions from Paul Eggert.
18018 * m4/stdbool.m4: New file, from diffutils-2.8.2.
18019 * m4/gnu-source.m4: Update from diffutils-2.8.2.
18020 * m4/fnmatch.m4: Likewise.
18021 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
18022 to AC_HEADER_STDBOOL
18024 2002-06-22 Jim Meyering <meyering@lucent.com>
18026 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
18027 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
18029 2002-06-22 Jim Meyering <meyering@lucent.com>
18031 * lib/c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
18033 * lib/exitfail.c, exitfail.h: Likewise.
18034 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
18036 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
18038 (EXTRA_DIST): Add fnmatch_loop.c.
18039 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
18041 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
18042 * lib/fnmatch.c: Update from diffutils-2.8.2.
18043 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
18044 * lib/fnmatch.h: Remove file.
18046 2002-06-21 Jim Meyering <meyering@lucent.com>
18048 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
18049 * m4/mbrtowc.m4: Likewise.
18051 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
18052 * m4/mbswidth.m4: Reflect name change:
18053 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
18054 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
18056 * m4/lib-link.m4: Update from gettext-0.11.2.
18057 * m4/gettext.m4: Likewise.
18059 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
18060 From Alfred M. Szmidt.
18062 2002-06-18 Paul Eggert <eggert@twinsun.com>
18064 * lib/file-type.h: Report an error if neither S_ISREG nor
18065 S_IFREG is defined, instead of using a test specific to glibc
18066 2.2. This should be safe, since POSIX requires S_ISREG and
18067 Unix Version 7 had S_IFREG. We don't need to check for
18068 <sys/types.h> since we don't use any symbols that it defines.
18070 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
18072 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t,
18073 so that each temporary file name is unique and valid in the first
18074 8 characters, for operation under DOS.
18076 2002-06-15 Paul Eggert <eggert@twinsun.com>
18078 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
18080 2002-06-15 Jim Meyering <meyering@lucent.com>
18082 Work even with DJGPP 2.03, which lacks support for symlinks.
18084 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
18086 * lib/lchown.c (S_ISLNK): Likewise.
18088 2002-06-15 Jim Meyering <meyering@lucent.com>
18090 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
18091 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
18092 have been included before this file.
18094 2002-06-14 Jim Meyering <meyering@lucent.com>
18096 * lib/file-type.h: Use the version from diffutils-2.8.2.
18097 * lib/file-type.c: Likewise.
18099 2002-06-07 Jim Meyering <meyering@lucent.com>
18101 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
18102 They're needed at least for NetBSD 1.5.2.
18103 ($statxfs_includes): Include those same headers.
18104 ($statxfs_includes): Include sys/vfs.h if available.
18105 ($statxfs_includes): Likewise for sys/statvfs.h.
18106 Check for the following members in both structs statfs and statvfs:
18107 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
18109 2002-06-01 Jim Meyering <meyering@lucent.com>
18111 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
18112 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
18114 2002-05-28 Jim Meyering <meyering@lucent.com>
18116 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
18117 Reported by Volker Borchert.
18119 2002-05-27 Jim Meyering <meyering@lucent.com>
18121 Fix a problem seen only on nonconforming systems whereby ls.c's
18122 use of localtime, and then of gettimeofday would cause trouble:
18123 the localtime call used to initialize rpl_gettimeofday's save
18124 mechanism would clobber ls's current local time information so
18125 that in any long listing the first file would always be listed
18126 with date 1970-01-01. Analysis by Volker Borchert.
18128 * lib/gettimeofday.c (localtime): Undefine.
18129 (rpl_localtime): New function.
18131 2002-05-27 Jim Meyering <meyering@lucent.com>
18133 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
18136 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
18137 use the replacement function; it wouldn't resolve at link time.
18138 Reported by Volker Borchert.
18140 2002-05-22 Jim Meyering <meyering@lucent.com>
18142 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h.
18143 * lib/file-type.h: New file.
18144 * lib/file-type.c (file_type): New file/function. Extracted from diffutils.
18146 2002-04-30 Jim Meyering <meyering@lucent.com>
18148 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
18150 2002-04-29 Paul Eggert <eggert@twinsun.com>
18152 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
18154 2002-04-29 Paul Eggert <eggert@twinsun.com>
18156 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
18157 Do not check for alloca.h (no longer used) or stdbool.h (was never
18158 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
18160 2002-04-29 Paul Eggert <eggert@twinsun.com>
18162 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
18164 2002-04-29 Jim Meyering <meyering@lucent.com>
18166 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
18167 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
18168 Use AC_FUNC_STRNLEN here instead.
18170 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
18171 With autoconf-2.53a, it's part of AC_PROG_CC.
18173 2002-04-28 Paul Eggert <eggert@twinsun.com>
18175 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
18176 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
18178 2002-04-28 Paul Eggert <eggert@twinsun.com>
18180 * lib/sig2str.h, sig2str.c: New files.
18181 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
18183 2002-04-28 Paul Eggert <eggert@twinsun.com>
18185 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
18186 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
18187 of 127, since 64 is the largest conceivable number for ancient
18189 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
18191 2002-04-28 Jim Meyering <meyering@lucent.com>
18193 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
18195 2002-04-24 Jim Meyering <meyering@lucent.com>
18197 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
18198 (jm_PREREQ): Use it.
18200 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
18201 mach/mach.h fcntl.h.
18202 Check for this function: setlocale.
18204 2002-04-24 Jim Meyering <meyering@lucent.com>
18206 * lib/gettext.h: New file, from Gettext.
18207 * lib/Makefile.am (INCLUDES): Remove -I../intl.
18208 (libfetish_a_SOURCES): Add gettext.h.
18210 2002-04-16 Jim Meyering <meyering@lucent.com>
18212 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
18213 ut_pid, ut_id, ut_exit.
18215 2002-04-16 Jim Meyering <meyering@lucent.com>
18217 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
18218 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
18219 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
18221 2002-04-12 Jim Meyering <meyering@lucent.com>
18223 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove now-bogus
18224 check for f_type in sys/mount.h. Instead, just test for the existence
18225 of the getmntinfo function. Needed for Darwin 5.3.
18227 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
18228 This is necessary at least on Darwin 5.3.
18230 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
18231 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of strnlen.o
18232 in the library, and that makes some versions of ranlib object.
18234 2002-04-12 Jim Meyering <meyering@lucent.com>
18236 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
18238 2002-04-09 Jim Meyering <meyering@lucent.com>
18240 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
18241 to be more precise. Rather than saying we're checking whether the
18242 function `works', say what we're testing.
18243 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
18244 Reported by Bruno Haible.
18246 2002-03-10 Jim Meyering <meyering@lucent.com>
18248 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
18249 Suggestion from Santiago Vila.
18251 2002-03-08 Jim Meyering <meyering@lucent.com>
18253 * lib/rename.c: Mention that this wrapper is needed also on
18254 mips-dec-ultrix4.4 systems.
18256 2002-03-02 Jim Meyering <meyering@lucent.com>
18258 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
18259 not HAVE_CLOCK_SETTIME.
18261 2002-02-27 Paul Eggert <eggert@twinsun.com>
18263 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
18264 Check for clock_settime.
18266 2002-02-27 Paul Eggert <eggert@twinsun.com>
18268 * lib/nanosleep.h: Rename to....
18269 * lib/timespec.h: New name for nanosleep.h. All uses changed.
18271 * lib/gettime.c: New file.
18272 * lib/settime.c: New file.
18273 * lib/stime.c: Remove.
18275 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
18276 timespec.h. Remove nanosleep.h.
18278 2002-02-25 Paul Eggert <eggert@twinsun.com>
18280 * m4/acl.m4: New file.
18281 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
18282 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
18284 2002-02-25 Paul Eggert <eggert@twinsun.com>
18286 * lib/acl.c, acl.h: New files.
18287 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
18289 2002-02-24 Jim Meyering <meyering@lucent.com>
18291 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
18292 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
18293 cause trouble. Reported by Nelson Beebe.
18295 2002-02-23 Paul Eggert <eggert@twinsun.com>
18297 * lib/path-concat.c (xpath_concat): Reorder code to pacify
18298 compilers that don't know that xalloc_die never returns.
18300 2002-02-20 Jim Meyering <meyering@lucent.com>
18302 * lib/getdate.c: Regenerate using bison-1.33.
18304 2002-02-17 Jim Meyering <meyering@lucent.com>
18306 * config/config.guess (main): Don't use `head -1'; it's no longer portable.
18307 Use `sed 1q' instead.
18309 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
18311 * m4/codeset.m4: Upgrade to gettext-0.11.
18312 * m4/gettext.m4: Upgrade to gettext-0.11.
18313 * m4/glibc21.m4: Upgrade to gettext-0.11.
18314 * m4/iconv.m4: Upgrade to gettext-0.11.
18315 * m4/isc-posix.m4: Upgrade to gettext-0.11.
18316 * m4/lcmessage.m4: Upgrade to gettext-0.11.
18317 * m4/lib-ld.m4: New file, from gettext-0.11.
18318 * m4/lib-link.m4: New file, from gettext-0.11.
18319 * m4/lib-prefix.m4: New file, from gettext-0.11.
18320 * m4/progtest.m4: Upgrade to gettext-0.11.
18322 2002-02-15 Paul Eggert <eggert@twinsun.com>
18324 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
18325 (jm_PREREQ): Use it.
18327 2002-02-15 Paul Eggert <eggert@twinsun.com>
18329 * lib/posixver.c, posixver.h: New files.
18330 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
18332 2002-02-02 Paul Eggert <eggert@twinsun.com>
18333 Bruno Haible <bruno@clisp.org>
18335 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
18336 (fwrite_success_callback): New declaration.
18337 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
18338 print_unicode_char. Call failure callback instead of error.
18339 (fwrite_success_callback): New function.
18340 (exit_failure_callback): New function.
18341 (fallback_failure_callback): New function.
18342 (print_unicode_char): Call unicode_to_mb.
18344 2002-01-26 Jim Meyering <meyering@lucent.com>
18346 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
18347 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
18349 2002-01-26 Jim Meyering <meyering@lucent.com>
18351 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
18353 2002-01-22 Paul Eggert <eggert@twinsun.com>
18355 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
18357 2002-01-22 Jim Meyering <meyering@lucent.com>
18359 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
18360 Otherwise, some versions of automake would omit the rule that makes
18361 Makefile from Makefile.in.
18363 2002-01-21 Paul Eggert <eggert@twinsun.com>
18365 * lib/xmemcoll.h, xmemcoll.c: New files.
18366 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
18367 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
18368 (memcoll): Set errno to zero if there is no error.
18370 * lib/quotearg.c (quotearg_buffer_restyled):
18371 Fix bug with quoting buffers containing NUL when backslashing escapes.
18372 This bug was exposed by the other changes in this patch.
18373 (quotearg_n_options): New arg ARGSIZE.
18374 All callers changed.
18375 (quoting_options_from_style): New function.
18376 (quotearg_n_style): Use it.
18377 (quotearg_n_style_mem): New function.
18379 * lib/quotearg.h (quotearg_n_style_mem): New function.
18381 2002-01-19 Jim Meyering <meyering@lucent.com>
18383 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
18384 Remove useless quotes: DF_PROG="df".
18385 * m4/strnlen.m4: New file.
18387 2002-01-16 Paul Eggert <eggert@twinsun.com>
18389 * lib/backupfile.c (ISDIGIT): Comment fix.
18390 * lib/getdate.y (ISDIGIT): Likewise.
18391 * lib/posixtm.c (ISDIGIT, year): Likewise.
18392 * lib/strverscmp.c (ISDIGIT): Likewise.
18393 * lib/userspec.c (ISDIGIT): Likewise.
18395 2002-01-16 Jim Meyering <meyering@lucent.com>
18397 * lib/getdate.y: Add three semicolons, each just before a closing brace.
18398 Bison (as of version 1.31) no longer papers over that mistake.
18400 2002-01-05 Jim Meyering <meyering@lucent.com>
18402 * lib/version-etc.c (version_etc_copyright): Update copyright year.
18404 2001-12-19 Paul Eggert <eggert@twinsun.com>
18406 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
18407 not silently exit merely because the output buffer happens to
18408 have nothing pending.
18410 2001-12-18 Paul Eggert <eggert@twinsun.com>
18412 See the big note in ../ChangeLog.
18413 * lib/human.c (suffixes): Prefer K to k for 1024.
18414 (generate_suffix_backwards): New function.
18415 (human_readable_inexact): Use it.
18416 * lib/xstrtol.c (__xstrtol): If there is no number but there
18417 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
18418 Accept 'K' as well as 'k'.
18420 2001-12-15 Jim Meyering <meyering@lucent.com>
18422 * lib/regex.h (__restrict_arr): Update from libc.
18424 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
18425 as `remote' if the name starts with `//'. Suggested by Michael Stone.
18428 2001-12-14 Jim Meyering <meyering@lucent.com>
18430 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
18431 Suggestion from Bruno Haible.
18433 2001-12-10 Jim Meyering <meyering@lucent.com>
18435 * lib/linebuffer.c: Remove explicit declarations of xmalloc and xrealloc,
18436 Instead, include "xalloc.h".
18437 (initbuffer): Don't cast xmalloc return value to char*.
18438 (readline): Reword comment.
18439 Don't cast xrealloc return value to char*
18440 Return NULL, not 0.
18442 2001-12-09 Jim Meyering <meyering@lucent.com>
18444 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning about
18445 `signed and unsigned type in conditional expression'.
18446 * lib/posixtm.c (posix_time_parse): Likewise.
18448 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
18450 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
18451 to avoid a pedantic warning.
18453 * lib/getstr.c: Don't include assert.h.
18454 (getstr): Remove warning-evoking assertions.
18455 Return -1 if offset parameter is out of bounds.
18456 Change the type of a local from int to size_t.
18458 * lib/strftime.c (my_strftime_localtime_r): Include this function
18459 definition in the `#if ! HAVE_TM_GMTOFF' block.
18461 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
18462 Include xalloc.h instead.
18464 2001-12-02 Jim Meyering <meyering@lucent.com>
18466 * lib/tempname.c: Don't declare getenv, thus reverting the change of
18467 2001-11-18. It's no longer necessary, now that stdlib.h is always
18470 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
18471 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
18473 2001-11-30 Akim Demaille <akim@epita.fr>
18475 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
18476 before being defined.
18478 2001-11-27 Paul Eggert <eggert@twinsun.com>
18480 * lib/quotearg.h (quotearg_n, quotearg_n_style):
18481 First arg is int, not unsigned.
18482 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
18483 (SIZE_MAX, UINT_MAX): New macros.
18484 (quotearg_n_options): Abort if N is negative.
18485 Avoid overflow check on hosts where size_t is 64 bits and int
18486 is 32 bits, as overflow is impossible there.
18487 Fix off-by-one typo that caused unnecessary reallocation.
18489 2001-11-27 Jim Meyering <meyering@lucent.com>
18491 * lib/tempname.c: Merge with version from libc.
18492 * lib/regex.c: Likewise.
18494 * lib/tempname.c: Include stdlib.h unconditionally. On some old systems
18495 for which STDC_HEADERS is 0, it was not included, resulting in a
18496 warning about an integer-to-pointer conversion problem with getenv.
18497 Reported by Volker Borchert.
18499 2001-11-26 Jim Meyering <meyering@lucent.com>
18501 * lib/gtod.h: Remove file.
18502 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
18503 * lib/gettimeofday.c: Don't include gtod.h.
18504 (GTOD_init): Remove function.
18505 (rpl_gettimeofday): Do its job here instead, rather than aborting.
18506 Suggestion from Volker Borchert.
18508 2001-11-23 Jim Meyering <meyering@lucent.com>
18510 * lib/hash.h (struct hash_table): Don't define here. Merely declare it.
18511 * lib/hash.c (struct hash_table): Define it here instead.
18513 2001-11-22 Jim Meyering <meyering@lucent.com>
18515 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
18517 2001-11-20 Jim Meyering <meyering@lucent.com>
18519 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
18520 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
18522 2001-11-19 Jim Meyering <meyering@lucent.com>
18524 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
18525 directory. Use "conftestXXXXXX" as the template.
18526 Suggestion from Paul Eggert.
18528 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor immediately,
18529 so the test doesn't mistakenly hit the max-open-files limit.
18531 2001-11-18 Paul Eggert <eggert@twinsun.com>
18533 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
18534 (TEMPORARIES): New macro.
18535 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
18536 removes an artificial limitation (e.g. HP-UX 10.20, where
18539 2001-11-18 Jim Meyering <meyering@lucent.com>
18541 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
18543 2001-11-18 Jim Meyering <meyering@lucent.com>
18545 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
18548 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
18549 files will be created before anything else.
18551 2001-11-17 Paul Eggert <eggert@twinsun.com>
18553 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
18554 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
18556 2001-11-17 Jim Meyering <meyering@lucent.com>
18558 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
18559 Prompted by a report from Bob Proulx.
18561 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
18562 Instead, require UTILS_FUNC_MKSTEMP.
18564 2001-11-17 Jim Meyering <meyering@lucent.com>
18566 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
18567 Now, that's done as part of AC_FUNC_STRTOD.
18569 2001-11-17 Jim Meyering <meyering@lucent.com>
18571 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
18572 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
18573 rather than group writable. Patch by Juan F. Codagnone.
18575 * lib/readtokens.c: Remove explicit declarations of xmalloc and xrealloc,
18576 Instead, include "xalloc.h".
18578 * lib/mountlist.c: Include unlocked-io.h after all system headers.
18579 Remove explicit declarations of xmalloc, xrealloc,
18580 and xstrdup. Instead, include "xalloc.h".
18582 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h.
18583 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise.
18584 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
18586 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
18587 Reported by Padraig Brady.
18589 * lib/mkstemp.c: #undef mkstemp.
18591 (rpl_mkstemp): Rename from mkstemp.
18594 2001-11-16 Jim Meyering <meyering@lucent.com>
18596 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
18597 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
18598 determine the amount of total physical memory, use pstat_getstatic.
18599 HPUX-11 doesn't define _SC_PHYS_PAGES.
18600 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
18601 If sysconf couldn't be used to determine the amount of available
18602 physical memory, use both pstat_getstatic and pstat_getdynamic.
18603 Based on a patch from Bob Proulx.
18605 2001-11-10 Jim Meyering <meyering@lucent.com>
18607 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
18608 (jm_PREREQ): Use it.
18610 2001-11-09 Jim Meyering <meyering@lucent.com>
18612 * m4/jm-macros.m4: Require autoconf-2.52f.
18613 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
18614 Use these AC_-prefixed names, not the AM_-prefixed ones.
18616 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
18618 2001-11-05 Jim Meyering <meyering@lucent.com>
18620 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
18622 2001-11-04 Jim Meyering <meyering@lucent.com>
18624 * m4/fpending.m4: Remove unused cruft that saved, set, and restored $DEFS.
18626 2001-11-03 Jim Meyering <meyering@lucent.com>
18628 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
18631 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
18632 know the name of the variable in the macro definition.
18634 2001-11-03 Jim Meyering <meyering@lucent.com>
18636 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
18637 in argmatch_to_argument call.
18639 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
18642 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
18643 e.g., a fault due to an attempt to free a NULL pointer.
18645 2001-11-01 Jim Meyering <meyering@lucent.com>
18647 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
18648 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
18650 2001-11-01 Jim Meyering <meyering@lucent.com>
18652 * lib/dirfd.c, dirfd.h: New files.
18653 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
18655 * lib/hash.c (hash_print) [TESTING]: Clean up.
18657 2001-10-22 Paul Eggert <eggert@twinsun.com>
18659 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
18660 to avoid a warning if -Wall.
18662 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
18665 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
18666 (per RMS's instructions, this is now the canonical source)
18667 * lgpl/, gpl/: New directories.
18669 2001-10-21 Paul Eggert <eggert@twinsun.com>
18671 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
18673 2001-10-21 Jim Meyering <meyering@lucent.com>
18675 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
18676 this code would end up calling gettext even in packages built
18677 with --disable-nls.
18678 * lib/getopt.c (_): Likewise.
18679 * lib/regex.c (_): Likewise.
18681 2001-10-20 Paul Eggert <eggert@twinsun.com>
18683 * m4/error.m4 (jm_PREREQ_ERROR):
18684 Do not invoke AC_CHECK_FUNCS with strerror_r, as
18685 AC_FUNC_STRERROR_R does that.
18686 Check for strerror declaration.
18688 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
18689 are supposed to have them these days.
18690 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
18691 Merge changes from latest Autoconf CVS.
18692 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
18693 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
18694 POSIX decided to standardize on the int flavor of strerror_r.
18696 2001-10-20 Paul Eggert <eggert@twinsun.com>
18698 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
18699 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
18700 Use strerror_r that is only a macro, even if it is not a function.
18701 (strerror): Check for HAVE_DECL_STRERROR before declaring.
18702 (private_strerror): Use prototypes, not old-style function definition.
18703 (print_errno_message): New function.
18704 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
18705 char*-flavored one.
18706 (error_tail, error, error_at_line): Use it.
18708 2001-10-11 Jim Meyering <meyering@lucent.com>
18710 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
18711 and quote_n (1, ... to avoid clobbering a buffer.
18713 2001-10-05 Jim Meyering <meyering@lucent.com>
18715 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.
18716 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
18717 * lib/hash-pjw.h: New file.
18719 2001-09-30 Jim Meyering <meyering@lucent.com>
18721 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
18722 `struct fsstat' has the `f_fstypename' member.
18723 Use that to define FS_TYPE, which is now used to make
18724 the getfsstat link test tighter.
18726 2001-09-30 Jim Meyering <meyering@lucent.com>
18728 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
18729 Include <sys/ucred.h>, for Apple Darwin.
18730 Include sys/mount.h and sys/fs_types.h only if available.
18732 (read_filesystem_list): Use FS_TYPE.
18734 2001-09-29 Paul Eggert <eggert@twinsun.com>
18736 * lib/exclude.c (excluded_filename): 0 -> false, since it's
18739 2001-09-29 Jim Meyering <meyering@lucent.com>
18741 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
18742 [one-argument getmntent function]): Include stdio.h before mntent.h.
18743 SunOS 4.1.x needs it for the declaration of `FILE'.
18744 Patch by Volker Borchert.
18746 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
18747 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
18748 sys/fs_types.h, and make the link-test for getfsstat guard #include
18749 directives with appropriate #if HAVE_*_H tests so that we can
18750 detect getfsstat on Apple Darwin1.3.7 systems.
18751 Reported by Nelson Beebe.
18752 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
18754 2001-09-28 Paul Eggert <eggert@twinsun.com>
18756 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
18757 #defines strtoimax. Also treat the other strto* functions
18760 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
18761 Check for strtoul and strtoumax,
18762 as those declarations are made even in the signed case.
18763 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
18764 Likewise, for strtol and strtoimax.
18766 2001-09-28 Paul Eggert <eggert@twinsun.com>
18768 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
18769 #defines strtoimax. Also treat the other strto* functions
18772 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
18773 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
18774 (strtoimax, strtoumax): Do not declare if already defined as a macro.
18776 2001-09-26 Jim Meyering <meyering@lucent.com>
18778 Most macros in unlocked-io.h had the wrong number of arguments.
18779 * lib/gen-uio: New script.
18780 (USE_UNLOCKED_IO): Define to 1 if not already defined.
18781 * lib/unlocked-io.hin: Remove file.
18782 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
18783 rather than trying to embed it here.
18784 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
18785 Reported by Padraig Brady.
18787 2001-09-25 Volker Borchert <bt@teknon.de>
18789 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable `result'.
18791 2001-09-24 Jim Meyering <meyering@lucent.com>
18793 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
18795 2001-09-23 Jim Meyering <meyering@lucent.com>
18797 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
18798 instead of the mere test for existence of mntent.h. The latter
18799 would get a false-positive on AIX 3.4 systems.
18800 In the outer getmntent if-block, don't die if neither of the getmntent
18801 tests succeeds. Instead, just fall through and continue with the
18804 2001-09-23 Jim Meyering <meyering@lucent.com>
18806 * lib/mountlist.c: Remove useless parentheses in #if directives.
18807 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
18808 the deprecated MOUNTED symbol is no longer defined in mntent.h.
18810 2001-09-22 Jim Meyering <meyering@lucent.com>
18812 * m4/gettext.m4: New file. From gettext.
18813 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
18814 * m4/progtest.m4: Likewise
18815 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
18816 * m4/glibc21.m4: Likewise.
18818 * m4/libintl.m4: Remove. No longer used.
18820 2001-09-22 Jim Meyering <meyering@lucent.com>
18822 * lib/localcharset.c: Update from latest gettext.
18823 * lib/config.charset: Likewise.
18825 2001-09-20 Jim Meyering <meyering@lucent.com>
18827 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
18829 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
18832 2001-09-20 Jim Meyering <meyering@lucent.com>
18834 * lib/xstrtol.c (strtoimax): Guard declaration with
18835 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
18836 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
18837 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
18838 (strtoumax): Likewise, for completeness (it wasn't necessary).
18840 2001-09-17 Paul Eggert <eggert@twinsun.com>
18842 * lib/strtoimax.c (HAVE_LONG_LONG):
18843 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
18844 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
18845 to work around bug in IBM C compiler.
18847 2001-09-17 Jim Meyering <meyering@lucent.com>
18849 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
18850 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
18851 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
18852 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
18853 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
18854 whenever the right hand side need not be expanded by the shell.
18856 2001-09-16 Paul Eggert <eggert@twinsun.com>
18858 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
18859 library. It's not correct, as some older glibcs are buggy.
18860 fnmatch wasn't fixed until glibc 2.2.
18862 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
18863 special shell magic here.
18865 2001-09-16 Jim Meyering <meyering@lucent.com>
18867 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
18868 * m4/jm-macros.m4: Require it.
18870 2001-09-16 Jim Meyering <meyering@lucent.com>
18872 * lib/mkdir.c: New file.
18874 2001-09-15 Jim Meyering <meyering@lucent.com>
18876 * m4/jm-macros.m4: Check for help2man.
18878 2001-09-11 Jim Meyering <meyering@lucent.com>
18880 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
18881 The body, by Paul Eggert, was moved here from configure.in.
18882 * m4/jm-macros.m4: Require UTILS_HOST_OS.
18884 2001-09-04 Paul Eggert <eggert@twinsun.com>
18886 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
18887 (jm_PREREQ): Use it.
18889 2001-09-04 Paul Eggert <eggert@twinsun.com>
18891 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
18892 Use ssize_t, not int, to store result of readlink.
18893 Check for ssize_t overflow as well as size_t overflow,
18894 as POSIX says the result of readlink is implementation-defined
18895 when ssize_t overflows.
18896 Remove unnecessary cast to char*.
18897 Use free+malloc instead of realloc, as the storage doesn't need
18898 to be preserved and it's clearer and can be more efficient that way.
18899 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
18900 * lib/xreadlink.h (xreadlink): Update prototype.
18902 2001-09-04 Paul Eggert <eggert@twinsun.com>
18904 * lib/xgetcwd.c: Revert some of the previous change; intead,
18905 fix the HAVE_GETCWD_NULL code to behave more like the
18906 !HAVE_GETCWD_NULL code used to.
18908 Include "xalloc.h".
18909 (xgetcwd): Do not return NULL when memory is exhausted; instead,
18912 2001-09-03 Paul Eggert <eggert@twinsun.com>
18914 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
18915 sys/param.h, as pathmax.h includes them.
18917 2001-09-03 Paul Eggert <eggert@twinsun.com>
18919 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
18920 (jm_PREREQ_XGETCWD): New macro.
18922 * m4/getcwd.m4: New file.
18924 2001-09-03 Paul Eggert <eggert@twinsun.com>
18926 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
18927 like the HAVE_GETCWD_NULL code.
18928 Include pathmax.h if not HAVE_GETCWD.
18929 Do not include xalloc.h.
18930 (INITIAL_BUFFER_SIZE): New symbol.
18931 Do not use xmalloc / xrealloc, since the caller is responsible for
18932 handling errors. Preserve errno around `free' during failure.
18933 Do not overrun buffer when using getwd.
18935 2001-09-03 Paul Eggert <eggert@twinsun.com>
18937 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
18938 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0).
18940 2001-09-03 Paul Eggert <eggert@twinsun.com>
18942 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
18943 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
18944 spotted by Jim Meyering.
18946 2001-09-03 Jim Meyering <meyering@lucent.com>
18948 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during failure.
18950 2001-09-02 Jim Meyering <meyering@lucent.com>
18952 * lib/error.c: Update from GNU libc.
18954 2001-09-01 Jim Meyering <meyering@lucent.com>
18956 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
18959 2001-09-01 Jim Meyering <meyering@lucent.com>
18961 * lib/xreadlink.c: New file.
18962 * lib/xreadlink.h: New file.
18963 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h.
18965 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
18966 doesn't conflict with sparc Solaris 7's definition in
18967 /usr/include/sys/int_types.h.
18969 * lib/exclude.c: Use `""', not `<>' to #include non-system header files.
18970 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
18971 and strncasecmp as r-values. Unixware didn't have declarations.
18973 2001-08-31 Paul Eggert <eggert@twinsun.com>
18975 * lib/xstrtol.h: Add copyright notice.
18976 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
18977 LONGINT_INVALID_SUFFIX_CHAR.
18979 2001-08-31 Paul Eggert <eggert@twinsun.com>
18981 * lib/xstrtol.c (strtoimax): New decl.
18983 2001-08-31 Paul Eggert <eggert@twinsun.com>
18985 * lib/xgetcwd.c: Don't include pathmax.h.
18986 Include stdlib.h and unistd.h if available.
18988 (xmalloc, xstrdup, free): Remove decls.
18989 (xgetcwd): Don't assume sizes fit in unsigned.
18990 Check for overflow when computing sizes.
18991 Simplify reallocation code.
18993 2001-08-31 Paul Eggert <eggert@twinsun.com>
18995 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
18996 a directory's st_size can have an arbitrary value, so the old
18997 usage could waste an arbitrary amount of memory. All uses
18999 * lib/savedir.h: Update prototype.
19001 2001-08-31 Paul Eggert <eggert@twinsun.com>
19003 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
19005 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
19008 Also, make the following further changes to make this file's
19009 configuration more similar to that of strtol.c:
19010 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
19011 (strtoumax, uintmax_t, strtoull, strtol): Remove.
19012 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
19013 (strtoimax): Renamed from strtoumax. All uses of unsigned values
19014 changed to signed values.
19016 And make the following changes as well:
19017 Fix copyright notice, as 1999 was missing.
19018 (verify): New macro.
19019 (strtoimax): Check sizes at compile-time, not run-time.
19020 Prefer strtol to strtoll if both work.
19021 (main): Remove; it was not that useful and was a pain to maintain.
19023 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
19025 2001-08-31 Jim Meyering <meyering@lucent.com>
19027 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
19028 Use an initial, malloc'd, buffer of length 128 rather than
19029 a statically allocated one of length 1024.
19031 2001-08-30 Paul Eggert <eggert@twinsun.com>
19033 Simplify code, partly by assuming autoconf 2.52 semantics.
19035 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
19037 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
19038 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
19040 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
19041 Move AC_REQUIRE to next-to-top level, to avoid confusion.
19042 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
19043 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require jm_AC_HEADER_INTTYPES_H.
19044 * m4/jm-macros.m4 (jm_MACROS): Likewise.
19046 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
19048 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
19049 Quote first arg of AC_DEFUN.
19050 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
19051 since they are needed to parse the include file even if we need
19052 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
19053 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
19054 but with opposite signedness.
19056 2001-08-30 Paul Eggert <eggert@twinsun.com>
19058 Merge 'exclude' changes from tar 1.13.22.
19059 This fixes one or two unlikely storage allocation overflow bugs,
19060 but doesn't change user-visible behavior otherwise.
19062 2001-08-30 Paul Eggert <eggert@twinsun.com>
19064 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
19065 (jm_PREREQ_EXCLUDE): New macro.
19067 2001-08-30 Paul Eggert <eggert@twinsun.com>
19069 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
19072 2001-08-30 Paul Eggert <eggert@twinsun.com>
19074 * lib/hash.c: Remove '2001' from copyright notice.
19076 2001-08-30 Paul Eggert <eggert@twinsun.com>
19078 * lib/full-write.h: New file.
19079 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
19080 * lib/full-write.c: Correct credits, as cccp.c no longer
19081 exists and anyway it was so heavily changed from the old cccp
19082 code as to be unrecognizable. Include full-write.h.
19083 (full_write) Return size_t, with short writes meaning failure.
19084 All callers changed. This fixes a bug with large buffers
19086 * lib/utime.c: Include full-write.h.
19088 2001-08-30 Paul Eggert <eggert@twinsun.com>
19090 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
19091 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
19092 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
19093 Include if available.
19094 (<xalloc.h>): Include
19095 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
19096 (verify): New macro. Use it to verify that EXCLUDE macros do not
19097 collide with FNM macros.
19098 (struct patopts): New struct.
19099 (struct exclude): Use it, as exclude patterns now come with options.
19100 (new_exclude): Support above changes.
19101 (new_exclude, add_exclude_file):
19102 Initial size must now be a power of two to simplify overflow checking.
19103 (free_exclude, fnmatch_no_wildcards): New function.
19104 (excluded_filename): No longer requires options arg, as the options
19105 are determined by add_exclude. Now returns bool, not int.
19106 (excluded_filename, add_exclude):
19107 Add support for the fancy new exclusion options.
19108 (add_exclude, add_exclude_file): Now takes int options arg.
19109 Check for arithmetic overflow when computing sizes.
19110 (add_exclude_file): xrealloc might modify errno, so don't
19111 realloc until after errno might be used.
19113 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
19115 (free_exclude): New decl.
19116 (add_exclude, add_exclude_file): Now takes int options arg.
19117 (excluded_filename): No longer requires options arg, as the options
19118 are determined by add_exclude. Now returns bool, not int.
19120 2001-08-30 Paul Eggert <eggert@twinsun.com>
19122 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
19124 2001-08-27 Jim Meyering <meyering@lucent.com>
19126 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
19128 * lib/version-etc.c (N_): Remove definition.
19129 Revert most of last change.
19130 Instead, simply don't mark the `Copyright...' string for translation.
19131 Based on advice from Paul Eggert.
19133 * lib/strtoxmax.c: Tweak comment.
19135 2001-08-26 Jim Meyering <meyering@lucent.com>
19137 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
19139 * m4/xstrtoimax.m4: New file.
19140 * m4/xstrtoumax.m4: Add comments explaining why we
19141 AC_REPLACE_FUNCS(strtol).
19143 2001-08-26 Jim Meyering <meyering@lucent.com>
19145 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
19146 of copyright with `%s' so translators don't get an untranslated
19148 (COPYRIGHT_YEAR): Define.
19149 (version_etc): Use fprintf rather than fputs.
19150 Suggestion from Ulrich Drepper.
19152 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
19154 * lib/strtoll.c: New file, from GNU libc.
19155 * lib/xstrtoimax.c: New file.
19157 * lib/xstrtol.h: Add xstrtoimax.
19158 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
19159 * lib/strtoimax.c: New file. Likewise, but first define STRTOUXMAX_SIGNED.
19161 * lib/strtoumax.c: Factor to work both for unsigned and signed types, ...
19162 * lib/strtoxmax.c: ... then renamed to this.
19164 2001-08-18 Paul Eggert <eggert@twinsun.com>
19166 * m4/inttypes.m4: Add AC_PREREQ(2.13).
19167 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
19168 (jm_AC_TYPE_INTMAX_T): New macro.
19169 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
19171 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
19173 * m4/longlong.m4: Renamed from ulonglong.m4.
19174 * m4/inttypes.m4: Renamed from inttypes_h.m4.
19175 * m4/uintmax_t.m4: Removed.
19177 2001-08-13 Paul Eggert <eggert@twinsun.com>
19179 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
19180 Port to Solaris 8, where 'sed' requires a space after the 'r'
19181 command, and where sh dislikes "$/". Clean up the spacing a bit.
19182 Redirect output to $tmp just once.
19184 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
19186 * lib/addext.c (<errno.h>): Include.
19187 (errno): Declare if not defined.
19188 (addext): Work correctly when pathconf returns -1 and leaves
19189 errno alone because there is no limit. Also, work even if
19190 pathconf returns a value greater than SIZE_MAX.
19192 2001-08-12 Jim Meyering <meyering@lucent.com>
19194 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
19195 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
19196 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
19197 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
19198 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
19199 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
19200 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
19201 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
19202 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
19203 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
19204 utime.m4, utimes.m4, xstrtoumax.m4:
19205 Quote the first argument in each use of AC_DEFUN.
19207 2001-08-12 Jim Meyering <meyering@lucent.com>
19209 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
19210 Simply `return getcwd (NULL, 0);'.
19211 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
19212 Use 1300 as initial value for length, not PATH_MAX.
19214 * lib/pathmax.h: Clean up cpp syntax.
19216 2001-08-12 Jim Meyering <meyering@lucent.com>
19218 * lib/gettimeofday.c: New file.
19219 * lib/gtod.h: New file.
19220 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
19222 2001-08-05 Jim Meyering <meyering@lucent.com>
19224 * m4/jm-macros.m4: Require autoconf-2.52.
19226 2001-08-04 Jim Meyering <meyering@lucent.com>
19228 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt,
19229 to get in sync with glibc.
19231 2001-08-03 Paul Eggert <eggert@twinsun.com>
19233 The following changes are from gettext 0.10.39 as maintained by
19236 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
19237 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
19238 with inverted sense. All uses changed.
19240 * lib/mbswidth.c: Don't include <limits.h>.
19241 Include <stdlib.h> and <string.h> unconditionally.
19242 (iswcntrl, mbsinit, ISCNTRL): New macros.
19243 (mbsnwidth): Use K&R style function declarations.
19244 Don't bother checking for MB_LEN_MAX == 1, since the compiler
19245 can optimize it when MB_CUR_MAX == 1.
19246 The width of control characters is zero, not 1.
19248 2001-08-03 Paul Eggert <eggert@twinsun.com>
19250 The following changes are from gettext 0.10.39 as maintained by
19251 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
19253 * m4/codeset.m4: Upgrade to serial AM1.
19254 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
19255 all uses changed. Quote first arg of AC_DEFUN.
19256 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
19258 * m4/iconv.m4: Upgrade to serial AM2.
19259 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
19260 Add --with-libconv-prefix.
19261 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
19262 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
19263 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
19264 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
19265 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
19267 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
19268 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
19269 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
19270 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
19271 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
19272 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
19273 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19274 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
19275 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
19277 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
19280 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
19281 not the default value.
19283 2001-06-25 Bruno Haible <haible@clisp.cons.org>
19284 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
19285 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
19286 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
19287 Also check for iswcntrl, used for wcwidth fallback.
19288 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
19291 2001-08-03 Jim Meyering <meyering@lucent.com>
19293 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
19294 as it was in the original. Reported by Paul Eggert.
19296 2001-07-16 Jim Meyering <meyering@lucent.com>
19298 * m4/gettimeofday.m4: New file.
19299 Prompted by a report from Bernhard Baehr.
19301 2001-07-15 Jim Meyering <meyering@lucent.com>
19303 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h stuff.
19304 Now it's in ../Makefile.cfg.
19306 2001-07-15 Jim Meyering <meyering@lucent.com>
19308 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
19309 (BUILT_SOURCES): Add unlocked-io.h.
19310 (io_functions): Define.
19311 (unlocked-io.h): New rule.
19312 (DISTCLEANFILES): Add unlocked-io.h.
19313 (all-local): Depend on unlocked-io.h, to ensure it is created.
19315 * lib/unlocked-io.hin: New file
19317 * lib/regex.c: Update from glibc.
19319 2001-07-05 Jim Meyering <meyering@lucent.com>
19321 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
19323 (libfetish_a_SOURCES): Put all .h files here instead.
19324 Remove a thus-exposed (better checks in automake) duplicate and
19325 two unnecessary .h files.
19327 2001-07-04 Jim Meyering <meyering@lucent.com>
19329 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
19330 that generates jm-glibc-io.m4 so that it doesn't trigger any make
19333 2001-07-02 Jim Meyering <meyering@lucent.com>
19335 The following changes were prompted by suggestions from Bruno Haible.
19337 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
19339 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
19340 definition of EXTRA_DIST.
19341 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
19342 ensure that the generated file is created/updated whenever the list
19343 of $(unlocked_functions) is changed.
19344 (jm-glibc-io.m4): New rule.
19345 (unlocked-io.h): New rule -- currently unused.
19347 2001-06-24 Jim Meyering <meyering@lucent.com>
19349 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
19350 unmatched right bracket, rather than kludging it with an extra,
19351 falsely-matching quote in a comment. Patch by Akim Demaille.
19353 2001-06-11 Jim Meyering <meyering@lucent.com>
19355 * lib/regex.c: Update from GNU libc.
19357 2001-05-27 Jim Meyering <meyering@lucent.com>
19359 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
19360 Check for ut_type in struct utmp.
19362 2001-05-27 Jim Meyering <meyering@lucent.com>
19364 * lib/readutmp.h (UT_TYPE): Define.
19366 2001-05-24 Jim Meyering <meyering@lucent.com>
19368 * lib/argmatch.c: Include "quote.h".
19369 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
19370 quote function. Reported by Göran Uddeborg.
19372 2001-05-22 Jim Meyering <meyering@lucent.com>
19374 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
19375 now that we use the package-supplied version unconditionally.
19376 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
19378 2001-05-21 Jim Meyering <meyering@lucent.com>
19380 * m4/regex.m4: Change a couple backticks to single quotes to avoid shell
19383 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
19385 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
19387 2001-05-20 Paul Eggert <eggert@twinsun.com>
19389 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
19390 Don't bother to check library strftime, since
19391 we'll be using our own my_strftime function anyway.
19392 Define my_strftime instead of strftime.
19394 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
19396 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
19397 which is not yet declared.
19399 2001-05-15 Jim Meyering <meyering@lucent.com>
19401 * m4/regex.m4: Use proper quoting so brackets appear in the test program.
19402 Reported by, and with help from, Bruno Haible.
19404 2001-05-13 Jim Meyering <meyering@lucent.com>
19406 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if undefined.
19408 2001-05-11 Paul Eggert <eggert@twinsun.com>
19410 dirname code cleanup. base_name now behaves more compatibly
19411 with POSIX basename when given file names that have trailing
19412 slashes, and similarly for dir_name. Add new primitives
19413 base_len and dir_len. Put the directory-name-related decls
19416 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
19417 * lib/backupfile.c (base_name): Likewise.
19418 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
19419 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
19420 * lib/makepath.c (strip_trailing_slashes): Likewise.
19421 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH):
19423 * lib/rename.c (strip_trailing_slashes): Likewise.
19424 * lib/same.c (base_name): Likewise.
19425 * lib/stripslash.c (ISSLASH): Likewise.
19427 * lib/addext.c: Include <dirname.h> after size_t is defined.
19428 * lib/backupfile.c: Likewise.
19430 * lib/addext.c (addext): Use base_len to trim redundant
19431 trailing slashes instead of doing it ourselves.
19432 But do not trim the last slash if it is not redundant.
19434 * lib/backupfile.c (find_backup_file_name,
19435 max_backup_version): Use base_len instead of rolling it ourselves.
19436 Handle the case of "" and (on DOS) "C:" correctly.
19438 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer needed.
19439 Include <string.h>, <dirname.h>.
19440 (base_name): Allow file names ending in slashes, other than names
19441 that are all slashes. In this case, return the basename followed
19442 by the slashes. This is more general, and can be used in places
19443 where the original base_name purposely had an assertion failure.
19444 (base_len): New function.
19446 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
19447 Do not include <assert.h>; no longer needed.
19449 (memrchr): Remove decl.
19450 (dir_name_r): Remove.
19451 (dir_len): Renamed from dirlen. All callers changed.
19452 Rewrite in terms of base_name, for simplicity and consistency.
19453 (dir_name): Never return NULL. All callers changed.
19454 Do not include <stdlib.h> in test program; no longer needed.
19455 return 0; is fine for test program.
19457 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
19459 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
19461 * lib/path-concat.c (path_concat): Use base_len to compute
19462 base length, not strlen; this means we cannot rely on memcpy
19465 * lib/same.c (STREQ): Remove.
19466 (same_name): Handle the case where the basename ends in trailing '/'.
19468 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
19469 a slash was stripped. Do not strip the last slash after a
19470 file system prefix.
19472 2001-05-11 Paul Eggert <eggert@twinsun.com>
19474 * lib/Makefile.am (libfetish_a_SOURCES):
19475 Add strftime.c, since we now compile it on all hosts.
19477 * lib/strftime.c (my_strftime):
19478 Define to nstrftime if emacs, but only if my_strftime is not defined.
19479 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
19480 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
19481 Add one more extra argument: a nanoseconds value.
19484 (my_strftime function): Add %N format.
19485 (emacs_strftimeu): Renamed from emacs_strftime,
19486 with extra ut argument.
19488 2001-05-09 Paul Eggert <eggert@twinsun.com>
19490 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
19492 2001-04-21 Jim Meyering <meyering@lucent.com>
19494 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
19497 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
19499 * m4/ftruncate.m4: Check for chsize.
19500 Link with ftruncate.o unconditionally if ftruncate is missing.
19501 This was required when cross-compiling to i586-mingw32msvc.
19503 2001-04-08 Jim Meyering <meyering@lucent.com>
19505 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
19506 recomputed; that's necessary when the offset spans a DST transition.
19507 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
19509 2001-04-02 Jim Meyering <meyering@lucent.com>
19511 * lib/regex.h, regex.c: Update from GNU libc.
19513 2001-03-24 Jim Meyering <meyering@lucent.com>
19515 * m4/jm-macros.m4: Require autoconf-2.49d.
19517 2001-03-20 Bruno Haible <haible@clisp.cons.org>
19519 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
19521 2001-03-19 Paul Eggert <eggert@twinsun.com>
19523 * lib/version-etc.c (version_etc_copyright): Update to 2001.
19525 2001-03-17 Jim Meyering <meyering@lucent.com>
19527 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
19528 now that the version in autoconf is equivalent.
19529 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
19531 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
19532 Suggestion from Akim Demaille.
19534 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
19535 (jm_PREREQ_TEMPNAME): New function.
19537 2001-03-16 Paul Eggert <eggert@twinsun.com>
19539 * lib/tempname.c (uint64_t): Define to uintmax_t if
19540 not defined, and if UINT64_MAX is not defined.
19541 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
19542 Reported by John David Anglin.
19544 2001-03-15 Bruno Haible <haible@clisp.cons.org>
19546 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also resolve
19547 alias if codeset is empty.
19548 * lib/config.charset (BeOS): Use wildcard syntax.
19550 2001-03-13 Jim Meyering <meyering@lucent.com>
19552 * lib/path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
19553 Don't insert a backslash when concatenating e.g., `C:' and `foo'.
19556 2001-03-06 Bruno Haible <haible@clisp.cons.org>
19558 * lib/localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL).
19560 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
19562 2001-03-06 Bruno Haible <haible@clisp.cons.org>
19564 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
19565 support for DOS/DJGPP.
19567 2001-03-01 Paul Eggert <eggert@twinsun.com>
19569 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
19570 lacks mkstemp. Compile our own tempname.c if we compile our own
19571 mkstemp.c, as mkstemp relies on tempname.
19573 2001-03-01 Jim Meyering <meyering@lucent.com>
19575 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
19576 AH_VERBATIM really does output its argument verbatim.
19578 2001-02-28 Paul Eggert <eggert@twinsun.com>
19580 * lib/Makefile.am (libfetish_a_SOURCES):
19581 Add dup-safer.c, fopen-safer.c.
19582 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
19584 * lib/dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files.
19586 2001-02-25 Paul Eggert <eggert@twinsun.com>
19588 The mkstemp replacement is taken from glibc 2.2.2, with some
19589 portability fixes for use outside glibc, as follows:
19591 * lib/tempname.c (struct_stat64): New macro.
19592 (direxists, __gen_tempname): Use it.
19593 This avoids a portability problem with Solaris 8.
19595 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
19596 (<stddef.h>, <stdint.h>, <string.h>):
19597 Include only if STDC_HEADERS || _LIBC.
19598 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
19599 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
19600 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
19601 (__set_errno): Define this macro if <errno.h> doesn't.
19602 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
19603 Define these macros if <stdio.h> doesn't.
19604 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
19605 Define these macros if <sys/stat.h>
19606 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
19607 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
19608 __xstat64): Define if not _LIBC.
19609 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
19610 (__gen_tempname): Invoke gettimeofday only if
19611 HAVE_GETTIMEOFDAY || _LIBC;
19612 otherwise, fall back on plain "time".
19613 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
19615 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
19617 * lib/mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
19619 2001-02-18 Paul Eggert <eggert@twinsun.com>
19621 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
19623 2001-02-17 Paul Eggert <eggert@twinsun.com>
19625 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
19626 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
19627 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
19628 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
19630 2001-02-17 Paul Eggert <eggert@twinsun.com>
19632 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
19633 Remove workaround macros for hosts that have mbrtowc but not
19634 mbstate_t, as we now insist on proper declarations for both
19635 before using mbrtowc.
19637 2001-02-17 Jim Meyering <meyering@lucent.com>
19639 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
19640 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
19641 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
19644 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
19645 rather than AC_CACHE_VAL.
19647 2001-02-17 Jim Meyering <meyering@lucent.com>
19649 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
19650 around included file name.
19652 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
19654 * lib/strftime.c: Update from GNU libc (the only changes were to comments).
19656 2001-02-17 Jim Meyering <meyering@lucent.com>
19658 * lib/regex.c: Update from libc.
19660 2001-02-17 Bruno Haible <haible@clisp.cons.org>
19662 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash.
19664 2001-02-16 Paul Eggert <eggert@twinsun.com>
19666 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
19667 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
19668 Reported by Mark Hounschell via Paul Eggert.
19670 2001-02-07 Jim Meyering <meyering@lucent.com>
19672 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
19674 2001-02-05 Jim Meyering <meyering@lucent.com>
19676 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
19677 it includes the patch required for `large file' support with at least
19678 HP-UX's 10.20 /bin/cc.
19680 2001-02-03 Jim Meyering <meyering@lucent.com>
19682 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
19683 AS_IF, now that it works once again (mysteriously).
19684 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
19686 2001-01-30 Jim Meyering <meyering@lucent.com>
19688 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
19689 * m4/chown.m4: Rename conftestchown to conftest.chown.
19690 * m4/rename.m4: s/conftestdir/conftest.d1/ and s/conftestdir2/conftest.d2/.
19691 * m4/utimes.m4: s/conftestdata/conftest.data/
19692 Inspired by Pavel Roskin's change in autoconf.
19694 2001-01-30 Bruno Haible <haible@clisp.cons.org>
19696 * lib/config.charset: Update for FreeBSD 4.2.
19698 2001-01-27 Jim Meyering <meyering@lucent.com>
19700 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
19702 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
19704 2001-01-26 Jim Meyering <meyering@lucent.com>
19706 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
19707 quotearg.c includes it.
19709 2001-01-26 Jim Meyering <meyering@lucent.com>
19711 * lib/quotearg.c: Include stddef.h.
19712 * lib/quote.c: Include stddef.h.
19713 Reported by Axel Kittenberger.
19715 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
19716 line in double quotes so that it evokes a better diagnostic.
19717 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
19718 Reported by Axel Kittenberger.
19720 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
19722 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
19723 as if it was a `charset'.
19725 2001-01-21 Bruno Haible <haible@clisp.cons.org>
19727 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
19730 2001-01-21 Bruno Haible <haible@clisp.cons.org>
19732 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
19733 to avoid a warning. Add back 'const' to inptr.
19735 2001-01-20 Jim Meyering <meyering@lucent.com>
19737 Be sure that headers are checked before used in code compiled
19738 for the type checks.
19739 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
19740 In place of that, invoke jm_CHECK_ALL_TYPES.
19741 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
19742 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
19743 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
19744 The check for ssize_t was mistakenly run before the test for unistd.h.
19746 The configure-time check for stdbool.h was missing.
19747 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
19748 (jm_PREREQ_HASH): New function.
19750 2001-01-17 Jim Meyering <meyering@lucent.com>
19752 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
19753 for autoconf-2.49c.
19754 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
19756 2001-01-16 Jim Meyering <meyering@lucent.com>
19758 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
19761 2001-01-14 Jim Meyering <meyering@lucent.com>
19763 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
19764 foo and bar. Create conftestdir/ in the script, not in the C code.
19765 Remove directories in the script, not in the C code.
19766 Remove conftestdir{,2} before trying to create the directory.
19767 Make the entire configure script fail if the mkdir fails.
19769 2001-01-14 Jim Meyering <meyering@lucent.com>
19771 * lib/rename.c: New file. From Volker Borchert.
19772 Include stdlib.h, string.h or strings.h, and xalloc.h.
19773 Use strip_trailing_slashes rather than open-coding it.
19775 2001-01-03 Paul Eggert <eggert@twinsun.com>
19777 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
19779 2001-01-03 Jim Meyering <meyering@lucent.com>
19781 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration of
19782 local `inptr' to avoid warning with some system declarations of iconv.
19784 2001-01-02 Volker Borchert <bt@teknon.de>
19786 * m4/rename.m4: New file.
19787 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
19789 2001-01-01 Jim Meyering <meyering@lucent.com>
19791 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available), even
19792 on systems with utmpx.h. It's necessary for the declaration of utmp's
19793 ut_user member. Reported by Andreas Jaeger.
19795 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if available.
19796 They are required for the declarations of getgrgid and getpwuid resp.
19797 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
19798 Reported by Andreas Jaeger.
19800 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
19802 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
19803 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
19804 so `make install' also works in VPATH builds.
19806 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
19808 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
19809 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
19810 can be used in subdirectories.
19812 2000-12-29 Paul Eggert <eggert@twinsun.com>
19814 * lib/modechange.c: Do not assume that mode_t uses the
19815 traditional octal encoding. E.g. "chmod 1 FOO" should set
19816 the other-execute bit of FOO even if S_IXOTH != 1.
19818 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
19819 WOTH, XOTH, ALLM): New macros.
19820 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
19821 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
19823 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
19824 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
19826 No need to use uintmax_t; unsigned long is long enough.
19827 Don't bother to get suffix since we don't use it.
19829 2000-12-26 Jim Meyering <meyering@lucent.com>
19831 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work better
19834 2000-12-24 Jim Meyering <meyering@lucent.com>
19836 * lib/hash.c (is_prime): Return explicit boolean values.
19837 (hash_get_first): Return NULL to appease Irix5.6's 89.
19838 Reported by Nelson Beebe.
19840 2000-12-19 Bruno Haible <haible@clisp.cons.org>
19842 * lib/localcharset.c (locale_charset): Add support for Win32.
19844 2000-12-18 Paul Eggert <eggert@twinsun.com>
19846 * lib/physmem.h, physmem.c: New files.
19848 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
19849 (noinst_HEADERS): Add physmem.h.
19851 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
19852 't' for compatibility with Solaris 8 sort.
19854 2000-12-18 Bruno Haible <haible@clisp.cons.org>
19856 * lib/config.charset: Add support for BeOS.
19858 2000-12-17 Jim Meyering <meyering@lucent.com>
19860 * m4/dos.m4 (jm_AC_DOS): New file and macro.
19861 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
19863 2000-12-16 Jim Meyering <meyering@lucent.com>
19865 This bug had a serious impact on chown: `chown N:M FILE' (for integer
19866 N and M) would have treated it like `chown N:N FILE'.
19868 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
19870 2000-12-16 Jim Meyering <meyering@lucent.com>
19872 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
19873 SHELLS_FILE to a file name that's useful on djgpp systems.
19875 (ADDITIONAL_DEFAULT_SHELLS): Define.
19876 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
19877 Based mostly on a patch from Prashant TR.
19879 2000-12-16 Bruno Haible <haible@clisp.cons.org>
19881 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII,
19882 CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257
19883 to the list of canonical encodings. Rename EUC-CN to GB2312.
19885 2000-12-08 Andreas Schwab <schwab@suse.de>
19887 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
19888 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
19890 2000-12-07 Jim Meyering <meyering@lucent.com>
19892 * lib/stripslash.c (ISSLASH): Define.
19893 (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'.
19896 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
19897 (dir_name_r): Declare this function as static.
19898 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
19899 manifest itself on a name containing a mix of slashes and
19901 Make this function work with names starting with a DOS-style
19902 drive letter and colon prefix.
19903 (dir_name): Append `.' if necessary.
19904 Based mostly on patches from Prashant TR and Eli Zaretskii.
19906 * lib/dirname.h (dir_name_r): Remove prototype.
19908 2000-12-06 Paul Eggert <eggert@twinsun.com>
19910 * m4/off_t-format.m4: Remove this file.
19911 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
19913 2000-12-06 Jim Meyering <meyering@lucent.com>
19915 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the replacement
19916 strtoull, we may well need the replacement strtoul, too.
19917 Check for declarations of strtoul and strtoull.
19918 Check for strtol. Mainly as a cue to cause automake to include
19919 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
19920 Check for limits.h -- strtol.c needs it.
19922 2000-12-05 Jim Meyering <meyering@lucent.com>
19924 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
19926 2000-12-04 Jim Meyering <meyering@lucent.com>
19928 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
19929 Also include memory.h, stdlib.h, unistd.h if appropriate.
19930 Reported by Andreas Jaeger (conflicting declaration of malloc).
19932 2000-12-02 Jim Meyering <meyering@lucent.com>
19934 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
19935 * m4/jm-macros.m4 (jm_MACROS): require it.
19937 2000-12-02 Jim Meyering <meyering@lucent.com>
19939 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
19941 2000-12-01 Paul Eggert <eggert@twinsun.com>
19943 * lib/memrchr.c: Include <config.h> before any system include file.
19945 2000-11-30 Jim Meyering <meyering@lucent.com>
19947 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
19949 2000-11-30 Jim Meyering <meyering@lucent.com>
19951 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
19953 2000-11-29 Paul Eggert <eggert@twinsun.com>
19955 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
19957 2000-11-26 Jim Meyering <meyering@lucent.com>
19959 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
19961 2000-11-22 Paul Eggert <eggert@twinsun.com>
19963 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
19964 size of (size_t) -1; it's not portable.
19966 2000-11-17 Jim Meyering <meyering@lucent.com>
19968 * lib/strstr.c: Update from GNU libc.
19970 2000-11-17 Akim Demaille <akim@epita.fr>
19972 * lib/obstack.h: Formatting changes.
19973 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
19974 prevent type checking.
19975 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
19976 cast the value to (void *): assigning a `foo *' to a `void *'
19978 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
19980 2000-11-16 Jim Meyering <meyering@lucent.com>
19982 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
19984 2000-11-11 Jim Meyering <meyering@lucent.com>
19986 * lib/error.c: Add a couple #includes, merging from GNU libc version.
19988 2000-11-10 Jim Meyering <meyering@lucent.com>
19990 * lib/obstack.h: Update from GNU libc.
19991 * lib/obstack.c: Likewise.
19993 2000-11-08 Bruno Haible <haible@clisp.cons.org>
19995 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
19997 2000-11-06 Paul Eggert <eggert@twinsun.com>
19999 * lib/getusershell.c (setusershell): Use rewind rather than
20000 fseek/fseeko, to avoid configuration hassles with fseeko.
20001 Don't bother opening SHELLS_FILE if shellstream is NULL;
20002 it's not necessary.
20004 2000-11-05 Jim Meyering <meyering@lucent.com>
20006 * lib/makepath.h (make_dir): Declare.
20007 * lib/makepath.c (make_dir): Remove `static' attribute.
20010 2000-11-04 Jim Meyering <meyering@lucent.com>
20012 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
20014 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
20016 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
20017 last one in a bucket, advance to the next bucket.
20019 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
20021 * lib/fnmatch.c: Do not comment out all the code if we are using
20022 the GNU C library, because in some cases we are replacing buggy
20023 code in the GNU C library itself.
20025 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
20027 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
20028 (regex_compile): Catch bogus \(\1\).
20030 2000-10-30 Paul Eggert <eggert@twinsun.com>
20032 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
20033 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
20034 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
20036 2000-10-30 Paul Eggert <eggert@twinsun.com>
20038 * lib/error.h, getline.h, modechange.h:
20039 Remove "2000" from Copyright line, as the file hasn't been
20040 changed this year other than in the copyright notice.
20042 * lib/xalloc.h: Add "2000" to Copyright line, as this file
20043 was changed this year.
20045 2000-10-29 Jim Meyering <meyering@lucent.com>
20047 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf renaming.
20048 * m4/ls-mntd-fs.m4: Likewise
20050 2000-10-29 Jim Meyering <meyering@lucent.com>
20052 * lib/xstat.in: Fix grammar in comment.
20054 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
20056 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
20057 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
20058 doesn't define __restrict_arr.
20060 2000-10-28 Jim Meyering <meyering@lucent.com>
20062 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
20063 (jm_PREREQ_MEMCHR): New function.
20065 2000-10-28 Jim Meyering <meyering@lucent.com>
20067 * lib/memchr.c: Update from libc.
20068 Adjust for portability:
20069 [HAVE_STDLIB_H]: Include stdlib.h.
20070 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
20071 Undef __memchr, too.
20072 [!weak_alias]: Define __memchr to memchr.
20074 * lib/regex.c: Update from libc.
20075 * lib/regex.h: Likewise.
20076 * lib/getopt1.c: Likewise.
20077 * lib/memcmp.c: Likewise.
20079 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
20080 Avoid using fseek, when possible -- it's broken by design.
20081 Patch by Ulrich Drepper.
20083 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
20085 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
20086 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
20087 Giving in to popular pressure to shut up the compiler with casts.
20089 2000-10-26 Jim Meyering <meyering@lucent.com>
20091 * lib/strftime.c: Update from libc.
20093 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
20095 * regex.c: More `unsigned char' -> `re_char' changes.
20096 Also change several `int' into `re_wchar_t'.
20097 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
20098 (PUSH_FAILURE_POINTER): Don't cast any more.
20099 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
20100 We want GCC to complain, since this piece of code makes
20101 re_match non-reentrant, which *should* be fixed.
20102 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
20103 (EXTEND_BUFFER): Use RETALLOC.
20104 (SET_LIST_BIT): Don't cast.
20105 (re_wchar_t): New type.
20106 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
20107 that those two functions will always properly return.
20108 (IMMEDIATE_QUIT_CHECK): Cast to void.
20109 (analyse_first): Use recursion rather than an explicit stack.
20110 (re_compile_fastmap): Can't fail anymore.
20111 (re_search_2): Don't check re_compile_fastmap for failure.
20112 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
20113 Now also sets the new value (passed in a new argument).
20114 (re_match_2_internal): Use it.
20115 Also, use a new var `reg' of type size_t when looping through regs
20116 rather than reuse the inappropriate `mcnt'.
20118 2000-10-25 Jim Meyering <meyering@lucent.com>
20120 * lib/obstack.c: Update from libc.
20122 2000-10-24 Kenichi Handa <handa@etl.go.jp>
20124 * regex.c (regex_compile): Change the way of handling a range from
20125 a char less than 256 to a char not less than 256.
20127 2000-10-24 Andrew Innes <andrewi@gnu.org>
20129 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
20131 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
20132 so that re_search functions only quit when callers expect them to.
20134 2000-10-23 Jim Meyering <meyering@lucent.com>
20136 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
20137 wrong. That set_locale call must not have any side effects.
20140 2000-10-22 Jim Meyering <meyering@lucent.com>
20142 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
20143 [CYCLIC]: Remove now-unused definition.
20145 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
20146 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
20147 Suggestion from Ulrich Drepper.
20149 2000-10-21 Jim Meyering <meyering@lucent.com>
20151 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
20152 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
20153 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
20155 2000-10-21 Jim Meyering <meyering@lucent.com>
20157 * lib/dirname.c (memrchr): Declare if necessary.
20158 (dir_name): Remove the restriction that there be no
20159 trailing slashes. Now, this code skips past them, effectively
20161 [TEST_DIRNAME] (main): New unit tests.
20163 * lib/memrchr.c: New file from GNU libc.
20164 Undef __memrchr, too.
20165 [!weak_alias]: Define __memrchr to memrchr.
20166 Guard weak_alias use with `#ifdef weak_alias'.
20168 2000-10-21 Jim Meyering <meyering@lucent.com>
20170 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
20171 (dir_name): Use dir_name_r.
20172 * lib/dirname.h (dir_name_r): Declare it.
20174 2000-10-17 Jim Meyering <meyering@lucent.com>
20176 * lib/quote.h (PARAMS): Define and use.
20177 Reported by Akim Demaille.
20179 * lib/getopt.c: Update from libc.
20181 2000-10-16 Jim Meyering <meyering@lucent.com>
20183 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale.
20186 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
20188 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
20190 2000-09-25 Jim Meyering <meyering@lucent.com>
20192 * lib/md5.h (rol): Define (from GnuPG).
20194 * lib/sha.c: Give credit (GnuPG) where due.
20195 (M): Use rol rather than open-coding it.
20196 Add a FIXME comment.
20198 2000-09-21 Jim Meyering <meyering@lucent.com>
20200 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
20201 Reported by Michael Stone.
20203 2000-09-20 Jim Meyering <meyering@lucent.com>
20205 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
20206 (noinst_HEADERS): Add sha.h.
20207 Based on code from Scott G. Miller and from GnuPG.
20209 2000-09-18 Jim Meyering <meyering@lucent.com>
20211 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of LIBS.
20212 Otherwise, everyone ends up linking with -lelf for some configurations.
20213 Reported by Mike Stone.
20215 2000-09-15 Jim Meyering <meyering@lucent.com>
20217 * lib/regex.c: Update from libc.
20219 2000-09-10 Jim Meyering <meyering@lucent.com>
20221 * lib/getopt.c (_getopt_internal): Update from glibc.
20223 2000-09-09 Jim Meyering <meyering@lucent.com>
20225 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
20226 think it should be used as a general replacement for isascii.
20227 * lib/fnmatch.c: Likewise.
20228 * lib/mbswidth.c: Likewise
20229 * lib/regex.c: Likewise.
20232 * lib/userspec.c: Include sys/param.h and limits.h.
20234 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
20235 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
20236 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
20237 UID, GID. Check range.
20239 2000-09-06 Jim Meyering <meyering@lucent.com>
20241 * lib/getopt.c (_getopt_internal): Update from glibc.
20243 2000-08-30 Jim Meyering <meyering@lucent.com>
20245 * lib/strftime.c: Merge in changes from GNU libc.
20247 2000-08-26 Jim Meyering <meyering@lucent.com>
20249 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
20250 * m4/fpending.m4: New file.
20252 2000-08-26 Jim Meyering <meyering@lucent.com>
20254 * lib/closeout.c: Include "__fpending.h".
20255 (close_stdout_status): Return right away if there's nothing to flush.
20257 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
20258 * lib/__fpending.c: New file.
20259 * lib/__fpending.h: New file.
20261 2000-08-20 Jim Meyering <meyering@lucent.com>
20263 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
20264 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
20265 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
20267 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
20269 Improve fileutils installation on systems where running
20270 programs (like install) can't be unlinked.
20271 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
20272 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
20274 2000-08-07 Paul Eggert <eggert@twinsun.com>
20276 Standardize on "memory exhausted" instead of "Memory exhausted"
20277 or "virtual memory exhausted".
20278 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
20279 "virtual memory exhausted".
20280 * lib/same.c (same_name): Invoke xalloc_die instead of printing
20282 * lib/userspec.c (parse_user_spec): Likewise.
20283 * lib/bumpalloc.h: comment fix
20284 * lib/same.c, userspec.c: Include xalloc.h.
20286 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
20287 not char *const and pointing to a constant array.
20288 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
20289 (xrealloc): Comment fix.
20291 * lib/userspec.c (parse_user_spec):
20292 Don't translate a message until just before returning,
20293 to avoid unnecessary translation.
20295 2000-08-07 Jim Meyering <meyering@lucent.com>
20297 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
20298 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
20299 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
20300 getgroups.c, gethostname.c, getopt.h, group-member.c,
20301 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
20302 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
20303 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
20304 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
20305 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
20306 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
20307 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
20308 yesno.c: Back out Copyright date changes for each file with no change
20309 this year. This eases coordination with other programs using the same
20310 source code modules. From Paul Eggert.
20312 2000-08-06 Paul Eggert <eggert@twinsun.com>
20314 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
20315 not char, for compatibility with glibc 2.1.3 strftime.c.
20317 2000-08-03 Greg McGary <greg@mcgary.org>
20319 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
20320 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
20321 (EXTEND_BUFFER): Use them.
20323 2000-08-01 Jim Meyering <meyering@lucent.com>
20325 * lib/dirname.c (ISSLASH): Define.
20326 (BACKSLASH_IS_PATH_SEPARATOR): Define.
20327 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
20328 both `\' and `/' may be use as path separators.
20329 Based on a patch from Prashant TR.
20331 2000-07-31 Paul Eggert <eggert@twinsun.com>
20333 * lib/quotearg.c (quotearg_n_options): Don't make the initial
20334 slot vector a constant, since it might get modified.
20336 2000-07-31 Jim Meyering <meyering@lucent.com>
20338 * lib/xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'.
20339 * lib/obstack.c (print_and_abort): Likewise.
20341 2000-07-30 Paul Eggert <eggert@twinsun.com>
20343 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
20344 buffer, so that the caller can always quote one small
20345 component of a "memory exhausted" message in slot 0.
20346 From a suggestion by Jim Meyering.
20348 2000-07-30 Jim Meyering <meyering@lucent.com>
20350 * lib/makepath.c (make_path): Quote the other instance, too.
20352 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
20353 (STATIC_BUF_SIZE): Define.
20354 (quotearg_n_options): Use only statically allocated storage when
20355 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
20356 than STATIC_BUF_SIZE.
20358 2000-07-29 Jim Meyering <meyering@lucent.com>
20360 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
20361 * lib/dirname.c (dir_name): Likewise.
20363 * lib/basename.c (base_name): Use ISSLASH rather than comparing against `/'.
20365 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
20366 (dir_name): Assert that there are no trailing slashes.
20368 2000-07-29 Bruno Haible <haible@clisp.cons.org>
20370 * lib/mbswidth.h (mbswidth): Add a flags argument.
20371 (mbswidth): New declaration.
20372 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
20373 * lib/mbswidth.c (mbswidth): Add a flags argument.
20374 (mbsnwidth): New function.
20376 2000-07-24 Jim Meyering <meyering@lucent.com>
20378 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
20380 2000-07-23 Paul Eggert <eggert@twinsun.com>
20382 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
20384 2000-07-23 Paul Eggert <eggert@twinsun.com>
20386 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
20387 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
20388 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
20389 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
20390 invoke multibyte primitives.
20392 2000-07-23 Paul Eggert <eggert@twinsun.com>
20395 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
20396 so that mbstate_t is always defined.
20398 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
20399 be 1 in at least one GCC installation, and this configuration
20400 error is likely to be common. Ignoring MB_LEN_MAX hurts
20401 performance on hosts that have mbrtowc but have only unibyte
20402 locales, but I assume these hosts are rare.
20404 2000-07-23 Paul Eggert <eggert@twinsun.com>
20406 * lib/mbswidth.c (_XOPEN_SOURCE):
20407 Don't define; this causes problems on Solaris 7.
20408 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
20410 2000-07-23 Jim Meyering <meyering@lucent.com>
20412 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these, too:
20413 getgrgid, getpwuid, getuid.
20415 2000-07-23 Jim Meyering <meyering@lucent.com>
20417 * lib/basename.c (base_name): Add an assertion.
20419 2000-07-23 Bruno Haible <clisp.cons.org>
20421 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
20422 shadow its mbsinit function.
20424 2000-07-17 Bruno Haible <haible@clisp.cons.org>
20426 * lib/mbswidth.h: New file.
20427 * lib/mbswidth.c: New file.
20428 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
20429 (noinst_HEADERS): Add mbswidth.h.
20431 2000-07-17 Bruno Haible <haible@clisp.cons.org>
20433 * lib/config.charset: Add support for FreeBSD. Improve support for HP-UX
20436 2000-07-16 Bruno Haible <haible@clisp.cons.org>
20438 * m4/mbswidth.m4: New file.
20439 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
20441 2000-07-15 Jim Meyering <meyering@lucent.com>
20443 * lib/makepath.c: Include quote.h.
20444 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
20445 corresponding argument in a `quote (...)' call.
20446 Give better diagnostics.
20448 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
20449 (noinst_HEADERS): Add quote.h.
20451 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
20452 from tar's src/misc.c.
20453 * lib/quote.h: New file. Prototypes for same.
20455 2000-07-14 Paul Eggert <eggert@twinsun.com>
20457 From a suggestion by Bruno Haible.
20458 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
20459 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
20460 to decide whether to define the BeOS workaround macro;
20461 this adjusts to the change to AC_MBSTATE_T.
20463 2000-07-14 Jim Meyering <meyering@lucent.com>
20465 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require jm_AC_TYPE_UINTMAX_T.
20467 2000-07-13 Paul Eggert <eggert@twinsun.com>
20469 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
20471 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
20472 quotearg_buffer_restyled): Add support for
20473 clocale_quoting_style. Undo previous change to
20474 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
20475 and "{RIGHT QUOTATION MARK}" msgids.
20477 2000-07-10 Paul Eggert <eggert@twinsun.com>
20479 From a suggestion by Bruno Haible.
20480 * m4/mbstate_t.m4 (AC_MBSTATE_T):
20481 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
20482 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
20483 and mbstate_t, to a single-part test that simply defines mbstate_t.
20484 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
20486 2000-07-10 Jim Meyering <meyering@lucent.com>
20488 * m4/strerror_r.m4: Mirror the correction made in autoconf.
20490 * m4/gnu-source.m4: Output to confdefs.h directly.
20491 Suggestion from Akim Demaille.
20493 2000-07-09 Paul Eggert <eggert@twinsun.com>
20495 The old behavior of quoting `like this' doesn't look good with
20496 newer, ISO-style fonts. See:
20497 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
20499 Instead, quote "like this" by default. Let the translator
20500 tailor the locale-specific quoting behavior by providing
20501 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
20503 * lib/quotearg.c (N_): New macro.
20504 (gettext_default): New function.
20505 (quotearg_buffer_restyled): Use
20506 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
20507 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
20509 2000-07-09 Jim Meyering <meyering@lucent.com>
20511 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
20512 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
20514 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
20515 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
20517 2000-07-09 Jim Meyering <meyering@lucent.com>
20519 * lib/Most files: Update copyright dates to include 2000.
20521 2000-07-08 Jim Meyering <meyering@lucent.com>
20523 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
20525 (xgethostname): Remove now-unnecessary #ifdef.
20526 Move declaration of `err' into loop where it's used.
20528 2000-07-05 Paul Eggert <eggert@twinsun.com>
20529 and Bruno Haible <haible@clisp.cons.org>
20531 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
20532 only if the test for an object-type mbstate_t fails. This
20533 prevents us from mistakenly reporting that mbstate_t is a
20534 system object type after we "#define mbstate_t int" to work
20537 2000-07-05 Paul Eggert <eggert@twinsun.com>
20538 and Bruno Haible <haible@clisp.cons.org>
20540 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
20542 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20544 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
20546 Include <ctype.h> for use of isalpha.
20548 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20550 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
20551 by allocating a larger buffer. Test the gethostname return value for
20552 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
20553 returns an error and ENAMETOOLONG isn't defined.
20555 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20557 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
20560 2000-07-04 Jim Meyering <meyering@lucent.com>
20562 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
20563 of the deprecated AC_CHECKING.
20565 2000-07-04 Jim Meyering <meyering@lucent.com>
20567 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
20568 Reported by Bruno Haible.
20570 2000-07-04 Jim Meyering <meyering@lucent.com>
20572 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
20573 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
20576 2000-07-03 Paul Eggert <eggert@twinsun.com>
20578 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
20579 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
20581 2000-07-03 Paul Eggert <eggert@twinsun.com>
20582 and Bruno Haible <haible@clisp.cons.org>
20584 * lib/quotearg.c (mbrtowc):
20585 Assign to *pwc, and return 1 only if result is nonzero.
20586 (iswprint): Use ISPRINT when substituting our own mbrtowc.
20588 2000-07-03 Jim Meyering <meyering@lucent.com>
20590 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
20592 2000-07-03 Jim Meyering <meyering@lucent.com>
20594 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
20595 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
20598 2000-07-02 Jim Meyering <meyering@lucent.com>
20600 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
20602 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
20603 AC_LIBOBJ(function_name).
20604 * m4/chown.m4: Likewise.
20605 * m4/fnmatch.m4: Likewise.
20606 * m4/ftruncate.m4: Likewise.
20607 * m4/getgroups.m4: Likewise.
20608 * m4/getline.m4: Likewise.
20609 * m4/group-member.m4: Likewise.
20610 * m4/jm-macros.m4: Likewise.
20611 * m4/lstat.m4: Likewise.
20612 * m4/malloc.m4: Likewise.
20613 * m4/memcmp.m4: Likewise.
20614 * m4/nanosleep.m4: Likewise.
20615 * m4/putenv.m4: Likewise.
20616 * m4/realloc.m4: Likewise.
20617 * m4/regex.m4: Likewise.
20618 * m4/stat.m4: Likewise.
20619 * m4/strftime.m4: Likewise.
20621 2000-07-02 Jim Meyering <meyering@lucent.com>
20623 * lib/quotearg.c (mbstate_t): Don't define here.
20625 2000-07-02 Jim Meyering <meyering@lucent.com>
20627 * lib/nanosleep.c (SIGCONT): Define if not already defined.
20629 2000-07-01 Jim Meyering <meyering@lucent.com>
20631 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
20633 2000-07-01 Jim Meyering <meyering@lucent.com>
20635 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
20638 2000-07-01 Bruno Haible <haible@clisp.cons.org>
20640 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
20641 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
20643 2000-07-01 Bruno Haible <haible@clisp.cons.org>
20645 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
20646 per change in ../m4/ls-mntd-fs.m4.
20647 (read_filesystem_list): Ignore symbolic links.
20649 2000-06-29 Jim Meyering <meyering@lucent.com>
20651 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
20652 for declaration of strcmp.
20654 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
20656 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
20657 Avoid warning by casting result to `char *' to remove `const'.
20659 2000-06-28 Jim Meyering <meyering@lucent.com>
20661 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not included
20662 by quotearg.c, for which we perform this test. From Bruno Haible.
20664 2000-06-27 Bruno Haible <haible@clisp.cons.org>
20666 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
20667 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
20668 <utmpx.h> exists, put readutmp.o into LIBOBJS.
20670 2000-06-27 Bruno Haible <haible@clisp.cons.org>
20672 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
20674 2000-06-26 Paul Eggert <eggert@twinsun.com>
20676 savedir now sets errno on failure and invokes xmalloc to get memory.
20677 Fix a couple of other minor bugs while we're at it.
20679 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
20680 (NAMLEN): Remove macro.
20681 (malloc, realloc): Remove decls.
20682 (stpcpy): Likewise.
20683 ("xalloc.h"): Include.
20684 (NAME_SIZE_DEFAULT): New macro.
20685 (savedir): Use xmalloc / xrealloc to allocate memory.
20686 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
20687 Skip "" directory entries.
20688 Use strlen to calculate directory entry length, since the old method
20689 is rarely used these days and isn't worth supporting.
20690 Don't use a pointer after freeing it.
20691 Check for integer overflow when calculating allocation size.
20692 Use memcpy to copy entries, instead of stpcpy.
20693 Set errno properly when returning NULL.
20694 Check for readdir error.
20696 2000-06-26 Jim Meyering <meyering@lucent.com>
20698 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
20700 2000-06-25 Jim Meyering <meyering@lucent.com>
20702 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
20703 Linux header bug when _XOPEN_SOURCE is defined to 500.
20705 2000-06-25 Bruno Haible <haible@clisp.cons.org>
20707 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr deficiency.
20709 2000-06-25 Bruno Haible <haible@clisp.cons.org>
20711 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
20713 Don't include <stdlib.h>. Don't declare malloc, realloc.
20715 2000-06-24 Jim Meyering <meyering@lucent.com>
20717 * m4/strerror_r.m4: Revive this file -- to try out an experimental
20718 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
20719 for which strerror does return char*, but which lacks a conveniently
20720 accessible declaration of the function. If the compile-test says
20721 strerror_r doesn't work, then resort to a `run'-test that works on
20722 BeOS and segfaults on DEC Unix.
20724 2000-06-24 Jim Meyering <meyering@lucent.com>
20726 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
20728 2000-06-23 Paul Eggert <eggert@twinsun.com>
20730 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
20731 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
20733 2000-06-23 Paul Eggert <eggert@twinsun.com>
20735 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
20736 (mbrtowc, mbstate_t): Define substitutes if
20737 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
20738 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
20739 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
20741 2000-06-23 Jim Meyering <meyering@lucent.com>
20743 * m4/afs.m4: Add missing AC_MSG_RESULT.
20744 Reported by Bruno Haible.
20746 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
20747 Suggestion from Bruno Haible.
20749 2000-06-23 Jim Meyering <meyering@lucent.com>
20751 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
20753 2000-06-21 Jim Meyering <meyering@lucent.com>
20755 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
20757 2000-06-21 Jim Meyering <meyering@lucent.com>
20759 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
20760 (noinst_HEADERS): Add getstr.h.
20762 * lib/getline.c (getstr): Move into a separate file.
20763 * lib/getstr.c (getstr): New file, extracted from getline.c, with
20764 the following changes: new parameter, delim2; both delim[12]
20765 parameters have type `int', not `char'. The latter would lose
20766 with 8-bit delimiters.
20767 * lib/getstr.h: New file.
20769 2000-06-21 Bruno Haible <haible@clisp.cons.org>
20771 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
20772 than 1024, return a memory chunk of least possible size, instead
20773 of size PATH_MAX + 2. In the loop, increment the size proportionally.
20774 Use free/xmalloc instead of xrealloc to avoid copying for very long
20777 2000-06-21 Bruno Haible <haible@clisp.cons.org>
20779 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
20782 2000-06-21 Bruno Haible <haible@clisp.cons.org>
20784 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
20785 address, not strdup. Include <stdlib.h> and don't declare free().
20787 2000-06-19 Jim Meyering <meyering@lucent.com>
20789 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
20791 2000-06-18 Jim Meyering <meyering@lucent.com>
20793 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
20795 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
20796 `checking whether...' message to be consistent with that of the
20799 2000-06-18 Jim Meyering <meyering@lucent.com>
20801 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
20802 Besides, these days every porting target provides a mkdir function.
20804 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as needed.
20805 (this snippet comes from src/system.h).
20807 2000-06-16 Bruno Haible <haible@clisp.cons.org>
20809 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
20811 2000-06-15 Paul Eggert <eggert@twinsun.com>
20813 * lib/human.c (adjust_value): New function.
20814 (human_readable_inexact): Apply rounding style even when
20815 printing approximate values.
20817 2000-06-14 Paul Eggert <eggert@twinsun.com>
20819 * lib/human.c (human_readable_inexact): Allow an input block
20820 size that is not a multiple of the output block size, and vice versa.
20821 Reported by Piergiorgio Sartor.
20823 2000-06-14 Paul Eggert <eggert@twinsun.com>
20825 * lib/getdate.y (get_date): Apply relative times after time
20826 zone indicator, not before. Reported by Todd A. Jacobs.
20828 2000-06-13 Jim Meyering <meyering@lucent.com>
20830 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
20832 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
20834 2000-06-12 Paul Eggert <eggert@twinsun.com>
20836 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
20838 2000-06-12 Jim Meyering <meyering@lucent.com>
20840 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with AC_FUNC_GETLOADAVG
20841 from autoconf, and tweak the latter to accept an optional argument.
20842 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
20843 the optional argument, `lib'.
20845 2000-06-08 Jim Meyering <meyering@lucent.com>
20847 * m4/largefile.m4: Remove file (now that it's part of autoconf).
20849 2000-06-04 Paul Eggert <eggert@twinsun.com>
20851 Rewrite largefile configuration so that we don't need to run
20852 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
20853 AC_CANONICAL_HOST in configure.in -- jmm]
20855 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
20856 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
20857 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
20858 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
20859 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
20861 Instead of inspecting the output of getconf, try to compile the
20862 test program without and with the macro definition.
20863 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
20864 for getconf. Instead, check for the needed flags by compiling
20867 2000-06-04 Paul Eggert <eggert@twinsun.com>
20869 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
20871 2000-06-04 Jim Meyering <meyering@lucent.com>
20873 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
20874 SunOS 4.1.4 for which gid_t is an unsigned type.
20876 2000-06-03 Jim Meyering <meyering@lucent.com>
20878 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
20879 now that autoconf requires that.
20881 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
20882 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
20883 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
20885 2000-06-03 Jim Meyering <meyering@lucent.com>
20887 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
20889 2000-06-03 Bruno Haible <haible@clisp.cons.org>
20891 * m4/glibc21.m4: New file.
20892 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
20894 2000-06-03 Bruno Haible <haible@clisp.cons.org>
20896 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
20897 newer, don't install charset.alias.
20898 * lib/config.charset: Change the Linux/glibc rules so they become empty
20899 on glibc-2.1 or newer.
20901 2000-06-02 Jim Meyering <meyering@lucent.com>
20903 * lib/mountlist.c: Back out last change. Instead, do this...
20904 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy
20905 member using the same `ignore'-testing code.
20906 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
20910 2000-05-29 Jim Meyering <meyering@lucent.com>
20912 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts
20913 with the `ignore' attribute. Based on a patch from Mark D. Roth.
20915 2000-05-28 Jim Meyering <meyering@lucent.com>
20917 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
20918 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20919 * m4/stat.m4: Likewise.
20920 * m4/lstat.m4: Likewise.
20921 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
20923 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
20924 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
20926 2000-05-26 Jim Meyering <meyering@lucent.com>
20928 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
20930 2000-05-24 Jim Meyering <meyering@lucent.com>
20932 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
20933 autoconf requires that.
20934 * m4/lib-check.m4: Likewise.
20935 * m4/jm-macros.m4: Likewise.
20936 * m4/strftime.m4: Likewise.
20938 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in AC_CHECK_DECLS,
20939 now that autoconf requires that.
20941 2000-05-22 Jim Meyering <meyering@lucent.com>
20943 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20944 * m4/lstat.m4: Likewise.
20946 2000-05-22 Jim Meyering <meyering@lucent.com>
20948 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
20950 2000-05-20 Jim Meyering <meyering@lucent.com>
20952 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
20953 (jm_PREREQ): Use it.
20955 2000-05-18 Jim Meyering <meyering@lucent.com>
20957 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
20958 back, too, since it may have been modified by allocate_entry.
20959 (hash_delete): Rewrite to use neither the assignment operator
20960 nor the comma operator in an if-expression.
20962 2000-05-15 Paul Eggert <eggert@twinsun.com>
20965 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
20966 Remove; no longer needed.
20967 "quotearg.h": Add include.
20968 (file_name): Do not bother to explicitly initialize to NULL; it's less
20969 efficient on some hosts.
20970 (close_stdout_status): Remove test as to whether stdout was already
20971 closed; it breaks for the case "echo x | sort >&-".
20972 Quote file name colons.
20973 Do not assume that _("write error") lacks format strings.
20975 2000-05-15 Jim Meyering <meyering@lucent.com>
20977 * lib/version-etc.c (version_etc_copyright): Update the copyright string
20978 used in all --version output.
20980 2000-05-14 Jim Meyering <meyering@lucent.com>
20982 * lib/closeout.c (close_stdout_set_file_name): New function.
20983 (close_stdout_status): Use new file-scoped global.
20984 Return right away if fstat says the stdout file descriptor is invalid.
20985 * lib/closeout.h (close_stdout_set_file_name): Declare.
20987 2000-05-10 Jim Meyering <meyering@lucent.com>
20989 * lib/closeout.c [default_exit_status]: New file-scoped variable.
20990 (close_stdout_set_status): New function.
20991 * lib/closeout.h (close_stdout_set_status): Declare.
20993 2000-05-09 Jim Meyering <meyering@lucent.com>
20995 * m4/gettext.m4: Rename this...
20996 * m4/libintl.m4: ...to this.
20998 2000-05-08 Jim Meyering <meyering@lucent.com>
21000 * lib/long-options.c: Don't include closeout.h.
21001 (parse_long_options): Don't call close_stdout for --version.
21003 2000-05-06 Paul Eggert <eggert@twinsun.com>
21005 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
21006 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
21007 2.1.3 bug. This avoids a clash when files like regex.c define
21010 2000-05-06 Jim Meyering <meyering@lucent.com>
21012 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
21013 (AC_REPLACE_FUNCS): Add strnlen.
21015 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
21016 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
21018 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
21019 AC_SEARCH_LIBS call for nanosleep.
21020 (LIB_NANOSLEEP): Set and AC_SUBST.
21022 2000-05-06 Jim Meyering <meyering@lucent.com>
21024 * lib/strnlen.c: Undefine __strnlen and strnlen.
21025 [!weak_alias]: Define __strnlen to strnlen.
21027 * lib/atexit.c: New file, from libiberty.
21029 2000-05-06 Jim Meyering <meyering@lucent.com>
21031 * lib/closeout.c (close_stdout_status): Also check for errors on the
21034 2000-05-05 Jim Meyering <meyering@lucent.com>
21036 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around AC_SEARCH_LIBS
21037 call for clock_gettime.
21038 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
21040 * m4/search-libs.m4: Update from autoconf.
21042 su doesn't work on Solaris 2.6.
21043 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
21044 <shadow.h>. Reported by Dragos Harabor.
21046 2000-05-05 Bruno Haible <haible@clisp.cons.org>
21048 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
21049 instead of xmalloc, xrealloc, path_concat.
21050 (locale_charset): Treat empty environment variables as absent.
21051 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
21053 2000-05-04 Jim Meyering <meyering@lucent.com>
21055 * lib/getopt.c: Update from glibc.
21056 * lib/obstack.c: Likewise.
21057 * lib/obstack.h: Likewise.
21058 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this file
21060 * lib/regex.h: Likewise.
21061 * lib/strndup.c: Likewise.
21062 * lib/strnlen.c: New file, from glibc.
21064 2000-05-03 Jim Meyering <meyering@lucent.com>
21066 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
21068 2000-05-02 Paul Eggert <eggert@twinsun.com>
21070 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
21071 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
21072 compile-time test, rather than inspecting host and OS, to
21073 decide whether to define _LARGEFILE_SOURCE.
21075 2000-05-01 Jim Meyering <meyering@lucent.com>
21077 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
21079 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
21080 Based on a patch from Bruno Haible.
21082 2000-05-01 Jim Meyering <meyering@lucent.com>
21084 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
21086 2000-04-29 Jim Meyering <meyering@lucent.com>
21088 * lib/path-concat.c: Declare strdup only if it's not defined.
21089 * lib/canon-host.c: Likewise.
21091 2000-04-28 Jim Meyering <meyering@lucent.com>
21093 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
21094 redefinition warning on some systems (HPUX). Otherwise, regex.h is
21095 included first, then limits.h is included by locale.h by libintl.h.
21096 From John David Anglin.
21098 2000-04-25 Jim Meyering <meyering@lucent.com>
21100 * lib/makepath.c (S_IRWXUGO): Define.
21101 (make_path): Always perform explicit chmod if MODE specifies any
21102 of the `special' permission bits. Prompted by a bug report against
21103 install from Mate Wierdl and Joost van Baal.
21105 2000-04-18 Jim Meyering <meyering@lucent.com>
21107 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
21108 (jm_PREREQ): Use it.
21110 2000-04-18 Jim Meyering <meyering@lucent.com>
21112 * lib/README: New file.
21114 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
21115 getpagesize. For BeOS. Based on a patch from Bruno Haible.
21117 2000-04-17 Jim Meyering <meyering@lucent.com>
21120 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
21121 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
21122 Suggestion from Akim Demaille.
21124 2000-04-17 Jim Meyering <meyering@lucent.com>
21126 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
21127 the definition of it to rpl_strftime also defined-away the system's
21130 2000-04-15 Jim Meyering <meyering@lucent.com>
21132 Use `C' to denote so-called `contiguous' files, the same way
21134 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
21135 (ftypelet): Use S_ISCTG.
21136 From Michael Deutschmann.
21138 2000-04-14 Jim Meyering <meyering@lucent.com>
21140 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg form
21141 of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets clobbered.
21143 2000-04-14 Jim Meyering <meyering@lucent.com>
21145 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
21147 2000-04-13 Jim Meyering <meyering@lucent.com>
21149 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new AH_VERBATIM
21150 to insert required #ifndef into config.h.in.
21151 Suggestion from Akim Demaille.
21153 2000-04-12 Jim Meyering <meyering@lucent.com>
21155 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
21156 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
21157 Christian Krackowizer.
21159 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
21160 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
21161 (AC_SYS_LARGEFILE): Require.
21162 (AM_C_PROTOTYPES): Require.
21164 2000-04-08 Jim Meyering <meyering@lucent.com>
21166 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
21167 names don't conflict. Reported by Eli Zaretskii.
21169 2000-04-07 Jim Meyering <meyering@lucent.com>
21171 * lib/putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
21172 to work around system header problems on AIX 3.2.5. From Bruno Haible.
21174 2000-04-07 Bruno Haible <haible@clisp.cons.org>
21176 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
21177 bug. Deal with the different error behavior of Irix iconv.
21179 2000-04-05 Paul Eggert <eggert@twinsun.com>
21181 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
21182 IRIX if the installer said otherwise.
21184 2000-04-05 Jim Meyering <meyering@lucent.com>
21186 Portability tweaks required for ultrix4.3.
21187 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
21188 (jm_CHECK_DECLS): Add getutent to the list of functions.
21189 (_jm_DECL_HEADERS): Add utmpx.h.
21190 From John David Anglin.
21192 * m4/strftime.m4: Back out the 2000-04-02 change.
21193 Instead of that change, simply undefine putenv in the test program.
21195 2000-04-05 Jim Meyering <meyering@lucent.com>
21197 Portability tweaks required for ultrix4.3.
21198 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
21199 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
21200 * lib/canon-host.c: Declare strdup.
21201 * lib/path-concat.c: Likewise.
21202 From John David Anglin.
21204 2000-04-04 Jim Meyering <meyering@lucent.com>
21206 Be more DOS 8.3-friendly.
21207 * lib/ref-add.sin: Renamed from ref-add.sed.in.
21208 * lib/ref-del.sin: Renamed from ref-del.sed.in.
21209 * lib/Makefile.am: Reflect renaming.
21210 Reported by Eli Zaretskii.
21212 Use a temporary file name that won't clash with `charset.alias'
21213 in the DOS 8.3 name space.
21214 * lib/Makefile.am (charset_tmp): Define.
21215 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
21216 (uninstall-local): Likewise.
21217 Reported by Eli Zaretskii.
21219 2000-04-03 Jim Meyering <meyering@lucent.com>
21221 * m4/gettext.m4: Fix typo in comment.
21223 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
21224 textutils/configure.in). Suggestion from Paul Eggert.
21225 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
21227 2000-04-02 Paul Eggert <eggert@twinsun.com>
21229 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
21230 variable in the shell rather than using putenv, which isn't
21231 portable. This avoids the configure-time inter-test dependency
21232 on the potentially-renamed putenv function.
21234 2000-03-30 Paul Eggert <eggert@twinsun.com>
21236 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
21237 before checking struct stat.st_blksize, so that
21238 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
21240 2000-03-29 Paul Eggert <eggert@twinsun.com>
21242 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
21243 since strftime.c uses HAVE_STRFTIME to decide whether to use
21244 the underlying strftime.
21246 2000-03-29 Paul Eggert <eggert@twinsun.com>
21248 * lib/time/strftime.c (my_strftime): Make sure we call the system
21249 strftime, not ourselves, when invoking the underlying strftime.
21251 2000-03-24 Jim Meyering <meyering@lucent.com>
21253 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
21254 (charset_alias): Define.
21255 (install-exec-local): Factor out common code.
21256 (uninstall-local): Split lines longer than 80.
21257 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
21258 (SUFFIXES): Define.
21259 (.sed.in.sed): New rule. Don't redirect directly to $@.
21260 (CLEANFILES): Add ref-add.sed and ref-del.sed.
21262 2000-03-19 Bruno Haible <haible@clisp.cons.org>
21264 * lib/config.charset: Output a line containing "Packages using this file".
21265 * lib/ref-add.sed.in, ref-del.sed.in: New files.
21266 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
21267 ref-del.sed): New rules.
21269 2000-03-17 Jim Meyering <meyering@lucent.com>
21271 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
21272 Otherwise, include <strings.h>
21274 2000-03-17 Bruno Haible <haible@clisp.cons.org>
21276 * lib/unicodeio.c (utf8_wctomb): New function.
21277 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
21278 format instead of in UCS-4 with platform dependent endianness.
21280 2000-03-10 Jim Meyering <meyering@lucent.com>
21282 * m4/lib-check.m4: Look for getspnam in -lgen, too.
21283 From Marco Franzen.
21285 2000-03-07 Paul Eggert <eggert@twinsun.com>
21287 * lib/savedir.c (savedir): Work even if directory size is
21288 negative; this can happen with some screwy NFS configurations.
21290 2000-03-06 Jim Meyering <meyering@lucent.com>
21292 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
21293 if it's NULL (because we ran out of memory). From Bruno Haible.
21295 2000-03-05 Jim Meyering <meyering@lucent.com>
21297 * lib/localcharset.c ("path-concat.h"): Include.
21298 (get_charset_aliases): Use path_concat instead of ANSI string
21301 * lib/unicodeio.h (PARAMS): Define.
21302 Use it to guard prototype.
21304 2000-03-04 Jim Meyering <meyering@lucent.com>
21306 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
21307 for lib/localcharset.c.
21309 2000-03-04 Jim Meyering <meyering@lucent.com>
21311 * lib/Makefile.am (install-exec-local): Create $(libdir) before installing
21313 (uninstall-local): Uncomment this rule so `make distcheck' works
21316 * lib/unicodeio.c (<errno.h>): Include it.
21317 (errno): Declare if not defined.
21319 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
21321 * lib/config.charset: New version, incorporating remarks from a linux
21322 i18n mailing list. From Bruno Haible.
21324 2000-03-04 Bruno Haible <haible@clisp.cons.org>
21326 * m4/codeset.m4: New file.
21327 * m4/iconv.m4: New file.
21328 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
21330 2000-03-03 Jim Meyering <meyering@lucent.com>
21332 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
21334 2000-03-02 Jim Meyering <meyering@lucent.com>
21336 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
21337 the messages come out on separate lines.
21339 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
21340 rather than jm_CHECK_DECLARATIONS.
21341 * m4/decl.m4: Remove now-unused file.
21343 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and geteuid.
21345 2000-03-02 Jim Meyering <meyering@lucent.com>
21347 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
21349 2000-03-01 Jim Meyering <meyering@lucent.com>
21351 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
21352 * lib/unicodeio.c: Likewise.
21354 2000-03-01 Bruno Haible <haible@clisp.cons.org>
21356 * lib/config.charset: New file.
21357 * lib/localcharset.c: New file.
21358 * lib/unicodeio.h, unicodeio.c: New files.
21359 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
21360 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
21361 (noinst_HEADERS): Add unicodeio.h.
21362 (all-local, install-exec-local, charset.alias): New targets.
21364 2000-02-28 Paul Eggert <eggert@twinsun.com>
21366 * lib/quotearg.c (ALERT_CHAR): New macro.
21367 (quotearg_buffer_restyled): Use it.
21369 2000-02-27 Jim Meyering <meyering@lucent.com>
21371 * m4/check-decl.m4: Add getenv to the list.
21373 2000-02-27 Jim Meyering <meyering@lucent.com>
21375 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
21376 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
21378 * lib/backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
21379 not `#if STDC_HEADERS'.
21380 Declare malloc if needed.
21382 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
21383 now that autoconf always defines the HAVE_DECL_ symbols.
21384 * lib/human.c: Likewise.
21385 * lib/same.c: Likewise.
21386 * lib/strtoumax.c: Likewise.
21388 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
21389 declaration check was not run.
21390 * lib/hash.c: Likewise.
21391 * lib/human.c: Likewise.
21392 * lib/same.c: Likewise.
21393 * lib/strtoumax.c: Likewise.
21395 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a `.',
21396 then first look up the entire `.'-containing string as a login name.
21398 2000-02-23 Jim Meyering <meyering@lucent.com>
21400 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
21401 in place of my hack.
21403 2000-02-18 Paul Eggert <eggert@twinsun.com>
21405 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
21406 (textint): New typedef.
21407 (parser_control): Member year changed from int to textint.
21409 (YYSTYPE): Removed; replaced by %union with int and textint members.
21410 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
21411 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
21412 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
21413 (tSNUMBER, tUNUMBER): Now of type <textintval>.
21414 (date, number, to_year): Use width of number in digits, not its value,
21415 to determine whether it's a 2-digit year, or a 2-digit time.
21416 (yylex): Store number of digits of numeric tokens.
21417 Reported by John Kendall.
21419 (parser_control): Changed from struct parser_control to typedef (for
21420 consistency). All uses changed.
21422 (tID): Removed; not used.
21423 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
21425 2000-02-14 Paul Eggert <eggert@twinsun.com>
21427 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
21428 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
21430 2000-02-12 Jim Meyering <meyering@lucent.com>
21432 * lib/userspec.c (ISDIGIT): Define it.
21433 (isdigit): Remove definition.
21434 (is_number): Use ISDIGIT, not isdigit.
21435 <libintl.h>: Include.
21436 (_ and N_): Define.
21437 (parse_user_spec): Mark translatable strings.
21439 2000-02-10 Jim Meyering <meyering@lucent.com>
21441 With these changes, nanosleep.[ch] are finally enough like the other
21442 lib/* replacement files to compile on a few more losing systems.
21444 * lib/nanosleep.h: Don't include config.h.
21445 Remove prototype from declaration of nanosleep.
21446 (PARAMS): Remove now-unneeded definition.
21447 * lib/nanosleep.c: #undef nanosleep.
21448 (rpl_nanosleep): Rename from nanosleep.
21450 2000-02-10 Jim Meyering <meyering@lucent.com>
21452 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
21453 gnu_nanosleep to rpl_nanosleep.
21455 2000-02-09 Jim Meyering <meyering@lucent.com>
21457 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
21458 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
21460 2000-02-08 Akim Demaille <akim@epita.fr>
21462 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
21463 `[' and `]' and remove uses of `changequote'.
21464 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
21465 (AC_SYS_LARGEFILE): Likewise.
21466 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21467 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
21469 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
21470 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
21471 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
21472 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
21474 2000-02-05 Jim Meyering <meyering@lucent.com>
21476 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
21477 Remove explicit use of AC_HEADER_TIME. It is required by
21478 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
21479 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
21480 in autoconf whereby the expansion of the latter ended up preceding
21481 the expansion of its prerequisite, AC_HEADER_TIME.
21482 Reported by Volker Borchert.
21484 2000-02-03 Jim Meyering <meyering@lucent.com>
21486 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
21488 2000-02-03 Jim Meyering <meyering@lucent.com>
21490 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
21491 rather than with `#if HAVE_UTMPNAME'.
21493 2000-02-02 Jim Meyering <meyering@lucent.com>
21495 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
21496 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
21497 Reported by Eli Zaretskii.
21499 2000-02-01 Jim Meyering <meyering@lucent.com>
21501 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
21503 2000-01-31 Jim Meyering <meyering@lucent.com>
21505 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
21506 functions. Add the time.h and sys/time.h headers along with the
21507 AC_REQUIRE'ment of AC_HEADER_TIME.
21509 2000-01-31 Jim Meyering <meyering@lucent.com>
21511 * lib/nanosleep.h (nanosleep): Guard declaration with
21512 `#if ! HAVE_DECL_NANOSLEEP'.
21513 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
21514 the declaration in that vendor's sys/timers.h.
21515 Reported by Christian Krackowizer.
21517 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
21518 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
21519 (ISPRINT): Likewise.
21520 Reported by Tom Tromey.
21522 2000-01-30 Jim Meyering <meyering@lucent.com>
21524 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
21526 * m4/prereq.m4 (utmp_includes): Define.
21527 Check for ut_user and ut_name members in both struct utmpx
21530 2000-01-30 Jim Meyering <meyering@lucent.com>
21532 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
21533 uses of ->ut_name. The latter doesn't work with new Linux header files
21534 where only utmpx.ut_user is declared.
21536 * lib/readutmp.h (UT_USER): Define.
21538 2000-01-29 Jim Meyering <meyering@lucent.com>
21540 * m4/lib-check.m4: New file containing library-related checks from
21541 fileutils and sh-utils (textutils had none).
21543 2000-01-28 Jim Meyering <meyering@lucent.com>
21545 * m4/perl.m4: Change format of warning message to look more like that
21546 from the missing script. Suggestion from François Pinard.
21548 2000-01-25 Jim Meyering <meyering@lucent.com>
21550 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as well
21551 as time.h in the compile check.
21552 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
21553 Fix typo in cross-compiling case: s/yes/no/.
21555 2000-01-23 Jim Meyering <meyering@lucent.com>
21557 * m4/jm-macros.m4: Move df-related tests here from fileutils/configure.in
21559 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
21560 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
21562 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
21563 s/space/ac_fsusage_space/.
21564 (jm_FILE_SYSTEM_USAGE): Take two parameters.
21566 * m4/ftruncate.m4: New file (derived from part of fileutils/configure.in).
21567 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
21568 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
21570 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
21571 AC_SUBST these here, rather than just in sh-util/configure.in, so
21572 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
21574 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
21575 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
21576 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
21577 (AC_SUBST(POW_LIBM)): Likewise.
21578 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
21580 2000-01-23 Jim Meyering <meyering@lucent.com>
21582 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
21585 2000-01-22 Jim Meyering <meyering@lucent.com>
21587 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
21589 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
21591 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
21593 (AC_CHECK_HEADERS): Likewise for sh-utils.
21594 (AC_CHECK_HEADERS): Likewise for textutils.
21595 Merge the three lists of headers.
21597 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
21598 from fileutils' configure.in.
21600 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)' code.
21601 Moved tests into their own function (_jm_DECL_HEADERS) in check-decl.m4.
21603 * m4/check-decl.m4: Use #if rather than #ifdef.
21604 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
21605 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
21606 (_jm_DECL_HEADERS): Define new function.
21607 (jm_CHECK_DECLARATIONS): Require it.
21609 2000-01-22 Jim Meyering <meyering@lucent.com>
21611 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
21612 [! HAVE_DECL_STRTOULL]: Declare strtoull.
21613 Required for some AIX systems. Reported by Christian Krackowizer.
21614 [TESTING] (main): New function.
21616 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
21617 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
21620 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
21622 * lib/strverscmp.c (ISDIGIT): Define.
21623 (strverscmp): Use ISDIGIT, not isdigit.
21625 2000-01-19 Jim Meyering <meyering@lucent.com>
21627 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
21628 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
21629 defines `struct timespec' in <sys/time.h>
21631 * m4/c-bs-a.m4: Remove uses of changequote altogether.
21632 Thanks to Akim for explaining.
21634 2000-01-17 Paul Eggert <eggert@twinsun.com>
21636 * lib/nanosleep.c (nanosleep):
21637 Don't use SA_INTERRUPT to decide whether to call sigaction, as
21638 POSIX.1 doesn't require SA_INTERRUPT and some systems
21639 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
21640 it's been part of POSIX.1 since day 1 (in 1988).
21642 2000-01-17 Jim Meyering <meyering@lucent.com>
21644 * lib/interlock: Remove unused file. Reported by François Pinard.
21646 2000-01-16 Paul Eggert <eggert@twinsun.com>
21648 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
21649 alert, backslash, formfeed, and vertical tab unnecessarily in
21650 shell quoting style.
21652 2000-01-16 Jim Meyering <meyering@lucent.com>
21654 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
21655 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
21656 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
21657 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
21659 2000-01-16 Jim Meyering <meyering@lucent.com>
21661 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
21662 because the latter didn't work.
21664 2000-01-15 Jim Meyering <meyering@lucent.com>
21666 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
21667 (AC_REPLACE_FUNCS): Add memcpy and memset.
21668 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
21670 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
21672 2000-01-12 Jim Meyering <meyering@lucent.com>
21674 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
21675 (jm_PREREQ): Use it.
21676 (jm_PREREQ_READUTMP): New macro.
21677 (jm_PREREQ): Use it.
21679 2000-01-11 Paul Eggert <eggert@twinsun.com>
21681 Quote multibyte characters correctly.
21682 * m4/c-bs-a.m4: New file.
21683 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
21684 (jm_PREREQ): Use it.
21686 2000-01-11 Paul Eggert <eggert@twinsun.com>
21688 * m4/uintmax_t.m4: Port to autoconf 2.13.
21690 2000-01-08 Jim Meyering <meyering@ascend.com>
21692 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
21693 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
21695 2000-01-04 Jim Meyering <meyering@ascend.com>
21697 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
21698 jm_STRUCT_DIRENT_D_TYPE.
21699 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
21700 jm_STRUCT_DIRENT_D_INO.
21701 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
21703 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/ renamings.
21704 * m4/utime.m4: Likewise.
21706 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
21707 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
21709 2000-01-03 Paul Eggert <eggert@twinsun.com>
21711 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
21712 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
21714 2000-01-02 Jim Meyering <meyering@ascend.com>
21716 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
21717 remember if this is necessary.
21719 1999-12-26 Jim Meyering <meyering@ascend.com>
21721 * m4/jm-macros.m4: Use it here.
21722 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
21724 1999-12-23 Jim Meyering <meyering@ascend.com>
21726 * m4/jm-macros.m4: Check for clock_gettime (moved from
21727 fileutils/configure.in)
21728 Check for gettimeofday.
21730 1999-12-20 Jim Meyering <meyering@ascend.com>
21732 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
21733 autoconf-2.14a-1999-12-20.
21735 1999-12-19 Jim Meyering <meyering@ascend.com>
21737 * m4/lstat-slash.m4: New file.
21738 * m4/jm-macros.m4: Use the new macro:
21739 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21741 1999-12-07 Jim Meyering <meyering@ascend.com>
21743 * m4/perl.m4: Require that File::Compare be available, too.
21744 Too many systems seem to lack it.
21746 * m4/strftime.m4: Add checks for most of the cpp macros tested in
21747 GNU's strftime.c. Prompted by a patch from Paul Eggert.
21749 1999-11-18 Paul Eggert <eggert@twinsun.com>
21751 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
21752 problem with the QNX 4.25 shell, which doesn't propagate exit
21753 status of failed commands inside shell assignments.
21755 1999-11-17 Jim Meyering <meyering@ascend.com>
21757 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
21759 1999-11-07 Jim Meyering <meyering@ascend.com>
21761 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
21763 1999-11-06 Jim Meyering <meyering@ascend.com>
21765 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
21766 * m4/jm-macros.m4 (jm_MACROS): Use it here.
21768 1999-11-05 Jim Meyering <meyering@ascend.com>
21770 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from configure.in
21771 of textutils, fileutils, and sh-utils into this one (shared between
21772 those packages) file.
21773 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
21774 AC_STRUCT_ST_BLKSIZE.
21776 1999-11-03 Jim Meyering <meyering@ascend.com>
21778 * m4/ssize_t.m4: Remove file. No longer needed since the new version of
21779 AC_CHECK_TYPE checks includes unistd.h.
21780 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
21781 Suggestion from Akim Demaille.
21783 1999-10-30 Jim Meyering <meyering@ascend.com>
21785 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
21787 * m4/ls-mntd-fs.m4: Likewise.
21788 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
21789 * m4/jm-winsz1.m4: Likewise.
21791 * m4/const.m4: Remove file, since the fix made it into the experimental
21792 version of autoconf.
21793 * m4/mktime.m4: Likewise.
21795 * m4/check-type.m4: Remove file, now that the latest version of
21796 AC_CHECK_TYPE takes a third arg to specify additional #includes.
21798 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
21799 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
21802 1999-10-04 Jim Meyering <meyering@ascend.com>
21804 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
21806 1999-09-22 Paul Eggert <eggert@twinsun.com>
21808 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
21809 2.95.1 bug with HP-UX 10.20.
21811 1999-09-17 Jim Meyering <meyering@ascend.com>
21813 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
21814 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
21815 due to missing strdup (against sh-utils-2.0).
21817 1999-08-29 Jim Meyering <meyering@ascend.com>
21819 * m4/jm-macros.m4: Require jm_BISON.
21820 * m4/bison.m4: New file.
21822 1999-08-17 Paul Eggert <eggert@twinsun.com>
21824 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
21825 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
21827 1999-08-05 Jim Meyering <meyering@ascend.com>
21829 * m4/getline.m4: Rename test file from conftestdata to conftest.data
21830 to avoid conflicts with `conftest' on 8+3 filesystems.
21831 Suggestion from Eli Zaretskii.
21833 1999-08-04 Jim Meyering <meyering@ascend.com>
21835 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
21836 fileutils and sh-utils (textutils's getline test was inadequate).
21837 (AM_FUNC_GETLINE): Run this test.
21838 (AC_CHECK_FUNCS): Check for getdelim.
21839 Reported by Bob Proulx.
21841 1999-08-02 Jim Meyering <meyering@ascend.com>
21843 * m4/jm-macros.m4: Add a comment.
21845 1999-08-01 Paul Eggert <eggert@twinsun.com>
21847 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
21848 <inttypes.h> defines strtoumax as a macro (and not as a
21851 1999-08-01 Paul Eggert <eggert@twinsun.com>
21853 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
21854 that we can shift, multiply and divide unsigned long long
21855 values; Ultrix cc can't do it.
21857 1999-08-01 Paul Eggert <eggert@twinsun.com>
21859 * m4/mktime.m4: New file, which is a preview of what should appear
21860 in the next public autoconf release.
21862 1999-08-01 Paul Eggert <eggert@twinsun.com>
21864 * m4/lfs.m4: Remove this file.
21865 * m4/largefile.m4: New file. It contains the old contents of
21866 lfs.m4, except that all names with prefix AC_LFS have been
21867 changed to use the prefix AC_SYS_LARGEFILE instead, to be
21868 compatible with future autoconf versions. Also, some minor m4
21869 quoting problems have been fixed.
21871 1999-08-01 Paul Eggert <eggert@twinsun.com>
21873 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
21874 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
21875 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
21876 and simplify the shell code.
21878 1999-08-01 Jim Meyering <meyering@ascend.com>
21880 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from m4.
21882 1999-07-20 Jim Meyering <meyering@ascend.com>
21884 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
21886 1999-07-15 Jim Meyering <meyering@ascend.com>
21888 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
21890 1999-05-22 Jim Meyering <meyering@ascend.com>
21892 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
21894 1999-05-20 Jim Meyering <meyering@ascend.com>
21896 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
21897 Add a colon after each `then' in case $4 is empty.
21899 1999-05-16 Jim Meyering <meyering@ascend.com>
21901 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
21903 1999-05-10 Jim Meyering <meyering@ascend.com>
21905 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
21907 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
21910 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
21912 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
21914 1999-05-04 Paul Eggert <eggert@twinsun.com>
21916 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
21917 not CPPFLAGS, so that linking works correctly in IRIX.
21919 1999-04-30 Paul Eggert <eggert@twinsun.com>
21921 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
21923 1999-04-20 Paul Eggert <eggert@twinsun.com>
21925 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
21926 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
21927 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
21928 jm_AC_TYPE_UNSIGNED_LONG_LONG.
21929 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
21931 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
21933 1999-04-20 Jim Meyering <meyering@ascend.com>
21935 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
21936 AC_REPLACE xstroull if necessary. From Paul Eggert.
21937 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
21939 1999-04-18 Jim Meyering <meyering@ascend.com>
21941 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
21942 * m4/jm-macros.m4: Use it.
21944 1999-04-06 Jim Meyering <meyering@ascend.com>
21946 * m4/strftime.m4: Remove test for %f.
21948 1999-03-29 Jim Meyering <meyering@ascend.com>
21950 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
21951 superset of the AC_TYPE_* checks in the textutils, fileutils,
21952 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
21955 1999-03-28 Jim Meyering <meyering@ascend.com>
21957 * m4/jm-macros.m4: Define GNU_PACKAGE here.
21958 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
21959 replaced e.g., in the *.sh files of the sh-utils.
21961 1999-03-20 Jim Meyering <meyering@ascend.com>
21963 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
21964 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
21965 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
21967 1999-03-19 Jim Meyering <meyering@ascend.com>
21969 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
21971 1999-03-12 Jim Meyering <meyering@ascend.com>
21973 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
21975 1999-03-07 Jim Meyering <meyering@ascend.com>
21977 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are declared.
21979 1999-02-17 Jim Meyering <meyering@ascend.com>
21981 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of brackets
21982 in macro definition. From Eli Zaretskii and Alain Magloire.
21984 1999-02-07 Jim Meyering <meyering@ascend.com>
21986 * m4/group-member.m4: New file -- extracted from sh-utils' configure.in.
21988 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
21989 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
21991 1999-02-06 Jim Meyering <meyering@ascend.com>
21993 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
21994 * m4/fnmatch.m4: Likewise.
21995 * m4/getgroups.m4: Likewise.
21996 * m4/lstat.m4: Likewise.
21997 * m4/malloc.m4: Likewise.
21998 * m4/putenv.m4: Likewise.
21999 * m4/realloc.m4: Likewise.
22000 * m4/regex.m4: Likewise.
22001 * m4/stat.m4: Likewise.
22002 * m4/strftime.m4: Likewise.
22003 Suggestion from Alain Magloire.
22005 * m4/chown.m4: Use `.$ac_objext', not `.o'.
22006 * m4/fnmatch.m4: Likewise.
22007 * m4/getgroups.m4: Likewise.
22008 * m4/getline.m4: Likewise.
22009 * m4/lstat.m4: Likewise.
22010 * m4/malloc.m4: Likewise.
22011 * m4/memcmp.m4: Likewise.
22012 * m4/putenv.m4: Likewise.
22013 * m4/realloc.m4: Likewise.
22014 * m4/regex.m4: Likewise.
22015 * m4/stat.m4: Likewise.
22016 * m4/strftime.m4: Likewise.
22017 Suggestion from Alain Magloire.
22019 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
22022 * m4/regex.m4: Add a run-time Test for proper operation of
22023 re_compile_pattern.
22025 1999-01-31 Jim Meyering <meyering@ascend.com>
22027 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
22029 1999-01-30 Jim Meyering <meyering@ascend.com>
22031 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
22033 * m4/jm-mktime.m4: Make this a wrapper around the official AM_FUNC_MKTIME
22034 rather than my private copy, now that the official one is up to date.
22035 * m4/mktime.m4: Remove file.
22037 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
22038 * m4/uptime.m4: Likewise.
22039 * m4/uintmax_t.m4: Likewise.
22041 1999-01-28 Jim Meyering <meyering@ascend.com>
22043 * m4/jm-macros.m4: Use jm_AFS.
22044 * m4/afs.m4: New file (from fileutils' configure.in).
22046 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
22047 * m4/chown.m4: Likewise.
22048 * m4/d-ino.m4: Likewise.
22049 * m4/d-type.m4: Likewise.
22050 * m4/fnmatch.m4: Likewise.
22051 * m4/getgroups.m4: Likewise.
22052 * m4/gettext.m4: Likewise.
22053 * m4/jm-mktime.m4: Likewise.
22054 * m4/jm-winsz2.m4: Likewise.
22055 * m4/lcmessage.m4: Likewise.
22056 * m4/ls-mntd-fs.m4: Likewise.
22057 * m4/malloc.m4: Likewise.
22058 * m4/memcmp.m4: Likewise.
22059 * m4/putenv.m4: Likewise.
22060 * m4/realloc.m4: Likewise.
22061 * m4/st_mtim.m4: Likewise.
22062 * m4/strftime.m4: Likewise.
22064 1999-01-16 Jim Meyering <meyering@ascend.com>
22066 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
22067 (ARGMATCH_DIE_DECL): Define.
22069 1999-01-12 Jim Meyering <meyering@ascend.com>
22071 * m4/Makefile.am.in: Rewrite to avoid using fmt.
22072 Reported by Lars Hecking.
22074 1999-01-10 Jim Meyering <meyering@ascend.com>
22076 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
22078 * m4/inttypes_h.m4: Likewise.
22079 * m4/lstat.m4: Likewise.
22080 * m4/malloc.m4: Likewise.
22081 * m4/readdir.m4: Likewise.
22082 * m4/realloc.m4: Likewise.
22083 * m4/st_dm_mode.m4: Likewise.
22084 * m4/stat.m4: Likewise.
22085 * m4/utimbuf.m4: Likewise.
22086 * m4/utimes.m4: Likewise.
22088 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
22089 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
22090 comments in config.h.in are meaningful.
22092 * m4/jm-macros.m4: Require autoconf-2.13 here.
22094 * m4/regex.m4: By default, don't use the included regex.c on systems
22095 with glibc 2. Suggestion from Uli Drepper.
22097 1999-01-02 Jim Meyering <meyering@ascend.com>
22099 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
22101 1998-12-18 Jim Meyering <meyering@ascend.com>
22103 * m4/Makefile.am.in (Makefile.am): Simplify rule.
22104 Based on a suggestion from Lars Hecking.
22106 1998-11-16 Paul Eggert <eggert@twinsun.com>
22108 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
22110 1998-11-16 Jim Meyering <meyering@ascend.com>
22112 * m4/lfs.m4: Double-quote the `uname...` expression.
22114 1998-11-14 Jim Meyering <meyering@ascend.com>
22116 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
22117 * m4/stat.m4: Likewise.
22119 1998-11-03 Jim Meyering <meyering@ascend.com>
22121 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
22122 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
22124 1998-10-18 Jim Meyering <meyering@ascend.com>
22126 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
22128 1998-10-17 Jim Meyering <meyering@ascend.com>
22130 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
22131 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
22132 calls for those previously hard-coded headers. Instead, take a new
22134 (jm_CHECK_DECLARATIONS): Reflect interface change.
22135 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
22136 (jm_CHECK_DECL_LOCALTIME_R): New macro.
22138 * m4/mktime.m4: Test for spring-forward gap before long-running test.
22140 1998-10-14 Jim Meyering <meyering@ascend.com>
22142 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
22143 instead of "TZ=America/Vancouver". From Paul Eggert.
22145 1998-10-11 Jim Meyering <meyering@ascend.com>
22147 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
22148 This adds a test for a recently added compatibility fix for mktime.c.
22149 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
22151 1998-09-27 Jim Meyering <meyering@ascend.com>
22153 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
22155 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
22156 ../configure.in, including a change from Gordon Matzigkeit to allow
22157 cross-compiling for the Hurd.
22159 * m4/glibc.m4: New file/macro to test for the GNU C Library
22160 versions 1 and 2. From Gordon Matzigkeit.
22163 1998-09-21 Jim Meyering <meyering@ascend.com>
22165 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
22167 1998-08-18 Paul Eggert <eggert@twinsun.com>
22169 Port nanosecond-resolution times to UnixWare 2.1.2 and
22170 pedantic Solaris 2.6.
22172 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
22174 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
22175 Generate name of ns member, instead of just 1 or undef.
22176 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
22178 1998-08-15 Jim Meyering <meyering@ascend.com>
22180 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
22181 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
22182 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
22183 instead of jm_TYPE_SSIZE_T.
22185 1998-08-12 Jim Meyering <meyering@ascend.com>
22187 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
22189 1998-08-02 Jim Meyering <meyering@ascend.com>
22191 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
22192 in acconfig.h manually.
22194 1998-07-31 Paul Eggert <eggert@twinsun.com>
22196 * m4/st_mtim.m4: New file.
22198 1998-07-28 Jim Meyering <meyering@ascend.com>
22200 * m4/utimes.m4: Undef stat.
22202 1998-07-25 Jim Meyering <meyering@ascend.com>
22204 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
22205 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
22207 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
22209 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
22210 uid and gid actually remain unchanged.
22212 1998-07-07 Jim Meyering <meyering@ascend.com>
22214 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
22216 1998-07-04 Jim Meyering <meyering@ascend.com>
22218 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
22219 to prove that this macro can be used in packages without regex.c.
22221 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
22223 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
22226 1998-07-03 Jim Meyering <meyering@ascend.com>
22228 * m4/gettext.m4: Add -lintl if it's found to be necessary.
22230 * m4/gettext.m4: New file -- from gettext-0.10.35.
22231 * m4/lcmessage.m4: Likewise.
22232 * m4/progtest.m4: Likewise.
22234 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
22235 * m4/jm-macros.m4: Require the new macro.
22237 1998-06-29 Jim Meyering <meyering@ascend.com>
22239 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
22240 for the definition of NGROUPS (used in a system header included
22243 1998-06-28 Jim Meyering <meyering@ascend.com>
22245 * m4/ls-mntd-fs.m4: New file.
22246 * m4/fstypename.m4: New file.
22248 * m4/jm-macros.m4: Require the new macro.
22249 * m4/jm-glibc-io.m4: New file.
22251 1998-05-19 Jim Meyering <meyering@ascend.com>
22253 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
22254 * m4/lchown.m4: New file.
22256 * m4/Makefile.am.in: New file.
22257 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
22259 1998-05-14 Jim Meyering <meyering@ascend.com>
22261 * m4/Makefile.am (EXTRA_DIST): Add them.
22262 * m4/jm-macros.m4: New file.
22263 * m4/utimbuf.m4: New file.
22265 1998-05-12 Jim Meyering <meyering@ascend.com>
22267 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
22269 1998-05-11 Jim Meyering <meyering@ascend.com>
22271 * m4/isc-posix.m4: New file.
22273 1998-05-10 Jim Meyering <meyering@ascend.com>
22275 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
22277 1998-05-09 Jim Meyering <meyering@ascend.com>
22279 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
22280 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
22283 * m4/ssize_t.m4: New file.
22284 * m4/mktime.m4: Remove file -- the new automake has this now.
22286 1998-04-26 Jim Meyering <meyering@ascend.com>
22288 * m4/assert.m4: New file.
22289 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
22291 1998-04-05 Jim Meyering <meyering@ascend.com>
22293 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
22294 (jm_PREREQ): Use it here.
22296 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
22298 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
22301 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
22303 * m4/prereq.m4: New file.
22304 * m4/error.m4: New file.
22305 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
22307 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
22309 * m4/getline.m4: Don't set am_cv_func_working_getline before the
22310 cache-check for the same variable -- that defeated the purpose of
22311 the test; the test program was never run. This was a problem only
22312 on systems with losing getline functions -- HP-UX 10.20 is one.
22313 Reported by Bjorn Helgaas.
22315 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
22317 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
22319 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
22321 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
22323 * m4/const.m4: New file. Use an initializer in this declaration
22324 typedef int charset[2]; const charset x;
22325 Reported by Bob Glickstein.
22327 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
22329 * m4/chown.m4: Fix reversed types on -1 args to chown.
22332 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
22334 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
22335 Add lseek and memchr.
22337 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
22338 T.E.Dickey <dickey@clark.net> said that some older preprocessors
22339 have a 20-character limit on names.
22341 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
22343 * m4/inttypes_h.m4: New file.
22344 * m4/uintmax_t.m4: New file.
22345 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
22347 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
22348 Free Software Foundation, Inc.
22349 Copying and distribution of this file, with or without modification,
22350 are permitted provided the copyright notice and this notice are preserved.