1 2003-09-09 Paul Eggert <eggert@twinsun.com>
5 * acosl.c (main): Use a prototype.
6 * asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
9 * getloadavg.c (getloadavg, main): Define via prototypes.
11 * getopt.h (struct option.name): Assume C89, and use 'const'.
12 (getopt, etopt_long, getopt_long_only, _getopt_internal)
13 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
15 * getopt.c (const): Remove macro.
16 Include <string.h> unconditionally.
17 (my_index): Remove; all uses changed to strchr.
18 (strlen): Remove decl.
19 (exchange): Remove forward decl; no longer needed.
20 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
21 Define with prototype.
22 * getopt1.c (const): Remove macro.
23 (getopt_long, getopt_long_only, main): Define with prototype.
25 * getugroups.c: Include <string.h> unconditionally.
27 * getusershell.c: Include <stdlib.h> unconditionally.
28 (getusershell, setusershell, endusershell, readname, main):
29 Define with prototypes.
31 * group-member.c: Include group-member.h first.
32 Include <stdlib.h> unconditionally.
34 * hard-locale.c: Include hard-locale.h first.
35 Include <stdlib.h>, <string.h> unconditionally.
37 * hash.c (free, malloc): Remove decls.
38 Include <stdlib.h> unconditionally.
40 * human.c: Include <stdlib.h>, <string.h> unconditionally.
41 (getenv): Do not declare.
43 * idcache.c: Include <string.h> unconditionally.
45 * long-options.c: Include long-options.h first, to test interface.
46 Include <stdlib.h> unconditionally.
48 * makepath.c: Include makepath.h first, to test interface.
49 Include <stdlib.h> and <string.h> unconditionally.
51 * linebuffer.c: Include <stdlib.h>.
54 * malloc.c: Include <stdlib.h>, for malloc; don't bother with stddef.h.
55 rpl_malloc returns void *, not char *.
56 * realloc.c (rpl_realloc): Likewise. Also, define with a prototype.
58 * md5.h: Include <limits.h> unconditionally.
59 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60 (__P): Remove; all uses removed.
61 * md5.c: Include "md5.h" first.
62 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63 md5_buffer, md5_process_bytes, md5_process_block):
64 Define with prototypes.
65 * sha.h (__P): Remove all uses. (It wasn't defined??)
66 * sha.c: Include "sha.h" first.
67 Include <stdlib.h>, <string.h> unconditionally.
69 * memchr.c (__ptr_t): Remove; all uses changed to void *.
70 * memcmp.c (__ptr_t): Likewise.
71 * memrchr.c (__ptr_t): Likewise.
72 * memchr.c, memcmp.c, memcoll.c, memrchr.c:
73 Include <string.h> unconditionally.
74 * memchr.c, memrchr.c: Include <limits.h> unconditionally.
75 * memchr.c: Include <stdlib.h> unconditionally.
76 * memchr.c (LONG_MAX): Remove.
77 * memrchr.c (LONG_MAX): Likewise.
78 * memchr.c (__memchr): Define via a prototype.
79 * memrchr.c (__memrchr): Likewise.
80 * memcmp.c (__P): Remove, and remove all uses.
81 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82 Remove forward decls; no longer needed.
83 * memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84 Use types required by C89 in prototype.
86 * mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87 * savedir.c: Likewise.
88 * mkdir.c (free): Remove decl.
89 * rmdir.c (rmdir): Define with a prototype.
90 * savedir.c: Include savedir.h first, to test interface.
92 * mktime.c (STDC_HEADERS): Remove.
93 Include <stdlib.h>, <string.h> unconditionally.
95 * modechange.c: Include <stdlib.h> unconditionally.
96 (malloc): Remove decl.
98 * mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
101 * obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
102 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
103 (This type really should be intptr_t, but that's a C99ism.)
104 (_obstack_memcpy): Remove: all uses changed to memcpy.
105 Include <string.h> unconditionally.
106 (struct obstack): Assume __STDC__ for types of members
107 chunkfun, freefun, extra_arg.
108 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
109 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
110 obstack_begin, obstack_specify_allocation,
111 obstack_specify_allocation_with_arg, obstack_chunkfun,
112 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
113 Remove unprototyped decls and the macros that use them.
114 * obstack.c (POINTER): Remove. All uses changed to void *.
115 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
116 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
117 (defined __STDC__ && __STDC__)]:
118 Remove nonprototyped code.
119 Include <stdlib.h> unconditionally.
120 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
121 _obstack_allocated_p, _obstack_free, obstack_free,
122 _obstack_memory_used, print_and_abort):
123 Define using prototypes.
124 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
125 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
127 obstack_next_free, obstack_object_size, obstack_room) [0]:
128 Remove unused, unprototyped code.
130 * path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
132 * physmem.c (physmem_total, physmem_available, main): Define
135 * posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
136 (main): Define with a prototype.
138 * posixver.c (getenv): Remove decl.
140 * putenv.c (malloc): Returns void *, not char *.
141 Include <string.h> unconditionally.
142 (strchr, memcpy, NULL): Do not define.
144 * readtokens.c: Include readtokens.h first, to test interface.
145 Include <stdlib.h>, <string.h> unconditionally.
146 (init_tokenbuffer): Define with a prototype.
148 * regex.c (PARAMS): Remove. All uses removed.
149 All uses of _RE_ARGS removed, too.
150 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
152 (bzero): Assume memset exists.
153 (memcmp, memcpy, NULL): Remove.
154 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
155 char, or assignments to local vars of type signed char.
156 (init_syntax_once, PREFIX(extract_number_and_incr),
157 PREFIX(print_partial_compiled_pattern),
158 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
159 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
160 PREFIX(regex_grow_registers), PREFIX(regex_compile),
161 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
162 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
163 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
164 wcs_compile_range, byte_compile_range, truncate_wchar,
165 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
166 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
167 count_mbs_length, wcs_re_match_2_internal,
168 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
169 PREFIX(alt_match_null_string_p),
170 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
171 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
172 regfree, PREFIX(extract_number)): Define with prototype. Remove
173 now-unnecessary declaration, if any.
174 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
176 Remove now-unnecessary casts among pointer types.
177 * regex.h (_RE_ARGS): Remove. All uses removed.
179 * rename.c: Include <stdlib.h>, <string.h> unconditionally.
182 * rpmatch.c: Include <stdlib.h> unconditionally.
184 * same.c: Include <stdlib.h>, <string.h> unconditionally.
187 * save-cwd.c: Include <stdlib.h> unconditionally.
188 * xgetcwd.c: Likewise.
190 * stat.c: Include <stdlib.h>, <string.h> unconditionally.
193 * strchrnul.c (strchrnul): Define with a prototype.
194 Fix bug: c_in was not converted to char before searching.
196 The following changes are not K&R related:
198 * group-member.h: Include <sys/types.h>, so that this file is
200 * makepath.h: Likewise.
202 * getusershell.c (readname, default_index, line_size, readname):
203 Use size_t, not int, for sizes.
204 (readname): If the size overflows, report an error instead of
207 2003-09-09 Derek Robert Price <derek@ximbiot.com>
209 * getndelim2.c: Assume stdlib.h per the C89 spec.
211 2003-09-08 Paul Eggert <eggert@twinsun.com>
213 Assume C89 or better; remove K&R cruft.
214 A few of these changes were first proposed by Derek Robert Price
215 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
217 * addext.c: Include <string.h> unconditionally.
218 * backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
219 Don't declare getenv or malloc.
221 * alloca.c: Include <string.h>, <stdlib.h> unconditionally.
222 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
224 (find_stack_direction, alloca): Use prototypes.
226 * atexit.c (atexit): Define using a prototype.
228 * basename.c, dirname.c, stripslash.c:
229 Include <string.h> unconditionally.
231 * bcopy.c: Include <stddef.h>.
232 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
234 * canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
236 * error.h (error, error_at_line, error_print_progname)
237 [! (defined (__STDC__) && __STDC__)]: Remove decls.
238 * error.c: Include error.h first, to check interface.
239 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
240 (VA_START): Remove; all uses changeed to va_start.
241 (exit, strerror): Remove decls.
242 (error_print_progname): Prototype uncondionally.
243 Don't include <errno.h>; no longer needed.
244 (private_strerror): Remove.
245 (error_tail): Always define.
246 (error, error_at_line): Assume C89 or better; always use prototypes.
247 * fatal.c: Include "fatal.h" first, to test interface.
248 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
249 (VA_START): Remove; all uses changed to va_start.
250 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
253 (fatal): Prototype unconditionally. Assume va_start works.
254 Abort at end, to pacify gcc.
256 * euidaccess.c (main): Define with a prototype.
258 * exclude.c: Include <stdlib.h>, <string.h> unconditionally.
260 * exitfail.c: Include <stdlib.h> unconditionally.
262 * fnmatch.h (__P): Remove. All uses changed to assume
264 * fnmatch.c: Include fnmatch.h first, to test interface.
265 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
266 (getenv): Remove decl.
267 (fnmatch): Define using a prototype.
268 * fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
269 (FCT): Define using a prototype.
271 * getdate.y: Include <stdlib.h>, <string.h> unconditionally.
273 * gethostname.c: Include <stddef.h>.
274 (gethostname): Define with prototype. Length is size_t, not int.
276 2003-09-08 Paul Eggert <eggert@twinsun.com>
278 * getversion.c: Remove; was migrated to backupfile.c in 1997.
279 getversion.c should have been removed then, but was accidentally
282 * utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
283 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
285 2003-09-07 Paul Eggert <eggert@twinsun.com>
287 * time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
288 copy_tm_result. Bug reported by Simon Josefsson in
289 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
291 2003-09-06 Paul Eggert <eggert@twinsun.com>
293 * time_r.c, time_r.h: New files.
295 * mktime.c (my_mktime_localtime_r): Remove; all uses changed to
297 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
298 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
300 * strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
302 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
303 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
306 * timegm.c: Switch to glibc implementation, with the following changes:
307 [defined HAVE_CONFIG_H]: Include <config.h>.
308 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
309 (__mktime_internal) [!defined _LIBC]: New decl.
310 (__gmtime_r) [!defined _LIBC]: New macro and function.
311 (timegm): Use a prototype, since gnulib assumes C89.
312 Do not bother declaring tmp to be const, as it's not really usefu.
313 * timegm.h: Hoist "#include <time.h>" out of #ifdef.
314 (timegm): Declare only if HAVE_DECL_TIMEGM.
316 2003-09-03 Paul Eggert <eggert@twinsun.com>
318 * human.c (human_readable): Fix bug that rounded 10501 to 10k.
319 Bug reported by Lute Kamstra in
320 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
322 * getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
323 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
324 course with correspondingly smaller numbers for tomorrow and
325 yesterday. From Tadayoshi Funaba. Originally installed into
326 sh-utils on 1999-08-07, but the patch got lost (I guess during the
329 2003-08-31 Simon Josefsson <jas@extundo.com>
331 * timegm.h: New file.
332 * timegm.c: New file. Based on wget-1.8.2/src/http.c:mktime_from_utc.
334 2003-08-31 Karl Berry <karl@gnu.org>
336 * argp.h: update from libc.
338 2003-08-28 Bruno Haible <bruno@clisp.org>
340 * binary-io.h: Undefine O_BINARY before defining it. This avoids a
341 warning on QNX, which defines O_BINARY to 000000.
343 2003-08-24 Bruno Haible <bruno@clisp.org>
345 * binary-io.h: Include <stdio.h>, to avoid a compilation error when
346 MSVC7 <stdio.h> is included later.
348 2003-08-20 Bruno Haible <bruno@clisp.org>
350 * progname.h: New file, from GNU gettext.
351 * progname.c: New file, from GNU gettext.
352 * progreloc.c: New file, from GNU gettext.
354 2003-08-19 Bruno Haible <bruno@clisp.org>
356 * xstrdup.c: Assume <string.h> exists.
358 2003-08-18 Jim Meyering <jim@meyering.net>
360 * setenv.h: Indent nested cpp directive.
361 * vasnprintf.c: Remove trailing blanks.
363 2003-08-17 Simon Josefsson <jas@extundo.com>
364 Bruno Haible <bruno@clisp.org>
366 * xstrndup.h: New file.
367 * xstrndup.c: New file.
369 2003-08-17 Bruno Haible <bruno@clisp.org>
371 * strndup.h: New file.
373 2003-08-16 Paul Eggert <eggert@twinsun.com>
375 * regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
376 space, undoing this 2003-08-12 change:
377 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
379 2003-08-16 Jim Meyering <jim@meyering.net>
381 Merge from coreutils.
382 * xstrtoimax.c: #else #if -> #elif.
383 * xstrtoumax.c: Likewise.
385 2003-08-15 Paul Eggert <eggert@twinsun.com>
387 * config.charset, ref-add.sin, ref-del.sin: Use three spaces,
388 rather than tab, after '#' in shell-script copyright notices.
389 Suggested by Bruno Haible.
391 2003-08-15 Jim Meyering <jim@meyering.net>
392 and Paul Eggert <eggert@twinsun.com>
394 Merge from coreutils.
395 * readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
396 member but strut utmpx does not. Needed for AIX 4.3.3.
397 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
399 2003-08-15 Jim Meyering <jim@meyering.net>
401 Merge from coreutils.
402 * xgethostname.c: Include <stdlib.h>.
403 (xghostname): Don't exit for anything other than memory-related
404 failure; just return NULL.
405 * userspec.c: Include "posixver.h".
406 (parse_user_spec): Accept `.' as a separator only
407 in pre-POSIX-200112 mode.
408 * strtoimax.c: Use #elif rather than #else #if.
409 * strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
410 Remove function, now that we can rely on a working tzset function.
411 [!_LIBC]: Ensure that the required autoconf test has been run.
412 [!defined _NL_CURRENT && HAVE_STRFTIME]:
413 Use underlying_strftime for %r.
414 * sha.c: Merge in some clean-up and optimization changes from glibc.
415 * sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
416 Ensure that it is a multiple of 64.
417 Rearrange loop exit tests so as to avoid performing an
418 additional fread after encountering an error or EOF.
419 * realloc.c: Update copyright date.
421 2003-08-14 Jim Meyering <jim@meyering.net>
423 Merge from coreutils.
424 * obstack.h: Whitespace changes.
425 * mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
426 and xcalloc return values.
427 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
428 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
429 hang on OSF/1 5.1 for DIR on both local and remote file systems.
430 Reported by (and fix confirmed by) Nelson H. F. Beebe.
431 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
433 Use mntctl's return value to drive the entry-processing loop, since
434 we can't rely on the value of the vmt_length member in the last
435 entry. On some systems doing so could result in exhausting
436 virtual memory. Based in part on a patch from Mike Jetzer.
438 2003-08-14 Jim Meyering <jim@meyering.net>
439 and Paul Eggert <eggert@twinsun.com>
441 Merges from coreutils, plus other fixes.
442 * physmem.c: Merge in portability changes from gcc/libiberty
443 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
444 for credits and details. Thanks to Kaveh Ghazi for helping
445 to keep these files in sync.
446 (ARRAY_SIZE): Define it.
447 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
448 * memcasecmp.c: Remove unnecessary parentheses after 'defined'.
449 (memcasecmp): Don't assume size_t fits in unsigned int.
450 Remove casts and duplicate code.
451 * md5.c: Include <string.h> and <stdlib.h> unconditionally.
452 (memcpy): Remove definition.
453 Merge in some clean-up and optimization changes from glibc.
454 [BLOCKSIZE]: Move definition to top of file.
455 Ensure that it is a multiple of 64.
456 Rearrange loop exit tests so as to avoid performing an
457 additional fread after encountering an error or EOF.
458 * md5.h (md5_uintptr): Define.
459 * makepath.c (CLEANUP_CWD): Report an error if we failed to
460 return to the initial working directory. Preserve errno
462 * idcache.c: Include "xalloc.h".
463 (xmalloc, xrealloc): Remove decls.
464 (getuser): Remove casts no longer required in C89.
465 * human.c: Include stdio.h, for sprintf.
466 * group-member.c: Include "xalloc.h".
467 (xmalloc, xrealloc): Remove decls.
468 (get_group_info): Remove casts no longer required in C89.
469 * getusershell.c (readname): Remove casts no longer required in C89.
470 * gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
471 * getline.c: Whitespace fix, from coreutils.
473 2003-08-13 Paul Eggert <eggert@twinsun.com>
475 * exclude.c: Include <ctype.h>
476 (IN_CTYPE_DOMAIN): New macro.
478 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
481 * argp-help.c, argp-parse.c, config.charset, getopt.h:
482 Undo previous (whitespace-only) change.
484 2003-08-12 Paul Eggert <eggert@twinsun.com>
486 * argp-help.c, argp-parse.c, config.charset, getopt.h:
487 Normalize leading white space and remove trailing white space.
488 * ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
489 notice, as per ../config/srclist-update.
491 Merge from coreutils.
492 * euidaccess.h: New file.
493 * euidaccess.c: Include it.
494 * .cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
495 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
496 * regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
498 2003-08-11 Bruno Haible <bruno@clisp.org>
500 * vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
501 (vasnprintf): Use it instead of wcslen.
503 2003-08-11 Bruno Haible <bruno@clisp.org>
505 * stdbool_.h (_Bool): Undo last change; instead use a negative enum
506 value to ensure that _Bool promotes to int. Use #define for _Bool when
507 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
509 2003-08-10 Karl Berry <karl@gnu.org>
511 * regex.h: update from libc (whitespace fix).
513 2003-08-09 Paul Eggert <eggert@twinsun.com>
515 Merge some files from coreutils. These changes were
516 originally made by Jim Meyering.
517 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
518 many older Unixes require this.
519 * lib/alloca.c (alloca): Remove cast to argument of free;
520 no longer needed in C89.
521 * lib/alloca_.h, lib/regex.h: Fix white space to match
522 what GNU indent does.
524 2003-08-05 Paul Eggert <eggert@twinsun.com>
526 * bumpalloc.h: Remove.
528 2003-08-04 Paul Eggert <eggert@twinsun.com>
530 * getloadavg.c: Change copyright notice and spacing to conform to
533 Merge from coreutils.
534 * error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is 1.
536 * getdate.y (date): Also accept dates like May-23-2003; suggestion
537 from Karl Berry, implemented by Jim Meyering.
538 * getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
539 from Dmitry V. Levin.
540 Remove anachronistic cast of xrealloc.
541 * fnmatch_.h (__const): Remove. Use 'const'.
542 * fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
543 type. Otherwise, it wouldn't compile with at least /bin/cc on
544 ymp-cray-unicos9.0.2.X.
545 Combine two mostly-identical uses of alloca into one.
546 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
548 2003-08-04 Dave Love <d.love@dl.ac.uk>
552 * getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
553 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
554 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
555 obsolete NLIST_NAME_UNION.
556 [__GNU__]: Undef BSD and FSCALE.
557 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
559 2003-08-03 Paul Eggert <eggert@twinsun.com>
561 * stdbool_.h (_Bool): Make it signed char, instead of
562 an enum type, so that it's guaranteed to promote to int. See:
563 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
565 2003-07-31 Paul Eggert <eggert@twinsun.com>
567 * strerror.c: Include config.h, limits.h. Declare sprintf.
568 (strerror): Don't assume that a printable int fits in 14 bytes.
570 2003-07-24 Derek Robert Price <derek@ximbiot.com>
571 Bruno Haible <bruno@clisp.org>
573 * getline.h (getline, getdelim): Change return type to ssize_t.
574 * getline.c (getline, getdelim): Likewise.
575 Remove _GNU_SOURCE define; now it's defined in config.h through
578 2003-07-22 Paul Eggert <eggert@twinsun.com>
580 * xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
581 over-parenthesization in macros.
585 * xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
588 Use `exit_failure' for xalloc and xmemcoll instead of their own
589 private exit-failure variables.
590 * xalloc.h (xalloc_exit_failure): Remove.
591 * xmalloc.c: Likewise. Include exitfail.h.
592 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
593 * xmemcoll.h (xmemcoll_exit_failure): Remove.
594 * xmemcoll.c: Likewise. Include exitfail.h.
595 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
597 2003-07-18 Paul Eggert <eggert@twinsun.com>
599 * closeout.h (close_stdout_set_status, close_stdout_status): Remove.
600 * closeout.c: Likewise. Include "closeout.h" right after config.h,
601 to test that it can stand by itself. Include "exitfail.h".
602 Clients should set exit_failure instead.
603 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
605 2003-07-18 Andreas Schwab <schwab@suse.de>
607 * memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
609 2003-07-18 Bruno Haible <bruno@clisp.org>
611 * getndelim2.h: New file.
612 * getndelim2.c: Make into a module of its own. Include config.h,
614 (getndelim2): Make non-static. Change return type to ssize_t.
615 * getline.h: Change argument names.
616 * getline.c: Include getndelim2.h instead of getndelim2.c.
617 * getnline.c: Include getndelim2.h.
619 2003-07-17 Bruno Haible <bruno@clisp.org>
621 * Makefile.am: Remove file.
622 * Makefile.in: Remove file.
624 2003-07-17 Bruno Haible <bruno@clisp.org>
626 * getnline.h: New file.
627 * getnline.c: New file.
628 * getndelim2.c: New file, extracted from getline.c.
629 (getndelim2): Renamed from getdelim2, with added nmax argument.
630 * getline.c: Include getndelim2.c.
631 (getdelim2): Moved out to getndelim2.c.
632 (getline, getdelim): Update.
634 2003-07-15 <karl@gnu.org>
636 * vasnprintf.c: update from gettext.
638 2003-07-15 Jim Meyering <jim@meyering.net>
640 * makepath.c (make_path): Enclose diagnostic in _(...).
642 2003-07-14 Paul Eggert <eggert@twinsun.com>
644 * asnprintf.c, asprintf.c, config.charset, gettext.h,
645 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
646 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
647 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
648 vasprintf.c, vasprintf.h: Regenerate. These files are now being
649 updated automatically by ../config/srclist-update. This changes
650 their license from LPGL to GPL.
652 2003-07-14 Jim Meyering <jim@meyering.net>
654 Don't emit diagnostics. Let callers do that.
655 * save-cwd.c: Don't include "error.h".
656 (save_cwd): Don't call error. Ensure that errno is valid
657 when returning nonzero.
659 * save-cwd.h (restore_cwd): Update prototype.
660 * save-cwd.c (restore_cwd): Remove two parameters.
661 Simplify. Don't call error upon failure. Let callers do that.
662 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
663 when auditing is enabled. But don't bother updating the #if.
665 2003-07-14 Simon Josefsson <jas@extundo.com>
667 * mempcpy.h: New file.
668 * mempcpy.c: New file.
670 2003-07-14 Paul Eggert <eggert@twinsun.com>
672 * ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
673 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
674 unicodeio.c, unicodeio.h, unlocked-io.h:
675 Switch from LGPL to GPL.
677 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
679 * obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
680 it breaks C++ compilation.
681 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
683 2003-07-10 Jim Meyering <jim@meyering.net>
685 * vasnprintf.c: Remove trailing blanks.
686 Make cpp indentation consistent.
688 2003-07-09 Paul Eggert <eggert@twinsun.com>
690 * alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
691 posixver.c, strftime.c, strnlen.c, strverscmp.c:
692 Switch from LGPL to GPL.
694 2003-07-07 Paul Eggert <eggert@twinsun.com>
696 * mktime.c: Fix some boundary cases and remove need for floating point.
698 Issue a compile-time diagnostic if time_t is floating point, or if
699 two's complement arithmetic is not in effect, or if arithmetic
700 right shift does not propagate the sign. These assumptions were
701 all in the original code but they weren't checked.
703 (TIME_T_MIDPOINT, verify): New macros.
704 (__isleap): Remove; it has integer overflow problems.
705 (leapyear): New function, without those problems.
706 (ydhms_tm_diff): Remove; splitting into two parts.
707 (ydhms_diff): New function, containing the arithmetic part of
708 the old ydhms_tm_diff function. Issue a compile-time
709 diagnostic if we are not using C99 integer division.
710 Avoid casts when possible.
711 (guess_time_tm): New function, containing the checking part of
712 the old ydhms_tm_diff function. Return the new value, rather than
713 the difference between it and the old. Accept a new argument T
714 so that *T specifies the old value. Check for overflow in the result.
716 (__mktime_internal): Use a time_t offset, not a long int offset.
717 This undoes the 2003-06-04 change, which is no longer needed now
718 that we have better overflow checking.
719 (localtime_offset): Likewise.
721 (__mktime_internal): Avoid harmful overflow on hosts where time_t
722 and long are 64-bit but int is only 32-bit.
723 (ydhms_diff): Use long int to store year1 and yday1.
724 Issue a compile-time diagnostic if long int is not wide enough.
726 (__mktime_internal): Use long int to store adjusted year and yday.
727 Use plain C rather than preprocessor commands, if that doesn't
729 Check for overflow (and try to repair) after each probe
730 rather than checking only at the very end. This avoids some bugs
731 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
732 does not equal GMT offset at maximum time).
733 Use integer to check for overflow rather than floating point; this
734 is more portable to non-IEEE hosts, and is a tad faster.
735 When we detect that we are oscillating between two values,
736 don't check whether tm_isdst has the requested value, since
737 we already know the answer. When tm_isdst has the wrong value,
738 use a different heuristic to find the right one, based on the
739 extreme values actually observed in practice in tz2003a,
740 rather than the (overly optimistic) "previous 3 calendar quarters".
742 (not_equal_tm, print_tm, check_result): Use "const T" rather than
743 "T const" to accommodate glibc style.
744 (check_result): Use less-confusing report format. "long" -> "long int.
746 Don't loop if the iteration overflows time_t.
747 Allow a negative step in the iteration.
749 2003-07-01 Paul Eggert <eggert@twinsun.com>
751 * xreadlink.c: Include <sys/types.h> unconditionally, instead of
752 having it depend on HAVE_SYS_TYPES_H.
754 2003-06-25 Bruno Haible <bruno@clisp.org>
756 * readlink.c: New file.
758 2003-06-20 Bruno Haible <bruno@clisp.org>
760 Assume C89, so PARAMS isn't needed.
761 * unicodeio.h (PARAMS): Remove.
762 * unicodeio.c: Don't use PARAMS.
764 2003-06-18 Jim Meyering <jim@meyering.net>
766 Merge changes from coreutils.
767 * readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
768 Remove explicit declarations of xmalloc and realloc.
770 (read_utmp): Remove anachronistic cast of xmalloc.
772 2003-06-17 Paul Eggert <eggert@twinsun.com>
774 Assume C89, so PARAMS isn't needed.
775 * backupfile.h (PARAMS): Remove. All uses removed.
776 * closeout.h, dirname.h, filemode.h, fsusage.h, getdate.h, getline.h,
777 group-member.h, hard-locale.h, hash.h, linebuffer.h, long-options.h,
778 makepath.h, memcasecmp.h, memcoll.h, modechange.h, mountlist.h,
779 path-concat.h, physmem.h, posixtm.h, quote.h, readutmp.h, same.h,
780 save-cwd.h, savedir.h, stdio-safer.h, strtoimax.c, strverscmp.h,
781 unistd-safer.h, version-etc.h, xalloc.h, xreadlink.h, xstrtod.h,
783 * filemode.h, hard-locale.h, memcoll.h, modechange.h, physmem.h,
784 same.h, strverscmp.h: Do not include config.h; no longer needed.
785 Anyway, config.h should always be included before any other file.
787 2003-06-11 Simon Josefsson <jas@extundo.com>
789 * sysexit_.h: New file.
791 2003-05-20 Derek Price <derek@ximbiot.com>
793 * stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is necessary.
795 2003-06-10 Simon Josefsson <jas@extundo.com>
797 * strchrnul.h: New file.
798 * strchrnul.c: New file.
800 2003-06-10 Simon Josefsson <jas@extundo.com>
802 * argp.h: New file, from glibc.
803 * argp-ba.c: New file, from glibc.
804 * argp-eexst.c: New file, from glibc.
805 * argp-fmtstream.c: New file, from glibc.
806 * argp-fmtstream.h: New file, from glibc.
807 * argp-fs-xinl.c: New file, from glibc.
808 * argp-help.c: New file, from glibc.
809 * argp-namefrob.h: New file, from glibc.
810 * argp-parse.c: New file, from glibc.
811 * argp-pv.c: New file, from glibc.
812 * argp-pvh.c: New file, from glibc.
813 * argp-xinl.c: New file, from glibc.
815 2003-06-07 Jim Meyering <jim@meyering.net>
817 * readtokens.h: Put `Free Software Foundation, Inc.'
818 in place of my name in the copyright comment.
819 Remove definition and uses of __P.
822 * stat.c: Don't declare xmalloc explicitly.
823 Instead, include "xalloc.h".
824 * readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
825 xrealloc, and xcalloc return values.
826 * xgetcwd.c (xgetcwd): Include "xgetcwd.h".
828 * xgetcwd.h: Remove definition/uses of PARAMS.
830 2003-06-06 Jim Meyering <jim@meyering.net>
832 * stdbool_.h: Renamed from stdbool.h.in.
834 2003-06-06 Jim Meyering <jim@meyering.net>
836 Merge from coreutils.
837 * same.c: (same_name): Declare *_basename locals to be `const'.
838 Consolidate declarations and initializations of *_base* locals.
840 Merge from coreutils.
841 This avoids a core dump on systems without GNU putenv,
842 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
843 * putenv.c (__set_errno, LOCK, UNLOCK): Define.
844 (unsetenv): New static function, from GNU libc.
845 (rpl_putenv): Use it.
847 * modechange.c: Remove trailing blanks.
849 Merge from coreutils.
850 * fsusage.c: Remove declaration of statfs.
851 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
853 * posixtm.c: Include <stdbool.h> unconditionally.
855 2003-06-05 Paul Eggert <eggert@twinsun.com>
857 * mktime.c (__mktime_internal): When resolving a tm_isdst
858 mismatch, look in future quarters as well as past. This fixes a
859 bug when processing fall-backwards gaps immediately after a long
860 period of daylight-saving time.
862 * mktime.c: Assume freestanding C89 or better.
863 (HAVE_LIMITS_H): Remove. Assume it's 1.
864 (__P): Remove; not used.
865 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
866 (mktime, not_equal_tm, print_tm, check_result,
867 main): Use prototypes. Use const * where appropriate.
868 (main): Fix typo in testing code that uncovered by above changes.
869 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
871 2003-06-04 Paul Eggert <eggert@twinsun.com>
873 * mktime.c: Fix Debian bug 177940
874 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
875 (localtime_offset): Now long int, not time_t, because we want it
876 to be guaranteed to be signed. All uses changed.
877 (__mktime_internal): If overflow would occur when adding offset,
880 Merge 'human' changes from coreutils. Rewrite to support
881 locale-specific notations like thousands separators.
882 * human.c: Simplify authorship notice.
883 Include human.h immediately after config.h.
884 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
885 <limits.h>: Do not include, since human.h does.
886 (SIZE_MAX, UINTMAX_MAX): New macros.
887 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
888 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
889 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
890 (power_letter): Renamed from suffixes.
891 (generate_suffix_backwards): Remove.
892 (adjust_value): Now takes int style (because of human.h changes)
893 and long double value (for greater precision on some platforms).
894 (group_number): New function.
895 (human_readable): Use it. Use integer options, not enum.
896 Put the options before the sizes in the arg list.
897 Support all the new options.
898 The old human_readable function has been removed;
899 use inttostr.h instead.
900 (human_readable, default_block_size, humblock):
901 Use uintmax_t, not int, for block sizes.
902 (human_readable_inexact, block_size_types): Remove.
903 (block_size_opts): New constant.
904 (human_options): Renamed from human_block_size, with new signature
905 that allows block sizes up to UINTMAX_MAX. All callers changed.
906 * human.h: Add copyright and authorship notice.
907 Include <limits.h> and <stdbool.h> unconditionally.
908 (PARAMS): Remove. All uses removed.
909 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
910 (enum human_inexact_style): Remove tag; now a nameless enum.
911 (human_floor, human_ceiling, human_round_to_even): Now have
912 values 2, 0, 1 rather than -1, 1, 0.
913 (human_group_digits, human_suppress_point_zero, human_autoscale,
914 human_base_1024, human_SI, human_B): New constants.
915 (human_readable_inexact, human_block_size): Remove.
916 (human_readable): Size args are now uintmax_t, not int.
917 (human_options): New decl.
919 * exclude.c: (new_exclude, add_exclude): Remove casts that are
920 unnecessary now that we assume C89 or better. This change
921 imported from coreutils.
923 * mktime.c (__mktime_internal): Do not reject negative timestamps
924 arbitrarily. This is the same patch as 2003-05-28, but it got lost
925 in the 2003-05-30 sync from glibc.
927 .h files should stand alone, but we shouldn't include <sys/types.h>
928 if we can get away with just <stddef.h>.
930 * __fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
931 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
932 rather than <sys/types.h>, as we merely need size_t.
933 * dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
935 * hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
936 Include <stdio.h>, to get FILE.
937 * memcasecmp.c: Don't include <sys/types.h>, as we can assume
938 memcasecmp.h has included <stddef.h> and all we need is size_t.
939 * memcoll.c: Include "memcoll.h", which gets us size_t and checks
940 our interface, instead of including <sys/types.h>
942 2003-06-02 Paul Eggert <eggert@twinsun.com>
945 Fix some minor time-related bugs with POSIX time arguments.
946 Some valid time stamps were being rejected (notably -1, and
947 time stamps before 1900 on 64-bit hosts). And some invalid
948 time stamps were being accepted, e.g. September 31.
950 * posixtm.h (posixtime): Return bool instead of time_t, so
951 that we can return (time_t) -1 successfully.
952 * posixtm.c: Likewise.
953 [HAVE_STDBOOL_H]: Include <stdbool.h>.
954 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
955 (t): Remove static var.
956 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
957 of static var. All uses changed.
958 (year): Do not reject years before 1900; they can occur with
960 (posix_time_parse): Do not check for out-of-range components;
961 that is now the caller's responsibility, since our checks were
963 (posixtime): Use mktime to check for out-of-range components,
964 since it knows them exactly.
965 If mktime returns (time_t) -1, check whether an error actually occurred
966 by invoking localtime on -1.
967 (main) [TEST_POSIXTIME]: Check for input data errors, and report
968 posixtime failures better.
969 Improve the test data (in comments only).
971 2003-05-30 <karl@gnu.org>
973 * mktime.c: update from libc.
975 2003-05-30 Bruno Haible <bruno@clisp.org>
977 * config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
978 * localcharset.h: Likewise.
979 * localcharset.c: Likewise.
981 2003-05-28 Paul Eggert <eggert@twinsun.com>
983 Assume the headers required for C89 freestanding compilers.
984 * addext.c, backupfile.c, fsusage.c, human.c, pathmax.h,
985 rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h>
986 without checking for HAVE_LIMITS_H.
987 * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c,
988 xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed
990 * fatal.c: Include <stdarg.h> without checking for __STDC__.
991 * exclude.c: Include <stdbool.h> unconditionally.
992 * tempname.c: Include <stddef.h> unconditionally.
993 * hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
994 * modechange.c, rpmatch.c (NULL): Don't define, since
995 <stddef.h> does that.
996 * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
997 * safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
998 * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed.
999 * xstrtol.c: Likewise.
1000 * safe-read.c: Remove TYPE_SIGNED; no longer needed.
1001 * savedir.c: Include <stddef.h> instead of defining NULL.
1003 * addext.c (addext): Use assignment rather than cast, to avoid
1004 warnings on some platforms.
1006 * mktime.c (__mktime_internal): Do not reject negative timestamps
1009 2003-05-10 Bruno Haible <bruno@clisp.org>
1011 * linebreak.c (iconv_string_length): Don't return -1 just because the
1012 string is longer than 4 KB.
1014 2003-05-12 Jim Meyering <jim@meyering.net>
1016 * strftime.c (my_strftime): Let the `-' (no-pad) flag affect
1017 the space-padded-by-default conversion specifiers, %e, %k, %l.
1019 2003-05-03 Bruno Haible <bruno@clisp.org>
1021 Upgrade to Unicode-4.0.
1022 * linebreak.c (nonspacing_table_data): Change width of U+00AD,
1023 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
1024 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
1025 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
1026 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
1027 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
1028 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
1029 Change width of U+E0100..U+E01EF from 1 to 0.
1031 2003-04-25 Bruno Haible <bruno@clisp.org>
1033 * copy-file.c: Include <stddef.h>, for size_t.
1035 2003-04-25 Jim Meyering <jim@meyering.net>
1037 * copy-file.c (copy_file_preserving): Declare buf_size to be
1038 of type size_t, not int.
1040 2003-04-11 Jim Meyering <jim@meyering.net>
1042 Merge changes from Coreutils.
1044 2003-03-22 Jim Meyering <jim@meyering.net>
1046 * strftime.c (widen): Cast alloca return value to proper type.
1048 2003-01-19 Ulrich Drepper <drepper@redhat.com>
1051 * strftime.c (my_strftime): Handle very large width
1052 specifications for numeric values correctly. Improve checks for
1055 2003-01-19 Jim Meyering <jim@meyering.net>
1057 * strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical definitions.
1058 (nl_get_alt_digit) [! defined my_strftime]: Define.
1059 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
1060 _nl_get_alt_digit and _nl_get_walt_digit.
1062 * strftime.c (my_strftime): Merge in locale-related changes from libc.
1063 These changes have no effect outside of _LIBC.
1065 2003-04-10 Bruno Haible <bruno@clisp.org>
1067 * findprog.h: New file, from GNU gettext.
1068 * findprog.c: New file, from GNU gettext.
1070 2003-04-05 Jim Meyering <jim@meyering.net>
1072 Merge changes from Coreutils.
1074 * exclude.h (PARAMS): Remove definition and uses.
1075 * exclude.c: Remove uses of `PARAMS'.
1077 * dirname.c [TEST_DIRNAME]: Update build instructions for test.
1078 Add test-cases for DOS filenames. Declare program_name.
1079 (main): Set up program_name. Patch by Rich Dawe.
1081 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
1083 Use mntctl's return value to drive the entry-processing loop, since
1084 we can't rely on the value of the vmt_length member in the last
1085 entry. On some systems doing so could result in exhausting
1086 virtual memory. Based in part on a patch from Mike Jetzer.
1088 2003-04-04 Bruno Haible <bruno@clisp.org>
1090 * linebreak.h: New file, from GNU gettext.
1091 * linebreak.c: New file, from GNU gettext with slight modifications.
1092 * lbrkprop.h: New file, from GNU gettext.
1094 2003-04-03 Bruno Haible <bruno@clisp.org>
1096 * utf8-ucs4.h: New file, from GNU gettext.
1097 * utf16-ucs4.h: New file, from GNU gettext.
1098 * ucs4-utf8.h: New file, from GNU gettext.
1099 * ucs4-utf16.h: New file, from GNU gettext.
1101 2003-04-02 Bruno Haible <bruno@clisp.org>
1103 * binary-io.h: New file, from GNU gettext.
1105 2003-04-01 Bruno Haible <bruno@clisp.org>
1107 * pathname.h: New file, from GNU gettext.
1108 * concatpath.c: New file, from GNU gettext.
1110 2003-03-30 Bruno Haible <bruno@clisp.org>
1112 * copy-file.c (copy_file_preserving): Don't set owner if the function
1113 chown() doesn't exist.
1115 2003-03-28 Bruno Haible <bruno@clisp.org>
1117 * copy-file.h: New file, from GNU gettext.
1118 * copy-file.c: New file, from GNU gettext.
1120 2003-03-18 Jim Meyering <jim@meyering.net>
1122 * quote.c (quote_n): Fix typo in comment.
1124 2003-03-14 Jim Meyering <jim@meyering.net>
1126 Merge changes from Coreutils.
1127 * obstack.h (obstack_object_size): Declare temporary, __o,
1128 to be const, in order to avoid warnings.
1129 (obstack_room): Likewise.
1130 (obstack_empty_p): Likewise.
1132 2003-03-13 Paul Eggert <eggert@twinsun.com>
1134 Merge changes from Bison.
1135 * obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
1136 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
1137 when compiling Bison 1.875's `bitset bset = obstack_alloc
1138 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
1139 * hash.c: Include <stdbool.h> unconditionally.
1141 2003-03-09 Paul Eggert <eggert@twinsun.com>
1143 * argmatch.c (EXIT_FAILURE): Define if the system doesn't.
1144 Reported by Bruce Becker; see:
1145 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
1147 2003-03-03 Paul Eggert <eggert@twinsun.com>
1148 Bruno Haible <bruno@clisp.org>
1150 * mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
1151 Reported by John Hughes, see
1152 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
1154 2003-02-19 Paolo Bonzino <bonzini@gnu.org>
1156 * poll_.h: New file.
1159 2003-02-18 Paolo Bonzino <bonzini@gnu.org>
1161 * mathl.h: New file.
1162 * acosl.c: New file.
1163 * asinl.c: New file.
1164 * atanl.c: New file.
1165 * ceill.c: New file.
1168 * floorl.c: New file.
1169 * frexpl.c: New file.
1170 * ldexpl.c: New file.
1172 * sincosl.c: New file.
1174 * sqrtl.c: New file.
1176 * trigl.c: New file.
1177 * trigl.h: New file.
1179 2003-02-17 Bruno Haible <bruno@clisp.org>
1181 * mkdtemp.h: New file, from GNU gettext.
1182 * mkdtemp.c: New file, from GNU gettext.
1184 2003-01-31 Bruno Haible <bruno@clisp.org>
1186 * rename.c: #undef rename before defining rpl_rename.
1187 * strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
1189 2003-01-30 Bruno Haible <bruno@clisp.org>
1191 * printf-args.h: New file, from GNU gettext.
1192 * printf-args.c: New file, from GNU gettext.
1193 * printf-parse.h: New file, from GNU gettext.
1194 * printf-parse.c: New file, from GNU gettext.
1195 * vasnprintf.h: New file, from GNU gettext.
1196 * vasnprintf.c: New file, from GNU gettext.
1197 * asnprintf.c: New file, from GNU gettext.
1198 * vasprintf.h: New file, from GNU gettext with modifications.
1199 * vasprintf.c: New file, from GNU gettext.
1200 * asprintf.c: New file, from GNU gettext.
1202 2003-01-29 Bruno Haible <bruno@clisp.org>
1204 * stpncpy.h: New file, from GNU gettext with modifications.
1205 * stpncpy.c: New file, from GNU gettext with modifications.
1207 2003-01-28 Bruno Haible <bruno@clisp.org>
1209 * c-ctype.h: New file, from GNU gettext, with changes suggested by
1211 * c-ctype.c: New file, from GNU gettext, with changes suggested by
1214 2003-01-27 Bruno Haible <bruno@clisp.org>
1216 * xsetenv.h: New file, from GNU gettext.
1217 * xsetenv.c: New file, from GNU gettext.
1219 2003-01-23 Bruno Haible <bruno@clisp.org>
1221 * minmax.h: New file, from GNU gettext, with comments from Paul Eggert.
1223 2003-01-22 Bruno Haible <bruno@clisp.org>
1225 * exit.h: New file, from GNU gettext.
1227 2003-01-11 Bruno Haible <bruno@clisp.org>
1229 * stpcpy.h (stpcpy): Use ANSI C function declarations.
1230 * strcase.h (strcasecmp, strncasecmp): Likewise.
1232 2003-01-14 Jim Meyering <jim@meyering.net>
1234 * same.c (same_name): Tweak a comment.
1236 2003-01-11 Bruno Haible <bruno@clisp.org>
1238 * same.c (same_name): Reorder tests so as to avoid calling stat()
1239 when a string comparison is sufficient.
1241 2003-01-11 Bruno Haible <bruno@clisp.org>
1243 * readtokens.c (readtoken): Cast character to 'unsigned char', not
1246 2003-01-11 Bruno Haible <bruno@clisp.org>
1248 * hash-pjw.c: Add comment about low quality of this function.
1250 2003-01-12 Paul Eggert <eggert@twinsun.com>
1252 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
1253 to avoid collisions with libcurses and libreadline.
1255 * Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
1256 * getstr.h, getstr.c: Remove.
1257 * getline.c: Include "getline.h", to check interface.
1258 Move body of old getstr.c here: this defines MIN_CHUNK and
1259 declares getdelim2, which is renamed from getstr.
1260 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
1262 * linebuffer.c (readlinebuffer): Renamed from readline.
1264 * linebuffer.h: Likewise.
1265 (readline): Remove backward-compatibility macro.
1267 2003-01-12 Jim Meyering <jim@meyering.net>
1269 * makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
1271 2003-01-10 Bruno Haible <bruno@clisp.org>
1273 * alloca_.h: New file.
1274 * getdate.y: Unconditionally include alloca.h.
1275 * makepath.c: Likewise.
1276 * setenv.c: Likewise.
1277 * userspec.c: Likewise.
1279 2003-01-09 Bruno Haible <bruno@clisp.org>
1281 * stdbool.h.in: New file.
1283 2003-01-08 Bruno Haible <bruno@clisp.org>
1285 * safe-read.c: Include specification header first, to ensure its
1287 * full-write.c: Likewise.
1289 2003-01-08 Jim Meyering <jim@meyering.net>
1291 * full-write.c: Undefine and define-away `const' after inclusion
1292 of errno.h, not before. Suggestion from Bruno Haible.
1294 2003-01-07 Jim Meyering <jim@meyering.net>
1296 * full-write.c: Rework so that it may serve to define full_read, too.
1297 * full-read.c: Simply #define FULL_READ and include full-write.c.
1299 2003-01-06 Jim Meyering <jim@meyering.net>
1301 * version-etc.c: Update year in translatable copyright string.
1303 2002-12-25 Bruno Haible <bruno@clisp.org>
1305 * strtoimax.c: Include <stdint.h> as an alternative to <inttypes.h>.
1306 * xstrtol.h: Likewise.
1307 * xstrtoimax.c: Likewise.
1308 * xstrtoumax.c: Likewise.
1309 * human.h: Likewise.
1311 * tempname.c: Include <inttypes.h> too. Avoids a compilation error
1312 on systems that have <inttypes.h> but not <stdint.h>.
1314 2002-12-31 Paul Eggert <eggert@twinsun.com>
1316 * memcoll.c (memcoll): Fall back on a simple algorithm using
1317 memcmp if strcoll doesn't work.
1319 2002-12-23 Bruno Haible <bruno@clisp.org>
1321 * localcharset.h: New file.
1322 * localcharset.c: Include it.
1323 * unicodeio.c: Likewise.
1325 2002-12-22 Bruno Haible <bruno@clisp.org>
1327 * utime.c (utime_null): No need to call ftruncate if the file was
1330 2002-12-23 Bruno Haible <bruno@clisp.org>
1332 * memcoll.c (STRCOLL): New macro.
1335 2002-12-22 Bruno Haible <bruno@clisp.org>
1337 * getstr.h (getstr): Define, to avoid clash with libcurses.
1338 * linebuffer.h (readline): Define, to avoid clash with libreadline.
1340 2002-12-22 Bruno Haible <bruno@clisp.org>
1342 * getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
1344 2002-12-23 Bruno Haible <bruno@clisp.org>
1346 * getline.h: Include <stddef.h>, for size_t.
1348 * unicodeio.h: Include <stddef.h>, for size_t.
1349 * unicodeio.c: Don't include <stddef.h>.
1351 2002-12-17 Bruno Haible <bruno@clisp.org>
1353 * canon-host.c (strdup): Remove unused declaration.
1355 * fsusage.c: Include full_read.h.
1356 (get_fs_usage): Use full_read instead of safe_read.
1358 * utime.c (utime_null): Use SAFE_READ_ERROR.
1360 2002-12-11 Bruno Haible <bruno@clisp.org>
1362 * setenv.h: Rewritten to cope with systems that have setenv() but not
1364 * setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
1367 2002-12-11 Bruno Haible <bruno@clisp.org>
1369 * setenv.c (alloca): Fall back to malloc.
1371 (setenv): Use freea() to free memory allocated with alloca().
1373 2002-11-13 Bruno Haible <bruno@clisp.org>
1375 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
1376 function declarations.
1377 * unsetenv.c (unsetenv): Likewise.
1379 2002-03-04 Bruno Haible <bruno@clisp.org>
1381 Portability to AIX 4.3.3.
1382 * unsetenv.c: New file, extracted from setenv.c.
1383 * setenv.c: Move the unsetenv() function to unsetenv.c.
1385 2001-12-20 Bruno Haible <bruno@clisp.org>
1387 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
1388 use malloc instead. For SunOS 4.
1390 2001-12-11 Bruno Haible <bruno@clisp.org>
1392 * setenv.c: Declare alloca.
1393 (compar_fn_t): New typedef.
1394 (KNOWN_VALUE, STORE_VALUE): Use it.
1396 * Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
1399 2002-12-10 Paul Eggert <eggert@twinsun.com>
1401 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
1402 * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
1403 Choose values that are less likely to collide with system fnmatch
1405 * exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
1406 defined (e.g., a pure POSIX system).
1407 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
1408 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
1410 2002-12-06 Jim Meyering <jim@meyering.net>
1412 * error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
1414 Merge in changes from libc's misc/error.c, in preparation
1415 for the merge of gnulib's changes back into libc.
1417 * error.c (_): Define only if not already defined.
1418 Move definition to follow all #include directives.
1419 Include unlocked-io.h only if !_LIBC.
1420 [_LIBC]: Include <libio/libioP.h>.
1421 [USE_IN_LIBIO]: Include <libio/iolibio.h>
1422 (fflush): Tweak definition to use INTUSE.
1425 2002-12-05 Paul Eggert <eggert@twinsun.com>
1427 * alloca.c [defined emacs]: Include "lisp.h".
1428 (xalloc_die) [defined emacs]: New macro.
1429 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
1430 [! defined emacs]: Include <xalloc.h>.
1431 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
1432 (pointer): Typedef to POINTER_TYPE *.
1433 (malloc): Remove decl; we now always use xmalloc.
1434 (alloca): Use old-style definition, since Emacs needs this.
1435 Check for arithmetic overflow when computing combined size.
1437 2002-12-04 Paul Eggert <eggert@twinsun.com>
1439 Do not generate unlocked-io.h automatically, since it's easier to
1440 maintain it by hand.
1442 * unlocked-io.h: New file, from GNU diffutils,
1443 but with proper copyright notice and attribution.
1445 * Makefile.am: Add copyright notice.
1446 (libfetish_a_SOURCES): Add unlocked-io.h.
1447 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
1448 (DISTCLEANFILES, io_functions): Remove macros.
1449 (EXTRA_DIST): Remove gen_uio.
1450 (unlocked-io.h): Remove rule.
1452 2002-12-04 Jim Meyering <jim@meyering.net>
1454 Reflect the fact that stat.c and lstat.c are no longer generated.
1455 * Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
1456 (DISTCLEANFILES): Likewise.
1457 (EXTRA_DIST): Likewise.
1458 (all_local): Don't depend on stat.c or lstat.c.
1459 (stat.c, lstat.c): Remove rules.
1460 (EXTRA_DIST): Remove xstat.in.
1462 * xstat.in: Remove file. Contents moved into stat.c.
1463 * stat.c: New file. Contents mostly from xstat.in.
1464 * stat.c: Rework so that it may serve to define rpl_lstat, too.
1465 * lstat.c: New file. Simply #define LSTAT and include stat.c.
1467 * safe-read.c: Rework so that it may serve to define safe_write, too.
1468 * safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
1470 2002-12-03 Jim Meyering <jim@meyering.net>
1472 * safe-read.c, safe-write.c: Change variable names and comments, but
1473 not semantics, to minimize the differences between these two files.
1474 (safe_read): Change comment to mention SAFE_READ_ERROR.
1476 * safe-read.c (IS_EINTR): Define.
1477 (safe_read): Use IS_EINTR in place of in-function cpp directives.
1479 2002-12-02 Bruno Haible <bruno@clisp.org>
1481 * safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
1482 Define, taken from safe-read.c.
1483 (INT_MAX): Provide fallback.
1484 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
1485 * safe-write.h (SAFE_WRITE_ERROR): Define.
1487 * safe-read.c (EINTR): Remove definition.
1488 (safe_read): Don't use EINTR if it is absent.
1490 2002-12-02 Jim Meyering <jim@meyering.net>
1492 * safe-read.c (EINTR): Define.
1493 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
1494 (INT_MAX): Provide fallback.
1495 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
1497 * safe-read.h (SAFE_READ_ERROR): Define.
1499 2002-12-01 Jim Meyering <jim@meyering.net>
1501 * safe-read.c: (safe_read): Also exit the loop when read returns zero.
1502 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
1504 2002-11-27 Paul Eggert <eggert@twinsun.com>
1506 * hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
1507 hash_rehash): Replace `if (limit <= value) abort ();' with
1508 `if (! (value < limit)) abort ();', for readability.
1510 2002-11-26 <karl@gnu.org>
1512 * strdup.c: copy from libc again, with jim's ok.
1513 * .cppi-disable: re-add strdup.c
1515 2002-11-25 <karl@gnu.org>
1517 * strtoll.c: copy from libc, meaning we now #include <strtol.c>
1518 instead of "strtol.c".
1520 2002-11-25 Jim Meyering <jim@meyering.net>
1522 * mktime.c: Sync from libc, now that it has the latest fix.
1524 2002-11-24 <karl@gnu.org>
1526 * error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
1527 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
1529 2002-11-24 Jim Meyering <jim@meyering.net>
1531 Update from coreutils:
1533 * mktime.c: Merge in changes from libc.
1535 Avoid a link-time failure on some Linux systems.
1536 * mktime.c (STATIC): Define to be empty (_LIBC) or `static' (otherwise).
1537 (__mon_yday): Declare with the STATIC attribute.
1538 (__mktime_internal): Likewise.
1539 Based on a report from Greg Schafer.
1541 2002-11-23 Jim Meyering <jim@meyering.net>
1543 * sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
1544 Use `unsigned', not `int', as type of index.
1546 * xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
1548 * fsusage.c: Remove unneeded parentheses around operands of `defined'.
1550 2002-11-22 Paul Eggert <eggert@twinsun.com>
1552 * hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
1553 hint that one should use `if (! x) abort ();' rather than `assert
1554 (x);', and anyway it's one less thing to worry about configuring.
1555 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
1556 hash_rehash, hash_insert): Use abort rather than assert.
1558 2002-11-22 Paul Eggert <eggert@twinsun.com>
1560 * quotearg.h: Allow multiple inclusion by surrounding with
1561 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
1562 so that we can be included first.
1563 (PARAMS): Remove; we now assume C89 or later. All uses removed.
1564 * quotearg.c: Include quotearg.h immediately after config.h.
1565 No need to include stddef.h or sys/types.h any more.
1566 Surround local include files with "", not "<>".
1567 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
1568 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
1569 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
1570 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1571 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1572 (ISPRINT): Remove; no longer needed now that we assume C89.
1574 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
1577 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
1578 quotearg_char): Use SIZE_MAX rather than
1579 (size_t) -1 when we are talking about "infinity".
1581 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
1583 2002-11-22 Bruno Haible <bruno@clisp.org>
1585 * safe-read.h: Assume C89. Add comments.
1586 (safe_read): Change return type to size_t.
1587 * safe-read.c (safe_read): Change return type to size_t. Handle byte
1588 counts > SSIZE_MAX correctly.
1589 * safe-write.h: New file.
1590 * safe-write.c: New file.
1591 * full-read.h: New file.
1592 * full-read.c: New file.
1593 * full-write.h: Assume C89. Add comments.
1594 * full-write.c: Include safe-write.h.
1595 (full_write): Rewritten to use safe_write.
1596 Suggested by Jim Meyering and Paul Eggert.
1598 2002-11-21 Bruno Haible <bruno@clisp.org>
1600 Remove case insensitive option matching.
1601 * argmatch.h (argcasematch): Remove declaration.
1602 (ARGCASEMATCH): Remove macro.
1603 (__xargmatch_internal): Remove case_sensitive argument.
1604 (XARGMATCH): Update.
1605 (XARGCASEMATCH): Remove macro.
1606 * argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
1607 case_sensitive argument.
1608 (argcasematch): Remove function.
1609 (__xargmatch_internal): Remove case_sensitive argument.
1610 (main): Use XARGMATCH instead of XARGCASEMATCH.
1612 * xmalloc.c: Change compile-time error message. Add comment about
1613 required autoconf version.
1615 2002-11-21 Jim Meyering <jim@meyering.net>
1617 * strdup.c (strdup): Tweak comment and initial #if/#include.
1619 Merge in changes from the coreutils.
1621 2002-09-25 Paul Eggert <eggert@twinsun.com>
1622 * fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>.
1623 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
1624 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
1625 int. Work more efficiently if X is the same width as uintmax_t.
1626 Do not compare X to -1, to avoid bogus compiler warning.
1627 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
1628 Don't assume that f_frsize and f_bsize are the same type.
1630 * mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning
1633 * makepath.c (make_path): Restore umask *before* creating the final
1635 (make_path): Minor reformatting.
1637 * xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC
1638 and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC.
1640 * mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy
1641 ones. At least on GNU/Linux systems, `auto' means something else.
1644 2002-11-20 Paul Eggert <eggert@twinsun.com>
1646 Merge argmatch cleanups from Bison. Assume C89.
1648 * argmatch.c: Include config.h here, not in argmatch.h.
1649 Include stdlib.h, for EXIT_FAILURE.
1650 Always include <string.h>, since we assume C89.
1651 (EXIT_FAILURE): Remove pre-C89 bug workaround.
1652 * argmatch.h: Do not include <config.h> or <sys/types.h>.
1653 Include <stddef.h> instead, since it's all we need for size_t.
1654 (PARAMS): Remove. All uses removed.
1655 (ARRAY_CARDINALITY): Do not bother to #undef.
1656 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
1657 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
1658 Remove unnecessary parentheses.
1659 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
1660 Insert necessary parentheses.
1661 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
1662 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
1664 2002-11-19 Bruno Haible <bruno@clisp.org>
1666 * mbswidth.c: Include mbswidth.h right at the beginning.
1667 * mbswidth.h: Include <stddef.h>, for size_t.
1669 * mbswidth.h (PARAMS): Remove macro.
1670 (mbswidth, mbsnwidth): Use ANSI C function declarations.
1671 * mbswidth.c (mbswidth, mbsnwidth): Likewise.
1673 * gcd.h (PARAMS): Remove macro.
1674 (gcd): Use ANSI C function declarations.
1675 * gcd.c (gcd): Likewise.
1677 2002-11-15 Bruno Haible <bruno@clisp.org>
1679 * strcspn.c: Include <stddef.h>.
1680 (strcspn): Use ANSI C function declaration. Change return type to
1682 * strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
1683 (strpbrk): Use NULL.
1684 * strpbrk.h (PARAMS): Remove macro.
1685 (strpbrk): Use ANSI C function declaration.
1686 * strstr.c: Don't include <sys/types.h>.
1687 * strstr.h (PARAMS): Remove macro.
1688 (strstr): Use ANSI C function declarations.
1690 2002-11-06 Bruno Haible <bruno@clisp.org>
1692 * gcd.h (gcd): Change argument type to 'unsigned long'.
1693 * gcd.c (gcd): Likewise.
1695 2002-11-05 Bruno Haible <bruno@clisp.org>
1697 * gcd.h: New file, from gettext-0.11.5.
1698 * gcd.c: New file, from gettext-0.11.5.
1700 2002-11-05 Bruno Haible <bruno@clisp.org>
1702 * error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
1703 * getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
1704 * obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
1705 * regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
1707 * argmatch.c: Include gettext.h instead of <locale.h> and <libintl.h>.
1708 * makepath.c: Include gettext.h instead of <locale.h> and <libintl.h>.
1710 * closeout.c: Include gettext.h instead of <libintl.h>.
1711 * human.c: Include gettext.h instead of <libintl.h>.
1712 * quotearg.c: Include gettext.h instead of <libintl.h>.
1713 * rpmatch.c: Include gettext.h instead of <libintl.h>.
1714 * unicodeio.c: Include gettext.h instead of <libintl.h>.
1715 * userspec.c: Include gettext.h instead of <libintl.h>.
1716 * version-etc.c: Include gettext.h instead of <libintl.h>.
1717 * xmalloc.c: Include gettext.h instead of <libintl.h>.
1718 (textdomain): Remove definition.
1719 * xmemcoll.c: Include gettext.h instead of <libintl.h>.
1721 * long-options.c: Remove include of <libintl.h> and definition of _.
1722 * same.c: Remove include of <libintl.h> and definition of _.
1724 2002-11-04 Bruno Haible <bruno@clisp.org>
1726 * stpcpy.h: New file, from GNU gettext-0.11.5.
1727 * strcase.h: New file, from GNU gettext-0.11.5.
1728 * strpbrk.h: New file, from GNU gettext-0.11.5.
1729 * strstr.h: New file, from GNU gettext-0.11.5.
1730 * xgetcwd.h: New file, from GNU gettext-0.11.5.
1732 2002-05-09 Bruno Haible <bruno@clisp.org>
1734 * config.charset: Update for newest glibc. Add canonical names
1735 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
1737 2002-05-09 Bruno Haible <bruno@clisp.org>
1739 * localcharset.c (get_charset_aliases): Add more Windows specific
1742 2002-05-08 Owen Taylor <otaylor@redhat.com>
1744 * config.charset: A few additions for Solaris.
1746 2001-12-05 Bruno Haible <bruno@clisp.org>
1748 * localcharset.c (locale_charset): Don't return an empty string.
1750 2001-10-23 Bruno Haible <haible@clisp.cons.org>
1752 * config.charset: msdos in uk_UA uses CP1125.
1754 2001-08-05 Bruno Haible <haible@clisp.cons.org>
1756 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
1757 * localcharset.c (locale_charset): Declare as extern "C".
1759 2002-02-15 Bruno Haible <bruno@clisp.org>
1761 * config.charset [msdosdjgpp]: For Russian, use CP866.
1763 2002-02-11 Bruno Haible <bruno@clisp.org>
1765 * config.charset: Add support for NetBSD.
1767 2002-09-25 <karl@gnu.org>
1769 * strdup.c: copy from libc/string (via ../config/srclist*).
1770 * getopt*: copy from libc/posix.
1771 * gettext.h: copy from gettext.
1772 * .cppi-disable: add strdup.c, gettext.h.
1774 2002-07-01 Jim Meyering <meyering@lucent.com>
1776 * c-stack.c: Include sys/time.h.
1777 From Volker Borchert.
1779 2002-06-11 Paul Eggert <eggert@twinsun.com>
1781 * fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
1782 New macro. Use it uniformly instead of
1783 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
1784 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
1785 reported by Vin Shelton.
1787 2002-06-22 Jim Meyering <meyering@lucent.com>
1789 * fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
1790 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
1792 2002-06-22 Paul Eggert <eggert@twinsun.com>
1794 * c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
1795 Do not assume SA_SIGINFO behavior.
1796 Bug reported by Jim Meyering on NetBSD 1.5.2.
1798 2002-06-22 Jim Meyering <meyering@lucent.com>
1800 * c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
1802 * exitfail.c, exitfail.h: Likewise.
1803 * Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
1805 * Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
1807 (EXTRA_DIST): Add fnmatch_loop.c.
1808 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
1810 * fnmatch_loop.c: New file, from diffutils-2.8.2.
1811 * fnmatch.c: Update from diffutils-2.8.2.
1812 * fnmatch_.h: New file. From diffutils-2.8.2.
1813 * fnmatch.h: Remove file.
1815 2002-06-18 Paul Eggert <eggert@twinsun.com>
1817 * file-type.h: Report an error if neither S_ISREG nor
1818 S_IFREG is defined, instead of using a test specific to glibc
1819 2.2. This should be safe, since POSIX requires S_ISREG and
1820 Unix Version 7 had S_IFREG. We don't need to check for
1821 <sys/types.h> since we don't use any symbols that it defines.
1823 2002-06-15 Jim Meyering <meyering@lucent.com>
1825 * file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
1826 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
1827 have been included before this file.
1829 2002-06-13 Richard Dawe <richdawe@bigfoot.com>
1831 * Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t,
1832 so that each temporary file name is unique and valid in the first
1833 8 characters, for operation under DOS.
1835 2002-06-15 Jim Meyering <meyering@lucent.com>
1837 Work even with DJGPP 2.03, which lacks support for symlinks.
1839 * xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
1841 * lchown.c (S_ISLNK): Likewise.
1843 2002-06-14 Jim Meyering <meyering@lucent.com>
1845 * file-type.h: Use the version from diffutils-2.8.2.
1846 * file-type.c: Likewise.
1848 2002-05-27 Jim Meyering <meyering@lucent.com>
1850 Fix a problem seen only on nonconforming systems whereby ls.c's
1851 use of localtime, and then of gettimeofday would cause trouble:
1852 the localtime call used to initialize rpl_gettimeofday's save
1853 mechanism would clobber ls's current local time information so
1854 that in any long listing the first file would always be listed
1855 with date 1970-01-01. Analysis by Volker Borchert.
1857 * gettimeofday.c (localtime): Undefine.
1858 (rpl_localtime): New function.
1860 2002-05-22 Jim Meyering <meyering@lucent.com>
1862 * Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h.
1863 * file-type.h: New file.
1864 * file-type.c (file_type): New file/function. Extracted from diffutils.
1866 2002-04-29 Paul Eggert <eggert@twinsun.com>
1868 * hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
1870 2002-04-28 Paul Eggert <eggert@twinsun.com>
1872 * sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
1873 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
1874 of 127, since 64 is the largest conceivable number for ancient
1876 * sig2str.c: Do not include <sys/wait.h>; no longer needed.
1878 2002-04-28 Jim Meyering <meyering@lucent.com>
1880 * sig2str.c (WTERMSIG): Remove definition (unused).
1882 2002-04-28 Paul Eggert <eggert@twinsun.com>
1884 * sig2str.h, sig2str.c: New files.
1885 * Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
1887 2002-04-24 Jim Meyering <meyering@lucent.com>
1889 * gettext.h: New file, from Gettext.
1890 * Makefile.am (INCLUDES): Remove -I../intl.
1891 (libfetish_a_SOURCES): Add gettext.h.
1893 2002-04-16 Jim Meyering <meyering@lucent.com>
1895 * readutmp.h (UT_TYPE): Remove definition (now in who.c).
1896 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
1897 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
1899 2002-04-12 Jim Meyering <meyering@lucent.com>
1901 * dirfd.h (dirfd): Elide prototype if dirfd is a macro.
1903 2002-03-10 Jim Meyering <meyering@lucent.com>
1905 * makepath.c (make_path): Remove a comma from a diagnostic.
1906 Suggestion from Santiago Vila.
1908 2002-03-08 Jim Meyering <meyering@lucent.com>
1910 * rename.c: Mention that this wrapper is needed also on
1911 mips-dec-ultrix4.4 systems.
1913 2002-03-02 Jim Meyering <meyering@lucent.com>
1915 * gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
1916 not HAVE_CLOCK_SETTIME.
1918 2002-02-27 Paul Eggert <eggert@twinsun.com>
1920 * nanosleep.h: Rename to....
1921 * timespec.h: New name for nanosleep.h. All uses changed.
1923 * gettime.c: New file.
1924 * settime.c: New file.
1927 * Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
1928 timespec.h. Remove nanosleep.h.
1930 2002-02-25 Paul Eggert <eggert@twinsun.com>
1932 * acl.c, acl.h: New files.
1933 * Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
1935 2002-02-24 Jim Meyering <meyering@lucent.com>
1937 * strnlen.c (strnlen): Define-away/undef so that an inconsistent
1938 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
1939 cause trouble. Reported by Nelson Beebe.
1941 2002-02-23 Paul Eggert <eggert@twinsun.com>
1943 * path-concat.c (xpath_concat): Reorder code to pacify
1944 compilers that don't know that xalloc_die never returns.
1946 2002-02-20 Jim Meyering <meyering@lucent.com>
1948 * getdate.c: Regenerate using bison-1.33.
1950 2002-02-15 Paul Eggert <eggert@twinsun.com>
1952 * posixver.c, posixver.h: New files.
1953 * Makefile.am (libfetish_a_SOURCES): Add them.
1955 2002-02-02 Paul Eggert <eggert@twinsun.com>
1956 Bruno Haible <bruno@clisp.org>
1958 * unicodeio.h (print_unicode_char): Add exit_on_error argument.
1959 (fwrite_success_callback): New declaration.
1960 * unicodeio.c (unicode_to_mb): New function, extracted from
1961 print_unicode_char. Call failure callback instead of error.
1962 (fwrite_success_callback): New function.
1963 (exit_failure_callback): New function.
1964 (fallback_failure_callback): New function.
1965 (print_unicode_char): Call unicode_to_mb.
1967 2002-01-26 Jim Meyering <meyering@lucent.com>
1969 * Makefile.am (getdate$U.o): Depend on unlocked-io.h.
1971 2002-01-22 Jim Meyering <meyering@lucent.com>
1973 * Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
1974 Otherwise, some versions of automake would omit the rule that makes
1975 Makefile from Makefile.in.
1977 2001-01-21 Paul Eggert <eggert@twinsun.com>
1979 * xmemcoll.h, xmemcoll.c: New files.
1980 * Makefile.am (libfetish_a_SOURCES): Add them.
1981 * memcoll.c: Include errno.h, and declare errno if not defined.
1982 (memcoll): Set errno to zero if there is no error.
1984 * quotearg.c (quotearg_buffer_restyled):
1985 Fix bug with quoting buffers containing NUL when backslashing escapes.
1986 This bug was exposed by the other changes in this patch.
1987 (quotearg_n_options): New arg ARGSIZE.
1988 All callers changed.
1989 (quoting_options_from_style): New function.
1990 (quotearg_n_style): Use it.
1991 (quotearg_n_style_mem): New function.
1993 * quotearg.h (quotearg_n_style_mem): New function.
1995 2002-01-16 Jim Meyering <meyering@lucent.com>
1997 * getdate.y: Add three semicolons, each just before a closing brace.
1998 Bison (as of version 1.31) no longer papers over that mistake.
2000 2002-02-14 Paul Eggert <eggert@twinsun.com>
2002 * backupfile.c (ISDIGIT): Comment fix.
2003 * getdate.y (ISDIGIT): Likewise.
2004 * posixtm.c (ISDIGIT, year): Likewise.
2005 * strverscmp.c (ISDIGIT): Likewise.
2006 * userspec.c (ISDIGIT): Likewise.
2008 2002-01-05 Jim Meyering <meyering@lucent.com>
2010 * version-etc.c (version_etc_copyright): Update copyright year.
2012 2001-01-19 Paul Eggert <eggert@twinsun.com>
2014 * closeout.c (close_stdout_status): If ferror (stdout), do
2015 not silently exit merely because the output buffer happens to
2016 have nothing pending.
2018 2001-12-18 Paul Eggert <eggert@twinsun.com>
2020 See the big note in ../ChangeLog.
2021 * human.c (suffixes): Prefer K to k for 1024.
2022 (generate_suffix_backwards): New function.
2023 (human_readable_inexact): Use it.
2024 * xstrtol.c (__xstrtol): If there is no number but there
2025 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
2026 Accept 'K' as well as 'k'.
2028 2001-12-15 Jim Meyering <meyering@lucent.com>
2030 * regex.h (__restrict_arr): Update from libc.
2032 * mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
2033 as `remote' if the name starts with `//'. Suggested by Michael Stone.
2036 2001-12-10 Jim Meyering <meyering@lucent.com>
2038 * linebuffer.c: Remove explicit declarations of xmalloc and xrealloc,
2039 Instead, include "xalloc.h".
2040 (initbuffer): Don't cast xmalloc return value to char*.
2041 (readline): Reword comment.
2042 Don't cast xrealloc return value to char*
2045 2001-12-09 Jim Meyering <meyering@lucent.com>
2047 * modechange.c (mode_compile): Add cast to avoid pedantic warning about
2048 `signed and unsigned type in conditional expression'.
2049 * posixtm.c (posix_time_parse): Likewise.
2051 * xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
2053 * readtokens.c (readtoken): Declare an index to be of type unsigned
2054 to avoid a pedantic warning.
2056 * getstr.c: Don't include assert.h.
2057 (getstr): Remove warning-evoking assertions.
2058 Return -1 if offset parameter is out of bounds.
2059 Change the type of a local from int to size_t.
2061 * strftime.c (my_strftime_localtime_r): Include this function
2062 definition in the `#if ! HAVE_TM_GMTOFF' block.
2064 * xgethostname.c: Remove declarations of xmalloc and xrealloc.
2065 Include xalloc.h instead.
2067 2001-12-02 Jim Meyering <meyering@lucent.com>
2069 * tempname.c: Don't declare getenv, thus reverting the change of
2070 2001-11-18. It's no longer necessary, now that stdlib.h is always
2073 * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
2074 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
2076 2001-11-30 Akim Demaille <akim@epita.fr>
2078 * xstrdup.c: Include xalloc.h, so that xstrdup is declared
2079 before being defined.
2081 2001-11-27 Paul Eggert <eggert@twinsun.com>
2083 * quotearg.h (quotearg_n, quotearg_n_style):
2084 First arg is int, not unsigned.
2085 * quotearg.c (quotearg_n, quotearg_n_style): Likewise.
2086 (SIZE_MAX, UINT_MAX): New macros.
2087 (quotearg_n_options): Abort if N is negative.
2088 Avoid overflow check on hosts where size_t is 64 bits and int
2089 is 32 bits, as overflow is impossible there.
2090 Fix off-by-one typo that caused unnecessary reallocation.
2092 2001-11-27 Jim Meyering <meyering@lucent.com>
2094 * tempname.c: Merge with version from libc.
2095 * regex.c: Likewise.
2097 * tempname.c: Include stdlib.h unconditionally. On some old systems
2098 for which STDC_HEADERS is 0, it was not included, resulting in a
2099 warning about an integer-to-pointer conversion problem with getenv.
2100 Reported by Volker Borchert.
2102 2001-11-26 Jim Meyering <meyering@lucent.com>
2104 * gtod.h: Remove file.
2105 * Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
2106 * gettimeofday.c: Don't include gtod.h.
2107 (GTOD_init): Remove function.
2108 (rpl_gettimeofday): Do its job here instead, rather than aborting.
2109 Suggestion from Volker Borchert.
2111 2001-11-23 Jim Meyering <meyering@lucent.com>
2113 * hash.h (struct hash_table): Don't define here. Merely declare it.
2114 * hash.c (struct hash_table): Define it here instead.
2116 2001-11-22 Jim Meyering <meyering@lucent.com>
2118 * hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
2120 2001-11-18 Paul Eggert <eggert@twinsun.com>
2122 * tempname.c (TMP_MAX): Remove; no longer needed.
2123 (TEMPORARIES): New macro.
2124 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
2125 removes an artificial limitation (e.g. HP-UX 10.20, where
2128 2001-11-18 Jim Meyering <meyering@lucent.com>
2130 * tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
2133 * Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
2134 files will be created before anything else.
2136 2001-11-17 Jim Meyering <meyering@lucent.com>
2138 * modechange.c (mode_adjust): Fix error introduced on 1999-04-26
2139 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
2140 rather than group writable. Patch by Juan F. Codagnone.
2142 * readtokens.c: Remove explicit declarations of xmalloc and xrealloc,
2143 Instead, include "xalloc.h".
2145 * mountlist.c: Include unlocked-io.h after all system headers.
2146 Remove explicit declarations of xmalloc, xrealloc,
2147 and xstrdup. Instead, include "xalloc.h".
2149 * argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h.
2150 * fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise.
2151 * mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
2153 * regex.c, sha.c, version-etc.c, yesno.c: Likewise.
2154 Reported by Padraig Brady.
2156 * mkstemp.c: #undef mkstemp.
2158 (rpl_mkstemp): Rename from mkstemp.
2161 2001-11-16 Jim Meyering <meyering@lucent.com>
2163 * physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
2164 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
2165 determine the amount of total physical memory, use pstat_getstatic.
2166 HPUX-11 doesn't define _SC_PHYS_PAGES.
2167 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
2168 If sysconf couldn't be used to determine the amount of available
2169 physical memory, use both pstat_getstatic and pstat_getdynamic.
2170 Based on a patch from Bob Proulx.
2172 2001-11-05 Jim Meyering <meyering@lucent.com>
2174 * xstat.in (slash_aware_lstat): Correct a misleading comment.
2176 2001-11-03 Jim Meyering <meyering@lucent.com>
2178 * argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
2179 in argmatch_to_argument call.
2181 * dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
2184 * hash.c (hash_clear): Fix a bug that could lead to an infloop or
2185 e.g., a fault due to an attempt to free a NULL pointer.
2187 2001-11-01 Jim Meyering <meyering@lucent.com>
2189 * dirfd.c, dirfd.h: New files.
2190 * Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
2192 * hash.c (hash_print) [TESTING]: Clean up.
2194 2001-10-22 Paul Eggert <eggert@twinsun.com>
2196 * hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
2197 to avoid a warning if -Wall.
2199 2001-10-21 Paul Eggert <eggert@twinsun.com>
2201 * regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
2203 2001-10-21 Jim Meyering <meyering@lucent.com>
2205 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2206 this code would end up calling gettext even in packages built
2208 * getopt.c (_): Likewise.
2209 * regex.c (_): Likewise.
2211 2001-10-20 Paul Eggert <eggert@twinsun.com>
2213 * error.c (strerror_r): Do not declare unless !_LIBC.
2214 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
2215 Use strerror_r that is only a macro, even if it is not a function.
2216 (strerror): Check for HAVE_DECL_STRERROR before declaring.
2217 (private_strerror): Use prototypes, not old-style function definition.
2218 (print_errno_message): New function.
2219 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
2221 (error_tail, error, error_at_line): Use it.
2223 2001-10-11 Jim Meyering <meyering@lucent.com>
2225 * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
2226 and quote_n (1, ... to avoid clobbering a buffer.
2228 2001-10-05 Jim Meyering <meyering@lucent.com>
2230 * Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.
2231 * hash-pjw.c: New file (factored out of fileutils' remove.c).
2232 * hash-pjw.h: New file.
2234 2001-09-30 Jim Meyering <meyering@lucent.com>
2236 * mountlist.c [MOUNTED_GETFSSTAT]:
2237 Include <sys/ucred.h>, for Apple Darwin.
2238 Include sys/mount.h and sys/fs_types.h only if available.
2240 (read_filesystem_list): Use FS_TYPE.
2242 2001-09-29 Paul Eggert <eggert@twinsun.com>
2244 * exclude.c (excluded_filename): 0 -> false, since it's
2247 2001-09-28 Paul Eggert <eggert@twinsun.com>
2249 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
2250 #defines strtoimax. Also treat the other strto* functions
2253 * xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
2254 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
2255 (strtoimax, strtoumax): Do not declare if already defined as a macro.
2257 2001-09-26 Jim Meyering <meyering@lucent.com>
2259 Most macros in unlocked-io.h had the wrong number of arguments.
2260 * gen-uio: New script.
2261 (USE_UNLOCKED_IO): Define to 1 if not already defined.
2262 * unlocked-io.hin: Remove file.
2263 * Makefile.am (unlocked-io.h): Rewrite to use a separate script,
2264 rather than trying to embed it here.
2265 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
2266 Reported by Padraig Brady.
2268 2001-09-25 Volker Borchert <bt@teknon.de>
2270 * gettimeofday.c (rpl_gettimeofday): Declare local variable `result'.
2272 2001-09-23 Jim Meyering <meyering@lucent.com>
2274 * mountlist.c: Remove useless parentheses in #if directives.
2275 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
2276 the deprecated MOUNTED symbol is no longer defined in mntent.h.
2278 2001-09-22 Jim Meyering <meyering@lucent.com>
2280 * localcharset.c: Update from latest gettext.
2281 * config.charset: Likewise.
2283 2001-09-20 Jim Meyering <meyering@lucent.com>
2285 * xstrtol.c (strtoimax): Guard declaration with
2286 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
2287 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
2288 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
2289 (strtoumax): Likewise, for completeness (it wasn't necessary).
2291 2001-09-06 Paul Eggert <eggert@twinsun.com>
2293 * strtoimax.c (HAVE_LONG_LONG):
2294 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
2295 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
2296 to work around bug in IBM C compiler.
2298 2001-09-16 Jim Meyering <meyering@lucent.com>
2300 * mkdir.c: New file.
2302 2001-09-04 Paul Eggert <eggert@twinsun.com>
2304 * xgetcwd.c: Revert some of the previous change; intead,
2305 fix the HAVE_GETCWD_NULL code to behave more like the
2306 !HAVE_GETCWD_NULL code used to.
2309 (xgetcwd): Do not return NULL when memory is exhausted; instead,
2312 2001-09-04 Paul Eggert <eggert@twinsun.com>
2314 * xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
2315 Use ssize_t, not int, to store result of readlink.
2316 Check for ssize_t overflow as well as size_t overflow,
2317 as POSIX says the result of readlink is implementation-defined
2318 when ssize_t overflows.
2319 Remove unnecessary cast to char*.
2320 Use free+malloc instead of realloc, as the storage doesn't need
2321 to be preserved and it's clearer and can be more efficient that way.
2322 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
2323 * xreadlink.h (xreadlink): Update prototype.
2325 2001-09-03 Paul Eggert <eggert@twinsun.com>
2327 * exclude.c (fnmatch_no_wildcards): Fix confusion between
2328 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
2329 spotted by Jim Meyering.
2331 2001-09-03 Jim Meyering <meyering@lucent.com>
2333 * xreadlink.c (xreadlink): Preserve errno around `free' during failure.
2335 2001-09-03 Paul Eggert <eggert@twinsun.com>
2337 * xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
2338 like the HAVE_GETCWD_NULL code.
2339 Include pathmax.h if not HAVE_GETCWD.
2340 Do not include xalloc.h.
2341 (INITIAL_BUFFER_SIZE): New symbol.
2342 Do not use xmalloc / xrealloc, since the caller is responsible for
2343 handling errors. Preserve errno around `free' during failure.
2344 Do not overrun buffer when using getwd.
2346 2001-09-03 Paul Eggert <eggert@twinsun.com>
2348 * xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
2349 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0).
2351 2001-09-02 Jim Meyering <meyering@lucent.com>
2353 * error.c: Update from GNU libc.
2355 2001-09-01 Jim Meyering <meyering@lucent.com>
2357 * xreadlink.c: New file.
2358 * xreadlink.h: New file.
2359 * Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h.
2361 * regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
2362 doesn't conflict with sparc Solaris 7's definition in
2363 /usr/include/sys/int_types.h.
2365 * exclude.c: Use `""', not `<>' to #include non-system header files.
2366 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
2367 and strncasecmp as r-values. Unixware didn't have declarations.
2369 2001-08-31 Jim Meyering <meyering@lucent.com>
2371 * xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
2372 Use an initial, malloc'd, buffer of length 128 rather than
2373 a statically allocated one of length 1024.
2375 2001-08-30 Paul Eggert <eggert@twinsun.com>
2377 * xgetcwd.c: Don't include pathmax.h.
2378 Include stdlib.h and unistd.h if available.
2380 (xmalloc, xstrdup, free): Remove decls.
2381 (xgetcwd): Don't assume sizes fit in unsigned.
2382 Check for overflow when computing sizes.
2383 Simplify reallocation code.
2385 2001-08-28 Paul Eggert <eggert@twinsun.com>
2387 * Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
2389 * strtoimax.c: Renamed from strtoxmax.c, removing the
2392 Also, make the following further changes to make this file's
2393 configuration more similar to that of strtol.c:
2394 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
2395 (strtoumax, uintmax_t, strtoull, strtol): Remove.
2396 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
2397 (strtoimax): Renamed from strtoumax. All uses of unsigned values
2398 changed to signed values.
2400 And make the following changes as well:
2401 Fix copyright notice, as 1999 was missing.
2402 (verify): New macro.
2403 (strtoimax): Check sizes at compile-time, not run-time.
2404 Prefer strtol to strtoll if both work.
2405 (main): Remove; it was not that useful and was a pain to maintain.
2407 * strtoumax.c: Include strtoimax.c, not strtouxmax.c.
2409 2001-08-30 Paul Eggert <eggert@twinsun.com>
2411 * savedir.c (savedir): Remove size parameter, as POSIX says that
2412 a directory's st_size can have an arbitrary value, so the old
2413 usage could waste an arbitrary amount of memory. All uses
2415 * savedir.h: Update prototype.
2417 2001-08-30 Paul Eggert <eggert@twinsun.com>
2419 * xstrtol.c (strtoimax): New decl.
2421 2001-08-28 Paul Eggert <eggert@twinsun.com>
2423 * xstrtol.h: Add copyright notice.
2424 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
2425 LONGINT_INVALID_SUFFIX_CHAR.
2427 2001-08-30 Paul Eggert <eggert@twinsun.com>
2429 * quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
2432 2001-08-30 Paul Eggert <eggert@twinsun.com>
2434 * hash.c: Remove '2001' from copyright notice.
2436 2001-08-30 Paul Eggert <eggert@twinsun.com>
2438 * full-write.h: New file.
2439 * Makefile.am (libfetish_a_SOURCES): Add full-write.h.
2440 * full-write.c: Correct credits, as cccp.c no longer
2441 exists and anyway it was so heavily changed from the old cccp
2442 code as to be unrecognizable. Include full-write.h.
2443 (full_write) Return size_t, with short writes meaning failure.
2444 All callers changed. This fixes a bug with large buffers
2446 * utime.c: Include full-write.h.
2448 2001-08-30 Paul Eggert <eggert@twinsun.com>
2450 Merge 'exclude' changes from tar 1.13.22.
2451 This fixes one or two unlikely storage allocation overflow bugs,
2452 but doesn't change user-visible behavior otherwise.
2454 2001-08-30 Paul Eggert <eggert@twinsun.com>
2456 * exclude.c (bool): Declare, perhaps by including stdbool.h.
2457 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
2458 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
2459 Include if available.
2460 (<xalloc.h>): Include
2461 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
2462 (verify): New macro. Use it to verify that EXCLUDE macros do not
2463 collide with FNM macros.
2464 (struct patopts): New struct.
2465 (struct exclude): Use it, as exclude patterns now come with options.
2466 (new_exclude): Support above changes.
2467 (new_exclude, add_exclude_file):
2468 Initial size must now be a power of two to simplify overflow checking.
2469 (free_exclude, fnmatch_no_wildcards): New function.
2470 (excluded_filename): No longer requires options arg, as the options
2471 are determined by add_exclude. Now returns bool, not int.
2472 (excluded_filename, add_exclude):
2473 Add support for the fancy new exclusion options.
2474 (add_exclude, add_exclude_file): Now takes int options arg.
2475 Check for arithmetic overflow when computing sizes.
2476 (add_exclude_file): xrealloc might modify errno, so don't
2477 realloc until after errno might be used.
2479 * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
2481 (free_exclude): New decl.
2482 (add_exclude, add_exclude_file): Now takes int options arg.
2483 (excluded_filename): No longer requires options arg, as the options
2484 are determined by add_exclude. Now returns bool, not int.
2486 2001-08-30 Paul Eggert <eggert@twinsun.com>
2488 * alloca.c (alloca): Arg is of type size_t, not unsigned.
2490 2001-08-27 Jim Meyering <meyering@lucent.com>
2492 * Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
2494 * version-etc.c (N_): Remove definition.
2495 Revert most of last change.
2496 Instead, simply don't mark the `Copyright...' string for translation.
2497 Based on advice from Paul Eggert.
2499 * strtoxmax.c: Tweak comment.
2501 2001-08-26 Jim Meyering <meyering@lucent.com>
2503 * version-etc.c (version_etc_copyright_fmt): Replace literal year
2504 of copyright with `%s' so translators don't get an untranslated
2506 (COPYRIGHT_YEAR): Define.
2507 (version_etc): Use fprintf rather than fputs.
2508 Suggestion from Ulrich Drepper.
2510 * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
2512 * strtoll.c: New file, from GNU libc.
2513 * xstrtoimax.c: New file.
2515 * xstrtol.h: Add xstrtoimax.
2516 * strtoumax.c: New file. Simply include "strtoumax.c".
2517 * strtoimax.c: New file. Likewise, but first define STRTOUXMAX_SIGNED.
2519 * strtoumax.c: Factor to work both for unsigned and signed types, ...
2520 * strtoxmax.c: ... then renamed to this.
2522 2001-08-13 Paul Eggert <eggert@twinsun.com>
2524 * Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
2525 Port to Solaris 8, where 'sed' requires a space after the 'r'
2526 command, and where sh dislikes "$/". Clean up the spacing a bit.
2527 Redirect output to $tmp just once.
2529 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
2531 * addext.c (<errno.h>): Include.
2532 (errno): Declare if not defined.
2533 (addext): Work correctly when pathconf returns -1 and leaves
2534 errno alone because there is no limit. Also, work even if
2535 pathconf returns a value greater than SIZE_MAX.
2537 2001-08-12 Jim Meyering <meyering@lucent.com>
2539 * xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
2540 Simply `return getcwd (NULL, 0);'.
2541 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
2542 Use 1300 as initial value for length, not PATH_MAX.
2544 * pathmax.h: Clean up cpp syntax.
2546 2001-08-12 Jim Meyering <meyering@lucent.com>
2548 * gettimeofday.c: New file.
2550 * Makefile.am (libfetish_a_SOURCES): Add gtod.h.
2552 2001-08-04 Jim Meyering <meyering@lucent.com>
2554 * error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt,
2555 to get in sync with glibc.
2557 2001-08-03 Paul Eggert <eggert@twinsun.com>
2559 The following changes are from gettext 0.10.39 as maintained by
2562 * mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
2563 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
2564 with inverted sense. All uses changed.
2566 * mbswidth.c: Don't include <limits.h>.
2567 Include <stdlib.h> and <string.h> unconditionally.
2568 (iswcntrl, mbsinit, ISCNTRL): New macros.
2569 (mbsnwidth): Use K&R style function declarations.
2570 Don't bother checking for MB_LEN_MAX == 1, since the compiler
2571 can optimize it when MB_CUR_MAX == 1.
2572 The width of control characters is zero, not 1.
2574 2001-07-15 Jim Meyering <meyering@lucent.com>
2576 * Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
2577 (BUILT_SOURCES): Add unlocked-io.h.
2578 (io_functions): Define.
2579 (unlocked-io.h): New rule.
2580 (DISTCLEANFILES): Add unlocked-io.h.
2581 (all-local): Depend on unlocked-io.h, to ensure it is created.
2583 * unlocked-io.hin: New file
2585 * regex.c: Update from glibc.
2587 2001-07-05 Jim Meyering <meyering@lucent.com>
2589 * Makefile.am (noinst_HEADERS): Remove definition, per new automake
2591 (libfetish_a_SOURCES): Put all .h files here instead.
2592 Remove a thus-exposed (better checks in automake) duplicate and
2593 two unnecessary .h files.
2595 2001-06-11 Jim Meyering <meyering@lucent.com>
2597 * regex.c: Update from GNU libc.
2599 2001-05-27 Jim Meyering <meyering@lucent.com>
2601 * readutmp.h (UT_TYPE): Define.
2603 2001-05-24 Jim Meyering <meyering@lucent.com>
2605 * argmatch.c: Include "quote.h".
2606 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
2607 quote function. Reported by Göran Uddeborg.
2609 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
2611 * dirname.c (dir_name): Compute append_dot using path, not newpath
2612 which is not yet declared.
2614 2001-05-11 Paul Eggert <eggert@twinsun.com>
2616 * Makefile.am (libfetish_a_SOURCES):
2617 Add strftime.c, since we now compile it on all hosts.
2619 * strftime.c (my_strftime):
2620 Define to nstrftime if emacs, but only if my_strftime is not defined.
2621 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
2622 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
2623 Add one more extra argument: a nanoseconds value.
2626 (my_strftime function): Add %N format.
2627 (emacs_strftimeu): Renamed from emacs_strftime,
2628 with extra ut argument.
2630 2001-05-11 Paul Eggert <eggert@twinsun.com>
2632 dirname code cleanup. base_name now behaves more compatibly
2633 with POSIX basename when given file names that have trailing
2634 slashes, and similarly for dir_name. Add new primitives
2635 base_len and dir_len. Put the directory-name-related decls
2638 * addext.c (ISSLASH, base_name): Remove; now in dirname.h.
2639 * backupfile.c (base_name): Likewise.
2640 * basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
2641 * dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
2642 * makepath.c (strip_trailing_slashes): Likewise.
2643 * path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH):
2645 * rename.c (strip_trailing_slashes): Likewise.
2646 * same.c (base_name): Likewise.
2647 * stripslash.c (ISSLASH): Likewise.
2649 * addext.c: Include <dirname.h> after size_t is defined.
2650 * backupfile.c: Likewise.
2652 * addext.c (addext): Use base_len to trim redundant
2653 trailing slashes instead of doing it ourselves.
2654 But do not trim the last slash if it is not redundant.
2656 * backupfile.c (find_backup_file_name,
2657 max_backup_version): Use base_len instead of rolling it ourselves.
2658 Handle the case of "" and (on DOS) "C:" correctly.
2660 * basename.c: Do not include <stdio.h>, <assert.h>; no longer needed.
2661 Include <string.h>, <dirname.h>.
2662 (base_name): Allow file names ending in slashes, other than names
2663 that are all slashes. In this case, return the basename followed
2664 by the slashes. This is more general, and can be used in places
2665 where the original base_name purposely had an assertion failure.
2666 (base_len): New function.
2668 * dirname.c: Include <string.h> instead of <stdlib.h>.
2669 Do not include <assert.h>; no longer needed.
2671 (memrchr): Remove decl.
2672 (dir_name_r): Remove.
2673 (dir_len): Renamed from dirlen. All callers changed.
2674 Rewrite in terms of base_name, for simplicity and consistency.
2675 (dir_name): Never return NULL. All callers changed.
2676 Do not include <stdlib.h> in test program; no longer needed.
2677 return 0; is fine for test program.
2679 * dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
2681 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
2683 * path-concat.c (path_concat): Use base_len to compute
2684 base length, not strlen; this means we cannot rely on memcpy
2687 * same.c (STREQ): Remove.
2688 (same_name): Handle the case where the basename ends in trailing '/'.
2690 * stripslash.c (strip_trailing_slashes): Return nonzero if
2691 a slash was stripped. Do not strip the last slash after a
2694 2001-04-08 Jim Meyering <meyering@lucent.com>
2696 * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
2697 recomputed; that's necessary when the offset spans a DST transition.
2698 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
2700 2001-04-02 Jim Meyering <meyering@lucent.com>
2702 * regex.h, regex.c: Update from GNU libc.
2704 2001-03-19 Paul Eggert <eggert@twinsun.com>
2706 * version-etc.c (version_etc_copyright): Update to 2001.
2708 2001-03-16 Paul Eggert <eggert@twinsun.com>
2710 * tempname.c (uint64_t): Define to uintmax_t if
2711 not defined, and if UINT64_MAX is not defined.
2712 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
2713 Reported by John David Anglin.
2715 2001-03-10 Bruno Haible <haible@clisp.cons.org>
2717 * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve
2718 alias if codeset is empty.
2719 * config.charset (BeOS): Use wildcard syntax.
2721 2001-03-13 Jim Meyering <meyering@lucent.com>
2723 * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
2724 Don't insert a backslash when concatenating e.g., `C:' and `foo'.
2727 2001-03-06 Bruno Haible <haible@clisp.cons.org>
2729 * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL).
2731 * unicodeio.c (print_unicode_char): Simplify accordingly.
2733 2001-03-06 Bruno Haible <haible@clisp.cons.org>
2735 * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
2736 support for DOS/DJGPP.
2738 2001-02-28 Paul Eggert <eggert@twinsun.com>
2740 * Makefile.am (libfetish_a_SOURCES):
2741 Add dup-safer.c, fopen-safer.c.
2742 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
2744 * dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files.
2746 2001-02-25 Paul Eggert <eggert@twinsun.com>
2748 The mkstemp replacement is taken from glibc 2.2.2, with some
2749 portability fixes for use outside glibc, as follows:
2751 * tempname.c (struct_stat64): New macro.
2752 (direxists, __gen_tempname): Use it.
2753 This avoids a portability problem with Solaris 8.
2755 * tempname.c (<config.h>): Include if HAVE_CONFIG_H.
2756 (<stddef.h>, <stdint.h>, <string.h>):
2757 Include only if STDC_HEADERS || _LIBC.
2758 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
2759 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
2760 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
2761 (__set_errno): Define this macro if <errno.h> doesn't.
2762 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
2763 Define these macros if <stdio.h> doesn't.
2764 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
2765 Define these macros if <sys/stat.h>
2766 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
2767 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
2768 __xstat64): Define if not _LIBC.
2769 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
2770 (__gen_tempname): Invoke gettimeofday only if
2771 HAVE_GETTIMEOFDAY || _LIBC;
2772 otherwise, fall back on plain "time".
2773 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
2775 * mkstemp.c (__GT_FILE): Define to zero if not defined.
2777 * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
2779 2001-02-17 Jim Meyering <meyering@lucent.com>
2781 * strtoul.c: Sync from GNU libc. Use double quotes, not <...>
2782 around included file name.
2784 * strnlen.c (__strnlen): Merge in a change from GNU libc.
2786 * strftime.c: Update from GNU libc (the only changes were to comments).
2788 2001-02-13 Bruno Haible <haible@clisp.cons.org>
2790 * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash.
2792 2001-02-17 Paul Eggert <eggert@twinsun.com>
2794 * mbswidth.c, quotearg.c (mbrtowc, mbsinit):
2795 Remove workaround macros for hosts that have mbrtowc but not
2796 mbstate_t, as we now insist on proper declarations for both
2797 before using mbrtowc.
2799 2001-02-17 Jim Meyering <meyering@lucent.com>
2801 * regex.c: Update from libc.
2803 2001-02-16 Paul Eggert <eggert@twinsun.com>
2805 * alloca.c (malloc): Undef before defining, since stdlib.h
2806 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
2807 Reported by Mark Hounschell via Paul Eggert.
2809 2001-01-30 Bruno Haible <haible@clisp.cons.org>
2811 * config.charset: Update for FreeBSD 4.2.
2813 2001-01-26 Jim Meyering <meyering@lucent.com>
2815 * quotearg.c: Include stddef.h.
2816 * quote.c: Include stddef.h.
2817 Reported by Axel Kittenberger.
2819 * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
2820 line in double quotes so that it evokes a better diagnostic.
2821 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
2822 Reported by Axel Kittenberger.
2824 2001-01-15 Bruno Haible <haible@clisp.cons.org>
2826 * unicodeio.c (print_unicode_char): Cast the second iconv() arg,
2827 to avoid a warning. Add back 'const' to inptr.
2829 2001-01-16 Jim Meyering <meyering@lucent.com>
2831 * basename.c: Include <stdio.h>, needed by assert on SunOS 4.
2834 2001-01-14 Jim Meyering <meyering@lucent.com>
2836 * rename.c: New file. From Volker Borchert.
2837 Include stdlib.h, string.h or strings.h, and xalloc.h.
2838 Use strip_trailing_slashes rather than open-coding it.
2840 2001-01-03 Paul Eggert <eggert@twinsun.com>
2842 * strftime.c: Sync with glibc time/strftime.c 1.81.
2844 2001-01-03 Jim Meyering <meyering@lucent.com>
2846 * unicodeio.c (print_unicode_char): Remove `const' from declaration of
2847 local `inptr' to avoid warning with some system declarations of iconv.
2849 2000-12-29 Paul Eggert <eggert@twinsun.com>
2851 * modechange.c: Do not assume that mode_t uses the
2852 traditional octal encoding. E.g. "chmod 1 FOO" should set
2853 the other-execute bit of FOO even if S_IXOTH != 1.
2855 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
2856 WOTH, XOTH, ALLM): New macros.
2857 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
2858 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
2860 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
2861 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
2863 No need to use uintmax_t; unsigned long is long enough.
2864 Don't bother to get suffix since we don't use it.
2866 2000-12-24 Jim Meyering <meyering@lucent.com>
2868 * hash.c (is_prime): Return explicit boolean values.
2869 (hash_get_first): Return NULL to appease Irix5.6's 89.
2870 Reported by Nelson Beebe.
2872 2000-10-31 Bruno Haible <haible@clisp.cons.org>
2874 * localcharset.c (locale_charset): Add support for Win32.
2876 2000-12-18 Paul Eggert <eggert@twinsun.com>
2878 * physmem.h, physmem.c: New files.
2880 * Makefile.am (libfetish_a_SOURCES): Add physmem.c.
2881 (noinst_HEADERS): Add physmem.h.
2883 * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
2884 't' for compatibility with Solaris 8 sort.
2886 2000-12-18 Bruno Haible <haible@clisp.cons.org>
2888 * config.charset: Add support for BeOS.
2890 2000-12-16 Jim Meyering <meyering@lucent.com>
2892 * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
2893 SHELLS_FILE to a file name that's useful on djgpp systems.
2895 (ADDITIONAL_DEFAULT_SHELLS): Define.
2896 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
2897 Based mostly on a patch from Prashant TR.
2899 2000-12-16 Jim Meyering <meyering@lucent.com>
2901 This bug had a serious impact on chown: `chown N:M FILE' (for integer
2902 N and M) would have treated it like `chown N:N FILE'.
2904 * userspec.c (parse_user_spec): Fix typo: s/u/g/.
2906 2000-10-31 Bruno Haible <haible@clisp.cons.org>
2908 * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII,
2909 CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257
2910 to the list of canonical encodings. Rename EUC-CN to GB2312.
2912 2000-12-08 Andreas Schwab <schwab@suse.de>
2914 * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
2915 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
2917 2000-12-07 Jim Meyering <meyering@lucent.com>
2919 * stripslash.c (ISSLASH): Define.
2920 (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'.
2923 * dirname.c (FILESYSTEM_PREFIX_LEN): Define.
2924 (dir_name_r): Declare this function as static.
2925 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
2926 manifest itself on a name containing a mix of slashes and
2928 Make this function work with names starting with a DOS-style
2929 drive letter and colon prefix.
2930 (dir_name): Append `.' if necessary.
2931 Based mostly on patches from Prashant TR and Eli Zaretskii.
2933 * dirname.h (dir_name_r): Remove prototype.
2935 2000-12-05 Jim Meyering <meyering@lucent.com>
2937 * dirname.c (dir_name_r): Add `const' in a few local declarations.
2939 2000-12-04 Jim Meyering <meyering@lucent.com>
2941 * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
2942 Also include memory.h, stdlib.h, unistd.h if appropriate.
2943 Reported by Andreas Jaeger (conflicting declaration of malloc).
2945 2000-12-02 Jim Meyering <meyering@lucent.com>
2947 * closeout.h: Make idempotent, to avoid some obscure warnings.
2949 2000-12-01 Paul Eggert <eggert@twinsun.com>
2951 * memrchr.c: Include <config.h> before any system include file.
2953 2000-11-29 Paul Eggert <eggert@twinsun.com>
2955 * dirname.c (dir_name_r): Fix typo: int -> size_t.
2957 2000-11-26 Jim Meyering <meyering@lucent.com>
2959 * memcoll.c: Include sys/types.h. From Werner Almesberger.
2961 2000-11-22 Paul Eggert <eggert@twinsun.com>
2963 * strftime.c (my_strftime): Do not invoke mbrlen with a
2964 size of (size_t) -1; it's not portable.
2966 2000-11-17 Akim Demaille <akim@epita.fr>
2968 * obstack.h: Formatting changes.
2969 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
2970 prevent type checking.
2971 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2972 cast the value to (void *): assigning a `foo *' to a `void *'
2974 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2976 2000-11-17 Jim Meyering <meyering@lucent.com>
2978 * strstr.c: Update from GNU libc.
2980 2000-11-16 Jim Meyering <meyering@lucent.com>
2982 * strverscmp.c: Incorporate weak-alias-related changes from glibc.
2984 2000-11-11 Jim Meyering <meyering@lucent.com>
2986 * error.c: Add a couple #includes, merging from GNU libc version.
2988 2000-11-10 Jim Meyering <meyering@lucent.com>
2990 * obstack.h: Update from GNU libc.
2991 * obstack.c: Likewise.
2993 2000-11-06 Paul Eggert <eggert@twinsun.com>
2995 * getusershell.c (setusershell): Use rewind rather than
2996 fseek/fseeko, to avoid configuration hassles with fseeko.
2997 Don't bother opening SHELLS_FILE if shellstream is NULL;
3000 2000-11-05 Jim Meyering <meyering@lucent.com>
3002 * makepath.h (make_dir): Declare.
3003 * makepath.c (make_dir): Remove `static' attribute.
3006 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
3008 * hash.c (hash_get_next): Fix a thinko: when ENTRY is the
3009 last one in a bucket, advance to the next bucket.
3011 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
3013 * fnmatch.c: Do not comment out all the code if we are using
3014 the GNU C library, because in some cases we are replacing buggy
3015 code in the GNU C library itself.
3017 2000-10-30 Paul Eggert <eggert@twinsun.com>
3019 * error.h, getline.h, modechange.h:
3020 Remove "2000" from Copyright line, as the file hasn't been
3021 changed this year other than in the copyright notice.
3023 * xalloc.h: Add "2000" to Copyright line, as this file
3024 was changed this year.
3026 2000-10-30 Paul Eggert <eggert@twinsun.com>
3028 * fnmatch.c (FOLD): Do not assume that characters are unsigned.
3029 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
3030 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
3032 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
3034 * regex.h (__restrict_arr): Move definition out of #ifndef block.
3035 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
3036 doesn't define __restrict_arr.
3038 2000-10-29 Jim Meyering <meyering@lucent.com>
3040 * xstat.in: Fix grammar in comment.
3042 2000-10-28 Jim Meyering <meyering@lucent.com>
3044 * memchr.c: Update from libc.
3045 Adjust for portability:
3046 [HAVE_STDLIB_H]: Include stdlib.h.
3047 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
3048 Undef __memchr, too.
3049 [!weak_alias]: Define __memchr to memchr.
3051 * regex.c: Update from libc.
3052 * regex.h: Likewise.
3053 * getopt1.c: Likewise.
3054 * memcmp.c: Likewise.
3056 * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
3057 Avoid using fseek, when possible -- it's broken by design.
3058 Patch by Ulrich Drepper.
3060 2000-10-26 Jim Meyering <meyering@lucent.com>
3062 * strftime.c: Update from libc.
3064 2000-10-25 Jim Meyering <meyering@lucent.com>
3066 * obstack.c: Update from libc.
3068 2000-10-23 Jim Meyering <meyering@lucent.com>
3070 * hard-locale.c (hard_locale): Revert last change -- it was simply
3071 wrong. That set_locale call must not have any side effects.
3074 2000-10-22 Jim Meyering <meyering@lucent.com>
3076 * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
3077 [CYCLIC]: Remove now-unused definition.
3079 * save-cwd.c (O_DIRECTORY): Define, if needed.
3080 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
3081 Suggestion from Ulrich Drepper.
3083 2000-10-21 Jim Meyering <meyering@lucent.com>
3085 * dirname.c (dir_name_r): New function, factored out of dir_name.
3086 (dir_name): Use dir_name_r.
3087 * dirname.h (dir_name_r): Declare it.
3089 2000-10-21 Jim Meyering <meyering@lucent.com>
3091 * dirname.c (memrchr): Declare if necessary.
3092 (dir_name): Remove the restriction that there be no
3093 trailing slashes. Now, this code skips past them, effectively
3095 [TEST_DIRNAME] (main): New unit tests.
3097 * memrchr.c: New file from GNU libc.
3098 Undef __memrchr, too.
3099 [!weak_alias]: Define __memrchr to memrchr.
3100 Guard weak_alias use with `#ifdef weak_alias'.
3102 2000-10-17 Jim Meyering <meyering@lucent.com>
3104 * quote.h (PARAMS): Define and use.
3105 Reported by Akim Demaille.
3107 * getopt.c: Update from libc.
3109 2000-10-16 Jim Meyering <meyering@lucent.com>
3111 * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale.
3114 2000-09-25 Jim Meyering <meyering@lucent.com>
3116 * md5.h (rol): Define (from GnuPG).
3118 * sha.c: Give credit (GnuPG) where due.
3119 (M): Use rol rather than open-coding it.
3120 Add a FIXME comment.
3122 2000-09-21 Jim Meyering <meyering@lucent.com>
3124 * userspec.c (parse_user_spec): Remove debugging printf I'd added.
3125 Reported by Michael Stone.
3127 2000-09-20 Jim Meyering <meyering@lucent.com>
3129 * Makefile.am (libfetish_a_SOURCES): Add sha.c.
3130 (noinst_HEADERS): Add sha.h.
3131 Based on code from Scott G. Miller and from GnuPG.
3133 2000-09-15 Jim Meyering <meyering@lucent.com>
3135 * regex.c: Update from libc.
3137 2000-09-10 Jim Meyering <meyering@lucent.com>
3139 * getopt.c (_getopt_internal): Update from glibc.
3141 2000-09-09 Jim Meyering <meyering@lucent.com>
3143 * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
3144 think it should be used as a general replacement for isascii.
3145 * fnmatch.c: Likewise.
3146 * mbswidth.c: Likewise
3147 * regex.c: Likewise.
3150 * userspec.c: Include sys/param.h and limits.h.
3152 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
3153 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
3154 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
3155 UID, GID. Check range.
3157 2000-09-06 Jim Meyering <meyering@lucent.com>
3159 * getopt.c (_getopt_internal): Update from glibc.
3161 2000-08-30 Jim Meyering <meyering@lucent.com>
3163 * strftime.c: Merge in changes from GNU libc.
3165 2000-08-26 Jim Meyering <meyering@lucent.com>
3167 * closeout.c: Include "__fpending.h".
3168 (close_stdout_status): Return right away if there's nothing to flush.
3170 * Makefile.am (noinst_HEADERS): Add __fpending.h.
3171 * __fpending.c: New file.
3172 * __fpending.h: New file.
3174 2000-08-07 Paul Eggert <eggert@twinsun.com>
3176 Standardize on "memory exhausted" instead of "Memory exhausted"
3177 or "virtual memory exhausted".
3178 * obstack.c (print_and_abort): Use "memory exhausted", not
3179 "virtual memory exhausted".
3180 * same.c (same_name): Invoke xalloc_die instead of printing
3182 * userspec.c (parse_user_spec): Likewise.
3183 * bumpalloc.h: comment fix
3184 * same.c, userspec.c: Include xalloc.h.
3186 * xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
3187 not char *const and pointing to a constant array.
3188 * xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
3189 (xrealloc): Comment fix.
3191 * userspec.c (parse_user_spec):
3192 Don't translate a message until just before returning,
3193 to avoid unnecessary translation.
3195 2000-08-07 Jim Meyering <meyering@lucent.com>
3197 * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
3198 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
3199 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
3200 getgroups.c, gethostname.c, getopt.h, group-member.c,
3201 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
3202 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
3203 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
3204 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
3205 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
3206 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
3207 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
3208 yesno.c: Back out Copyright date changes for each file with no change
3209 this year. This eases coordination with other programs using the same
3210 source code modules. From Paul Eggert.
3212 2000-08-03 Greg McGary <greg@mcgary.org>
3214 * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
3215 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
3216 (EXTEND_BUFFER): Use them.
3218 2000-08-01 Jim Meyering <meyering@lucent.com>
3220 * dirname.c (ISSLASH): Define.
3221 (BACKSLASH_IS_PATH_SEPARATOR): Define.
3222 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
3223 both `\' and `/' may be use as path separators.
3224 Based on a patch from Prashant TR.
3226 2000-07-31 Paul Eggert <eggert@twinsun.com>
3228 * quotearg.c (quotearg_n_options): Don't make the initial
3229 slot vector a constant, since it might get modified.
3231 2000-07-31 Jim Meyering <meyering@lucent.com>
3233 * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'.
3234 * obstack.c (print_and_abort): Likewise.
3236 2000-07-30 Paul Eggert <eggert@twinsun.com>
3238 * quotearg.c (quotearg_n_options): Preallocate a slot 0
3239 buffer, so that the caller can always quote one small
3240 component of a "memory exhausted" message in slot 0.
3241 From a suggestion by Jim Meyering.
3243 2000-07-30 Jim Meyering <meyering@lucent.com>
3245 * makepath.c (make_path): Quote the other instance, too.
3247 * quotearg.c (N_STATIC_SLOTVECS): Define.
3248 (STATIC_BUF_SIZE): Define.
3249 (quotearg_n_options): Use only statically allocated storage when
3250 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
3251 than STATIC_BUF_SIZE.
3253 2000-07-29 Jim Meyering <meyering@lucent.com>
3255 * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
3256 * dirname.c (dir_name): Likewise.
3258 * basename.c (base_name): Use ISSLASH rather than comparing against `/'.
3260 * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
3261 (dir_name): Assert that there are no trailing slashes.
3263 2000-07-18 Bruno Haible <haible@clisp.cons.org>
3265 * mbswidth.h (mbswidth): Add a flags argument.
3266 (mbswidth): New declaration.
3267 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
3268 * mbswidth.c (mbswidth): Add a flags argument.
3269 (mbsnwidth): New function.
3271 2000-07-24 Jim Meyering <meyering@lucent.com>
3273 * mbswidth.c: Remove useless #else. From Bruno Haible.
3275 2000-07-23 Paul Eggert <eggert@twinsun.com>
3277 * mbswidth.c (_XOPEN_SOURCE):
3278 Don't define; this causes problems on Solaris 7.
3279 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
3281 2000-07-23 Paul Eggert <eggert@twinsun.com>
3284 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
3285 so that mbstate_t is always defined.
3287 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
3288 be 1 in at least one GCC installation, and this configuration
3289 error is likely to be common. Ignoring MB_LEN_MAX hurts
3290 performance on hosts that have mbrtowc but have only unibyte
3291 locales, but I assume these hosts are rare.
3293 2000-07-23 Paul Eggert <eggert@twinsun.com>
3295 * quotearg.c: Streamline by invoking multibyte code only if needed.
3296 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
3297 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
3298 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
3299 invoke multibyte primitives.
3301 2000-07-23 Jim Meyering <meyering@lucent.com>
3303 * basename.c (base_name): Add an assertion.
3305 2000-07-15 Bruno Haible <clisp.cons.org>
3307 * quotearg.c: When the system forces us to redefine mbstate_t,
3308 shadow its mbsinit function.
3310 2000-07-16 Bruno Haible <haible@clisp.cons.org>
3312 * mbswidth.h: New file.
3313 * mbswidth.c: New file.
3314 * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
3315 (noinst_HEADERS): Add mbswidth.h.
3317 2000-07-17 Bruno Haible <haible@clisp.cons.org>
3319 * config.charset: Add support for FreeBSD. Improve support for HP-UX
3322 2000-07-15 Jim Meyering <meyering@lucent.com>
3324 * makepath.c: Include quote.h.
3325 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
3326 corresponding argument in a `quote (...)' call.
3327 Give better diagnostics.
3329 * Makefile.am (libfetish_a_SOURCES): Add quote.c.
3330 (noinst_HEADERS): Add quote.h.
3332 * quote.c (quote, quote_n): New file. Two functions taken verbatim
3333 from tar's src/misc.c.
3334 * quote.h: New file. Prototypes for same.
3336 2000-07-10 Paul Eggert <eggert@twinsun.com>
3338 From a suggestion by Bruno Haible.
3339 * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
3340 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
3341 to decide whether to define the BeOS workaround macro;
3342 this adjusts to the change to AC_MBSTATE_T.
3344 2000-07-13 Paul Eggert <eggert@twinsun.com>
3346 * quotearg.h (enum quoting style): New enum clocale_quoting_style.
3348 * quotearg.c (quoting_style_args, quoting_style_vals,
3349 quotearg_buffer_restyled): Add support for
3350 clocale_quoting_style. Undo previous change to
3351 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
3352 and "{RIGHT QUOTATION MARK}" msgids.
3354 2000-07-05 Paul Eggert <eggert@twinsun.com>
3356 The old behavior of quoting `like this' doesn't look good with
3357 newer, ISO-style fonts. See:
3358 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
3360 Instead, quote "like this" by default. Let the translator
3361 tailor the locale-specific quoting behavior by providing
3362 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
3364 * quotearg.c (N_): New macro.
3365 (gettext_default): New function.
3366 (quotearg_buffer_restyled): Use
3367 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
3368 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
3370 2000-07-09 Jim Meyering <meyering@lucent.com>
3372 * Most files: Update copyright dates to include 2000.
3374 2000-07-08 Jim Meyering <meyering@lucent.com>
3376 * xgethostname.c (ENAMETOOLONG): Define to an unlikely value
3378 (xgethostname): Remove now-unnecessary #ifdef.
3379 Move declaration of `err' into loop where it's used.
3381 2000-07-05 Bruno Haible <haible@clisp.cons.org>
3383 * xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
3384 by allocating a larger buffer. Test the gethostname return value for
3385 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
3386 returns an error and ENAMETOOLONG isn't defined.
3388 2000-07-05 Paul Eggert <eggert@twinsun.com>
3389 and Bruno Haible <haible@clisp.cons.org>
3391 * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
3393 2000-07-05 Bruno Haible <haible@clisp.cons.org>
3395 * quotearg.c (struct quoting_options): Simplify quote_these_too
3398 2000-07-03 Jim Meyering <meyering@lucent.com>
3400 * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
3401 Reported by Bruno Haible.
3403 2000-07-04 Jim Meyering <meyering@lucent.com>
3405 * quotearg.c: Make inclusion of <wchar.h> independent of whether
3406 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
3409 2000-07-03 Paul Eggert <eggert@twinsun.com>
3410 and Bruno Haible <haible@clisp.cons.org>
3412 * quotearg.c (mbrtowc):
3413 Assign to *pwc, and return 1 only if result is nonzero.
3414 (iswprint): Use ISPRINT when substituting our own mbrtowc.
3416 2000-07-03 Jim Meyering <meyering@lucent.com>
3418 * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
3419 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
3422 2000-07-02 Jim Meyering <meyering@lucent.com>
3424 * quotearg.c (mbstate_t): Don't define here.
3426 2000-07-02 Jim Meyering <meyering@lucent.com>
3428 * nanosleep.c (SIGCONT): Define if not already defined.
3430 2000-06-17 Bruno Haible <haible@clisp.cons.org>
3432 * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
3433 per change in ../m4/ls-mntd-fs.m4.
3434 (read_filesystem_list): Ignore symbolic links.
3436 2000-06-29 Jim Meyering <meyering@lucent.com>
3438 * same.c: Include <string.h> or <strings.h>, as appropriate,
3439 for declaration of strcmp.
3441 * long-options.c: Include <stdlib.h>, for declaration of exit.
3443 * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
3444 Avoid warning by casting result to `char *' to remove `const'.
3446 2000-06-17 Bruno Haible <haible@clisp.cons.org>
3448 * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
3450 2000-06-26 Paul Eggert <eggert@twinsun.com>
3452 savedir now sets errno on failure and invokes xmalloc to get memory.
3453 Fix a couple of other minor bugs while we're at it.
3455 * savedir.c (<unistd.h>): Do not include; there's no need.
3456 (NAMLEN): Remove macro.
3457 (malloc, realloc): Remove decls.
3459 ("xalloc.h"): Include.
3460 (NAME_SIZE_DEFAULT): New macro.
3461 (savedir): Use xmalloc / xrealloc to allocate memory.
3462 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
3463 Skip "" directory entries.
3464 Use strlen to calculate directory entry length, since the old method
3465 is rarely used these days and isn't worth supporting.
3466 Don't use a pointer after freeing it.
3467 Check for integer overflow when calculating allocation size.
3468 Use memcpy to copy entries, instead of stpcpy.
3469 Set errno properly when returning NULL.
3470 Check for readdir error.
3472 2000-06-26 Jim Meyering <meyering@lucent.com>
3474 * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
3476 2000-06-17 Bruno Haible <haible@clisp.cons.org>
3478 * getusershell.c (xmalloc, xrealloc): Remove functions.
3480 Don't include <stdlib.h>. Don't declare malloc, realloc.
3482 2000-06-23 Bruno Haible <haible@clisp.cons.org>
3484 * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency.
3486 2000-06-24 Jim Meyering <meyering@lucent.com>
3488 * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
3490 2000-06-21 Jim Meyering <meyering@lucent.com>
3492 * getpass.c: New file, from Bruno Haible. Required for BeOS.
3494 2000-06-19 Paul Eggert <eggert@twinsun.com>
3496 * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
3497 (mbrtowc, mbstate_t): Define substitutes if
3498 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
3499 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
3500 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
3502 2000-06-17 Bruno Haible <haible@clisp.cons.org>
3504 * xgetcwd.c (xgetcwd): If the required pathname length is smaller
3505 than 1024, return a memory chunk of least possible size, instead
3506 of size PATH_MAX + 2. In the loop, increment the size proportionally.
3507 Use free/xmalloc instead of xrealloc to avoid copying for very long
3510 2000-06-17 Bruno Haible <haible@clisp.cons.org>
3512 * canon-host.c (canon_host): Use malloc and memcpy to copy an
3513 address, not strdup. Include <stdlib.h> and don't declare free().
3515 2000-06-17 Bruno Haible <haible@clisp.cons.org>
3517 * path-concat.c (path_concat): Don't access dir[-1] if dir is
3520 2000-06-21 Jim Meyering <meyering@lucent.com>
3522 * Makefile.am (libfetish_a_SOURCES): Add getstr.c.
3523 (noinst_HEADERS): Add getstr.h.
3525 * getline.c (getstr): Move into a separate file.
3526 * getstr.c (getstr): New file, extracted from getline.c, with
3527 the following changes: new parameter, delim2; both delim[12]
3528 parameters have type `int', not `char'. The latter would lose
3529 with 8-bit delimiters.
3530 * getstr.h: New file.
3532 2000-06-19 Jim Meyering <meyering@lucent.com>
3534 * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
3536 2000-06-18 Jim Meyering <meyering@lucent.com>
3538 * mkdir.c: Remove file, due mainly to copyright incompatibility.
3539 Besides, these days every porting target provides a mkdir function.
3541 * strnlen.c: Include memory.h, string.h, and/or strings.h as needed.
3542 (this snippet comes from src/system.h).
3544 2000-06-15 Paul Eggert <eggert@twinsun.com>
3546 * human.c (adjust_value): New function.
3547 (human_readable_inexact): Apply rounding style even when
3548 printing approximate values.
3550 2000-06-14 Paul Eggert <eggert@twinsun.com>
3552 * human.c (human_readable_inexact): Allow an input block
3553 size that is not a multiple of the output block size, and vice versa.
3554 Reported by Piergiorgio Sartor.
3556 2000-06-14 Paul Eggert <eggert@twinsun.com>
3558 * getdate.y (get_date): Apply relative times after time
3559 zone indicator, not before. Reported by Todd A. Jacobs.
3561 2000-06-13 Jim Meyering <meyering@lucent.com>
3563 * Makefile.am (all-local): Depend on lstat.c and stat.c.
3565 * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
3567 2000-06-12 Paul Eggert <eggert@twinsun.com>
3569 * xstat.in: Include <stdlib.h> in lstat, to declare "free".
3571 2000-06-04 Paul Eggert <eggert@twinsun.com>
3573 * strnlen.c: Include <config.h> if HAVE_CONFIG_H.
3575 2000-06-04 Jim Meyering <meyering@lucent.com>
3577 * getugroups.c (getugroups): Cast -1 to gid_t, for systems like
3578 SunOS 4.1.4 for which gid_t is an unsigned type.
3580 2000-06-03 Jim Meyering <meyering@lucent.com>
3582 * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
3584 2000-05-26 Bruno Haible <haible@clisp.cons.org>
3586 * Makefile.am (install-exec-local): On systems with glibc-2.1 or
3587 newer, don't install charset.alias.
3588 * config.charset: Change the Linux/glibc rules so they become empty
3589 on glibc-2.1 or newer.
3591 2000-06-02 Jim Meyering <meyering@lucent.com>
3593 * mountlist.c: Back out last change. Instead, do this...
3594 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy
3595 member using the same `ignore'-testing code.
3596 * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
3600 2000-05-29 Jim Meyering <meyering@lucent.com>
3602 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts
3603 with the `ignore' attribute. Based on a patch from Mark D. Roth.
3605 2000-05-22 Jim Meyering <meyering@lucent.com>
3607 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
3609 2000-05-18 Jim Meyering <meyering@lucent.com>
3611 * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
3612 back, too, since it may have been modified by allocate_entry.
3613 (hash_delete): Rewrite to use neither the assignment operator
3614 nor the comma operator in an if-expression.
3616 2000-05-15 Paul Eggert <eggert@twinsun.com>
3619 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
3620 Remove; no longer needed.
3621 "quotearg.h": Add include.
3622 (file_name): Do not bother to explicitly initialize to NULL; it's less
3623 efficient on some hosts.
3624 (close_stdout_status): Remove test as to whether stdout was already
3625 closed; it breaks for the case "echo x | sort >&-".
3626 Quote file name colons.
3627 Do not assume that _("write error") lacks format strings.
3629 2000-05-15 Jim Meyering <meyering@lucent.com>
3631 * version-etc.c (version_etc_copyright): Update the copyright string
3632 used in all --version output.
3634 2000-05-14 Jim Meyering <meyering@lucent.com>
3636 * closeout.c (close_stdout_set_file_name): New function.
3637 (close_stdout_status): Use new file-scoped global.
3638 Return right away if fstat says the stdout file descriptor is invalid.
3639 * closeout.h (close_stdout_set_file_name): Declare.
3641 2000-05-10 Jim Meyering <meyering@lucent.com>
3643 * closeout.c [default_exit_status]: New file-scoped variable.
3644 (close_stdout_set_status): New function.
3645 * closeout.h (close_stdout_set_status): Declare.
3647 2000-05-08 Jim Meyering <meyering@lucent.com>
3649 * long-options.c: Don't include closeout.h.
3650 (parse_long_options): Don't call close_stdout for --version.
3652 2000-05-06 Jim Meyering <meyering@lucent.com>
3654 * strnlen.c: Undefine __strnlen and strnlen.
3655 [!weak_alias]: Define __strnlen to strnlen.
3657 * atexit.c: New file, from libiberty.
3659 2000-05-06 Jim Meyering <meyering@lucent.com>
3661 * closeout.c (close_stdout_status): Also check for errors on the
3664 2000-05-05 Bruno Haible <haible@clisp.cons.org>
3666 * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
3667 instead of xmalloc, xrealloc, path_concat.
3668 (locale_charset): Treat empty environment variables as absent.
3669 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
3671 2000-05-04 Jim Meyering <meyering@lucent.com>
3673 * getopt.c: Update from glibc.
3674 * obstack.c: Likewise.
3675 * obstack.h: Likewise.
3676 * regex.c: Likewise. NB: K&R compiler support is dropped for this file
3678 * regex.h: Likewise.
3679 * strndup.c: Likewise.
3680 * strnlen.c: New file, from glibc.
3682 2000-05-01 Jim Meyering <meyering@lucent.com>
3684 * full-write.c (full_write): Remove `FIXME' part of comment.
3686 2000-04-29 Jim Meyering <meyering@lucent.com>
3688 * path-concat.c: Declare strdup only if it's not defined.
3689 * canon-host.c: Likewise.
3691 2000-04-28 Jim Meyering <meyering@lucent.com>
3693 * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
3694 redefinition warning on some systems (HPUX). Otherwise, regex.h is
3695 included first, then limits.h is included by locale.h by libintl.h.
3696 From John David Anglin.
3698 2000-04-25 Jim Meyering <meyering@lucent.com>
3700 * makepath.c (S_IRWXUGO): Define.
3701 (make_path): Always perform explicit chmod if MODE specifies any
3702 of the `special' permission bits. Prompted by a bug report against
3703 install from Mate Wierdl and Joost van Baal.
3705 2000-04-18 Jim Meyering <meyering@lucent.com>
3709 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
3710 getpagesize. For BeOS. Based on a patch from Bruno Haible.
3712 2000-04-17 Jim Meyering <meyering@lucent.com>
3714 * strftime.c (my_strftime) [strftime]: Declare strftime here, since
3715 the definition of it to rpl_strftime also defined-away the system's
3718 2000-04-15 Jim Meyering <meyering@lucent.com>
3720 Use `C' to denote so-called `contiguous' files, the same way
3722 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
3723 (ftypelet): Use S_ISCTG.
3724 From Michael Deutschmann.
3726 2000-04-14 Jim Meyering <meyering@lucent.com>
3728 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
3730 2000-04-08 Jim Meyering <meyering@lucent.com>
3732 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
3733 names don't conflict. Reported by Eli Zaretskii.
3735 2000-03-28 Bruno Haible <haible@clisp.cons.org>
3737 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
3738 bug. Deal with the different error behavior of Irix iconv.
3740 2000-04-07 Jim Meyering <meyering@lucent.com>
3742 * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
3743 to work around system header problems on AIX 3.2.5. From Bruno Haible.
3745 2000-04-05 Jim Meyering <meyering@lucent.com>
3747 Portability tweaks required for ultrix4.3.
3748 * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
3749 * readutmp.c: Include sys/types.h before sys/stat.h.
3750 * canon-host.c: Declare strdup.
3751 * path-concat.c: Likewise.
3752 From John David Anglin.
3754 2000-04-04 Jim Meyering <meyering@lucent.com>
3756 Be more DOS 8.3-friendly.
3757 * ref-add.sin: Renamed from ref-add.sed.in.
3758 * ref-del.sin: Renamed from ref-del.sed.in.
3759 * Makefile.am: Reflect renaming.
3760 Reported by Eli Zaretskii.
3762 Use a temporary file name that won't clash with `charset.alias'
3763 in the DOS 8.3 name space.
3764 * Makefile.am (charset_tmp): Define.
3765 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
3766 (uninstall-local): Likewise.
3767 Reported by Eli Zaretskii.
3769 2000-03-29 Paul Eggert <eggert@twinsun.com>
3771 * time/strftime.c (my_strftime): Make sure we call the system
3772 strftime, not ourselves, when invoking the underlying strftime.
3774 2000-03-24 Jim Meyering <meyering@lucent.com>
3776 * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
3777 (charset_alias): Define.
3778 (install-exec-local): Factor out common code.
3779 (uninstall-local): Split lines longer than 80.
3780 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
3782 (.sed.in.sed): New rule. Don't redirect directly to $@.
3783 (CLEANFILES): Add ref-add.sed and ref-del.sed.
3785 2000-03-19 Bruno Haible <haible@clisp.cons.org>
3787 * config.charset: Output a line containing "Packages using this file".
3788 * ref-add.sed.in, ref-del.sed.in: New files.
3789 * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
3790 ref-del.sed): New rules.
3792 2000-03-17 Jim Meyering <meyering@lucent.com>
3794 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
3795 Otherwise, include <strings.h>
3797 2000-03-17 Bruno Haible <haible@clisp.cons.org>
3799 * unicodeio.c (utf8_wctomb): New function.
3800 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
3801 format instead of in UCS-4 with platform dependent endianness.
3803 2000-03-07 Paul Eggert <eggert@twinsun.com>
3805 * savedir.c (savedir): Work even if directory size is
3806 negative; this can happen with some screwy NFS configurations.
3808 2000-03-06 Jim Meyering <meyering@lucent.com>
3810 * localcharset.c (get_charset_aliases): Don't try to free file_name
3811 if it's NULL (because we ran out of memory). From Bruno Haible.
3813 2000-03-05 Jim Meyering <meyering@lucent.com>
3815 * localcharset.c ("path-concat.h"): Include.
3816 (get_charset_aliases): Use path_concat instead of ANSI string
3819 * unicodeio.h (PARAMS): Define.
3820 Use it to guard prototype.
3822 2000-03-04 Jim Meyering <meyering@lucent.com>
3824 * Makefile.am (install-exec-local): Create $(libdir) before installing
3826 (uninstall-local): Uncomment this rule so `make distcheck' works
3829 * unicodeio.c (<errno.h>): Include it.
3830 (errno): Declare if not defined.
3832 * localcharset.c: Add Bruno's comment justifying use of volatile.
3834 * config.charset: New version, incorporating remarks from a linux
3835 i18n mailing list. From Bruno Haible.
3837 2000-03-02 Jim Meyering <meyering@lucent.com>
3839 * Makefile.am (EXTRA_DIST): Add config.charset.
3841 2000-03-01 Jim Meyering <meyering@lucent.com>
3843 * localcharset.c: Guard some #includes with `#if HAVE_...'.
3844 * unicodeio.c: Likewise.
3846 2000-02-02 Bruno Haible <haible@clisp.cons.org>
3848 * config.charset: New file.
3849 * localcharset.c: New file.
3850 * unicodeio.h, unicodeio.c: New files.
3851 * Makefile.am (DEFS): Add -DLIBDIR=...
3852 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
3853 (noinst_HEADERS): Add unicodeio.h.
3854 (all-local, install-exec-local, charset.alias): New targets.
3856 2000-02-28 Paul Eggert <eggert@twinsun.com>
3858 * quotearg.c (ALERT_CHAR): New macro.
3859 (quotearg_buffer_restyled): Use it.
3861 2000-02-27 Jim Meyering <meyering@lucent.com>
3863 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
3864 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
3866 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
3867 not `#if STDC_HEADERS'.
3868 Declare malloc if needed.
3870 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
3871 now that autoconf always defines the HAVE_DECL_ symbols.
3872 * human.c: Likewise.
3874 * strtoumax.c: Likewise.
3876 * backupfile.c: Arrange for cpp to fail if the configure-time
3877 declaration check was not run.
3879 * human.c: Likewise.
3881 * strtoumax.c: Likewise.
3883 * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
3884 then first look up the entire `.'-containing string as a login name.
3886 2000-02-18 Paul Eggert <eggert@twinsun.com>
3888 * getdate.y: Handle two-digit years with leading zeros correctly.
3889 (textint): New typedef.
3890 (parser_control): Member year changed from int to textint.
3892 (YYSTYPE): Removed; replaced by %union with int and textint members.
3893 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
3894 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
3895 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
3896 (tSNUMBER, tUNUMBER): Now of type <textintval>.
3897 (date, number, to_year): Use width of number in digits, not its value,
3898 to determine whether it's a 2-digit year, or a 2-digit time.
3899 (yylex): Store number of digits of numeric tokens.
3900 Reported by John Kendall.
3902 (parser_control): Changed from struct parser_control to typedef (for
3903 consistency). All uses changed.
3905 (tID): Removed; not used.
3906 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
3908 2000-02-14 Paul Eggert <eggert@twinsun.com>
3910 * getpagesize.h (getpagesize): Port to VMS for Alpha;
3911 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
3913 2000-02-12 Jim Meyering <meyering@lucent.com>
3915 * userspec.c (ISDIGIT): Define it.
3916 (isdigit): Remove definition.
3917 (is_number): Use ISDIGIT, not isdigit.
3918 <libintl.h>: Include.
3920 (parse_user_spec): Mark translatable strings.
3922 2000-02-10 Jim Meyering <meyering@lucent.com>
3924 With these changes, nanosleep.[ch] are finally enough like the other
3925 lib/* replacement files to compile on a few more losing systems.
3927 * nanosleep.h: Don't include config.h.
3928 Remove prototype from declaration of nanosleep.
3929 (PARAMS): Remove now-unneeded definition.
3930 * nanosleep.c: #undef nanosleep.
3931 (rpl_nanosleep): Rename from nanosleep.
3933 2000-02-03 Jim Meyering <meyering@lucent.com>
3935 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
3936 rather than with `#if HAVE_UTMPNAME'.
3938 2000-02-01 Jim Meyering <meyering@lucent.com>
3940 * readutmp.h (UT_USER): Add parens. From Andreas Schwab.
3942 2000-01-31 Jim Meyering <meyering@lucent.com>
3944 * nanosleep.h (nanosleep): Guard declaration with
3945 `#if ! HAVE_DECL_NANOSLEEP'.
3946 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
3947 the declaration in that vendor's sys/timers.h.
3948 Reported by Christian Krackowizer.
3950 * quotearg.c (ISASCII): Add #undef and move definition to follow
3951 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
3952 (ISPRINT): Likewise.
3953 Reported by Tom Tromey.
3955 2000-01-30 Jim Meyering <meyering@lucent.com>
3957 * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
3958 uses of ->ut_name. The latter doesn't work with new Linux header files
3959 where only utmpx.ut_user is declared.
3961 * readutmp.h (UT_USER): Define.
3963 2000-01-23 Jim Meyering <meyering@lucent.com>
3965 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
3968 2000-01-22 Jim Meyering <meyering@lucent.com>
3970 * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
3971 [! HAVE_DECL_STRTOULL]: Declare strtoull.
3972 Required for some AIX systems. Reported by Christian Krackowizer.
3973 [TESTING] (main): New function.
3975 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
3976 * dirname.c (dir_name): Support for DOS-style file names with drive
3979 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
3981 * strverscmp.c (ISDIGIT): Define.
3982 (strverscmp): Use ISDIGIT, not isdigit.
3984 2000-01-17 Paul Eggert <eggert@twinsun.com>
3986 * nanosleep.c (nanosleep):
3987 Don't use SA_INTERRUPT to decide whether to call sigaction, as
3988 POSIX.1 doesn't require SA_INTERRUPT and some systems
3989 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
3990 it's been part of POSIX.1 since day 1 (in 1988).
3992 2000-01-17 Jim Meyering <meyering@lucent.com>
3994 * interlock: Remove unused file. Reported by François Pinard.
3996 2000-01-16 Paul Eggert <eggert@twinsun.com>
3998 * quotearg.c (quotearg_buffer_restyled): Do not quote
3999 alert, backslash, formfeed, and vertical tab unnecessarily in
4000 shell quoting style.
4003 version-control: never