.
[gnulib.git] / lib / ChangeLog
1 2003-09-06  Paul Eggert  <eggert@twinsun.com>
2
3         * time_r.c, time_r.h: New files.
4
5         * mktime.c (my_mktime_localtime_r): Remove; all uses changed to
6         __localtime_r.
7         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
8         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
9
10         * strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
11         __gmtime_r.
12         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
13         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
14         Include <time_r.h>.
15
16         * timegm.c: Switch to glibc implementation, with the following changes:
17         [defined HAVE_CONFIG_H]: Include <config.h>.
18         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
19         (__mktime_internal) [!defined _LIBC]: New decl.
20         (__gmtime_r) [!defined _LIBC]: New macro and function.
21         (timegm): Use a prototype, since gnulib assumes C89.
22         Do not bother declaring tmp to be const, as it's not really usefu.
23         * timegm.h: Hoist "#include <time.h>" out of #ifdef.
24         (timegm): Declare only if HAVE_DECL_TIMEGM.
25
26 2003-09-03  Paul Eggert  <eggert@twinsun.com>
27
28         * human.c (human_readable): Fix bug that rounded 10501 to 10k.
29         Bug reported by Lute Kamstra in
30         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
31
32         * getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
34         course with correspondingly smaller numbers for tomorrow and
35         yesterday.  From Tadayoshi Funaba.  Originally installed into
36         sh-utils on 1999-08-07, but the patch got lost (I guess during the
37         coreutils merge?).
38
39 2003-08-31  Simon Josefsson  <jas@extundo.com>
40
41         * timegm.h: New file.
42         * timegm.c: New file.  Based on wget-1.8.2/src/http.c:mktime_from_utc.
43
44 2003-08-31  Karl Berry  <karl@gnu.org>
45
46         * argp.h: update from libc.
47
48 2003-08-28  Bruno Haible  <bruno@clisp.org>
49
50         * binary-io.h: Undefine O_BINARY before defining it. This avoids a
51         warning on QNX, which defines O_BINARY to 000000.
52
53 2003-08-24  Bruno Haible  <bruno@clisp.org>
54
55         * binary-io.h: Include <stdio.h>, to avoid a compilation error when
56         MSVC7 <stdio.h> is included later.
57
58 2003-08-20  Bruno Haible  <bruno@clisp.org>
59
60         * progname.h: New file, from GNU gettext.
61         * progname.c: New file, from GNU gettext.
62         * progreloc.c: New file, from GNU gettext.
63
64 2003-08-19  Bruno Haible  <bruno@clisp.org>
65
66         * xstrdup.c: Assume <string.h> exists.
67
68 2003-08-18  Jim Meyering  <jim@meyering.net>
69
70         * setenv.h: Indent nested cpp directive.
71         * vasnprintf.c: Remove trailing blanks.
72
73 2003-08-17  Simon Josefsson  <jas@extundo.com>
74             Bruno Haible  <bruno@clisp.org>
75
76         * xstrndup.h: New file.
77         * xstrndup.c: New file.
78
79 2003-08-17  Bruno Haible  <bruno@clisp.org>
80
81         * strndup.h: New file.
82
83 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84
85         * regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
86         space, undoing this 2003-08-12 change:
87         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88
89 2003-08-16  Jim Meyering  <jim@meyering.net>
90
91         Merge from coreutils.
92         * xstrtoimax.c: #else #if -> #elif.
93         * xstrtoumax.c: Likewise.
94
95 2003-08-15  Paul Eggert  <eggert@twinsun.com>
96
97         * config.charset, ref-add.sin, ref-del.sin: Use three spaces,
98         rather than tab, after '#' in shell-script copyright notices.
99         Suggested by Bruno Haible.
100
101 2003-08-15  Jim Meyering  <jim@meyering.net>
102         and Paul Eggert  <eggert@twinsun.com>
103
104         Merge from coreutils.
105         * readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
106         member but strut utmpx does not.  Needed for AIX 4.3.3.
107         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
108
109 2003-08-15  Jim Meyering  <jim@meyering.net>
110
111         Merge from coreutils.
112         * xgethostname.c: Include <stdlib.h>.
113         (xghostname): Don't exit for anything other than memory-related
114         failure; just return NULL.
115         * userspec.c: Include "posixver.h".
116         (parse_user_spec): Accept `.' as a separator only
117         in pre-POSIX-200112 mode.
118         * strtoimax.c: Use #elif rather than #else #if.
119         * strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
120         Remove function, now that we can rely on a working tzset function.
121         [!_LIBC]: Ensure that the required autoconf test has been run.
122         [!defined _NL_CURRENT && HAVE_STRFTIME]:
123         Use underlying_strftime for %r.
124         * sha.c: Merge in some clean-up and optimization changes from glibc.
125         * sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
126         Ensure that it is a multiple of 64.
127         Rearrange loop exit tests so as to avoid performing an
128         additional fread after encountering an error or EOF.
129         * realloc.c: Update copyright date.
130
131 2003-08-14  Jim Meyering  <jim@meyering.net>
132
133         Merge from coreutils.
134         * obstack.h: Whitespace changes.
135         * mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
136         and xcalloc return values.
137         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
138         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
139         hang on OSF/1 5.1 for DIR on both local and remote file systems.
140         Reported by (and fix confirmed by) Nelson H. F. Beebe.
141         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
142         error from mntctl.
143         Use mntctl's return value to drive the entry-processing loop, since
144         we can't rely on the value of the vmt_length member in the last
145         entry.  On some systems doing so could result in exhausting
146         virtual memory.  Based in part on a patch from Mike Jetzer.
147
148 2003-08-14  Jim Meyering  <jim@meyering.net>
149         and Paul Eggert  <eggert@twinsun.com>
150
151         Merges from coreutils, plus other fixes.
152         * physmem.c: Merge in portability changes from gcc/libiberty
153         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
154         for credits and details.  Thanks to Kaveh Ghazi for helping
155         to keep these files in sync.
156         (ARRAY_SIZE): Define it.
157         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
158         * memcasecmp.c: Remove unnecessary parentheses after 'defined'.
159         (memcasecmp): Don't assume size_t fits in unsigned int.
160         Remove casts and duplicate code.
161         * md5.c: Include <string.h> and <stdlib.h> unconditionally.
162         (memcpy): Remove definition.
163         Merge in some clean-up and optimization changes from glibc.
164         [BLOCKSIZE]: Move definition to top of file.
165         Ensure that it is a multiple of 64.
166         Rearrange loop exit tests so as to avoid performing an
167         additional fread after encountering an error or EOF.
168         * md5.h (md5_uintptr): Define.
169         * makepath.c (CLEANUP_CWD): Report an error if we failed to
170         return to the initial working directory.  Preserve errno
171         for caller.
172         * idcache.c: Include "xalloc.h".
173         (xmalloc, xrealloc): Remove decls.
174         (getuser): Remove casts no longer required in C89.
175         * human.c: Include stdio.h, for sprintf.
176         * group-member.c: Include "xalloc.h".
177         (xmalloc, xrealloc): Remove decls.
178         (get_group_info): Remove casts no longer required in C89.
179         * getusershell.c (readname): Remove casts no longer required in C89.
180         * gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
181         * getline.c: Whitespace fix, from coreutils.
182
183 2003-08-13  Paul Eggert  <eggert@twinsun.com>
184
185         * exclude.c: Include <ctype.h>
186         (IN_CTYPE_DOMAIN): New macro.
187         (is_space): New fn.
188         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
189         and empty lines.
190
191         * argp-help.c, argp-parse.c, config.charset, getopt.h:
192         Undo previous (whitespace-only) change.
193
194 2003-08-12  Paul Eggert  <eggert@twinsun.com>
195
196         * argp-help.c, argp-parse.c, config.charset, getopt.h:
197         Normalize leading white space and remove trailing white space.
198         * ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
199         notice, as per ../config/srclist-update.
200
201         Merge from coreutils.
202         * euidaccess.h: New file.
203         * euidaccess.c: Include it.
204         * .cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
205         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
206         * regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
207
208 2003-08-11  Bruno Haible  <bruno@clisp.org>
209
210         * vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
211         (vasnprintf): Use it instead of wcslen.
212
213 2003-08-11  Bruno Haible  <bruno@clisp.org>
214
215         * stdbool_.h (_Bool): Undo last change; instead use a negative enum
216         value to ensure that _Bool promotes to int. Use #define for _Bool when
217         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
218
219 2003-08-10  Karl Berry  <karl@gnu.org>
220
221         * regex.h: update from libc (whitespace fix).
222
223 2003-08-09  Paul Eggert  <eggert@twinsun.com>
224
225         Merge some files from coreutils.  These changes were
226         originally made by Jim Meyering.
227         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
228         many older Unixes require this.
229         * lib/alloca.c (alloca): Remove cast to argument of free;
230         no longer needed in C89.
231         * lib/alloca_.h, lib/regex.h: Fix white space to match
232         what GNU indent does.
233
234 2003-08-05  Paul Eggert  <eggert@twinsun.com>
235
236         * bumpalloc.h: Remove.
237
238 2003-08-04  Paul Eggert  <eggert@twinsun.com>
239
240         * getloadavg.c: Change copyright notice and spacing to conform to
241         GNU coding style.
242
243         Merge from coreutils.
244         * error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is 1.
245         From glibc.
246         * getdate.y (date): Also accept dates like May-23-2003; suggestion
247         from Karl Berry, implemented by Jim Meyering.
248         * getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
249         from Dmitry V. Levin.
250         Remove anachronistic cast of xrealloc.
251         * fnmatch_.h (__const): Remove.  Use 'const'.
252         * fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
253         type. Otherwise, it wouldn't compile with at least /bin/cc on
254         ymp-cray-unicos9.0.2.X.
255         Combine two mostly-identical uses of alloca into one.
256         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
257
258 2003-08-04  Dave Love <d.love@dl.ac.uk>
259
260         [From Emacs.]
261
262         * getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
263         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
264         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
265         obsolete NLIST_NAME_UNION.
266         [__GNU__]: Undef BSD and FSCALE.
267         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
268
269 2003-08-03  Paul Eggert  <eggert@twinsun.com>
270
271         * stdbool_.h (_Bool): Make it signed char, instead of
272         an enum type, so that it's guaranteed to promote to int.  See:
273         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
274
275 2003-07-31  Paul Eggert  <eggert@twinsun.com>
276
277         * strerror.c: Include config.h, limits.h.  Declare sprintf.
278         (strerror): Don't assume that a printable int fits in 14 bytes.
279
280 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
281             Bruno Haible  <bruno@clisp.org>
282
283         * getline.h (getline, getdelim): Change return type to ssize_t.
284         * getline.c (getline, getdelim): Likewise.
285         Remove _GNU_SOURCE define; now it's defined in config.h through
286         m4/getline.m4.
287
288 2003-07-22  Paul Eggert  <eggert@twinsun.com>
289
290         * xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
291         over-parenthesization in macros.
292
293         Sync with coreutils.
294
295         * xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
296         required by C99.
297
298         Use `exit_failure' for xalloc and xmemcoll instead of their own
299         private exit-failure variables.
300         * xalloc.h (xalloc_exit_failure): Remove.
301         * xmalloc.c: Likewise.  Include exitfail.h.
302         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
303         * xmemcoll.h (xmemcoll_exit_failure): Remove.
304         * xmemcoll.c: Likewise.  Include exitfail.h.
305         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
306
307 2003-07-18  Paul Eggert  <eggert@twinsun.com>
308
309         * closeout.h (close_stdout_set_status, close_stdout_status): Remove.
310         * closeout.c: Likewise.  Include "closeout.h" right after config.h,
311         to test that it can stand by itself.  Include "exitfail.h".
312         Clients should set exit_failure instead.
313         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
314
315 2003-07-18  Andreas Schwab  <schwab@suse.de>
316
317         * memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
318
319 2003-07-18  Bruno Haible  <bruno@clisp.org>
320
321         * getndelim2.h: New file.
322         * getndelim2.c: Make into a module of its own. Include config.h,
323         getndelim2.h.
324         (getndelim2): Make non-static. Change return type to ssize_t.
325         * getline.h: Change argument names.
326         * getline.c: Include getndelim2.h instead of getndelim2.c.
327         * getnline.c: Include getndelim2.h.
328
329 2003-07-17  Bruno Haible  <bruno@clisp.org>
330
331         * Makefile.am: Remove file.
332         * Makefile.in: Remove file.
333
334 2003-07-17  Bruno Haible  <bruno@clisp.org>
335
336         * getnline.h: New file.
337         * getnline.c: New file.
338         * getndelim2.c: New file, extracted from getline.c.
339         (getndelim2): Renamed from getdelim2, with added nmax argument.
340         * getline.c: Include getndelim2.c.
341         (getdelim2): Moved out to getndelim2.c.
342         (getline, getdelim): Update.
343
344 2003-07-15    <karl@gnu.org>
345
346         * vasnprintf.c: update from gettext.
347
348 2003-07-15  Jim Meyering  <jim@meyering.net>
349
350         * makepath.c (make_path): Enclose diagnostic in _(...).
351
352 2003-07-14  Paul Eggert  <eggert@twinsun.com>
353
354         * asnprintf.c, asprintf.c, config.charset, gettext.h,
355         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
356         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
357         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
358         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
359         updated automatically by ../config/srclist-update.  This changes
360         their license from LPGL to GPL.
361
362 2003-07-14  Jim Meyering  <jim@meyering.net>
363
364         Don't emit diagnostics.  Let callers do that.
365         * save-cwd.c: Don't include "error.h".
366         (save_cwd): Don't call error.  Ensure that errno is valid
367         when returning nonzero.
368
369         * save-cwd.h (restore_cwd): Update prototype.
370         * save-cwd.c (restore_cwd): Remove two parameters.
371         Simplify.  Don't call error upon failure.  Let callers do that.
372         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
373         when auditing is enabled.  But don't bother updating the #if.
374
375 2003-07-14  Simon Josefsson  <jas@extundo.com>
376
377         * mempcpy.h: New file.
378         * mempcpy.c: New file.
379
380 2003-07-14  Paul Eggert  <eggert@twinsun.com>
381
382         * ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
383         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
384         unicodeio.c, unicodeio.h, unlocked-io.h:
385         Switch from LGPL to GPL.
386
387 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
388
389         * obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
390         it breaks C++ compilation.
391         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
392
393 2003-07-10  Jim Meyering  <jim@meyering.net>
394
395         * vasnprintf.c: Remove trailing blanks.
396         Make cpp indentation consistent.
397
398 2003-07-09  Paul Eggert  <eggert@twinsun.com>
399
400         * alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
401         posixver.c, strftime.c, strnlen.c, strverscmp.c:
402         Switch from LGPL to GPL.
403
404 2003-07-07  Paul Eggert  <eggert@twinsun.com>
405
406         * mktime.c: Fix some boundary cases and remove need for floating point.
407
408         Issue a compile-time diagnostic if time_t is floating point, or if
409         two's complement arithmetic is not in effect, or if arithmetic
410         right shift does not propagate the sign.  These assumptions were
411         all in the original code but they weren't checked.
412
413         (TIME_T_MIDPOINT, verify): New macros.
414         (__isleap): Remove; it has integer overflow problems.
415         (leapyear): New function, without those problems.
416         (ydhms_tm_diff): Remove; splitting into two parts.
417         (ydhms_diff): New function, containing the arithmetic part of
418         the old ydhms_tm_diff function.  Issue a compile-time
419         diagnostic if we are not using C99 integer division.
420         Avoid casts when possible.
421         (guess_time_tm): New function, containing the checking part of
422         the old ydhms_tm_diff function.  Return the new value, rather than
423         the difference between it and the old.  Accept a new argument T
424         so that *T specifies the old value.  Check for overflow in the result.
425
426         (__mktime_internal): Use a time_t offset, not a long int offset.
427         This undoes the 2003-06-04 change, which is no longer needed now
428         that we have better overflow checking.
429         (localtime_offset): Likewise.
430
431         (__mktime_internal): Avoid harmful overflow on hosts where time_t
432         and long are 64-bit but int is only 32-bit.
433         (ydhms_diff): Use long int to store year1 and yday1.
434         Issue a compile-time diagnostic if long int is not wide enough.
435
436         (__mktime_internal): Use long int to store adjusted year and yday.
437         Use plain C rather than preprocessor commands, if that doesn't
438         affect efficiency.
439         Check for overflow (and try to repair) after each probe
440         rather than checking only at the very end.  This avoids some bugs
441         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
442         does not equal GMT offset at maximum time).
443         Use integer to check for overflow rather than floating point; this
444         is more portable to non-IEEE hosts, and is a tad faster.
445         When we detect that we are oscillating between two values,
446         don't check whether tm_isdst has the requested value, since
447         we already know the answer.  When tm_isdst has the wrong value,
448         use a different heuristic to find the right one, based on the
449         extreme values actually observed in practice in tz2003a,
450         rather than the (overly optimistic) "previous 3 calendar quarters".
451
452         (not_equal_tm, print_tm, check_result): Use "const T" rather than
453         "T const" to accommodate glibc style.
454         (check_result): Use less-confusing report format.  "long" -> "long int.
455         (main): Likewise.
456         Don't loop if the iteration overflows time_t.
457         Allow a negative step in the iteration.
458
459 2003-07-01  Paul Eggert  <eggert@twinsun.com>
460
461         * xreadlink.c: Include <sys/types.h> unconditionally, instead of
462         having it depend on HAVE_SYS_TYPES_H.
463
464 2003-06-25  Bruno Haible  <bruno@clisp.org>
465
466         * readlink.c: New file.
467
468 2003-06-20  Bruno Haible  <bruno@clisp.org>
469
470         Assume C89, so PARAMS isn't needed.
471         * unicodeio.h (PARAMS): Remove.
472         * unicodeio.c: Don't use PARAMS.
473
474 2003-06-18  Jim Meyering  <jim@meyering.net>
475
476         Merge changes from coreutils.
477         * readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
478         Remove explicit declarations of xmalloc and realloc.
479         Include xalloc.h.
480         (read_utmp): Remove anachronistic cast of xmalloc.
481
482 2003-06-17  Paul Eggert  <eggert@twinsun.com>
483
484         Assume C89, so PARAMS isn't needed.
485         * backupfile.h (PARAMS): Remove.  All uses removed.
486         * closeout.h, dirname.h, filemode.h, fsusage.h, getdate.h, getline.h,
487         group-member.h, hard-locale.h, hash.h, linebuffer.h, long-options.h,
488         makepath.h, memcasecmp.h, memcoll.h, modechange.h, mountlist.h,
489         path-concat.h, physmem.h, posixtm.h, quote.h, readutmp.h, same.h,
490         save-cwd.h, savedir.h, stdio-safer.h, strtoimax.c, strverscmp.h,
491         unistd-safer.h, version-etc.h, xalloc.h, xreadlink.h, xstrtod.h,
492         xstrtol.h: Likewise.
493         * filemode.h, hard-locale.h, memcoll.h, modechange.h, physmem.h,
494         same.h, strverscmp.h: Do not include config.h; no longer needed.
495         Anyway, config.h should always be included before any other file.
496
497 2003-06-11  Simon Josefsson  <jas@extundo.com>
498
499         * sysexit_.h: New file.
500
501 2003-05-20  Derek Price  <derek@ximbiot.com>
502
503         * stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is necessary.
504
505 2003-06-10  Simon Josefsson  <jas@extundo.com>
506
507         * strchrnul.h: New file.
508         * strchrnul.c: New file.
509
510 2003-06-10  Simon Josefsson <jas@extundo.com>
511
512         * argp.h: New file, from glibc.
513         * argp-ba.c: New file, from glibc.
514         * argp-eexst.c: New file, from glibc.
515         * argp-fmtstream.c: New file, from glibc.
516         * argp-fmtstream.h: New file, from glibc.
517         * argp-fs-xinl.c: New file, from glibc.
518         * argp-help.c: New file, from glibc.
519         * argp-namefrob.h: New file, from glibc.
520         * argp-parse.c: New file, from glibc.
521         * argp-pv.c: New file, from glibc.
522         * argp-pvh.c: New file, from glibc.
523         * argp-xinl.c: New file, from glibc.
524
525 2003-06-07  Jim Meyering  <jim@meyering.net>
526
527         * readtokens.h: Put `Free Software Foundation, Inc.'
528         in place of my name in the copyright comment.
529         Remove definition and uses of __P.
530
531         From coreutils.
532         * stat.c: Don't declare xmalloc explicitly.
533         Instead, include "xalloc.h".
534         * readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
535         xrealloc, and xcalloc return values.
536         * xgetcwd.c (xgetcwd): Include "xgetcwd.h".
537         Improve comment.
538         * xgetcwd.h: Remove definition/uses of PARAMS.
539
540 2003-06-06  Jim Meyering  <jim@meyering.net>
541
542         * stdbool_.h: Renamed from stdbool.h.in.
543
544 2003-06-06  Jim Meyering  <jim@meyering.net>
545
546         Merge from coreutils.
547         * same.c: (same_name): Declare *_basename locals to be `const'.
548         Consolidate declarations and initializations of *_base* locals.
549
550         Merge from coreutils.
551         This avoids a core dump on systems without GNU putenv,
552         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
553         * putenv.c (__set_errno, LOCK, UNLOCK): Define.
554         (unsetenv): New static function, from GNU libc.
555         (rpl_putenv): Use it.
556
557         * modechange.c: Remove trailing blanks.
558
559         Merge from coreutils.
560         * fsusage.c: Remove declaration of statfs.
561         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
562
563         * posixtm.c: Include <stdbool.h> unconditionally.
564
565 2003-06-05  Paul Eggert  <eggert@twinsun.com>
566
567         * mktime.c (__mktime_internal): When resolving a tm_isdst
568         mismatch, look in future quarters as well as past.  This fixes a
569         bug when processing fall-backwards gaps immediately after a long
570         period of daylight-saving time.
571
572         * mktime.c: Assume freestanding C89 or better.
573         (HAVE_LIMITS_H): Remove.  Assume it's 1.
574         (__P): Remove; not used.
575         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
576         (mktime, not_equal_tm, print_tm, check_result,
577         main): Use prototypes.  Use const * where appropriate.
578         (main): Fix typo in testing code that uncovered by above changes.
579         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
580
581 2003-06-04  Paul Eggert  <eggert@twinsun.com>
582
583         * mktime.c: Fix Debian bug 177940
584         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
585         (localtime_offset): Now long int, not time_t, because we want it
586         to be guaranteed to be signed.  All uses changed.
587         (__mktime_internal): If overflow would occur when adding offset,
588         don't add it.
589
590         Merge 'human' changes from coreutils.  Rewrite to support
591         locale-specific notations like thousands separators.
592         * human.c: Simplify authorship notice.
593         Include human.h immediately after config.h.
594         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
595         <limits.h>: Do not include, since human.h does.
596         (SIZE_MAX, UINTMAX_MAX): New macros.
597         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
598         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
599         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
600         (power_letter): Renamed from suffixes.
601         (generate_suffix_backwards): Remove.
602         (adjust_value): Now takes int style (because of human.h changes)
603         and long double value (for greater precision on some platforms).
604         (group_number): New function.
605         (human_readable): Use it.  Use integer options, not enum.
606         Put the options before the sizes in the arg list.
607         Support all the new options.
608         The old human_readable function has been removed;
609         use inttostr.h instead.
610         (human_readable, default_block_size, humblock):
611         Use uintmax_t, not int, for block sizes.
612         (human_readable_inexact, block_size_types): Remove.
613         (block_size_opts): New constant.
614         (human_options): Renamed from human_block_size, with new signature
615         that allows block sizes up to UINTMAX_MAX.  All callers changed.
616         * human.h: Add copyright and authorship notice.
617         Include <limits.h> and <stdbool.h> unconditionally.
618         (PARAMS): Remove.  All uses removed.
619         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
620         (enum human_inexact_style): Remove tag; now a nameless enum.
621         (human_floor, human_ceiling, human_round_to_even): Now have
622         values 2, 0, 1 rather than -1, 1, 0.
623         (human_group_digits, human_suppress_point_zero, human_autoscale,
624         human_base_1024, human_SI, human_B): New constants.
625         (human_readable_inexact, human_block_size): Remove.
626         (human_readable): Size args are now uintmax_t, not int.
627         (human_options): New decl.
628
629         * exclude.c: (new_exclude, add_exclude): Remove casts that are
630         unnecessary now that we assume C89 or better.  This change
631         imported from coreutils.
632
633         * mktime.c (__mktime_internal): Do not reject negative timestamps
634         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
635         in the 2003-05-30 sync from glibc.
636
637         .h files should stand alone, but we shouldn't include <sys/types.h>
638         if we can get away with just <stddef.h>.
639
640         * __fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
641         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
642         rather than <sys/types.h>, as we merely need size_t.
643         * dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
644         to get size_t.
645         * hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
646         Include <stdio.h>, to get FILE.
647         * memcasecmp.c: Don't include <sys/types.h>, as we can assume
648         memcasecmp.h has included <stddef.h> and all we need is size_t.
649         * memcoll.c: Include "memcoll.h", which gets us size_t and checks
650         our interface, instead of including <sys/types.h>
651
652 2003-06-02  Paul Eggert  <eggert@twinsun.com>
653
654         [from coreutils]
655         Fix some minor time-related bugs with POSIX time arguments.
656         Some valid time stamps were being rejected (notably -1, and
657         time stamps before 1900 on 64-bit hosts).  And some invalid
658         time stamps were being accepted, e.g. September 31.
659
660         * posixtm.h (posixtime): Return bool instead of time_t, so
661         that we can return (time_t) -1 successfully.
662         * posixtm.c: Likewise.
663         [HAVE_STDBOOL_H]: Include <stdbool.h>.
664         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
665         (t): Remove static var.
666         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
667         of static var.  All uses changed.
668         (year): Do not reject years before 1900; they can occur with
669         64-bit time_t.
670         (posix_time_parse): Do not check for out-of-range components;
671         that is now the caller's responsibility, since our checks were
672         only approximations.
673         (posixtime): Use mktime to check for out-of-range components,
674         since it knows them exactly.
675         If mktime returns (time_t) -1, check whether an error actually occurred
676         by invoking localtime on -1.
677         (main) [TEST_POSIXTIME]: Check for input data errors, and report
678         posixtime failures better.
679         Improve the test data (in comments only).
680
681 2003-05-30    <karl@gnu.org>
682
683         * mktime.c: update from libc.
684
685 2003-05-30  Bruno Haible  <bruno@clisp.org>
686
687         * config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
688         * localcharset.h: Likewise.
689         * localcharset.c: Likewise.
690
691 2003-05-28  Paul Eggert  <eggert@twinsun.com>
692
693         Assume the headers required for C89 freestanding compilers.
694         * addext.c, backupfile.c, fsusage.c, human.c, pathmax.h,
695         rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h>
696         without checking for HAVE_LIMITS_H.
697         * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c,
698         xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed
699         to do that.
700         * fatal.c: Include <stdarg.h> without checking for __STDC__.
701         * exclude.c: Include <stdbool.h> unconditionally.
702         * tempname.c: Include <stddef.h> unconditionally.
703         * hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
704         * modechange.c, rpmatch.c (NULL): Don't define, since
705         <stddef.h> does that.
706         * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
707         * safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
708         * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed.
709         * xstrtol.c: Likewise.
710         * safe-read.c: Remove TYPE_SIGNED; no longer needed.
711         * savedir.c: Include <stddef.h> instead of defining NULL.
712
713         * addext.c (addext): Use assignment rather than cast, to avoid
714         warnings on some platforms.
715
716         * mktime.c (__mktime_internal): Do not reject negative timestamps
717         arbitrarily.
718
719 2003-05-10  Bruno Haible  <bruno@clisp.org>
720
721         * linebreak.c (iconv_string_length): Don't return -1 just because the
722         string is longer than 4 KB.
723
724 2003-05-12  Jim Meyering  <jim@meyering.net>
725
726         * strftime.c (my_strftime): Let the `-' (no-pad) flag affect
727         the space-padded-by-default conversion specifiers, %e, %k, %l.
728
729 2003-05-03  Bruno Haible  <bruno@clisp.org>
730
731         Upgrade to Unicode-4.0.
732         * linebreak.c (nonspacing_table_data): Change width of U+00AD,
733         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
734         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
735         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
736         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
737         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
738         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
739         Change width of U+E0100..U+E01EF from 1 to 0.
740
741 2003-04-25  Bruno Haible  <bruno@clisp.org>
742
743         * copy-file.c: Include <stddef.h>, for size_t.
744
745 2003-04-25  Jim Meyering  <jim@meyering.net>
746
747         * copy-file.c (copy_file_preserving): Declare buf_size to be
748         of type size_t, not int.
749
750 2003-04-11  Jim Meyering  <jim@meyering.net>
751
752         Merge changes from Coreutils.
753
754         2003-03-22  Jim Meyering  <jim@meyering.net>
755
756         * strftime.c (widen): Cast alloca return value to proper type.
757
758         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
759
760         From GNU libc.
761         * strftime.c (my_strftime): Handle very large width
762         specifications for numeric values correctly.  Improve checks for
763         overflow.
764
765         2003-01-19  Jim Meyering  <jim@meyering.net>
766
767         * strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical definitions.
768         (nl_get_alt_digit) [! defined my_strftime]: Define.
769         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
770         _nl_get_alt_digit and _nl_get_walt_digit.
771
772         * strftime.c (my_strftime): Merge in locale-related changes from libc.
773         These changes have no effect outside of _LIBC.
774
775 2003-04-10  Bruno Haible  <bruno@clisp.org>
776
777         * findprog.h: New file, from GNU gettext.
778         * findprog.c: New file, from GNU gettext.
779
780 2003-04-05  Jim Meyering  <jim@meyering.net>
781
782         Merge changes from Coreutils.
783
784         * exclude.h (PARAMS): Remove definition and uses.
785         * exclude.c: Remove uses of `PARAMS'.
786
787         * dirname.c [TEST_DIRNAME]: Update build instructions for test.
788         Add test-cases for DOS filenames. Declare program_name.
789         (main): Set up program_name.  Patch by Rich Dawe.
790
791         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
792         error from mntctl.
793         Use mntctl's return value to drive the entry-processing loop, since
794         we can't rely on the value of the vmt_length member in the last
795         entry.  On some systems doing so could result in exhausting
796         virtual memory.  Based in part on a patch from Mike Jetzer.
797
798 2003-04-04  Bruno Haible  <bruno@clisp.org>
799
800         * linebreak.h: New file, from GNU gettext.
801         * linebreak.c: New file, from GNU gettext with slight modifications.
802         * lbrkprop.h: New file, from GNU gettext.
803
804 2003-04-03  Bruno Haible  <bruno@clisp.org>
805
806         * utf8-ucs4.h: New file, from GNU gettext.
807         * utf16-ucs4.h: New file, from GNU gettext.
808         * ucs4-utf8.h: New file, from GNU gettext.
809         * ucs4-utf16.h: New file, from GNU gettext.
810
811 2003-04-02  Bruno Haible  <bruno@clisp.org>
812
813         * binary-io.h: New file, from GNU gettext.
814
815 2003-04-01  Bruno Haible  <bruno@clisp.org>
816
817         * pathname.h: New file, from GNU gettext.
818         * concatpath.c: New file, from GNU gettext.
819
820 2003-03-30  Bruno Haible  <bruno@clisp.org>
821
822         * copy-file.c (copy_file_preserving): Don't set owner if the function
823         chown() doesn't exist.
824
825 2003-03-28  Bruno Haible  <bruno@clisp.org>
826
827         * copy-file.h: New file, from GNU gettext.
828         * copy-file.c: New file, from GNU gettext.
829
830 2003-03-18  Jim Meyering  <jim@meyering.net>
831
832         * quote.c (quote_n): Fix typo in comment.
833
834 2003-03-14  Jim Meyering  <jim@meyering.net>
835
836         Merge changes from Coreutils.
837         * obstack.h (obstack_object_size): Declare temporary, __o,
838         to be const, in order to avoid warnings.
839         (obstack_room): Likewise.
840         (obstack_empty_p): Likewise.
841
842 2003-03-13  Paul Eggert  <eggert@twinsun.com>
843
844         Merge changes from Bison.
845         * obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
846         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
847         when compiling Bison 1.875's `bitset bset = obstack_alloc
848         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
849         * hash.c: Include <stdbool.h> unconditionally.
850
851 2003-03-09  Paul Eggert  <eggert@twinsun.com>
852
853         * argmatch.c (EXIT_FAILURE): Define if the system doesn't.
854         Reported by Bruce Becker; see:
855         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
856
857 2003-03-03  Paul Eggert  <eggert@twinsun.com>
858             Bruno Haible  <bruno@clisp.org>
859
860         * mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
861         Reported by John Hughes, see
862         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
863
864 2003-02-19  Paolo Bonzino  <bonzini@gnu.org>
865
866         * poll_.h: New file.
867         * poll.c: New file.
868
869 2003-02-18  Paolo Bonzino  <bonzini@gnu.org>
870
871         * mathl.h: New file.
872         * acosl.c: New file.
873         * asinl.c: New file.
874         * atanl.c: New file.
875         * ceill.c: New file.
876         * cosl.c: New file.
877         * expl.c: New file.
878         * floorl.c: New file.
879         * frexpl.c: New file.
880         * ldexpl.c: New file.
881         * logl.c: New file.
882         * sincosl.c: New file.
883         * sinl.c: New file.
884         * sqrtl.c: New file.
885         * tanl.c: New file.
886         * trigl.c: New file.
887         * trigl.h: New file.
888
889 2003-02-17  Bruno Haible  <bruno@clisp.org>
890
891         * mkdtemp.h: New file, from GNU gettext.
892         * mkdtemp.c: New file, from GNU gettext.
893
894 2003-01-31  Bruno Haible  <bruno@clisp.org>
895
896         * rename.c: #undef rename before defining rpl_rename.
897         * strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
898
899 2003-01-30  Bruno Haible  <bruno@clisp.org>
900
901         * printf-args.h: New file, from GNU gettext.
902         * printf-args.c: New file, from GNU gettext.
903         * printf-parse.h: New file, from GNU gettext.
904         * printf-parse.c: New file, from GNU gettext.
905         * vasnprintf.h: New file, from GNU gettext.
906         * vasnprintf.c: New file, from GNU gettext.
907         * asnprintf.c: New file, from GNU gettext.
908         * vasprintf.h: New file, from GNU gettext with modifications.
909         * vasprintf.c: New file, from GNU gettext.
910         * asprintf.c: New file, from GNU gettext.
911
912 2003-01-29  Bruno Haible  <bruno@clisp.org>
913
914         * stpncpy.h: New file, from GNU gettext with modifications.
915         * stpncpy.c: New file, from GNU gettext with modifications.
916
917 2003-01-28  Bruno Haible  <bruno@clisp.org>
918
919         * c-ctype.h: New file, from GNU gettext, with changes suggested by
920         Paul Eggert.
921         * c-ctype.c: New file, from GNU gettext, with changes suggested by
922         Paul Eggert.
923
924 2003-01-27  Bruno Haible  <bruno@clisp.org>
925
926         * xsetenv.h: New file, from GNU gettext.
927         * xsetenv.c: New file, from GNU gettext.
928
929 2003-01-23  Bruno Haible  <bruno@clisp.org>
930
931         * minmax.h: New file, from GNU gettext, with comments from Paul Eggert.
932
933 2003-01-22  Bruno Haible  <bruno@clisp.org>
934
935         * exit.h: New file, from GNU gettext.
936
937 2003-01-11  Bruno Haible  <bruno@clisp.org>
938
939         * stpcpy.h (stpcpy): Use ANSI C function declarations.
940         * strcase.h (strcasecmp, strncasecmp): Likewise.
941
942 2003-01-14  Jim Meyering  <jim@meyering.net>
943
944         * same.c (same_name): Tweak a comment.
945
946 2003-01-11  Bruno Haible  <bruno@clisp.org>
947
948         * same.c (same_name): Reorder tests so as to avoid calling stat()
949         when a string comparison is sufficient.
950
951 2003-01-11  Bruno Haible  <bruno@clisp.org>
952
953         * readtokens.c (readtoken): Cast character to 'unsigned char', not
954         'unsigned int'.
955
956 2003-01-11  Bruno Haible  <bruno@clisp.org>
957
958         * hash-pjw.c: Add comment about low quality of this function.
959
960 2003-01-12  Paul Eggert  <eggert@twinsun.com>
961
962         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
963         to avoid collisions with libcurses and libreadline.
964
965         * Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
966         * getstr.h, getstr.c: Remove.
967         * getline.c: Include "getline.h", to check interface.
968         Move body of old getstr.c here: this defines MIN_CHUNK and
969         declares getdelim2, which is renamed from getstr.
970         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
971
972         * linebuffer.c (readlinebuffer): Renamed from readline.
973         All uses changed.
974         * linebuffer.h: Likewise.
975         (readline): Remove backward-compatibility macro.
976
977 2003-01-12  Jim Meyering  <jim@meyering.net>
978
979         * makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
980
981 2003-01-10  Bruno Haible  <bruno@clisp.org>
982
983         * alloca_.h: New file.
984         * getdate.y: Unconditionally include alloca.h.
985         * makepath.c: Likewise.
986         * setenv.c: Likewise.
987         * userspec.c: Likewise.
988
989 2003-01-09  Bruno Haible  <bruno@clisp.org>
990
991         * stdbool.h.in: New file.
992
993 2003-01-08  Bruno Haible  <bruno@clisp.org>
994
995         * safe-read.c: Include specification header first, to ensure its
996         selfcontainedness.
997         * full-write.c: Likewise.
998
999 2003-01-08  Jim Meyering  <jim@meyering.net>
1000
1001         * full-write.c: Undefine and define-away `const' after inclusion
1002         of errno.h, not before.  Suggestion from Bruno Haible.
1003
1004 2003-01-07  Jim Meyering  <jim@meyering.net>
1005
1006         * full-write.c: Rework so that it may serve to define full_read, too.
1007         * full-read.c: Simply #define FULL_READ and include full-write.c.
1008
1009 2003-01-06  Jim Meyering  <jim@meyering.net>
1010
1011         * version-etc.c: Update year in translatable copyright string.
1012
1013 2002-12-25  Bruno Haible  <bruno@clisp.org>
1014
1015         * strtoimax.c: Include <stdint.h> as an alternative to <inttypes.h>.
1016         * xstrtol.h: Likewise.
1017         * xstrtoimax.c: Likewise.
1018         * xstrtoumax.c: Likewise.
1019         * human.h: Likewise.
1020
1021         * tempname.c: Include <inttypes.h> too. Avoids a compilation error
1022         on systems that have <inttypes.h> but not <stdint.h>.
1023
1024 2002-12-31  Paul Eggert  <eggert@twinsun.com>
1025
1026         * memcoll.c (memcoll): Fall back on a simple algorithm using
1027         memcmp if strcoll doesn't work.
1028
1029 2002-12-23  Bruno Haible  <bruno@clisp.org>
1030
1031         * localcharset.h: New file.
1032         * localcharset.c: Include it.
1033         * unicodeio.c: Likewise.
1034
1035 2002-12-22  Bruno Haible  <bruno@clisp.org>
1036
1037         * utime.c (utime_null): No need to call ftruncate if the file was
1038         nonempty.
1039
1040 2002-12-23  Bruno Haible  <bruno@clisp.org>
1041
1042         * memcoll.c (STRCOLL): New macro.
1043         (memcoll): Use it.
1044
1045 2002-12-22  Bruno Haible  <bruno@clisp.org>
1046
1047         * getstr.h (getstr): Define, to avoid clash with libcurses.
1048         * linebuffer.h (readline): Define, to avoid clash with libreadline.
1049
1050 2002-12-22  Bruno Haible  <bruno@clisp.org>
1051
1052         * getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
1053
1054 2002-12-23  Bruno Haible  <bruno@clisp.org>
1055
1056         * getline.h: Include <stddef.h>, for size_t.
1057
1058         * unicodeio.h: Include <stddef.h>, for size_t.
1059         * unicodeio.c: Don't include <stddef.h>.
1060
1061 2002-12-17  Bruno Haible  <bruno@clisp.org>
1062
1063         * canon-host.c (strdup): Remove unused declaration.
1064
1065         * fsusage.c: Include full_read.h.
1066         (get_fs_usage): Use full_read instead of safe_read.
1067
1068         * utime.c (utime_null): Use SAFE_READ_ERROR.
1069
1070 2002-12-11  Bruno Haible  <bruno@clisp.org>
1071
1072         * setenv.h: Rewritten to cope with systems that have setenv() but not
1073         unsetenv().
1074         * setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
1075         modifications:
1076
1077         2002-12-11  Bruno Haible  <bruno@clisp.org>
1078
1079                 * setenv.c (alloca): Fall back to malloc.
1080                 (freea): New macro.
1081                 (setenv): Use freea() to free memory allocated with alloca().
1082
1083         2002-11-13  Bruno Haible  <bruno@clisp.org>
1084
1085                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
1086                 function declarations.
1087                 * unsetenv.c (unsetenv): Likewise.
1088
1089         2002-03-04  Bruno Haible  <bruno@clisp.org>
1090
1091                 Portability to AIX 4.3.3.
1092                 * unsetenv.c: New file, extracted from setenv.c.
1093                 * setenv.c: Move the unsetenv() function to unsetenv.c.
1094
1095         2001-12-20  Bruno Haible  <bruno@clisp.org>
1096
1097                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
1098                 use malloc instead. For SunOS 4.
1099
1100         2001-12-11  Bruno Haible  <bruno@clisp.org>
1101
1102                 * setenv.c: Declare alloca.
1103                 (compar_fn_t): New typedef.
1104                 (KNOWN_VALUE, STORE_VALUE): Use it.
1105
1106         * Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
1107         setenv.h.
1108
1109 2002-12-10  Paul Eggert  <eggert@twinsun.com>
1110
1111         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
1112         * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
1113         Choose values that are less likely to collide with system fnmatch
1114         options.
1115         * exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
1116         defined (e.g., a pure POSIX system).
1117         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
1118         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
1119
1120 2002-12-06  Jim Meyering  <jim@meyering.net>
1121
1122         * error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
1123
1124         Merge in changes from libc's misc/error.c, in preparation
1125         for the merge of gnulib's changes back into libc.
1126
1127         * error.c (_): Define only if not already defined.
1128         Move definition to follow all #include directives.
1129         Include unlocked-io.h only if !_LIBC.
1130         [_LIBC]: Include <libio/libioP.h>.
1131         [USE_IN_LIBIO]: Include <libio/iolibio.h>
1132         (fflush): Tweak definition to use INTUSE.
1133         (putc): Define.
1134
1135 2002-12-05  Paul Eggert  <eggert@twinsun.com>
1136
1137         * alloca.c [defined emacs]: Include "lisp.h".
1138         (xalloc_die) [defined emacs]: New macro.
1139         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
1140         [! defined emacs]: Include <xalloc.h>.
1141         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
1142         (pointer): Typedef to POINTER_TYPE *.
1143         (malloc): Remove decl; we now always use xmalloc.
1144         (alloca): Use old-style definition, since Emacs needs this.
1145         Check for arithmetic overflow when computing combined size.
1146
1147 2002-12-04  Paul Eggert  <eggert@twinsun.com>
1148
1149         Do not generate unlocked-io.h automatically, since it's easier to
1150         maintain it by hand.
1151
1152         * unlocked-io.h: New file, from GNU diffutils,
1153         but with proper copyright notice and attribution.
1154         * gen-uio: Remove.
1155         * Makefile.am: Add copyright notice.
1156         (libfetish_a_SOURCES): Add unlocked-io.h.
1157         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
1158         (DISTCLEANFILES, io_functions): Remove macros.
1159         (EXTRA_DIST): Remove gen_uio.
1160         (unlocked-io.h): Remove rule.
1161
1162 2002-12-04  Jim Meyering  <jim@meyering.net>
1163
1164         Reflect the fact that stat.c and lstat.c are no longer generated.
1165         * Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
1166         (DISTCLEANFILES): Likewise.
1167         (EXTRA_DIST): Likewise.
1168         (all_local): Don't depend on stat.c or lstat.c.
1169         (stat.c, lstat.c): Remove rules.
1170         (EXTRA_DIST): Remove xstat.in.
1171
1172         * xstat.in: Remove file.  Contents moved into stat.c.
1173         * stat.c: New file.  Contents mostly from xstat.in.
1174         * stat.c: Rework so that it may serve to define rpl_lstat, too.
1175         * lstat.c: New file. Simply #define LSTAT and include stat.c.
1176
1177         * safe-read.c: Rework so that it may serve to define safe_write, too.
1178         * safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
1179
1180 2002-12-03  Jim Meyering  <jim@meyering.net>
1181
1182         * safe-read.c, safe-write.c: Change variable names and comments, but
1183         not semantics, to minimize the differences between these two files.
1184         (safe_read): Change comment to mention SAFE_READ_ERROR.
1185
1186         * safe-read.c (IS_EINTR): Define.
1187         (safe_read): Use IS_EINTR in place of in-function cpp directives.
1188
1189 2002-12-02  Bruno Haible  <bruno@clisp.org>
1190
1191         * safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
1192         Define, taken from safe-read.c.
1193         (INT_MAX): Provide fallback.
1194         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
1195         * safe-write.h (SAFE_WRITE_ERROR): Define.
1196
1197         * safe-read.c (EINTR): Remove definition.
1198         (safe_read): Don't use EINTR if it is absent.
1199
1200 2002-12-02  Jim Meyering  <jim@meyering.net>
1201
1202         * safe-read.c (EINTR): Define.
1203         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
1204         (INT_MAX): Provide fallback.
1205         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
1206
1207         * safe-read.h (SAFE_READ_ERROR): Define.
1208
1209 2002-12-01  Jim Meyering  <jim@meyering.net>
1210
1211         * safe-read.c: (safe_read): Also exit the loop when read returns zero.
1212         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
1213
1214 2002-11-27  Paul Eggert  <eggert@twinsun.com>
1215
1216         * hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
1217         hash_rehash): Replace `if (limit <= value) abort ();' with
1218         `if (! (value < limit)) abort ();', for readability.
1219
1220 2002-11-26    <karl@gnu.org>
1221
1222         * strdup.c: copy from libc again, with jim's ok.
1223         * .cppi-disable: re-add strdup.c
1224
1225 2002-11-25    <karl@gnu.org>
1226
1227         * strtoll.c: copy from libc, meaning we now #include <strtol.c>
1228         instead of "strtol.c".
1229
1230 2002-11-25  Jim Meyering  <jim@meyering.net>
1231
1232         * mktime.c: Sync from libc, now that it has the latest fix.
1233
1234 2002-11-24    <karl@gnu.org>
1235
1236         * error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
1237         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
1238
1239 2002-11-24  Jim Meyering  <jim@meyering.net>
1240
1241         Update from coreutils:
1242
1243         * mktime.c: Merge in changes from libc.
1244
1245         Avoid a link-time failure on some Linux systems.
1246         * mktime.c (STATIC): Define to be empty (_LIBC) or `static' (otherwise).
1247         (__mon_yday): Declare with the STATIC attribute.
1248         (__mktime_internal): Likewise.
1249         Based on a report from Greg Schafer.
1250
1251 2002-11-23  Jim Meyering  <jim@meyering.net>
1252
1253         * sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
1254         Use `unsigned', not `int', as type of index.
1255
1256         * xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
1257
1258         * fsusage.c: Remove unneeded parentheses around operands of `defined'.
1259
1260 2002-11-22  Paul Eggert  <eggert@twinsun.com>
1261
1262         * hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
1263         hint that one should use `if (! x) abort ();' rather than `assert
1264         (x);', and anyway it's one less thing to worry about configuring.
1265         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
1266         hash_rehash, hash_insert): Use abort rather than assert.
1267
1268 2002-11-22  Paul Eggert  <eggert@twinsun.com>
1269
1270         * quotearg.h: Allow multiple inclusion by surrounding with
1271         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
1272         so that we can be included first.
1273         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
1274         * quotearg.c: Include quotearg.h immediately after config.h.
1275         No need to include stddef.h or sys/types.h any more.
1276         Surround local include files with "", not "<>".
1277         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
1278         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
1279         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
1280         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1281         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1282         (ISPRINT): Remove; no longer needed now that we assume C89.
1283
1284         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
1285         Preserve errno.
1286
1287         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
1288         quotearg_char): Use SIZE_MAX rather than
1289         (size_t) -1 when we are talking about "infinity".
1290
1291         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
1292
1293 2002-11-22  Bruno Haible  <bruno@clisp.org>
1294
1295         * safe-read.h: Assume C89. Add comments.
1296         (safe_read): Change return type to size_t.
1297         * safe-read.c (safe_read): Change return type to size_t. Handle byte
1298         counts > SSIZE_MAX correctly.
1299         * safe-write.h: New file.
1300         * safe-write.c: New file.
1301         * full-read.h: New file.
1302         * full-read.c: New file.
1303         * full-write.h: Assume C89. Add comments.
1304         * full-write.c: Include safe-write.h.
1305         (full_write): Rewritten to use safe_write.
1306         Suggested by Jim Meyering and Paul Eggert.
1307
1308 2002-11-21  Bruno Haible  <bruno@clisp.org>
1309
1310         Remove case insensitive option matching.
1311         * argmatch.h (argcasematch): Remove declaration.
1312         (ARGCASEMATCH): Remove macro.
1313         (__xargmatch_internal): Remove case_sensitive argument.
1314         (XARGMATCH): Update.
1315         (XARGCASEMATCH): Remove macro.
1316         * argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
1317         case_sensitive argument.
1318         (argcasematch): Remove function.
1319         (__xargmatch_internal): Remove case_sensitive argument.
1320         (main): Use XARGMATCH instead of XARGCASEMATCH.
1321
1322         * xmalloc.c: Change compile-time error message. Add comment about
1323         required autoconf version.
1324
1325 2002-11-21  Jim Meyering  <jim@meyering.net>
1326
1327         * strdup.c (strdup): Tweak comment and initial #if/#include.
1328
1329         Merge in changes from the coreutils.
1330
1331         2002-09-25  Paul Eggert  <eggert@twinsun.com>
1332         * fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>.
1333         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
1334         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
1335         int.  Work more efficiently if X is the same width as uintmax_t.
1336         Do not compare X to -1, to avoid bogus compiler warning.
1337         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
1338         Don't assume that f_frsize and f_bsize are the same type.
1339
1340         * mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning
1341         on FreeBSD.
1342
1343         * makepath.c (make_path): Restore umask *before* creating the final
1344         component.
1345         (make_path): Minor reformatting.
1346
1347         * xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC
1348         and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC.
1349
1350         * mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy
1351         ones.  At least on GNU/Linux systems, `auto' means something else.
1352         From Michael Stone.
1353
1354 2002-11-20  Paul Eggert  <eggert@twinsun.com>
1355
1356         Merge argmatch cleanups from Bison.  Assume C89.
1357
1358         * argmatch.c: Include config.h here, not in argmatch.h.
1359         Include stdlib.h, for EXIT_FAILURE.
1360         Always include <string.h>, since we assume C89.
1361         (EXIT_FAILURE): Remove pre-C89 bug workaround.
1362         * argmatch.h: Do not include <config.h> or <sys/types.h>.
1363         Include <stddef.h> instead, since it's all we need for size_t.
1364         (PARAMS): Remove.  All uses removed.
1365         (ARRAY_CARDINALITY): Do not bother to #undef.
1366         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
1367         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
1368         Remove unnecessary parentheses.
1369         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
1370         Insert necessary parentheses.
1371         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
1372         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
1373
1374 2002-11-19  Bruno Haible  <bruno@clisp.org>
1375
1376         * mbswidth.c: Include mbswidth.h right at the beginning.
1377         * mbswidth.h: Include <stddef.h>, for size_t.
1378
1379         * mbswidth.h (PARAMS): Remove macro.
1380         (mbswidth, mbsnwidth): Use ANSI C function declarations.
1381         * mbswidth.c (mbswidth, mbsnwidth): Likewise.
1382
1383         * gcd.h (PARAMS): Remove macro.
1384         (gcd): Use ANSI C function declarations.
1385         * gcd.c (gcd): Likewise.
1386
1387 2002-11-15  Bruno Haible  <bruno@clisp.org>
1388
1389         * strcspn.c: Include <stddef.h>.
1390         (strcspn): Use ANSI C function declaration. Change return type to
1391         size_t. Use NULL.
1392         * strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
1393         (strpbrk): Use NULL.
1394         * strpbrk.h (PARAMS): Remove macro.
1395         (strpbrk): Use ANSI C function declaration.
1396         * strstr.c: Don't include <sys/types.h>.
1397         * strstr.h (PARAMS): Remove macro.
1398         (strstr): Use ANSI C function declarations.
1399
1400 2002-11-06  Bruno Haible  <bruno@clisp.org>
1401
1402         * gcd.h (gcd): Change argument type to 'unsigned long'.
1403         * gcd.c (gcd): Likewise.
1404
1405 2002-11-05  Bruno Haible  <bruno@clisp.org>
1406
1407         * gcd.h: New file, from gettext-0.11.5.
1408         * gcd.c: New file, from gettext-0.11.5.
1409
1410 2002-11-05  Bruno Haible  <bruno@clisp.org>
1411
1412         * error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
1413         * getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
1414         * obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
1415         * regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
1416
1417         * argmatch.c: Include gettext.h instead of <locale.h> and <libintl.h>.
1418         * makepath.c: Include gettext.h instead of <locale.h> and <libintl.h>.
1419
1420         * closeout.c: Include gettext.h instead of <libintl.h>.
1421         * human.c: Include gettext.h instead of <libintl.h>.
1422         * quotearg.c: Include gettext.h instead of <libintl.h>.
1423         * rpmatch.c: Include gettext.h instead of <libintl.h>.
1424         * unicodeio.c: Include gettext.h instead of <libintl.h>.
1425         * userspec.c: Include gettext.h instead of <libintl.h>.
1426         * version-etc.c: Include gettext.h instead of <libintl.h>.
1427         * xmalloc.c: Include gettext.h instead of <libintl.h>.
1428         (textdomain): Remove definition.
1429         * xmemcoll.c: Include gettext.h instead of <libintl.h>.
1430
1431         * long-options.c: Remove include of <libintl.h> and definition of _.
1432         * same.c: Remove include of <libintl.h> and definition of _.
1433
1434 2002-11-04  Bruno Haible  <bruno@clisp.org>
1435
1436         * stpcpy.h: New file, from GNU gettext-0.11.5.
1437         * strcase.h: New file, from GNU gettext-0.11.5.
1438         * strpbrk.h: New file, from GNU gettext-0.11.5.
1439         * strstr.h: New file, from GNU gettext-0.11.5.
1440         * xgetcwd.h: New file, from GNU gettext-0.11.5.
1441
1442 2002-05-09  Bruno Haible  <bruno@clisp.org>
1443
1444         * config.charset: Update for newest glibc. Add canonical names
1445         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
1446
1447 2002-05-09  Bruno Haible  <bruno@clisp.org>
1448
1449         * localcharset.c (get_charset_aliases): Add more Windows specific
1450         aliases.
1451
1452 2002-05-08  Owen Taylor  <otaylor@redhat.com>
1453
1454         * config.charset: A few additions for Solaris.
1455
1456 2001-12-05  Bruno Haible  <bruno@clisp.org>
1457
1458         * localcharset.c (locale_charset): Don't return an empty string.
1459
1460 2001-10-23  Bruno Haible  <haible@clisp.cons.org>
1461
1462         * config.charset: msdos in uk_UA uses CP1125.
1463
1464 2001-08-05  Bruno Haible  <haible@clisp.cons.org>
1465
1466         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
1467         * localcharset.c (locale_charset): Declare as extern "C".
1468
1469 2002-02-15  Bruno Haible  <bruno@clisp.org>
1470
1471         * config.charset [msdosdjgpp]: For Russian, use CP866.
1472
1473 2002-02-11  Bruno Haible  <bruno@clisp.org>
1474
1475         * config.charset: Add support for NetBSD.
1476
1477 2002-09-25    <karl@gnu.org>
1478
1479         * strdup.c: copy from libc/string (via ../config/srclist*).
1480         * getopt*: copy from libc/posix.
1481         * gettext.h: copy from gettext.
1482         * .cppi-disable: add strdup.c, gettext.h.
1483
1484 2002-07-01  Jim Meyering  <meyering@lucent.com>
1485
1486         * c-stack.c: Include sys/time.h.
1487         From Volker Borchert.
1488
1489 2002-06-11  Paul Eggert  <eggert@twinsun.com>
1490
1491         * fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
1492         New macro.  Use it uniformly instead of
1493         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
1494         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
1495         reported by Vin Shelton.
1496
1497 2002-06-22  Jim Meyering  <meyering@lucent.com>
1498
1499         * fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
1500         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
1501
1502 2002-06-22  Paul Eggert  <eggert@twinsun.com>
1503
1504         * c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
1505         Do not assume SA_SIGINFO behavior.
1506         Bug reported by Jim Meyering on NetBSD 1.5.2.
1507
1508 2002-06-22  Jim Meyering  <meyering@lucent.com>
1509
1510         * c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
1511
1512         * exitfail.c, exitfail.h: Likewise.
1513         * Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
1514
1515         * Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
1516         of fnmatch.h.
1517         (EXTRA_DIST): Add fnmatch_loop.c.
1518         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
1519
1520         * fnmatch_loop.c: New file, from diffutils-2.8.2.
1521         * fnmatch.c: Update from diffutils-2.8.2.
1522         * fnmatch_.h: New file.  From diffutils-2.8.2.
1523         * fnmatch.h: Remove file.
1524
1525 2002-06-18  Paul Eggert  <eggert@twinsun.com>
1526
1527         * file-type.h: Report an error if neither S_ISREG nor
1528         S_IFREG is defined, instead of using a test specific to glibc
1529         2.2.  This should be safe, since POSIX requires S_ISREG and
1530         Unix Version 7 had S_IFREG.  We don't need to check for
1531         <sys/types.h> since we don't use any symbols that it defines.
1532
1533 2002-06-15  Jim Meyering  <meyering@lucent.com>
1534
1535         * file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
1536         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
1537         have been included before this file.
1538
1539 2002-06-13  Richard Dawe  <richdawe@bigfoot.com>
1540
1541         * Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t,
1542         so that each temporary file name is unique and valid in the first
1543         8 characters, for operation under DOS.
1544
1545 2002-06-15  Jim Meyering  <meyering@lucent.com>
1546
1547         Work even with DJGPP 2.03, which lacks support for symlinks.
1548         From Richard Dawe.
1549         * xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
1550         is defined.
1551         * lchown.c (S_ISLNK): Likewise.
1552
1553 2002-06-14  Jim Meyering  <meyering@lucent.com>
1554
1555         * file-type.h: Use the version from diffutils-2.8.2.
1556         * file-type.c: Likewise.
1557
1558 2002-05-27  Jim Meyering  <meyering@lucent.com>
1559
1560         Fix a problem seen only on nonconforming systems whereby ls.c's
1561         use of localtime, and then of gettimeofday would cause trouble:
1562         the localtime call used to initialize rpl_gettimeofday's save
1563         mechanism would clobber ls's current local time information so
1564         that in any long listing the first file would always be listed
1565         with date 1970-01-01.  Analysis by Volker Borchert.
1566
1567         * gettimeofday.c (localtime): Undefine.
1568         (rpl_localtime): New function.
1569
1570 2002-05-22  Jim Meyering  <meyering@lucent.com>
1571
1572         * Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h.
1573         * file-type.h: New file.
1574         * file-type.c (file_type): New file/function.  Extracted from diffutils.
1575
1576 2002-04-29  Paul Eggert  <eggert@twinsun.com>
1577
1578         * hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
1579
1580 2002-04-28  Paul Eggert  <eggert@twinsun.com>
1581
1582         * sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
1583         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
1584         of 127, since 64 is the largest conceivable number for ancient
1585         nonstandard hosts.
1586         * sig2str.c: Do not include <sys/wait.h>; no longer needed.
1587
1588 2002-04-28  Jim Meyering  <meyering@lucent.com>
1589
1590         * sig2str.c (WTERMSIG): Remove definition (unused).
1591
1592 2002-04-28  Paul Eggert  <eggert@twinsun.com>
1593
1594         * sig2str.h, sig2str.c: New files.
1595         * Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
1596
1597 2002-04-24  Jim Meyering  <meyering@lucent.com>
1598
1599         * gettext.h: New file, from Gettext.
1600         * Makefile.am (INCLUDES): Remove -I../intl.
1601         (libfetish_a_SOURCES): Add gettext.h.
1602
1603 2002-04-16  Jim Meyering  <meyering@lucent.com>
1604
1605         * readutmp.h (UT_TYPE): Remove definition (now in who.c).
1606         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
1607         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
1608
1609 2002-04-12  Jim Meyering  <meyering@lucent.com>
1610
1611         * dirfd.h (dirfd): Elide prototype if dirfd is a macro.
1612
1613 2002-03-10  Jim Meyering  <meyering@lucent.com>
1614
1615         * makepath.c (make_path): Remove a comma from a diagnostic.
1616         Suggestion from Santiago Vila.
1617
1618 2002-03-08  Jim Meyering  <meyering@lucent.com>
1619
1620         * rename.c: Mention that this wrapper is needed also on
1621         mips-dec-ultrix4.4 systems.
1622
1623 2002-03-02  Jim Meyering  <meyering@lucent.com>
1624
1625         * gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
1626         not HAVE_CLOCK_SETTIME.
1627
1628 2002-02-27  Paul Eggert  <eggert@twinsun.com>
1629
1630         * nanosleep.h: Rename to....
1631         * timespec.h: New name for nanosleep.h.  All uses changed.
1632
1633         * gettime.c: New file.
1634         * settime.c: New file.
1635         * stime.c: Remove.
1636
1637         * Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
1638         timespec.h.  Remove nanosleep.h.
1639
1640 2002-02-25  Paul Eggert  <eggert@twinsun.com>
1641
1642         * acl.c, acl.h: New files.
1643         * Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
1644
1645 2002-02-24  Jim Meyering  <meyering@lucent.com>
1646
1647         * strnlen.c (strnlen): Define-away/undef so that an inconsistent
1648         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
1649         cause trouble.  Reported by Nelson Beebe.
1650
1651 2002-02-23  Paul Eggert  <eggert@twinsun.com>
1652
1653         * path-concat.c (xpath_concat): Reorder code to pacify
1654         compilers that don't know that xalloc_die never returns.
1655
1656 2002-02-20  Jim Meyering  <meyering@lucent.com>
1657
1658         * getdate.c: Regenerate using bison-1.33.
1659
1660 2002-02-15  Paul Eggert  <eggert@twinsun.com>
1661
1662         * posixver.c, posixver.h: New files.
1663         * Makefile.am (libfetish_a_SOURCES): Add them.
1664
1665 2002-02-02  Paul Eggert  <eggert@twinsun.com>
1666             Bruno Haible  <bruno@clisp.org>
1667
1668         * unicodeio.h (print_unicode_char): Add exit_on_error argument.
1669         (fwrite_success_callback): New declaration.
1670         * unicodeio.c (unicode_to_mb): New function, extracted from
1671         print_unicode_char. Call failure callback instead of error.
1672         (fwrite_success_callback): New function.
1673         (exit_failure_callback): New function.
1674         (fallback_failure_callback): New function.
1675         (print_unicode_char): Call unicode_to_mb.
1676
1677 2002-01-26  Jim Meyering  <meyering@lucent.com>
1678
1679         * Makefile.am (getdate$U.o): Depend on unlocked-io.h.
1680
1681 2002-01-22  Jim Meyering  <meyering@lucent.com>
1682
1683         * Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
1684         Otherwise, some versions of automake would omit the rule that makes
1685         Makefile from Makefile.in.
1686
1687 2001-01-21  Paul Eggert  <eggert@twinsun.com>
1688
1689         * xmemcoll.h, xmemcoll.c: New files.
1690         * Makefile.am (libfetish_a_SOURCES): Add them.
1691         * memcoll.c: Include errno.h, and declare errno if not defined.
1692         (memcoll): Set errno to zero if there is no error.
1693
1694         * quotearg.c (quotearg_buffer_restyled):
1695         Fix bug with quoting buffers containing NUL when backslashing escapes.
1696         This bug was exposed by the other changes in this patch.
1697         (quotearg_n_options): New arg ARGSIZE.
1698         All callers changed.
1699         (quoting_options_from_style): New function.
1700         (quotearg_n_style): Use it.
1701         (quotearg_n_style_mem): New function.
1702
1703         * quotearg.h (quotearg_n_style_mem): New function.
1704
1705 2002-01-16  Jim Meyering  <meyering@lucent.com>
1706
1707         * getdate.y: Add three semicolons, each just before a closing brace.
1708         Bison (as of version 1.31) no longer papers over that mistake.
1709
1710 2002-02-14  Paul Eggert  <eggert@twinsun.com>
1711
1712         * backupfile.c (ISDIGIT): Comment fix.
1713         * getdate.y (ISDIGIT): Likewise.
1714         * posixtm.c (ISDIGIT, year): Likewise.
1715         * strverscmp.c (ISDIGIT): Likewise.
1716         * userspec.c (ISDIGIT): Likewise.
1717
1718 2002-01-05  Jim Meyering  <meyering@lucent.com>
1719
1720         * version-etc.c (version_etc_copyright): Update copyright year.
1721
1722 2001-01-19  Paul Eggert  <eggert@twinsun.com>
1723
1724         * closeout.c (close_stdout_status): If ferror (stdout), do
1725         not silently exit merely because the output buffer happens to
1726         have nothing pending.
1727
1728 2001-12-18  Paul Eggert  <eggert@twinsun.com>
1729
1730         See the big note in ../ChangeLog.
1731         * human.c (suffixes): Prefer K to k for 1024.
1732         (generate_suffix_backwards): New function.
1733         (human_readable_inexact): Use it.
1734         * xstrtol.c (__xstrtol): If there is no number but there
1735         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
1736         Accept 'K' as well as 'k'.
1737
1738 2001-12-15  Jim Meyering  <meyering@lucent.com>
1739
1740         * regex.h (__restrict_arr): Update from libc.
1741
1742         * mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
1743         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
1744         (STREQ): Define.
1745
1746 2001-12-10  Jim Meyering  <meyering@lucent.com>
1747
1748         * linebuffer.c: Remove explicit declarations of xmalloc and xrealloc,
1749         Instead, include "xalloc.h".
1750         (initbuffer): Don't cast xmalloc return value to char*.
1751         (readline): Reword comment.
1752         Don't cast xrealloc return value to char*
1753         Return NULL, not 0.
1754
1755 2001-12-09  Jim Meyering  <meyering@lucent.com>
1756
1757         * modechange.c (mode_compile): Add cast to avoid pedantic warning about
1758         `signed and unsigned type in conditional expression'.
1759         * posixtm.c (posix_time_parse): Likewise.
1760
1761         * xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
1762
1763         * readtokens.c (readtoken): Declare an index to be of type unsigned
1764         to avoid a pedantic warning.
1765
1766         * getstr.c: Don't include assert.h.
1767         (getstr): Remove warning-evoking assertions.
1768         Return -1 if offset parameter is out of bounds.
1769         Change the type of a local from int to size_t.
1770
1771         * strftime.c (my_strftime_localtime_r): Include this function
1772         definition in the `#if ! HAVE_TM_GMTOFF' block.
1773
1774         * xgethostname.c: Remove declarations of xmalloc and xrealloc.
1775         Include xalloc.h instead.
1776
1777 2001-12-02  Jim Meyering  <meyering@lucent.com>
1778
1779         * tempname.c: Don't declare getenv, thus reverting the change of
1780         2001-11-18.  It's no longer necessary, now that stdlib.h is always
1781         included.
1782
1783         * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
1784         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
1785
1786 2001-11-30  Akim Demaille  <akim@epita.fr>
1787
1788         * xstrdup.c: Include xalloc.h, so that xstrdup is declared
1789         before being defined.
1790
1791 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1792
1793         * quotearg.h (quotearg_n, quotearg_n_style):
1794         First arg is int, not unsigned.
1795         * quotearg.c (quotearg_n, quotearg_n_style): Likewise.
1796         (SIZE_MAX, UINT_MAX): New macros.
1797         (quotearg_n_options): Abort if N is negative.
1798         Avoid overflow check on hosts where size_t is 64 bits and int
1799         is 32 bits, as overflow is impossible there.
1800         Fix off-by-one typo that caused unnecessary reallocation.
1801
1802 2001-11-27  Jim Meyering  <meyering@lucent.com>
1803
1804         * tempname.c: Merge with version from libc.
1805         * regex.c: Likewise.
1806
1807         * tempname.c: Include stdlib.h unconditionally.  On some old systems
1808         for which STDC_HEADERS is 0, it was not included, resulting in a
1809         warning about an integer-to-pointer conversion problem with getenv.
1810         Reported by Volker Borchert.
1811
1812 2001-11-26  Jim Meyering  <meyering@lucent.com>
1813
1814         * gtod.h: Remove file.
1815         * Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
1816         * gettimeofday.c: Don't include gtod.h.
1817         (GTOD_init): Remove function.
1818         (rpl_gettimeofday): Do its job here instead, rather than aborting.
1819         Suggestion from Volker Borchert.
1820
1821 2001-11-23  Jim Meyering  <meyering@lucent.com>
1822
1823         * hash.h (struct hash_table): Don't define here.  Merely declare it.
1824         * hash.c (struct hash_table): Define it here instead.
1825
1826 2001-11-22  Jim Meyering  <meyering@lucent.com>
1827
1828         * hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
1829
1830 2001-11-18  Paul Eggert  <eggert@twinsun.com>
1831
1832         * tempname.c (TMP_MAX): Remove; no longer needed.
1833         (TEMPORARIES): New macro.
1834         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
1835         removes an artificial limitation (e.g. HP-UX 10.20, where
1836         TMP_MAX is 17576).
1837
1838 2001-11-18  Jim Meyering  <meyering@lucent.com>
1839
1840         * tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
1841         on SunOS 4.
1842
1843         * Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
1844         files will be created before anything else.
1845
1846 2001-11-17  Jim Meyering  <meyering@lucent.com>
1847
1848         * modechange.c (mode_adjust): Fix error introduced on 1999-04-26
1849         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
1850         rather than group writable.  Patch by Juan F. Codagnone.
1851
1852         * readtokens.c: Remove explicit declarations of xmalloc and xrealloc,
1853         Instead, include "xalloc.h".
1854
1855         * mountlist.c: Include unlocked-io.h after all system headers.
1856         Remove explicit declarations of xmalloc, xrealloc,
1857         and xstrdup.  Instead, include "xalloc.h".
1858
1859         * argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h.
1860         * fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise.
1861         * mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
1862
1863         * regex.c, sha.c, version-etc.c, yesno.c: Likewise.
1864         Reported by Padraig Brady.
1865
1866         * mkstemp.c: #undef mkstemp.
1867         Include config.h.
1868         (rpl_mkstemp): Rename from mkstemp.
1869         Protoize.
1870
1871 2001-11-16  Jim Meyering  <meyering@lucent.com>
1872
1873         * physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
1874         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
1875         determine the amount of total physical memory, use pstat_getstatic.
1876         HPUX-11 doesn't define _SC_PHYS_PAGES.
1877         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
1878         If sysconf couldn't be used to determine the amount of available
1879         physical memory, use both pstat_getstatic and pstat_getdynamic.
1880         Based on a patch from Bob Proulx.
1881
1882 2001-11-05  Jim Meyering  <meyering@lucent.com>
1883
1884         * xstat.in (slash_aware_lstat): Correct a misleading comment.
1885
1886 2001-11-03  Jim Meyering  <meyering@lucent.com>
1887
1888         * argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
1889         in argmatch_to_argument call.
1890
1891         * dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
1892         argument.
1893
1894         * hash.c (hash_clear): Fix a bug that could lead to an infloop or
1895         e.g., a fault due to an attempt to free a NULL pointer.
1896
1897 2001-11-01  Jim Meyering  <meyering@lucent.com>
1898
1899         * dirfd.c, dirfd.h: New files.
1900         * Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
1901
1902         * hash.c (hash_print) [TESTING]: Clean up.
1903
1904 2001-10-22  Paul Eggert  <eggert@twinsun.com>
1905
1906         * hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
1907         to avoid a warning if -Wall.
1908
1909 2001-10-21  Paul Eggert  <eggert@twinsun.com>
1910
1911         * regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
1912
1913 2001-10-21  Jim Meyering  <meyering@lucent.com>
1914
1915         * obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
1916         this code would end up calling gettext even in packages built
1917         with --disable-nls.
1918         * getopt.c (_): Likewise.
1919         * regex.c (_): Likewise.
1920
1921 2001-10-20  Paul Eggert  <eggert@twinsun.com>
1922
1923         * error.c (strerror_r): Do not declare unless !_LIBC.
1924         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
1925         Use strerror_r that is only a macro, even if it is not a function.
1926         (strerror): Check for HAVE_DECL_STRERROR before declaring.
1927         (private_strerror): Use prototypes, not old-style function definition.
1928         (print_errno_message): New function.
1929         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
1930         char*-flavored one.
1931         (error_tail, error, error_at_line): Use it.
1932
1933 2001-10-11  Jim Meyering  <meyering@lucent.com>
1934
1935         * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
1936         and quote_n (1, ... to avoid clobbering a buffer.
1937
1938 2001-10-05  Jim Meyering  <meyering@lucent.com>
1939
1940         * Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.
1941         * hash-pjw.c: New file (factored out of fileutils' remove.c).
1942         * hash-pjw.h: New file.
1943
1944 2001-09-30  Jim Meyering  <meyering@lucent.com>
1945
1946         * mountlist.c [MOUNTED_GETFSSTAT]:
1947         Include <sys/ucred.h>, for Apple Darwin.
1948         Include sys/mount.h and sys/fs_types.h only if available.
1949         (FS_TYPE): Define.
1950         (read_filesystem_list): Use FS_TYPE.
1951
1952 2001-09-29  Paul Eggert  <eggert@twinsun.com>
1953
1954         * exclude.c (excluded_filename): 0 -> false, since it's
1955         a boolean context.
1956
1957 2001-09-28  Paul Eggert  <eggert@twinsun.com>
1958
1959         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
1960         #defines strtoimax.  Also treat the other strto* functions
1961         like strtoimax.
1962
1963         * xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
1964         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
1965         (strtoimax, strtoumax): Do not declare if already defined as a macro.
1966
1967 2001-09-26  Jim Meyering  <meyering@lucent.com>
1968
1969         Most macros in unlocked-io.h had the wrong number of arguments.
1970         * gen-uio: New script.
1971         (USE_UNLOCKED_IO): Define to 1 if not already defined.
1972         * unlocked-io.hin: Remove file.
1973         * Makefile.am (unlocked-io.h): Rewrite to use a separate script,
1974         rather than trying to embed it here.
1975         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
1976         Reported by Padraig Brady.
1977
1978 2001-09-25  Volker Borchert  <bt@teknon.de>
1979
1980         * gettimeofday.c (rpl_gettimeofday): Declare local variable `result'.
1981
1982 2001-09-23  Jim Meyering  <meyering@lucent.com>
1983
1984         * mountlist.c: Remove useless parentheses in #if directives.
1985         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
1986         the deprecated MOUNTED symbol is no longer defined in mntent.h.
1987
1988 2001-09-22  Jim Meyering  <meyering@lucent.com>
1989
1990         * localcharset.c: Update from latest gettext.
1991         * config.charset: Likewise.
1992
1993 2001-09-20  Jim Meyering  <meyering@lucent.com>
1994
1995         * xstrtol.c (strtoimax): Guard declaration with
1996         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
1997         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
1998         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
1999         (strtoumax): Likewise, for completeness (it wasn't necessary).
2000
2001 2001-09-06  Paul Eggert  <eggert@twinsun.com>
2002
2003         * strtoimax.c (HAVE_LONG_LONG):
2004         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
2005         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
2006         to work around bug in IBM C compiler.
2007
2008 2001-09-16  Jim Meyering  <meyering@lucent.com>
2009
2010         * mkdir.c: New file.
2011
2012 2001-09-04  Paul Eggert  <eggert@twinsun.com>
2013
2014         * xgetcwd.c: Revert some of the previous change; intead,
2015         fix the HAVE_GETCWD_NULL code to behave more like the
2016         !HAVE_GETCWD_NULL code used to.
2017
2018         Include "xalloc.h".
2019         (xgetcwd): Do not return NULL when memory is exhausted; instead,
2020         invoke xalloc_die.
2021
2022 2001-09-04  Paul Eggert  <eggert@twinsun.com>
2023
2024         * xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
2025         Use ssize_t, not int, to store result of readlink.
2026         Check for ssize_t overflow as well as size_t overflow,
2027         as POSIX says the result of readlink is implementation-defined
2028         when ssize_t overflows.
2029         Remove unnecessary cast to char*.
2030         Use free+malloc instead of realloc, as the storage doesn't need
2031         to be preserved and it's clearer and can be more efficient that way.
2032         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
2033         * xreadlink.h (xreadlink): Update prototype.
2034
2035 2001-09-03  Paul Eggert  <eggert@twinsun.com>
2036
2037         * exclude.c (fnmatch_no_wildcards): Fix confusion between
2038         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
2039         spotted by Jim Meyering.
2040
2041 2001-09-03  Jim Meyering  <meyering@lucent.com>
2042
2043         * xreadlink.c (xreadlink): Preserve errno around `free' during failure.
2044
2045 2001-09-03  Paul Eggert  <eggert@twinsun.com>
2046
2047         * xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
2048         like the HAVE_GETCWD_NULL code.
2049         Include pathmax.h if not HAVE_GETCWD.
2050         Do not include xalloc.h.
2051         (INITIAL_BUFFER_SIZE): New symbol.
2052         Do not use xmalloc / xrealloc, since the caller is responsible for
2053         handling errors.  Preserve errno around `free' during failure.
2054         Do not overrun buffer when using getwd.
2055
2056 2001-09-03  Paul Eggert  <eggert@twinsun.com>
2057
2058         * xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
2059         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0).
2060
2061 2001-09-02  Jim Meyering  <meyering@lucent.com>
2062
2063         * error.c: Update from GNU libc.
2064
2065 2001-09-01  Jim Meyering  <meyering@lucent.com>
2066
2067         * xreadlink.c: New file.
2068         * xreadlink.h: New file.
2069         * Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h.
2070
2071         * regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
2072         doesn't conflict with sparc Solaris 7's definition in
2073         /usr/include/sys/int_types.h.
2074
2075         * exclude.c: Use `""', not `<>' to #include non-system header files.
2076         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
2077         and strncasecmp as r-values.  Unixware didn't have declarations.
2078
2079 2001-08-31  Jim Meyering  <meyering@lucent.com>
2080
2081         * xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
2082         Use an initial, malloc'd, buffer of length 128 rather than
2083         a statically allocated one of length 1024.
2084
2085 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2086
2087         * xgetcwd.c: Don't include pathmax.h.
2088         Include stdlib.h and unistd.h if available.
2089         Include xalloc.h.
2090         (xmalloc, xstrdup, free): Remove decls.
2091         (xgetcwd): Don't assume sizes fit in unsigned.
2092         Check for overflow when computing sizes.
2093         Simplify reallocation code.
2094
2095 2001-08-28  Paul Eggert  <eggert@twinsun.com>
2096
2097         * Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
2098
2099         * strtoimax.c: Renamed from strtoxmax.c, removing the
2100         old strtoimax.c.
2101
2102         Also, make the following further changes to make this file's
2103         configuration more similar to that of strtol.c:
2104         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
2105         (strtoumax, uintmax_t, strtoull, strtol): Remove.
2106         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
2107         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
2108         changed to signed values.
2109
2110         And make the following changes as well:
2111         Fix copyright notice, as 1999 was missing.
2112         (verify): New macro.
2113         (strtoimax): Check sizes at compile-time, not run-time.
2114         Prefer strtol to strtoll if both work.
2115         (main): Remove; it was not that useful and was a pain to maintain.
2116
2117         * strtoumax.c: Include strtoimax.c, not strtouxmax.c.
2118
2119 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2120
2121         * savedir.c (savedir): Remove size parameter, as POSIX says that
2122         a directory's st_size can have an arbitrary value, so the old
2123         usage could waste an arbitrary amount of memory.  All uses
2124         changed.
2125         * savedir.h: Update prototype.
2126
2127 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2128
2129         * xstrtol.c (strtoimax): New decl.
2130
2131 2001-08-28  Paul Eggert  <eggert@twinsun.com>
2132
2133         * xstrtol.h: Add copyright notice.
2134         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
2135         LONGINT_INVALID_SUFFIX_CHAR.
2136
2137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2138
2139         * quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
2140         tm to be declared.
2141
2142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2143
2144         * hash.c: Remove '2001' from copyright notice.
2145
2146 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2147
2148         * full-write.h: New file.
2149         * Makefile.am (libfetish_a_SOURCES): Add full-write.h.
2150         * full-write.c: Correct credits, as cccp.c no longer
2151         exists and anyway it was so heavily changed from the old cccp
2152         code as to be unrecognizable.  Include full-write.h.
2153         (full_write) Return size_t, with short writes meaning failure.
2154         All callers changed.  This fixes a bug with large buffers
2155         on 64-bit hosts.
2156         * utime.c: Include full-write.h.
2157
2158 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2159
2160         Merge 'exclude' changes from tar 1.13.22.
2161         This fixes one or two unlikely storage allocation overflow bugs,
2162         but doesn't change user-visible behavior otherwise.
2163
2164 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2165
2166         * exclude.c (bool): Declare, perhaps by including stdbool.h.
2167         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
2168         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
2169         Include if available.
2170         (<xalloc.h>): Include
2171         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
2172         (verify): New macro.  Use it to verify that EXCLUDE macros do not
2173         collide with FNM macros.
2174         (struct patopts): New struct.
2175         (struct exclude): Use it, as exclude patterns now come with options.
2176         (new_exclude): Support above changes.
2177         (new_exclude, add_exclude_file):
2178         Initial size must now be a power of two to simplify overflow checking.
2179         (free_exclude, fnmatch_no_wildcards): New function.
2180         (excluded_filename): No longer requires options arg, as the options
2181         are determined by add_exclude.  Now returns bool, not int.
2182         (excluded_filename, add_exclude):
2183         Add support for the fancy new exclusion options.
2184         (add_exclude, add_exclude_file): Now takes int options arg.
2185         Check for arithmetic overflow when computing sizes.
2186         (add_exclude_file): xrealloc might modify errno, so don't
2187         realloc until after errno might be used.
2188
2189         * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
2190         New macros.
2191         (free_exclude): New decl.
2192         (add_exclude, add_exclude_file): Now takes int options arg.
2193         (excluded_filename): No longer requires options arg, as the options
2194         are determined by add_exclude.  Now returns bool, not int.
2195
2196 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2197
2198         * alloca.c (alloca): Arg is of type size_t, not unsigned.
2199
2200 2001-08-27  Jim Meyering  <meyering@lucent.com>
2201
2202         * Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
2203
2204         * version-etc.c (N_): Remove definition.
2205         Revert most of last change.
2206         Instead, simply don't mark the `Copyright...' string for translation.
2207         Based on advice from Paul Eggert.
2208
2209         * strtoxmax.c: Tweak comment.
2210
2211 2001-08-26  Jim Meyering  <meyering@lucent.com>
2212
2213         * version-etc.c (version_etc_copyright_fmt): Replace literal year
2214         of copyright with `%s' so translators don't get an untranslated
2215         message in 2002.
2216         (COPYRIGHT_YEAR): Define.
2217         (version_etc): Use fprintf rather than fputs.
2218         Suggestion from Ulrich Drepper.
2219
2220         * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
2221
2222         * strtoll.c: New file, from GNU libc.
2223         * xstrtoimax.c: New file.
2224
2225         * xstrtol.h: Add xstrtoimax.
2226         * strtoumax.c: New file.  Simply include "strtoumax.c".
2227         * strtoimax.c: New file.  Likewise, but first define STRTOUXMAX_SIGNED.
2228
2229         * strtoumax.c: Factor to work both for unsigned and signed types, ...
2230         * strtoxmax.c: ... then renamed to this.
2231
2232 2001-08-13  Paul Eggert  <eggert@twinsun.com>
2233
2234         * Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
2235         Port to Solaris 8, where 'sed' requires a space after the 'r'
2236         command, and where sh dislikes "$/".  Clean up the spacing a bit.
2237         Redirect output to $tmp just once.
2238
2239 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
2240
2241         * addext.c (<errno.h>): Include.
2242         (errno): Declare if not defined.
2243         (addext): Work correctly when pathconf returns -1 and leaves
2244         errno alone because there is no limit.  Also, work even if
2245         pathconf returns a value greater than SIZE_MAX.
2246
2247 2001-08-12  Jim Meyering  <meyering@lucent.com>
2248
2249         * xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
2250         Simply `return getcwd (NULL, 0);'.
2251         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
2252         Use 1300 as initial value for length, not PATH_MAX.
2253
2254         * pathmax.h: Clean up cpp syntax.
2255
2256 2001-08-12  Jim Meyering  <meyering@lucent.com>
2257
2258         * gettimeofday.c: New file.
2259         * gtod.h: New file.
2260         * Makefile.am (libfetish_a_SOURCES): Add gtod.h.
2261
2262 2001-08-04  Jim Meyering  <meyering@lucent.com>
2263
2264         * error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt,
2265         to get in sync with glibc.
2266
2267 2001-08-03  Paul Eggert  <eggert@twinsun.com>
2268
2269         The following changes are from gettext 0.10.39 as maintained by
2270         Bruno Haible.
2271
2272         * mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
2273         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
2274         with inverted sense.  All uses changed.
2275
2276         * mbswidth.c: Don't include <limits.h>.
2277         Include <stdlib.h> and <string.h> unconditionally.
2278         (iswcntrl, mbsinit, ISCNTRL): New macros.
2279         (mbsnwidth): Use K&R style function declarations.
2280         Don't bother checking for MB_LEN_MAX == 1, since the compiler
2281         can optimize it when MB_CUR_MAX == 1.
2282         The width of control characters is zero, not 1.
2283
2284 2001-07-15  Jim Meyering  <meyering@lucent.com>
2285
2286         * Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
2287         (BUILT_SOURCES): Add unlocked-io.h.
2288         (io_functions): Define.
2289         (unlocked-io.h): New rule.
2290         (DISTCLEANFILES): Add unlocked-io.h.
2291         (all-local): Depend on unlocked-io.h, to ensure it is created.
2292
2293         * unlocked-io.hin: New file
2294
2295         * regex.c: Update from glibc.
2296
2297 2001-07-05  Jim Meyering  <meyering@lucent.com>
2298
2299         * Makefile.am (noinst_HEADERS): Remove definition, per new automake
2300         recommendation.
2301         (libfetish_a_SOURCES): Put all .h files here instead.
2302         Remove a thus-exposed (better checks in automake) duplicate and
2303         two unnecessary .h files.
2304
2305 2001-06-11  Jim Meyering  <meyering@lucent.com>
2306
2307         * regex.c: Update from GNU libc.
2308
2309 2001-05-27  Jim Meyering  <meyering@lucent.com>
2310
2311         * readutmp.h (UT_TYPE): Define.
2312
2313 2001-05-24  Jim Meyering  <meyering@lucent.com>
2314
2315         * argmatch.c: Include "quote.h".
2316         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
2317         quote function.  Reported by Göran Uddeborg.
2318
2319 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
2320
2321         * dirname.c (dir_name): Compute append_dot using path, not newpath
2322         which is not yet declared.
2323
2324 2001-05-11  Paul Eggert  <eggert@twinsun.com>
2325
2326         * Makefile.am (libfetish_a_SOURCES):
2327         Add strftime.c, since we now compile it on all hosts.
2328
2329         * strftime.c (my_strftime):
2330         Define to nstrftime if emacs, but only if my_strftime is not defined.
2331         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
2332         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
2333         Add one more extra argument: a nanoseconds value.
2334         All uses changed.
2335         (ns): New macro.
2336         (my_strftime function): Add %N format.
2337         (emacs_strftimeu): Renamed from emacs_strftime,
2338         with extra ut argument.
2339
2340 2001-05-11  Paul Eggert  <eggert@twinsun.com>
2341
2342         dirname code cleanup.  base_name now behaves more compatibly
2343         with POSIX basename when given file names that have trailing
2344         slashes, and similarly for dir_name.  Add new primitives
2345         base_len and dir_len.  Put the directory-name-related decls
2346         into dirname.h.
2347
2348         * addext.c (ISSLASH, base_name): Remove; now in dirname.h.
2349         * backupfile.c (base_name): Likewise.
2350         * basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
2351         * dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
2352         * makepath.c (strip_trailing_slashes): Likewise.
2353         * path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH):
2354         Likewise.
2355         * rename.c (strip_trailing_slashes): Likewise.
2356         * same.c (base_name): Likewise.
2357         * stripslash.c (ISSLASH): Likewise.
2358
2359         * addext.c: Include <dirname.h> after size_t is defined.
2360         * backupfile.c: Likewise.
2361
2362         * addext.c (addext): Use base_len to trim redundant
2363         trailing slashes instead of doing it ourselves.
2364         But do not trim the last slash if it is not redundant.
2365
2366         * backupfile.c (find_backup_file_name,
2367         max_backup_version): Use base_len instead of rolling it ourselves.
2368         Handle the case of "" and (on DOS) "C:" correctly.
2369
2370         * basename.c: Do not include <stdio.h>, <assert.h>; no longer needed.
2371         Include <string.h>, <dirname.h>.
2372         (base_name): Allow file names ending in slashes, other than names
2373         that are all slashes.  In this case, return the basename followed
2374         by the slashes.  This is more general, and can be used in places
2375         where the original base_name purposely had an assertion failure.
2376         (base_len): New function.
2377
2378         * dirname.c: Include <string.h> instead of <stdlib.h>.
2379         Do not include <assert.h>; no longer needed.
2380         Include xalloc.h.
2381         (memrchr): Remove decl.
2382         (dir_name_r): Remove.
2383         (dir_len): Renamed from dirlen.  All callers changed.
2384         Rewrite in terms of base_name, for simplicity and consistency.
2385         (dir_name): Never return NULL.  All callers changed.
2386         Do not include <stdlib.h> in test program; no longer needed.
2387         return 0; is fine for test program.
2388
2389         * dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
2390         New macros.
2391         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
2392
2393         * path-concat.c (path_concat): Use base_len to compute
2394         base length, not strlen; this means we cannot rely on memcpy
2395         to null-terminate.
2396
2397         * same.c (STREQ): Remove.
2398         (same_name): Handle the case where the basename ends in trailing '/'.
2399
2400         * stripslash.c (strip_trailing_slashes): Return nonzero if
2401         a slash was stripped.  Do not strip the last slash after a
2402         file system prefix.
2403
2404 2001-04-08  Jim Meyering  <meyering@lucent.com>
2405
2406         * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
2407         recomputed; that's necessary when the offset spans a DST transition.
2408         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
2409
2410 2001-04-02  Jim Meyering  <meyering@lucent.com>
2411
2412         * regex.h, regex.c: Update from GNU libc.
2413
2414 2001-03-19  Paul Eggert  <eggert@twinsun.com>
2415
2416         * version-etc.c (version_etc_copyright): Update to 2001.
2417
2418 2001-03-16  Paul Eggert  <eggert@twinsun.com>
2419
2420         * tempname.c (uint64_t): Define to uintmax_t if
2421         not defined, and if UINT64_MAX is not defined.
2422         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
2423         Reported by John David Anglin.
2424
2425 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
2426
2427         * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve
2428         alias if codeset is empty.
2429         * config.charset (BeOS): Use wildcard syntax.
2430
2431 2001-03-13  Jim Meyering  <meyering@lucent.com>
2432
2433         * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
2434         Don't insert a backslash when concatenating e.g., `C:' and `foo'.
2435         From Bruno Haible.
2436
2437 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
2438
2439         * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL).
2440         Don't return NULL.
2441         * unicodeio.c (print_unicode_char): Simplify accordingly.
2442
2443 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
2444
2445         * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
2446         support for DOS/DJGPP.
2447
2448 2001-02-28  Paul Eggert  <eggert@twinsun.com>
2449
2450         * Makefile.am (libfetish_a_SOURCES):
2451         Add dup-safer.c, fopen-safer.c.
2452         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
2453
2454         * dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files.
2455
2456 2001-02-25  Paul Eggert  <eggert@twinsun.com>
2457
2458         The mkstemp replacement is taken from glibc 2.2.2, with some
2459         portability fixes for use outside glibc, as follows:
2460
2461         * tempname.c (struct_stat64): New macro.
2462         (direxists, __gen_tempname): Use it.
2463         This avoids a portability problem with Solaris 8.
2464
2465         * tempname.c (<config.h>): Include if HAVE_CONFIG_H.
2466         (<stddef.h>, <stdint.h>, <string.h>):
2467         Include only if STDC_HEADERS || _LIBC.
2468         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
2469         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
2470         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
2471         (__set_errno): Define this macro if <errno.h> doesn't.
2472         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
2473         Define these macros if <stdio.h> doesn't.
2474         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
2475         Define these macros if <sys/stat.h>
2476         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
2477         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
2478         __xstat64): Define if not _LIBC.
2479         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
2480         (__gen_tempname): Invoke gettimeofday only if
2481         HAVE_GETTIMEOFDAY || _LIBC;
2482         otherwise, fall back on plain "time".
2483         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
2484
2485         * mkstemp.c (__GT_FILE): Define to zero if not defined.
2486
2487         * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
2488
2489 2001-02-17  Jim Meyering  <meyering@lucent.com>
2490
2491         * strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
2492         around included file name.
2493
2494         * strnlen.c (__strnlen): Merge in a change from GNU libc.
2495
2496         * strftime.c: Update from GNU libc (the only changes were to comments).
2497
2498 2001-02-13  Bruno Haible  <haible@clisp.cons.org>
2499
2500         * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash.
2501
2502 2001-02-17  Paul Eggert  <eggert@twinsun.com>
2503
2504         * mbswidth.c, quotearg.c (mbrtowc, mbsinit):
2505         Remove workaround macros for hosts that have mbrtowc but not
2506         mbstate_t, as we now insist on proper declarations for both
2507         before using mbrtowc.
2508
2509 2001-02-17  Jim Meyering  <meyering@lucent.com>
2510
2511         * regex.c: Update from libc.
2512
2513 2001-02-16  Paul Eggert  <eggert@twinsun.com>
2514
2515         * alloca.c (malloc): Undef before defining, since stdlib.h
2516         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
2517         Reported by Mark Hounschell via Paul Eggert.
2518
2519 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
2520
2521         * config.charset: Update for FreeBSD 4.2.
2522
2523 2001-01-26  Jim Meyering  <meyering@lucent.com>
2524
2525         * quotearg.c: Include stddef.h.
2526         * quote.c: Include stddef.h.
2527         Reported by Axel Kittenberger.
2528
2529         * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
2530         line in double quotes so that it evokes a better diagnostic.
2531         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
2532         Reported by Axel Kittenberger.
2533
2534 2001-01-15  Bruno Haible  <haible@clisp.cons.org>
2535
2536         * unicodeio.c (print_unicode_char): Cast the second iconv() arg,
2537         to avoid a warning.  Add back 'const' to inptr.
2538
2539 2001-01-16  Jim Meyering  <meyering@lucent.com>
2540
2541         * basename.c: Include <stdio.h>, needed by assert on SunOS 4.
2542         From Bruno Haible.
2543
2544 2001-01-14  Jim Meyering  <meyering@lucent.com>
2545
2546         * rename.c: New file.  From Volker Borchert.
2547         Include stdlib.h, string.h or strings.h, and xalloc.h.
2548         Use strip_trailing_slashes rather than open-coding it.
2549
2550 2001-01-03  Paul Eggert  <eggert@twinsun.com>
2551
2552         * strftime.c: Sync with glibc time/strftime.c 1.81.
2553
2554 2001-01-03  Jim Meyering  <meyering@lucent.com>
2555
2556         * unicodeio.c (print_unicode_char): Remove `const' from declaration of
2557         local `inptr' to avoid warning with some system declarations of iconv.
2558
2559 2000-12-29  Paul Eggert  <eggert@twinsun.com>
2560
2561         * modechange.c: Do not assume that mode_t uses the
2562         traditional octal encoding.  E.g. "chmod 1 FOO" should set
2563         the other-execute bit of FOO even if S_IXOTH != 1.
2564
2565         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
2566         WOTH, XOTH, ALLM): New macros.
2567         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
2568          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
2569         Use them.
2570         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
2571         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
2572         (mode_compile):
2573         No need to use uintmax_t; unsigned long is long enough.
2574         Don't bother to get suffix since we don't use it.
2575
2576 2000-12-24  Jim Meyering  <meyering@lucent.com>
2577
2578         * hash.c (is_prime): Return explicit boolean values.
2579         (hash_get_first): Return NULL to appease Irix5.6's 89.
2580         Reported by Nelson Beebe.
2581
2582 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
2583
2584         * localcharset.c (locale_charset): Add support for Win32.
2585
2586 2000-12-18  Paul Eggert  <eggert@twinsun.com>
2587
2588         * physmem.h, physmem.c: New files.
2589
2590         * Makefile.am (libfetish_a_SOURCES): Add physmem.c.
2591         (noinst_HEADERS): Add physmem.h.
2592
2593         * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
2594         't' for compatibility with Solaris 8 sort.
2595
2596 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
2597
2598         * config.charset: Add support for BeOS.
2599
2600 2000-12-16  Jim Meyering  <meyering@lucent.com>
2601
2602         * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
2603         SHELLS_FILE to a file name that's useful on djgpp systems.
2604         Include stdlib.h.
2605         (ADDITIONAL_DEFAULT_SHELLS): Define.
2606         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
2607         Based mostly on a patch from Prashant TR.
2608
2609 2000-12-16  Jim Meyering  <meyering@lucent.com>
2610
2611         This bug had a serious impact on chown: `chown N:M FILE' (for integer
2612         N and M) would have treated it like `chown N:N FILE'.
2613
2614         * userspec.c (parse_user_spec): Fix typo: s/u/g/.
2615
2616 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
2617
2618         * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII,
2619         CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257
2620         to the list of canonical encodings. Rename EUC-CN to GB2312.
2621
2622 2000-12-08  Andreas Schwab  <schwab@suse.de>
2623
2624         * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
2625         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
2626
2627 2000-12-07  Jim Meyering  <meyering@lucent.com>
2628
2629         * stripslash.c (ISSLASH): Define.
2630         (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'.
2631         From Prashant TR.
2632
2633         * dirname.c (FILESYSTEM_PREFIX_LEN): Define.
2634         (dir_name_r): Declare this function as static.
2635         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
2636         manifest itself on a name containing a mix of slashes and
2637         backslashes.
2638         Make this function work with names starting with a DOS-style
2639         drive letter and colon prefix.
2640         (dir_name): Append `.' if necessary.
2641         Based mostly on patches from Prashant TR and Eli Zaretskii.
2642
2643         * dirname.h (dir_name_r): Remove prototype.
2644
2645 2000-12-05  Jim Meyering  <meyering@lucent.com>
2646
2647         * dirname.c (dir_name_r): Add `const' in a few local declarations.
2648
2649 2000-12-04  Jim Meyering  <meyering@lucent.com>
2650
2651         * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
2652         Also include memory.h, stdlib.h, unistd.h if appropriate.
2653         Reported by Andreas Jaeger (conflicting declaration of malloc).
2654
2655 2000-12-02  Jim Meyering  <meyering@lucent.com>
2656
2657         * closeout.h: Make idempotent, to avoid some obscure warnings.
2658
2659 2000-12-01  Paul Eggert  <eggert@twinsun.com>
2660
2661         * memrchr.c: Include <config.h> before any system include file.
2662
2663 2000-11-29  Paul Eggert  <eggert@twinsun.com>
2664
2665         * dirname.c (dir_name_r): Fix typo: int -> size_t.
2666
2667 2000-11-26  Jim Meyering  <meyering@lucent.com>
2668
2669         * memcoll.c: Include sys/types.h.  From Werner Almesberger.
2670
2671 2000-11-22  Paul Eggert  <eggert@twinsun.com>
2672
2673         * strftime.c (my_strftime): Do not invoke mbrlen with a
2674         size of (size_t) -1; it's not portable.
2675
2676 2000-11-17  Akim Demaille  <akim@epita.fr>
2677
2678         * obstack.h: Formatting changes.
2679         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
2680         prevent type checking.
2681         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2682         cast the value to (void *): assigning a `foo *' to a `void *'
2683         variable is valid.
2684         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2685
2686 2000-11-17  Jim Meyering  <meyering@lucent.com>
2687
2688         * strstr.c: Update from GNU libc.
2689
2690 2000-11-16  Jim Meyering  <meyering@lucent.com>
2691
2692         * strverscmp.c: Incorporate weak-alias-related changes from glibc.
2693
2694 2000-11-11  Jim Meyering  <meyering@lucent.com>
2695
2696         * error.c: Add a couple #includes, merging from GNU libc version.
2697
2698 2000-11-10  Jim Meyering  <meyering@lucent.com>
2699
2700         * obstack.h: Update from GNU libc.
2701         * obstack.c: Likewise.
2702
2703 2000-11-06  Paul Eggert  <eggert@twinsun.com>
2704
2705         * getusershell.c (setusershell): Use rewind rather than
2706         fseek/fseeko, to avoid configuration hassles with fseeko.
2707         Don't bother opening SHELLS_FILE if shellstream is NULL;
2708         it's not necessary.
2709
2710 2000-11-05  Jim Meyering  <meyering@lucent.com>
2711
2712         * makepath.h (make_dir): Declare.
2713         * makepath.c (make_dir): Remove `static' attribute.
2714         Tweak a comment.
2715
2716 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
2717
2718         * hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
2719         last one in a bucket, advance to the next bucket.
2720
2721 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
2722
2723         * fnmatch.c: Do not comment out all the code if we are using
2724         the GNU C library, because in some cases we are replacing buggy
2725         code in the GNU C library itself.
2726
2727 2000-10-30  Paul Eggert  <eggert@twinsun.com>
2728
2729         * error.h, getline.h, modechange.h:
2730         Remove "2000" from Copyright line, as the file hasn't been
2731         changed this year other than in the copyright notice.
2732
2733         * xalloc.h: Add "2000" to Copyright line, as this file
2734         was changed this year.
2735
2736 2000-10-30  Paul Eggert  <eggert@twinsun.com>
2737
2738         * fnmatch.c (FOLD): Do not assume that characters are unsigned.
2739         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
2740         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
2741
2742 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
2743
2744         * regex.h (__restrict_arr): Move definition out of #ifndef block.
2745         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
2746         doesn't define __restrict_arr.
2747
2748 2000-10-29  Jim Meyering  <meyering@lucent.com>
2749
2750         * xstat.in: Fix grammar in comment.
2751
2752 2000-10-28  Jim Meyering  <meyering@lucent.com>
2753
2754         * memchr.c: Update from libc.
2755         Adjust for portability:
2756         [HAVE_STDLIB_H]: Include stdlib.h.
2757         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
2758         Undef __memchr, too.
2759         [!weak_alias]: Define __memchr to memchr.
2760
2761         * regex.c: Update from libc.
2762         * regex.h: Likewise.
2763         * getopt1.c: Likewise.
2764         * memcmp.c: Likewise.
2765
2766         * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
2767         Avoid using fseek, when possible -- it's broken by design.
2768         Patch by Ulrich Drepper.
2769
2770 2000-10-26  Jim Meyering  <meyering@lucent.com>
2771
2772         * strftime.c: Update from libc.
2773
2774 2000-10-25  Jim Meyering  <meyering@lucent.com>
2775
2776         * obstack.c: Update from libc.
2777
2778 2000-10-23  Jim Meyering  <meyering@lucent.com>
2779
2780         * hard-locale.c (hard_locale): Revert last change -- it was simply
2781         wrong.  That set_locale call must not have any side effects.
2782         From Paul Eggert.
2783
2784 2000-10-22  Jim Meyering  <meyering@lucent.com>
2785
2786         * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
2787         [CYCLIC]: Remove now-unused definition.
2788
2789         * save-cwd.c (O_DIRECTORY): Define, if needed.
2790         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
2791         Suggestion from Ulrich Drepper.
2792
2793 2000-10-21  Jim Meyering  <meyering@lucent.com>
2794
2795         * dirname.c (dir_name_r): New function, factored out of dir_name.
2796         (dir_name): Use dir_name_r.
2797         * dirname.h (dir_name_r): Declare it.
2798
2799 2000-10-21  Jim Meyering  <meyering@lucent.com>
2800
2801         * dirname.c (memrchr): Declare if necessary.
2802         (dir_name): Remove the restriction that there be no
2803         trailing slashes.  Now, this code skips past them, effectively
2804         ignoring them.
2805         [TEST_DIRNAME] (main): New unit tests.
2806
2807         * memrchr.c: New file from GNU libc.
2808         Undef __memrchr, too.
2809         [!weak_alias]: Define __memrchr to memrchr.
2810         Guard weak_alias use with `#ifdef weak_alias'.
2811
2812 2000-10-17  Jim Meyering  <meyering@lucent.com>
2813
2814         * quote.h (PARAMS): Define and use.
2815         Reported by Akim Demaille.
2816
2817         * getopt.c: Update from libc.
2818
2819 2000-10-16  Jim Meyering  <meyering@lucent.com>
2820
2821         * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale.
2822         From Jan Fedak.
2823
2824 2000-09-25  Jim Meyering  <meyering@lucent.com>
2825
2826         * md5.h (rol): Define (from GnuPG).
2827
2828         * sha.c: Give credit (GnuPG) where due.
2829         (M): Use rol rather than open-coding it.
2830         Add a FIXME comment.
2831
2832 2000-09-21  Jim Meyering  <meyering@lucent.com>
2833
2834         * userspec.c (parse_user_spec): Remove debugging printf I'd added.
2835         Reported by Michael Stone.
2836
2837 2000-09-20  Jim Meyering  <meyering@lucent.com>
2838
2839         * Makefile.am (libfetish_a_SOURCES): Add sha.c.
2840         (noinst_HEADERS): Add sha.h.
2841         Based on code from Scott G. Miller and from GnuPG.
2842
2843 2000-09-15  Jim Meyering  <meyering@lucent.com>
2844
2845         * regex.c: Update from libc.
2846
2847 2000-09-10  Jim Meyering  <meyering@lucent.com>
2848
2849         * getopt.c (_getopt_internal): Update from glibc.
2850
2851 2000-09-09  Jim Meyering  <meyering@lucent.com>
2852
2853         * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
2854         think it should be used as a general replacement for isascii.
2855         * fnmatch.c: Likewise.
2856         * mbswidth.c: Likewise
2857         * regex.c: Likewise.
2858
2859         Don't use atoi.
2860         * userspec.c: Include sys/param.h and limits.h.
2861         Include xstrtol.h.
2862         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
2863         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
2864         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
2865         UID, GID.  Check range.
2866
2867 2000-09-06  Jim Meyering  <meyering@lucent.com>
2868
2869         * getopt.c (_getopt_internal): Update from glibc.
2870
2871 2000-08-30  Jim Meyering  <meyering@lucent.com>
2872
2873         * strftime.c: Merge in changes from GNU libc.
2874
2875 2000-08-26  Jim Meyering  <meyering@lucent.com>
2876
2877         * closeout.c: Include "__fpending.h".
2878         (close_stdout_status): Return right away if there's nothing to flush.
2879
2880         * Makefile.am (noinst_HEADERS): Add __fpending.h.
2881         * __fpending.c: New file.
2882         * __fpending.h: New file.
2883
2884 2000-08-07  Paul Eggert  <eggert@twinsun.com>
2885
2886         Standardize on "memory exhausted" instead of "Memory exhausted"
2887         or "virtual memory exhausted".
2888         * obstack.c (print_and_abort): Use "memory exhausted", not
2889         "virtual memory exhausted".
2890         * same.c (same_name): Invoke xalloc_die instead of printing
2891         our own message.
2892         * userspec.c (parse_user_spec): Likewise.
2893         * bumpalloc.h: comment fix
2894         * same.c, userspec.c: Include xalloc.h.
2895
2896         * xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
2897         not char *const and pointing to a constant array.
2898         * xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
2899         (xrealloc): Comment fix.
2900
2901         * userspec.c (parse_user_spec):
2902         Don't translate a message until just before returning,
2903         to avoid unnecessary translation.
2904
2905 2000-08-07  Jim Meyering  <meyering@lucent.com>
2906
2907         * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
2908         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
2909         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
2910         getgroups.c, gethostname.c, getopt.h, group-member.c,
2911         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
2912         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
2913         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
2914         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
2915         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
2916         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
2917         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
2918         yesno.c: Back out Copyright date changes for each file with no change
2919         this year.  This eases coordination with other programs using the same
2920         source code modules.  From Paul Eggert.
2921
2922 2000-08-03  Greg McGary  <greg@mcgary.org>
2923
2924         * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
2925         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
2926         (EXTEND_BUFFER): Use them.
2927
2928 2000-08-01  Jim Meyering  <meyering@lucent.com>
2929
2930         * dirname.c (ISSLASH): Define.
2931         (BACKSLASH_IS_PATH_SEPARATOR): Define.
2932         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
2933         both `\' and `/' may be use as path separators.
2934         Based on a patch from Prashant TR.
2935
2936 2000-07-31  Paul Eggert  <eggert@twinsun.com>
2937
2938         * quotearg.c (quotearg_n_options): Don't make the initial
2939         slot vector a constant, since it might get modified.
2940
2941 2000-07-31  Jim Meyering  <meyering@lucent.com>
2942
2943         * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'.
2944         * obstack.c (print_and_abort): Likewise.
2945
2946 2000-07-30  Paul Eggert  <eggert@twinsun.com>
2947
2948         * quotearg.c (quotearg_n_options): Preallocate a slot 0
2949         buffer, so that the caller can always quote one small
2950         component of a "memory exhausted" message in slot 0.
2951         From a suggestion by Jim Meyering.
2952
2953 2000-07-30  Jim Meyering  <meyering@lucent.com>
2954
2955         * makepath.c (make_path): Quote the other instance, too.
2956
2957         * quotearg.c (N_STATIC_SLOTVECS): Define.
2958         (STATIC_BUF_SIZE): Define.
2959         (quotearg_n_options): Use only statically allocated storage when
2960         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
2961         than STATIC_BUF_SIZE.
2962
2963 2000-07-29  Jim Meyering  <meyering@lucent.com>
2964
2965         * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
2966         * dirname.c (dir_name): Likewise.
2967
2968         * basename.c (base_name): Use ISSLASH rather than comparing against `/'.
2969
2970         * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
2971         (dir_name): Assert that there are no trailing slashes.
2972
2973 2000-07-18  Bruno Haible  <haible@clisp.cons.org>
2974
2975         * mbswidth.h (mbswidth): Add a flags argument.
2976         (mbswidth): New declaration.
2977         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
2978         * mbswidth.c (mbswidth): Add a flags argument.
2979         (mbsnwidth): New function.
2980
2981 2000-07-24  Jim Meyering  <meyering@lucent.com>
2982
2983         * mbswidth.c: Remove useless #else.  From Bruno Haible.
2984
2985 2000-07-23  Paul Eggert  <eggert@twinsun.com>
2986
2987         * mbswidth.c (_XOPEN_SOURCE):
2988         Don't define; this causes problems on Solaris 7.
2989         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
2990
2991 2000-07-23  Paul Eggert  <eggert@twinsun.com>
2992
2993         * quotearg.c:
2994         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
2995         so that mbstate_t is always defined.
2996
2997         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
2998         be 1 in at least one GCC installation, and this configuration
2999         error is likely to be common.  Ignoring MB_LEN_MAX hurts
3000         performance on hosts that have mbrtowc but have only unibyte
3001         locales, but I assume these hosts are rare.
3002
3003 2000-07-23  Paul Eggert  <eggert@twinsun.com>
3004
3005         * quotearg.c: Streamline by invoking multibyte code only if needed.
3006         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
3007         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
3008         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
3009         invoke multibyte primitives.
3010
3011 2000-07-23  Jim Meyering  <meyering@lucent.com>
3012
3013         * basename.c (base_name): Add an assertion.
3014
3015 2000-07-15  Bruno Haible  <clisp.cons.org>
3016
3017         * quotearg.c: When the system forces us to redefine mbstate_t,
3018         shadow its mbsinit function.
3019
3020 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
3021
3022         * mbswidth.h: New file.
3023         * mbswidth.c: New file.
3024         * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
3025         (noinst_HEADERS): Add mbswidth.h.
3026
3027 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
3028
3029         * config.charset: Add support for FreeBSD. Improve support for HP-UX
3030         and IRIX 6.
3031
3032 2000-07-15  Jim Meyering  <meyering@lucent.com>
3033
3034         * makepath.c: Include quote.h.
3035         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
3036         corresponding argument in a `quote (...)' call.
3037         Give better diagnostics.
3038
3039         * Makefile.am (libfetish_a_SOURCES): Add quote.c.
3040         (noinst_HEADERS): Add quote.h.
3041
3042         * quote.c (quote, quote_n): New file.  Two functions taken verbatim
3043         from tar's src/misc.c.
3044         * quote.h: New file.  Prototypes for same.
3045
3046 2000-07-10  Paul Eggert  <eggert@twinsun.com>
3047
3048         From a suggestion by Bruno Haible.
3049         * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
3050         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
3051         to decide whether to define the BeOS workaround macro;
3052         this adjusts to the change to AC_MBSTATE_T.
3053
3054 2000-07-13  Paul Eggert  <eggert@twinsun.com>
3055
3056         * quotearg.h (enum quoting style): New enum clocale_quoting_style.
3057
3058         * quotearg.c (quoting_style_args, quoting_style_vals,
3059         quotearg_buffer_restyled): Add support for
3060         clocale_quoting_style.  Undo previous change to
3061         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
3062         and "{RIGHT QUOTATION MARK}" msgids.
3063
3064 2000-07-05  Paul Eggert  <eggert@twinsun.com>
3065
3066         The old behavior of quoting `like this' doesn't look good with
3067         newer, ISO-style fonts.  See:
3068         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
3069
3070         Instead, quote "like this" by default.  Let the translator
3071         tailor the locale-specific quoting behavior by providing
3072         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
3073
3074         * quotearg.c (N_): New macro.
3075         (gettext_default): New function.
3076         (quotearg_buffer_restyled): Use
3077         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
3078         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
3079
3080 2000-07-09  Jim Meyering  <meyering@lucent.com>
3081
3082         * Most files: Update copyright dates to include 2000.
3083
3084 2000-07-08  Jim Meyering  <meyering@lucent.com>
3085
3086         * xgethostname.c (ENAMETOOLONG): Define to an unlikely value
3087         if not defined.
3088         (xgethostname): Remove now-unnecessary #ifdef.
3089         Move declaration of `err' into loop where it's used.
3090
3091 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
3092
3093         * xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
3094         by allocating a larger buffer. Test the gethostname return value for
3095         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
3096         returns an error and ENAMETOOLONG isn't defined.
3097
3098 2000-07-05  Paul Eggert  <eggert@twinsun.com>
3099         and Bruno Haible  <haible@clisp.cons.org>
3100
3101         * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
3102
3103 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
3104
3105         * quotearg.c (struct quoting_options): Simplify quote_these_too
3106         dimension.
3107
3108 2000-07-03  Jim Meyering  <meyering@lucent.com>
3109
3110         * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
3111         Reported by Bruno Haible.
3112
3113 2000-07-04  Jim Meyering  <meyering@lucent.com>
3114
3115         * quotearg.c: Make inclusion of <wchar.h> independent of whether
3116         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
3117         lacks mbrtowc.
3118
3119 2000-07-03  Paul Eggert  <eggert@twinsun.com>
3120         and Bruno Haible  <haible@clisp.cons.org>
3121
3122         * quotearg.c (mbrtowc):
3123         Assign to *pwc, and return 1 only if result is nonzero.
3124         (iswprint): Use ISPRINT when substituting our own mbrtowc.
3125
3126 2000-07-03  Jim Meyering  <meyering@lucent.com>
3127
3128         * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
3129         This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
3130         From Bob Proulx.
3131
3132 2000-07-02  Jim Meyering  <meyering@lucent.com>
3133
3134         * quotearg.c (mbstate_t): Don't define here.
3135
3136 2000-07-02  Jim Meyering  <meyering@lucent.com>
3137
3138         * nanosleep.c (SIGCONT): Define if not already defined.
3139
3140 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
3141
3142         * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
3143         per change in ../m4/ls-mntd-fs.m4.
3144         (read_filesystem_list): Ignore symbolic links.
3145
3146 2000-06-29  Jim Meyering  <meyering@lucent.com>
3147
3148         * same.c: Include <string.h> or <strings.h>, as appropriate,
3149         for declaration of strcmp.
3150
3151         * long-options.c: Include <stdlib.h>, for declaration of exit.
3152
3153         * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
3154         Avoid warning by casting result to `char *' to remove `const'.
3155
3156 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
3157
3158         * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
3159
3160 2000-06-26  Paul Eggert  <eggert@twinsun.com>
3161
3162         savedir now sets errno on failure and invokes xmalloc to get memory.
3163         Fix a couple of other minor bugs while we're at it.
3164
3165         * savedir.c (<unistd.h>): Do not include; there's no need.
3166         (NAMLEN): Remove macro.
3167         (malloc, realloc): Remove decls.
3168         (stpcpy): Likewise.
3169         ("xalloc.h"): Include.
3170         (NAME_SIZE_DEFAULT): New macro.
3171         (savedir): Use xmalloc / xrealloc to allocate memory.
3172         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
3173         Skip "" directory entries.
3174         Use strlen to calculate directory entry length, since the old method
3175         is rarely used these days and isn't worth supporting.
3176         Don't use a pointer after freeing it.
3177         Check for integer overflow when calculating allocation size.
3178         Use memcpy to copy entries, instead of stpcpy.
3179         Set errno properly when returning NULL.
3180         Check for readdir error.
3181
3182 2000-06-26  Jim Meyering  <meyering@lucent.com>
3183
3184         * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
3185
3186 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
3187
3188         * getusershell.c (xmalloc, xrealloc): Remove functions.
3189         Include xalloc.h.
3190         Don't include <stdlib.h>.  Don't declare malloc, realloc.
3191
3192 2000-06-23  Bruno Haible  <haible@clisp.cons.org>
3193
3194         * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency.
3195
3196 2000-06-24  Jim Meyering  <meyering@lucent.com>
3197
3198         * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
3199
3200 2000-06-21  Jim Meyering  <meyering@lucent.com>
3201
3202         * getpass.c: New file, from Bruno Haible.  Required for BeOS.
3203
3204 2000-06-19  Paul Eggert  <eggert@twinsun.com>
3205
3206         * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
3207         (mbrtowc, mbstate_t): Define substitutes if
3208         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
3209         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
3210         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
3211
3212 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
3213
3214         * xgetcwd.c (xgetcwd): If the required pathname length is smaller
3215         than 1024, return a memory chunk of least possible size, instead
3216         of size PATH_MAX + 2. In the loop, increment the size proportionally.
3217         Use free/xmalloc instead of xrealloc to avoid copying for very long
3218         paths.
3219
3220 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
3221
3222         * canon-host.c (canon_host): Use malloc and memcpy to copy an
3223         address, not strdup.  Include <stdlib.h> and don't declare free().
3224
3225 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
3226
3227         * path-concat.c (path_concat): Don't access dir[-1] if dir is
3228         the empty string.
3229
3230 2000-06-21  Jim Meyering  <meyering@lucent.com>
3231
3232         * Makefile.am (libfetish_a_SOURCES): Add getstr.c.
3233         (noinst_HEADERS): Add getstr.h.
3234
3235         * getline.c (getstr): Move into a separate file.
3236         * getstr.c (getstr): New file, extracted from getline.c, with
3237         the following changes: new parameter, delim2; both delim[12]
3238         parameters have type `int', not `char'.  The latter would lose
3239         with 8-bit delimiters.
3240         * getstr.h: New file.
3241
3242 2000-06-19  Jim Meyering  <meyering@lucent.com>
3243
3244         * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
3245
3246 2000-06-18  Jim Meyering  <meyering@lucent.com>
3247
3248         * mkdir.c: Remove file, due mainly to copyright incompatibility.
3249         Besides, these days every porting target provides a mkdir function.
3250
3251         * strnlen.c: Include memory.h, string.h, and/or strings.h as needed.
3252         (this snippet comes from src/system.h).
3253
3254 2000-06-15  Paul Eggert  <eggert@twinsun.com>
3255
3256         * human.c (adjust_value): New function.
3257         (human_readable_inexact): Apply rounding style even when
3258         printing approximate values.
3259
3260 2000-06-14  Paul Eggert  <eggert@twinsun.com>
3261
3262         * human.c (human_readable_inexact): Allow an input block
3263         size that is not a multiple of the output block size, and vice versa.
3264         Reported by Piergiorgio Sartor.
3265
3266 2000-06-14  Paul Eggert  <eggert@twinsun.com>
3267
3268         * getdate.y (get_date): Apply relative times after time
3269         zone indicator, not before.  Reported by Todd A. Jacobs.
3270
3271 2000-06-13  Jim Meyering  <meyering@lucent.com>
3272
3273         * Makefile.am (all-local): Depend on lstat.c and stat.c.
3274
3275         * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
3276
3277 2000-06-12  Paul Eggert  <eggert@twinsun.com>
3278
3279         * xstat.in: Include <stdlib.h> in lstat, to declare "free".
3280
3281 2000-06-04  Paul Eggert  <eggert@twinsun.com>
3282
3283         * strnlen.c: Include <config.h> if HAVE_CONFIG_H.
3284
3285 2000-06-04  Jim Meyering  <meyering@lucent.com>
3286
3287         * getugroups.c (getugroups): Cast -1 to gid_t, for systems like
3288         SunOS 4.1.4 for which gid_t is an unsigned type.
3289
3290 2000-06-03  Jim Meyering  <meyering@lucent.com>
3291
3292         * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
3293
3294 2000-05-26  Bruno Haible  <haible@clisp.cons.org>
3295
3296         * Makefile.am (install-exec-local): On systems with glibc-2.1 or
3297         newer, don't install charset.alias.
3298         * config.charset: Change the Linux/glibc rules so they become empty
3299         on glibc-2.1 or newer.
3300
3301 2000-06-02  Jim Meyering  <meyering@lucent.com>
3302
3303         * mountlist.c: Back out last change.  Instead, do this...
3304         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy
3305         member using the same `ignore'-testing code.
3306         * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
3307         fs_type strings.
3308         From Mark D. Roth.
3309
3310 2000-05-29  Jim Meyering  <meyering@lucent.com>
3311
3312         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts
3313         with the `ignore' attribute.  Based on a patch from Mark D. Roth.
3314
3315 2000-05-22  Jim Meyering  <meyering@lucent.com>
3316
3317         * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
3318
3319 2000-05-18  Jim Meyering  <meyering@lucent.com>
3320
3321         * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
3322         back, too, since it may have been modified by allocate_entry.
3323         (hash_delete): Rewrite to use neither the assignment operator
3324         nor the comma operator in an if-expression.
3325
3326 2000-05-15  Paul Eggert  <eggert@twinsun.com>
3327
3328         * closeout.c:
3329         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
3330         Remove; no longer needed.
3331         "quotearg.h": Add include.
3332         (file_name): Do not bother to explicitly initialize to NULL; it's less
3333         efficient on some hosts.
3334         (close_stdout_status): Remove test as to whether stdout was already
3335         closed; it breaks for the case "echo x | sort >&-".
3336         Quote file name colons.
3337         Do not assume that _("write error") lacks format strings.
3338
3339 2000-05-15  Jim Meyering  <meyering@lucent.com>
3340
3341         * version-etc.c (version_etc_copyright): Update the copyright string
3342         used in all --version output.
3343
3344 2000-05-14  Jim Meyering  <meyering@lucent.com>
3345
3346         * closeout.c (close_stdout_set_file_name): New function.
3347         (close_stdout_status): Use new file-scoped global.
3348         Return right away if fstat says the stdout file descriptor is invalid.
3349         * closeout.h (close_stdout_set_file_name): Declare.
3350
3351 2000-05-10  Jim Meyering  <meyering@lucent.com>
3352
3353         * closeout.c [default_exit_status]: New file-scoped variable.
3354         (close_stdout_set_status): New function.
3355         * closeout.h (close_stdout_set_status): Declare.
3356
3357 2000-05-08  Jim Meyering  <meyering@lucent.com>
3358
3359         * long-options.c: Don't include closeout.h.
3360         (parse_long_options): Don't call close_stdout for --version.
3361
3362 2000-05-06  Jim Meyering  <meyering@lucent.com>
3363
3364         * strnlen.c: Undefine __strnlen and strnlen.
3365         [!weak_alias]: Define __strnlen to strnlen.
3366
3367         * atexit.c: New file, from libiberty.
3368
3369 2000-05-06  Jim Meyering  <meyering@lucent.com>
3370
3371         * closeout.c (close_stdout_status): Also check for errors on the
3372         stderr stream.
3373
3374 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
3375
3376         * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
3377         instead of xmalloc, xrealloc, path_concat.
3378         (locale_charset): Treat empty environment variables as absent.
3379         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
3380
3381 2000-05-04  Jim Meyering  <meyering@lucent.com>
3382
3383         * getopt.c: Update from glibc.
3384         * obstack.c: Likewise.
3385         * obstack.h: Likewise.
3386         * regex.c: Likewise.  NB: K&R compiler support is dropped for this file
3387
3388         * regex.h: Likewise.
3389         * strndup.c: Likewise.
3390         * strnlen.c: New file, from glibc.
3391
3392 2000-05-01  Jim Meyering  <meyering@lucent.com>
3393
3394         * full-write.c (full_write): Remove `FIXME' part of comment.
3395
3396 2000-04-29  Jim Meyering  <meyering@lucent.com>
3397
3398         * path-concat.c: Declare strdup only if it's not defined.
3399         * canon-host.c: Likewise.
3400
3401 2000-04-28  Jim Meyering  <meyering@lucent.com>
3402
3403         * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
3404         redefinition warning on some systems (HPUX).  Otherwise, regex.h is
3405         included first, then limits.h is included by locale.h by libintl.h.
3406         From John David Anglin.
3407
3408 2000-04-25  Jim Meyering  <meyering@lucent.com>
3409
3410         * makepath.c (S_IRWXUGO): Define.
3411         (make_path): Always perform explicit chmod if MODE specifies any
3412         of the `special' permission bits.  Prompted by a bug report against
3413         install from Mate Wierdl and Joost van Baal.
3414
3415 2000-04-18  Jim Meyering  <meyering@lucent.com>
3416
3417         * README: New file.
3418
3419         * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
3420         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
3421
3422 2000-04-17  Jim Meyering  <meyering@lucent.com>
3423
3424         * strftime.c (my_strftime) [strftime]: Declare strftime here, since
3425         the definition of it to rpl_strftime also defined-away the system's
3426         declaration.
3427
3428 2000-04-15  Jim Meyering  <meyering@lucent.com>
3429
3430         Use `C' to denote so-called `contiguous' files, the same way
3431         that tar does.
3432         * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
3433         (ftypelet): Use S_ISCTG.
3434         From Michael Deutschmann.
3435
3436 2000-04-14  Jim Meyering  <meyering@lucent.com>
3437
3438         * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
3439
3440 2000-04-08  Jim Meyering  <meyering@lucent.com>
3441
3442         * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
3443         names don't conflict.  Reported by Eli Zaretskii.
3444
3445 2000-03-28  Bruno Haible  <haible@clisp.cons.org>
3446
3447         * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
3448         bug.  Deal with the different error behavior of Irix iconv.
3449
3450 2000-04-07  Jim Meyering  <meyering@lucent.com>
3451
3452         * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
3453         to work around system header problems on AIX 3.2.5.  From Bruno Haible.
3454
3455 2000-04-05  Jim Meyering  <meyering@lucent.com>
3456
3457         Portability tweaks required for ultrix4.3.
3458         * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
3459         * readutmp.c: Include sys/types.h before sys/stat.h.
3460         * canon-host.c: Declare strdup.
3461         * path-concat.c: Likewise.
3462         From John David Anglin.
3463
3464 2000-04-04  Jim Meyering  <meyering@lucent.com>
3465
3466         Be more DOS 8.3-friendly.
3467         * ref-add.sin: Renamed from ref-add.sed.in.
3468         * ref-del.sin: Renamed from ref-del.sed.in.
3469         * Makefile.am: Reflect renaming.
3470         Reported by Eli Zaretskii.
3471
3472         Use a temporary file name that won't clash with `charset.alias'
3473         in the DOS 8.3 name space.
3474         * Makefile.am (charset_tmp): Define.
3475         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
3476         (uninstall-local): Likewise.
3477         Reported by Eli Zaretskii.
3478
3479 2000-03-29  Paul Eggert  <eggert@twinsun.com>
3480
3481         * time/strftime.c (my_strftime): Make sure we call the system
3482         strftime, not ourselves, when invoking the underlying strftime.
3483
3484 2000-03-24  Jim Meyering  <meyering@lucent.com>
3485
3486         * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
3487         (charset_alias): Define.
3488         (install-exec-local): Factor out common code.
3489         (uninstall-local): Split lines longer than 80.
3490         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
3491         (SUFFIXES): Define.
3492         (.sed.in.sed): New rule.  Don't redirect directly to $@.
3493         (CLEANFILES): Add ref-add.sed and ref-del.sed.
3494
3495 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
3496
3497         * config.charset: Output a line containing "Packages using this file".
3498         * ref-add.sed.in, ref-del.sed.in: New files.
3499         * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
3500         ref-del.sed): New rules.
3501
3502 2000-03-17  Jim Meyering  <meyering@lucent.com>
3503
3504         * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
3505         Otherwise, include <strings.h>
3506
3507 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
3508
3509         * unicodeio.c (utf8_wctomb): New function.
3510         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
3511         format instead of in UCS-4 with platform dependent endianness.
3512
3513 2000-03-07  Paul Eggert  <eggert@twinsun.com>
3514
3515         * savedir.c (savedir): Work even if directory size is
3516         negative; this can happen with some screwy NFS configurations.
3517
3518 2000-03-06  Jim Meyering  <meyering@lucent.com>
3519
3520         * localcharset.c (get_charset_aliases): Don't try to free file_name
3521         if it's NULL (because we ran out of memory).  From Bruno Haible.
3522
3523 2000-03-05  Jim Meyering  <meyering@lucent.com>
3524
3525         * localcharset.c ("path-concat.h"): Include.
3526         (get_charset_aliases): Use path_concat instead of ANSI string
3527         concatenation.
3528
3529         * unicodeio.h (PARAMS): Define.
3530         Use it to guard prototype.
3531
3532 2000-03-04  Jim Meyering  <meyering@lucent.com>
3533
3534         * Makefile.am (install-exec-local): Create $(libdir) before installing
3535         into it.
3536         (uninstall-local): Uncomment this rule so `make distcheck' works
3537         once again.
3538
3539         * unicodeio.c (<errno.h>): Include it.
3540         (errno): Declare if not defined.
3541
3542         * localcharset.c: Add Bruno's comment justifying use of volatile.
3543
3544         * config.charset: New version, incorporating remarks from a linux
3545         i18n mailing list.  From Bruno Haible.
3546
3547 2000-03-02  Jim Meyering  <meyering@lucent.com>
3548
3549         * Makefile.am (EXTRA_DIST): Add config.charset.
3550
3551 2000-03-01  Jim Meyering  <meyering@lucent.com>
3552
3553         * localcharset.c: Guard some #includes with `#if HAVE_...'.
3554         * unicodeio.c: Likewise.
3555
3556 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
3557
3558         * config.charset: New file.
3559         * localcharset.c: New file.
3560         * unicodeio.h, unicodeio.c: New files.
3561         * Makefile.am (DEFS): Add -DLIBDIR=...
3562         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
3563         (noinst_HEADERS): Add unicodeio.h.
3564         (all-local, install-exec-local, charset.alias): New targets.
3565
3566 2000-02-28  Paul Eggert  <eggert@twinsun.com>
3567
3568         * quotearg.c (ALERT_CHAR): New macro.
3569         (quotearg_buffer_restyled): Use it.
3570
3571 2000-02-27  Jim Meyering  <meyering@lucent.com>
3572
3573         * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
3574         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
3575
3576         * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
3577         not `#if STDC_HEADERS'.
3578         Declare malloc if needed.
3579
3580         * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
3581         now that autoconf always defines the HAVE_DECL_ symbols.
3582         * human.c: Likewise.
3583         * same.c: Likewise.
3584         * strtoumax.c: Likewise.
3585
3586         * backupfile.c: Arrange for cpp to fail if the configure-time
3587         declaration check was not run.
3588         * hash.c: Likewise.
3589         * human.c: Likewise.
3590         * same.c: Likewise.
3591         * strtoumax.c: Likewise.
3592
3593         * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
3594         then first look up the entire `.'-containing string as a login name.
3595
3596 2000-02-18  Paul Eggert  <eggert@twinsun.com>
3597
3598         * getdate.y: Handle two-digit years with leading zeros correctly.
3599         (textint): New typedef.
3600         (parser_control): Member year changed from int to textint.
3601         All uses changed.
3602         (YYSTYPE): Removed; replaced by %union with int and textint members.
3603         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
3604         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
3605         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
3606         (tSNUMBER, tUNUMBER): Now of type <textintval>.
3607         (date, number, to_year): Use width of number in digits, not its value,
3608         to determine whether it's a 2-digit year, or a 2-digit time.
3609         (yylex): Store number of digits of numeric tokens.
3610         Reported by John Kendall.
3611
3612         (parser_control): Changed from struct parser_control to typedef (for
3613         consistency).  All uses changed.
3614
3615         (tID): Removed; not used.
3616         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
3617
3618 2000-02-14  Paul Eggert  <eggert@twinsun.com>
3619
3620         * getpagesize.h (getpagesize): Port to VMS for Alpha;
3621         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
3622
3623 2000-02-12  Jim Meyering  <meyering@lucent.com>
3624
3625         * userspec.c (ISDIGIT): Define it.
3626         (isdigit): Remove definition.
3627         (is_number): Use ISDIGIT, not isdigit.
3628         <libintl.h>: Include.
3629         (_ and N_): Define.
3630         (parse_user_spec): Mark translatable strings.
3631
3632 2000-02-10  Jim Meyering  <meyering@lucent.com>
3633
3634         With these changes, nanosleep.[ch] are finally enough like the other
3635         lib/* replacement files to compile on a few more losing systems.
3636
3637         * nanosleep.h: Don't include config.h.
3638         Remove prototype from declaration of nanosleep.
3639         (PARAMS): Remove now-unneeded definition.
3640         * nanosleep.c: #undef nanosleep.
3641         (rpl_nanosleep): Rename from nanosleep.
3642
3643 2000-02-03  Jim Meyering  <meyering@lucent.com>
3644
3645         * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
3646         rather than with `#if HAVE_UTMPNAME'.
3647
3648 2000-02-01  Jim Meyering  <meyering@lucent.com>
3649
3650         * readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
3651
3652 2000-01-31  Jim Meyering  <meyering@lucent.com>
3653
3654         * nanosleep.h (nanosleep): Guard declaration with
3655         `#if ! HAVE_DECL_NANOSLEEP'.
3656         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
3657         the declaration in that vendor's sys/timers.h.
3658         Reported by Christian Krackowizer.
3659
3660         * quotearg.c (ISASCII): Add #undef and move definition to follow
3661         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
3662         (ISPRINT): Likewise.
3663         Reported by Tom Tromey.
3664
3665 2000-01-30  Jim Meyering  <meyering@lucent.com>
3666
3667         * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
3668         uses of ->ut_name.  The latter doesn't work with new Linux header files
3669         where only utmpx.ut_user is declared.
3670
3671         * readutmp.h (UT_USER): Define.
3672
3673 2000-01-23  Jim Meyering  <meyering@lucent.com>
3674
3675         * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
3676         obstack.c.
3677
3678 2000-01-22  Jim Meyering  <meyering@lucent.com>
3679
3680         * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
3681         [! HAVE_DECL_STRTOULL]: Declare strtoull.
3682         Required for some AIX systems.  Reported by Christian Krackowizer.
3683         [TESTING] (main): New function.
3684
3685         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
3686         * dirname.c (dir_name): Support for DOS-style file names with drive
3687         letters.
3688
3689         * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
3690
3691         * strverscmp.c (ISDIGIT): Define.
3692         (strverscmp): Use ISDIGIT, not isdigit.
3693
3694 2000-01-17  Paul Eggert  <eggert@twinsun.com>
3695
3696         * nanosleep.c (nanosleep):
3697         Don't use SA_INTERRUPT to decide whether to call sigaction, as
3698         POSIX.1 doesn't require SA_INTERRUPT and some systems
3699         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
3700         it's been part of POSIX.1 since day 1 (in 1988).
3701
3702 2000-01-17  Jim Meyering  <meyering@lucent.com>
3703
3704         * interlock: Remove unused file.  Reported by François Pinard.
3705
3706 2000-01-16  Paul Eggert  <eggert@twinsun.com>
3707
3708         * quotearg.c (quotearg_buffer_restyled): Do not quote
3709         alert, backslash, formfeed, and vertical tab unnecessarily in
3710         shell quoting style.
3711
3712 Local Variables:
3713 version-control: never
3714 End: