(libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
[gnulib.git] / lib / ChangeLog
1 2002-06-22  Jim Meyering  <meyering@lucent.com>
2
3         * c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
4
5         * Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
6         of fnmatch.h.
7         (EXTRA_DIST): Add fnmatch_loop.c.
8         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
9
10         * fnmatch_loop.c: New file, from diffutils-2.8.2.
11         * fnmatch.c: Update from diffutils-2.8.2.
12         * fnmatch_.h: New file.  From diffutils-2.8.2.
13         * fnmatch.h: Remove file.
14
15 2002-06-18  Paul Eggert  <eggert@twinsun.com>
16
17         * file-type.h: Report an error if neither S_ISREG nor
18         S_IFREG is defined, instead of using a test specific to glibc
19         2.2.  This should be safe, since POSIX requires S_ISREG and
20         Unix Version 7 had S_IFREG.  We don't need to check for
21         <sys/types.h> since we don't use any symbols that it defines.
22
23 2002-06-15  Jim Meyering  <meyering@lucent.com>
24
25         * file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
26         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
27         have been included before this file.
28
29 2002-06-13  Richard Dawe  <richdawe@bigfoot.com>
30
31         * Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t,
32         so that each temporary file name is unique and valid in the first
33         8 characters, for operation under DOS.
34
35 2002-06-15  Jim Meyering  <meyering@lucent.com>
36
37         Work even with DJGPP 2.03, which lacks support for symlinks.
38         From Richard Dawe.
39         * xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
40         is defined.
41         * lchown.c (S_ISLNK): Likewise.
42
43 2002-06-14  Jim Meyering  <meyering@lucent.com>
44
45         * file-type.h: Use the version from diffutils-2.8.2.
46         * file-type.c: Likewise.
47
48 2002-05-27  Jim Meyering  <meyering@lucent.com>
49
50         Fix a problem seen only on nonconforming systems whereby ls.c's
51         use of localtime, and then of gettimeofday would cause trouble:
52         the localtime call used to initialize rpl_gettimeofday's save
53         mechanism would clobber ls's current local time information so
54         that in any long listing the first file would always be listed
55         with date 1970-01-01.  Analysis by Volker Borchert.
56
57         * gettimeofday.c (localtime): Undefine.
58         (rpl_localtime): New function.
59
60 2002-05-22  Jim Meyering  <meyering@lucent.com>
61
62         * Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h.
63         * file-type.h: New file.
64         * file-type.c (file_type): New file/function.  Extracted from diffutils.
65
66 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67
68         * hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
69
70 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71
72         * sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
73         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74         of 127, since 64 is the largest conceivable number for ancient
75         nonstandard hosts.
76         * sig2str.c: Do not include <sys/wait.h>; no longer needed.
77
78 2002-04-28  Jim Meyering  <meyering@lucent.com>
79
80         * sig2str.c (WTERMSIG): Remove definition (unused).
81
82 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83
84         * sig2str.h, sig2str.c: New files.
85         * Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86
87 2002-04-24  Jim Meyering  <meyering@lucent.com>
88
89         * gettext.h: New file, from Gettext.
90         * Makefile.am (INCLUDES): Remove -I../intl.
91         (libfetish_a_SOURCES): Add gettext.h.
92
93 2002-04-16  Jim Meyering  <meyering@lucent.com>
94
95         * readutmp.h (UT_TYPE): Remove definition (now in who.c).
96         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
97         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
98
99 2002-04-12  Jim Meyering  <meyering@lucent.com>
100
101         * dirfd.h (dirfd): Elide prototype if dirfd is a macro.
102
103 2002-03-10  Jim Meyering  <meyering@lucent.com>
104
105         * makepath.c (make_path): Remove a comma from a diagnostic.
106         Suggestion from Santiago Vila.
107
108 2002-03-08  Jim Meyering  <meyering@lucent.com>
109
110         * rename.c: Mention that this wrapper is needed also on
111         mips-dec-ultrix4.4 systems.
112
113 2002-03-02  Jim Meyering  <meyering@lucent.com>
114
115         * gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
116         not HAVE_CLOCK_SETTIME.
117
118 2002-02-27  Paul Eggert  <eggert@twinsun.com>
119
120         * nanosleep.h: Rename to....
121         * timespec.h: New name for nanosleep.h.  All uses changed.
122
123         * gettime.c: New file.
124         * settime.c: New file.
125         * stime.c: Remove.
126
127         * Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
128         timespec.h.  Remove nanosleep.h.
129
130 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131
132         * acl.c, acl.h: New files.
133         * Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
134
135 2002-02-24  Jim Meyering  <meyering@lucent.com>
136
137         * strnlen.c (strnlen): Define-away/undef so that an inconsistent
138         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
139         cause trouble.  Reported by Nelson Beebe.
140
141 2002-02-23  Paul Eggert  <eggert@twinsun.com>
142
143         * path-concat.c (xpath_concat): Reorder code to pacify
144         compilers that don't know that xalloc_die never returns.
145
146 2002-02-20  Jim Meyering  <meyering@lucent.com>
147
148         * getdate.c: Regenerate using bison-1.33.
149
150 2002-02-15  Paul Eggert  <eggert@twinsun.com>
151
152         * posixver.c, posixver.h: New files.
153         * Makefile.am (libfetish_a_SOURCES): Add them.
154
155 2002-02-02  Paul Eggert  <eggert@twinsun.com>
156             Bruno Haible  <bruno@clisp.org>
157
158         * unicodeio.h (print_unicode_char): Add exit_on_error argument.
159         (fwrite_success_callback): New declaration.
160         * unicodeio.c (unicode_to_mb): New function, extracted from
161         print_unicode_char. Call failure callback instead of error.
162         (fwrite_success_callback): New function.
163         (exit_failure_callback): New function.
164         (fallback_failure_callback): New function.
165         (print_unicode_char): Call unicode_to_mb.
166
167 2002-01-26  Jim Meyering  <meyering@lucent.com>
168
169         * Makefile.am (getdate$U.o): Depend on unlocked-io.h.
170
171 2002-01-22  Jim Meyering  <meyering@lucent.com>
172
173         * Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
174         Otherwise, some versions of automake would omit the rule that makes
175         Makefile from Makefile.in.
176
177 2001-01-21  Paul Eggert  <eggert@twinsun.com>
178
179         * xmemcoll.h, xmemcoll.c: New files.
180         * Makefile.am (libfetish_a_SOURCES): Add them.
181         * memcoll.c: Include errno.h, and declare errno if not defined.
182         (memcoll): Set errno to zero if there is no error.
183
184         * quotearg.c (quotearg_buffer_restyled):
185         Fix bug with quoting buffers containing NUL when backslashing escapes.
186         This bug was exposed by the other changes in this patch.
187         (quotearg_n_options): New arg ARGSIZE.
188         All callers changed.
189         (quoting_options_from_style): New function.
190         (quotearg_n_style): Use it.
191         (quotearg_n_style_mem): New function.
192
193         * quotearg.h (quotearg_n_style_mem): New function.
194
195 2002-01-16  Jim Meyering  <meyering@lucent.com>
196
197         * getdate.y: Add three semicolons, each just before a closing brace.
198         Bison (as of version 1.31) no longer papers over that mistake.
199
200 2002-02-14  Paul Eggert  <eggert@twinsun.com>
201
202         * backupfile.c (ISDIGIT): Comment fix.
203         * getdate.y (ISDIGIT): Likewise.
204         * posixtm.c (ISDIGIT, year): Likewise.
205         * strverscmp.c (ISDIGIT): Likewise.
206         * userspec.c (ISDIGIT): Likewise.
207
208 2002-01-05  Jim Meyering  <meyering@lucent.com>
209
210         * version-etc.c (version_etc_copyright): Update copyright year.
211
212 2001-01-19  Paul Eggert  <eggert@twinsun.com>
213
214         * closeout.c (close_stdout_status): If ferror (stdout), do
215         not silently exit merely because the output buffer happens to
216         have nothing pending.
217
218 2001-12-18  Paul Eggert  <eggert@twinsun.com>
219
220         See the big note in ../ChangeLog.
221         * human.c (suffixes): Prefer K to k for 1024.
222         (generate_suffix_backwards): New function.
223         (human_readable_inexact): Use it.
224         * xstrtol.c (__xstrtol): If there is no number but there
225         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
226         Accept 'K' as well as 'k'.
227
228 2001-12-15  Jim Meyering  <meyering@lucent.com>
229
230         * regex.h (__restrict_arr): Update from libc.
231
232         * mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
233         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
234         (STREQ): Define.
235
236 2001-12-10  Jim Meyering  <meyering@lucent.com>
237
238         * linebuffer.c: Remove explicit declarations of xmalloc and xrealloc,
239         Instead, include "xalloc.h".
240         (initbuffer): Don't cast xmalloc return value to char*.
241         (readline): Reword comment.
242         Don't cast xrealloc return value to char*
243         Return NULL, not 0.
244
245 2001-12-09  Jim Meyering  <meyering@lucent.com>
246
247         * modechange.c (mode_compile): Add cast to avoid pedantic warning about
248         `signed and unsigned type in conditional expression'.
249         * posixtm.c (posix_time_parse): Likewise.
250
251         * xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
252
253         * readtokens.c (readtoken): Declare an index to be of type unsigned
254         to avoid a pedantic warning.
255
256         * getstr.c: Don't include assert.h.
257         (getstr): Remove warning-evoking assertions.
258         Return -1 if offset parameter is out of bounds.
259         Change the type of a local from int to size_t.
260
261         * strftime.c (my_strftime_localtime_r): Include this function
262         definition in the `#if ! HAVE_TM_GMTOFF' block.
263
264         * xgethostname.c: Remove declarations of xmalloc and xrealloc.
265         Include xalloc.h instead.
266
267 2001-12-02  Jim Meyering  <meyering@lucent.com>
268
269         * tempname.c: Don't declare getenv, thus reverting the change of
270         2001-11-18.  It's no longer necessary, now that stdlib.h is always
271         included.
272
273         * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
274         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
275
276 2001-11-30  Akim Demaille  <akim@epita.fr>
277
278         * xstrdup.c: Include xalloc.h, so that xstrdup is declared
279         before being defined.
280
281 2001-11-27  Paul Eggert  <eggert@twinsun.com>
282
283         * quotearg.h (quotearg_n, quotearg_n_style):
284         First arg is int, not unsigned.
285         * quotearg.c (quotearg_n, quotearg_n_style): Likewise.
286         (SIZE_MAX, UINT_MAX): New macros.
287         (quotearg_n_options): Abort if N is negative.
288         Avoid overflow check on hosts where size_t is 64 bits and int
289         is 32 bits, as overflow is impossible there.
290         Fix off-by-one typo that caused unnecessary reallocation.
291
292 2001-11-27  Jim Meyering  <meyering@lucent.com>
293
294         * tempname.c: Merge with version from libc.
295         * regex.c: Likewise.
296
297         * tempname.c: Include stdlib.h unconditionally.  On some old systems
298         for which STDC_HEADERS is 0, it was not included, resulting in a
299         warning about an integer-to-pointer conversion problem with getenv.
300         Reported by Volker Borchert.
301
302 2001-11-26  Jim Meyering  <meyering@lucent.com>
303
304         * gtod.h: Remove file.
305         * Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
306         * gettimeofday.c: Don't include gtod.h.
307         (GTOD_init): Remove function.
308         (rpl_gettimeofday): Do its job here instead, rather than aborting.
309         Suggestion from Volker Borchert.
310
311 2001-11-23  Jim Meyering  <meyering@lucent.com>
312
313         * hash.h (struct hash_table): Don't define here.  Merely declare it.
314         * hash.c (struct hash_table): Define it here instead.
315
316 2001-11-22  Jim Meyering  <meyering@lucent.com>
317
318         * hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
319
320 2001-11-18  Paul Eggert  <eggert@twinsun.com>
321
322         * tempname.c (TMP_MAX): Remove; no longer needed.
323         (TEMPORARIES): New macro.
324         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
325         removes an artificial limitation (e.g. HP-UX 10.20, where
326         TMP_MAX is 17576).
327
328 2001-11-18  Jim Meyering  <meyering@lucent.com>
329
330         * tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
331         on SunOS4.
332
333         * Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
334         files will be created before anything else.
335
336 2001-11-17  Jim Meyering  <meyering@lucent.com>
337
338         * modechange.c (mode_adjust): Fix error introduced on 1999-04-26
339         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
340         rather than group writable.  Patch by Juan F. Codagnone.
341
342         * readtokens.c: Remove explicit declarations of xmalloc and xrealloc,
343         Instead, include "xalloc.h".
344
345         * mountlist.c: Include unlocked-io.h after all system headers.
346         Remove explicit declarations of xmalloc, xrealloc,
347         and xstrdup.  Instead, include "xalloc.h".
348
349         * argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h.
350         * fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise.
351         * mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
352
353         * regex.c, sha.c, version-etc.c, yesno.c: Likewise.
354         Reported by Padraig Brady.
355
356         * mkstemp.c: #undef mkstemp.
357         Include config.h.
358         (rpl_mkstemp): Rename from mkstemp.
359         Protoize.
360
361 2001-11-16  Jim Meyering  <meyering@lucent.com>
362
363         * physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
364         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
365         determine the amount of total physical memory, use pstat_getstatic.
366         HPUX-11 doesn't define _SC_PHYS_PAGES.
367         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
368         If sysconf couldn't be used to determine the amount of available
369         physical memory, use both pstat_getstatic and pstat_getdynamic.
370         Based on a patch from Bob Proulx.
371
372 2001-11-05  Jim Meyering  <meyering@lucent.com>
373
374         * xstat.in (slash_aware_lstat): Correct a misleading comment.
375
376 2001-11-03  Jim Meyering  <meyering@lucent.com>
377
378         * argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
379         in argmatch_to_argument call.
380
381         * dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
382         argument.
383
384         * hash.c (hash_clear): Fix a bug that could lead to an infloop or
385         e.g., a fault due to an attempt to free a NULL pointer.
386
387 2001-11-01  Jim Meyering  <meyering@lucent.com>
388
389         * dirfd.c, dirfd.h: New files.
390         * Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
391
392         * hash.c (hash_print) [TESTING]: Clean up.
393
394 2001-10-22  Paul Eggert  <eggert@twinsun.com>
395
396         * hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
397         to avoid a warning if -Wall.
398
399 2001-10-21  Paul Eggert  <eggert@twinsun.com>
400
401         * regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
402
403 2001-10-21  Jim Meyering  <meyering@lucent.com>
404
405         * obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
406         this code would end up calling gettext even in packages built
407         with --disable-nls.
408         * getopt.c (_): Likewise.
409         * regex.c (_): Likewise.
410
411 2001-10-20  Paul Eggert  <eggert@twinsun.com>
412
413         * error.c (strerror_r): Do not declare unless !_LIBC.
414         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
415         Use strerror_r that is only a macro, even if it is not a function.
416         (strerror): Check for HAVE_DECL_STRERROR before declaring.
417         (private_strerror): Use prototypes, not old-style function definition.
418         (print_errno_message): New function.
419         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
420         char*-flavored one.
421         (error_tail, error, error_at_line): Use it.
422
423 2001-10-11  Jim Meyering  <meyering@lucent.com>
424
425         * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
426         and quote_n (1, ... to avoid clobbering a buffer.
427
428 2001-10-05  Jim Meyering  <meyering@lucent.com>
429
430         * Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.
431         * hash-pjw.c: New file (factored out of fileutils' remove.c).
432         * hash-pjw.h: New file.
433
434 2001-09-30  Jim Meyering  <meyering@lucent.com>
435
436         * mountlist.c [MOUNTED_GETFSSTAT]:
437         Include <sys/ucred.h>, for Apple Darwin.
438         Include sys/mount.h and sys/fs_types.h only if available.
439         (FS_TYPE): Define.
440         (read_filesystem_list): Use FS_TYPE.
441
442 2001-09-29  Paul Eggert  <eggert@twinsun.com>
443
444         * exclude.c (excluded_filename): 0 -> false, since it's
445         a boolean context.
446
447 2001-09-28  Paul Eggert  <eggert@twinsun.com>
448
449         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
450         #defines strtoimax.  Also treat the other strto* functions
451         like strtoimax.
452
453         * xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
454         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
455         (strtoimax, strtoumax): Do not declare if already defined as a macro.
456
457 2001-09-26  Jim Meyering  <meyering@lucent.com>
458
459         Most macros in unlocked-io.h had the wrong number of arguments.
460         * gen-uio: New script.
461         (USE_UNLOCKED_IO): Define to 1 if not already defined.
462         * unlocked-io.hin: Remove file.
463         * Makefile.am (unlocked-io.h): Rewrite to use a separate script,
464         rather than trying to embed it here.
465         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
466         Reported by Padraig Brady.
467
468 2001-09-25  Volker Borchert  <bt@teknon.de>
469
470         * gettimeofday.c (rpl_gettimeofday): Declare local variable `result'.
471
472 2001-09-23  Jim Meyering  <meyering@lucent.com>
473
474         * mountlist.c: Remove useless parentheses in #if directives.
475         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
476         the deprecated MOUNTED symbol is no longer defined in mntent.h.
477
478 2001-09-22  Jim Meyering  <meyering@lucent.com>
479
480         * localcharset.c: Update from latest gettext.
481         * config.charset: Likewise.
482
483 2001-09-20  Jim Meyering  <meyering@lucent.com>
484
485         * xstrtol.c (strtoimax): Guard declaration with
486         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
487         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
488         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
489         (strtoumax): Likewise, for completeness (it wasn't necessary).
490
491 2001-09-06  Paul Eggert  <eggert@twinsun.com>
492
493         * strtoimax.c (HAVE_LONG_LONG):
494         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
495         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
496         to work around bug in IBM C compiler.
497
498 2001-09-16  Jim Meyering  <meyering@lucent.com>
499
500         * mkdir.c: New file.
501
502 2001-09-04  Paul Eggert  <eggert@twinsun.com>
503
504         * xgetcwd.c: Revert some of the previous change; intead,
505         fix the HAVE_GETCWD_NULL code to behave more like the
506         !HAVE_GETCWD_NULL code used to.
507
508         Include "xalloc.h".
509         (xgetcwd): Do not return NULL when memory is exhausted; instead,
510         invoke xalloc_die.
511
512 2001-09-04  Paul Eggert  <eggert@twinsun.com>
513
514         * xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
515         Use ssize_t, not int, to store result of readlink.
516         Check for ssize_t overflow as well as size_t overflow,
517         as POSIX says the result of readlink is implementation-defined
518         when ssize_t overflows.
519         Remove unnecessary cast to char*.
520         Use free+malloc instead of realloc, as the storage doesn't need
521         to be preserved and it's clearer and can be more efficient that way.
522         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
523         * xreadlink.h (xreadlink): Update prototype.
524
525 2001-09-03  Paul Eggert  <eggert@twinsun.com>
526
527         * exclude.c (fnmatch_no_wildcards): Fix confusion between
528         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
529         spotted by Jim Meyering.
530
531 2001-09-03  Jim Meyering  <meyering@lucent.com>
532
533         * xreadlink.c (xreadlink): Preserve errno around `free' during failure.
534
535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
536
537         * xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
538         like the HAVE_GETCWD_NULL code.
539         Include pathmax.h if not HAVE_GETCWD.
540         Do not include xalloc.h.
541         (INITIAL_BUFFER_SIZE): New symbol.
542         Do not use xmalloc / xrealloc, since the caller is responsible for
543         handling errors.  Preserve errno around `free' during failure.
544         Do not overrun buffer when using getwd.
545
546 2001-09-03  Paul Eggert  <eggert@twinsun.com>
547
548         * xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
549         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0).
550
551 2001-09-02  Jim Meyering  <meyering@lucent.com>
552
553         * error.c: Update from GNU libc.
554
555 2001-09-01  Jim Meyering  <meyering@lucent.com>
556
557         * xreadlink.c: New file.
558         * xreadlink.h: New file.
559         * Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h.
560
561         * regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
562         doesn't conflict with sparc-sun-solaris2.7's definition in
563         /usr/include/sys/int_types.h.
564
565         * exclude.c: Use `""', not `<>' to #include non-system header files.
566         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
567         and strncasecmp as r-values.  Unixware didn't have declarations.
568
569 2001-08-31  Jim Meyering  <meyering@lucent.com>
570
571         * xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
572         Use an initial, malloc'd, buffer of length 128 rather than
573         a statically allocated one of length 1024.
574
575 2001-08-30  Paul Eggert  <eggert@twinsun.com>
576
577         * xgetcwd.c: Don't include pathmax.h.
578         Include stdlib.h and unistd.h if available.
579         Include xalloc.h.
580         (xmalloc, xstrdup, free): Remove decls.
581         (xgetcwd): Don't assume sizes fit in unsigned.
582         Check for overflow when computing sizes.
583         Simplify reallocation code.
584
585 2001-08-28  Paul Eggert  <eggert@twinsun.com>
586
587         * Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
588
589         * strtoimax.c: Renamed from strtoxmax.c, removing the
590         old strtoimax.c.
591
592         Also, make the following further changes to make this file's
593         configuration more similar to that of strtol.c:
594         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
595         (strtoumax, uintmax_t, strtoull, strtol): Remove.
596         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
597         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
598         changed to signed values.
599
600         And make the following changes as well:
601         Fix copyright notice, as 1999 was missing.
602         (verify): New macro.
603         (strtoimax): Check sizes at compile-time, not run-time.
604         Prefer strtol to strtoll if both work.
605         (main): Remove; it was not that useful and was a pain to maintain.
606
607         * strtoumax.c: Include strtoimax.c, not strtouxmax.c.
608
609 2001-08-30  Paul Eggert  <eggert@twinsun.com>
610
611         * savedir.c (savedir): Remove size parameter, as POSIX says that
612         a directory's st_size can have an arbitrary value, so the old
613         usage could waste an arbitrary amount of memory.  All uses
614         changed.
615         * savedir.h: Update prototype.
616
617 2001-08-30  Paul Eggert  <eggert@twinsun.com>
618
619         * xstrtol.c (strtoimax): New decl.
620
621 2001-08-28  Paul Eggert  <eggert@twinsun.com>
622
623         * xstrtol.h: Add copyright notice.
624         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
625         LONGINT_INVALID_SUFFIX_CHAR.
626
627 2001-08-30  Paul Eggert  <eggert@twinsun.com>
628
629         * quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
630         tm to be declared.
631
632 2001-08-30  Paul Eggert  <eggert@twinsun.com>
633
634         * hash.c: Remove '2001' from copyright notice.
635
636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
637
638         * full-write.h: New file.
639         * Makefile.am (libfetish_a_SOURCES): Add full-write.h.
640         * full-write.c: Correct credits, as cccp.c no longer
641         exists and anyway it was so heavily changed from the old cccp
642         code as to be unrecognizable.  Include full-write.h.
643         (full_write) Return size_t, with short writes meaning failure.
644         All callers changed.  This fixes a bug with large buffers
645         on 64-bit hosts.
646         * utime.c: Include full-write.h.
647
648 2001-08-30  Paul Eggert  <eggert@twinsun.com>
649
650         Merge 'exclude' changes from tar 1.13.22.
651         This fixes one or two unlikely storage allocation overflow bugs,
652         but doesn't change user-visible behavior otherwise.
653
654 2001-08-30  Paul Eggert  <eggert@twinsun.com>
655
656         * exclude.c (bool): Declare, perhaps by including stdbool.h.
657         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
658         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
659         Include if available.
660         (<xalloc.h>): Include
661         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
662         (verify): New macro.  Use it to verify that EXCLUDE macros do not
663         collide with FNM macros.
664         (struct patopts): New struct.
665         (struct exclude): Use it, as exclude patterns now come with options.
666         (new_exclude): Support above changes.
667         (new_exclude, add_exclude_file):
668         Initial size must now be a power of two to simplify overflow checking.
669         (free_exclude, fnmatch_no_wildcards): New function.
670         (excluded_filename): No longer requires options arg, as the options
671         are determined by add_exclude.  Now returns bool, not int.
672         (excluded_filename, add_exclude):
673         Add support for the fancy new exclusion options.
674         (add_exclude, add_exclude_file): Now takes int options arg.
675         Check for arithmetic overflow when computing sizes.
676         (add_exclude_file): xrealloc might modify errno, so don't
677         realloc until after errno might be used.
678
679         * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
680         New macros.
681         (free_exclude): New decl.
682         (add_exclude, add_exclude_file): Now takes int options arg.
683         (excluded_filename): No longer requires options arg, as the options
684         are determined by add_exclude.  Now returns bool, not int.
685
686 2001-08-30  Paul Eggert  <eggert@twinsun.com>
687
688         * alloca.c (alloca): Arg is of type size_t, not unsigned.
689
690 2001-08-27  Jim Meyering  <meyering@lucent.com>
691
692         * Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
693
694         * version-etc.c (N_): Remove definition.
695         Revert most of last change.
696         Instead, simply don't mark the `Copyright...' string for translation.
697         Based on advice from Paul Eggert.
698
699         * strtoxmax.c: Tweak comment.
700
701 2001-08-26  Jim Meyering  <meyering@lucent.com>
702
703         * version-etc.c (version_etc_copyright_fmt): Replace literal year
704         of copyright with `%s' so translators don't get an untranslated
705         message in 2002.
706         (COPYRIGHT_YEAR): Define.
707         (version_etc): Use fprintf rather than fputs.
708         Suggestion from Ulrich Drepper.
709
710         * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
711
712         * strtoll.c: New file, from GNU libc.
713         * xstrtoimax.c: New file.
714
715         * xstrtol.h: Add xstrtoimax.
716         * strtoumax.c: New file.  Simply include "strtoumax.c".
717         * strtoimax.c: New file.  Likewise, but first define STRTOUXMAX_SIGNED.
718
719         * strtoumax.c: Factor to work both for unsigned and signed types, ...
720         * strtoxmax.c: ... then renamed to this.
721
722 2001-08-13  Paul Eggert  <eggert@twinsun.com>
723
724         * Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
725         Port to Solaris 8, where 'sed' requires a space after the 'r'
726         command, and where sh dislikes "$/".  Clean up the spacing a bit.
727         Redirect output to $tmp just once.
728
729 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
730
731         * addext.c (<errno.h>): Include.
732         (errno): Declare if not defined.
733         (addext): Work correctly when pathconf returns -1 and leaves
734         errno alone because there is no limit.  Also, work even if
735         pathconf returns a value greater than SIZE_MAX.
736
737 2001-08-12  Jim Meyering  <meyering@lucent.com>
738
739         * xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
740         Simply `return getcwd (NULL, 0);'.
741         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
742         Use 1300 as initial value for length, not PATH_MAX.
743
744         * pathmax.h: Clean up cpp syntax.
745
746 2001-08-12  Jim Meyering  <meyering@lucent.com>
747
748         * gettimeofday.c: New file.
749         * gtod.h: New file.
750         * Makefile.am (libfetish_a_SOURCES): Add gtod.h.
751
752 2001-08-04  Jim Meyering  <meyering@lucent.com>
753
754         * error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt,
755         to get in sync with glibc.
756
757 2001-08-03  Paul Eggert  <eggert@twinsun.com>
758
759         The following changes are from gettext 0.10.39 as maintained by
760         Bruno Haible.
761
762         * mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
763         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
764         with inverted sense.  All uses changed.
765
766         * mbswidth.c: Don't include <limits.h>.
767         Include <stdlib.h> and <string.h> unconditionally.
768         (iswcntrl, mbsinit, ISCNTRL): New macros.
769         (mbsnwidth): Use K&R style function declarations.
770         Don't bother checking for MB_LEN_MAX == 1, since the compiler
771         can optimize it when MB_CUR_MAX == 1.
772         The width of control characters is zero, not 1.
773
774 2001-07-15  Jim Meyering  <meyering@lucent.com>
775
776         * Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
777         (BUILT_SOURCES): Add unlocked-io.h.
778         (io_functions): Define.
779         (unlocked-io.h): New rule.
780         (DISTCLEANFILES): Add unlocked-io.h.
781         (all-local): Depend on unlocked-io.h, to ensure it is created.
782
783         * unlocked-io.hin: New file
784
785         * regex.c: Update from glibc.
786
787 2001-07-05  Jim Meyering  <meyering@lucent.com>
788
789         * Makefile.am (noinst_HEADERS): Remove definition, per new automake
790         recommendation.
791         (libfetish_a_SOURCES): Put all .h files here instead.
792         Remove a thus-exposed (better checks in automake) duplicate and
793         two unnecessary .h files.
794
795 2001-06-11  Jim Meyering  <meyering@lucent.com>
796
797         * regex.c: Update from GNU libc.
798
799 2001-05-27  Jim Meyering  <meyering@lucent.com>
800
801         * readutmp.h (UT_TYPE): Define.
802
803 2001-05-24  Jim Meyering  <meyering@lucent.com>
804
805         * argmatch.c: Include "quote.h".
806         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
807         quote function.  Reported by Göran Uddeborg.
808
809 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
810
811         * dirname.c (dir_name): Compute append_dot using path, not newpath
812         which is not yet declared.
813
814 2001-05-11  Paul Eggert  <eggert@twinsun.com>
815
816         * Makefile.am (libfetish_a_SOURCES):
817         Add strftime.c, since we now compile it on all hosts.
818
819         * strftime.c (my_strftime):
820         Define to nstrftime if emacs, but only if my_strftime is not defined.
821         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
822         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
823         Add one more extra argument: a nanoseconds value.
824         All uses changed.
825         (ns): New macro.
826         (my_strftime function): Add %N format.
827         (emacs_strftimeu): Renamed from emacs_strftime,
828         with extra ut argument.
829
830 2001-05-11  Paul Eggert  <eggert@twinsun.com>
831
832         dirname code cleanup.  base_name now behaves more compatibly
833         with POSIX basename when given file names that have trailing
834         slashes, and similarly for dir_name.  Add new primitives
835         base_len and dir_len.  Put the directory-name-related decls
836         into dirname.h.
837
838         * addext.c (ISSLASH, base_name): Remove; now in dirname.h.
839         * backupfile.c (base_name): Likewise.
840         * basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
841         * dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
842         * makepath.c (strip_trailing_slashes): Likewise.
843         * path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH):
844         Likewise.
845         * rename.c (strip_trailing_slashes): Likewise.
846         * same.c (base_name): Likewise.
847         * stripslash.c (ISSLASH): Likewise.
848
849         * addext.c: Include <dirname.h> after size_t is defined.
850         * backupfile.c: Likewise.
851
852         * addext.c (addext): Use base_len to trim redundant
853         trailing slashes instead of doing it ourselves.
854         But do not trim the last slash if it is not redundant.
855
856         * backupfile.c (find_backup_file_name,
857         max_backup_version): Use base_len instead of rolling it ourselves.
858         Handle the case of "" and (on DOS) "C:" correctly.
859
860         * basename.c: Do not include <stdio.h>, <assert.h>; no longer needed.
861         Include <string.h>, <dirname.h>.
862         (base_name): Allow file names ending in slashes, other than names
863         that are all slashes.  In this case, return the basename followed
864         by the slashes.  This is more general, and can be used in places
865         where the original base_name purposely had an assertion failure.
866         (base_len): New function.
867
868         * dirname.c: Include <string.h> instead of <stdlib.h>.
869         Do not include <assert.h>; no longer needed.
870         Include xalloc.h.
871         (memrchr): Remove decl.
872         (dir_name_r): Remove.
873         (dir_len): Renamed from dirlen.  All callers changed.
874         Rewrite in terms of base_name, for simplicity and consistency.
875         (dir_name): Never return NULL.  All callers changed.
876         Do not include <stdlib.h> in test program; no longer needed.
877         return 0; is fine for test program.
878
879         * dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
880         New macros.
881         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
882
883         * path-concat.c (path_concat): Use base_len to compute
884         base length, not strlen; this means we cannot rely on memcpy
885         to null-terminate.
886
887         * same.c (STREQ): Remove.
888         (same_name): Handle the case where the basename ends in trailing '/'.
889
890         * stripslash.c (strip_trailing_slashes): Return nonzero if
891         a slash was stripped.  Do not strip the last slash after a
892         file system prefix.
893
894 2001-04-08  Jim Meyering  <meyering@lucent.com>
895
896         * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
897         recomputed; that's necessary when the offset spans a DST transition.
898         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
899
900 2001-04-02  Jim Meyering  <meyering@lucent.com>
901
902         * regex.h, regex.c: Update from GNU libc.
903
904 2001-03-19  Paul Eggert  <eggert@twinsun.com>
905
906         * version-etc.c (version_etc_copyright): Update to 2001.
907
908 2001-03-16  Paul Eggert  <eggert@twinsun.com>
909
910         * tempname.c (uint64_t): Define to uintmax_t if
911         not defined, and if UINT64_MAX is not defined.
912         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
913         Reported by John David Anglin.
914
915 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
916
917         * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve
918         alias if codeset is empty.
919         * config.charset (BeOS): Use wildcard syntax.
920
921 2001-03-13  Jim Meyering  <meyering@lucent.com>
922
923         * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
924         Don't insert a backslash when concatenating e.g., `C:' and `foo'.
925         From Bruno Haible.
926
927 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
928
929         * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL).
930         Don't return NULL.
931         * unicodeio.c (print_unicode_char): Simplify accordingly.
932
933 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
934
935         * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
936         support for DOS/DJGPP.
937
938 2001-02-28  Paul Eggert  <eggert@twinsun.com>
939
940         * Makefile.am (libfetish_a_SOURCES):
941         Add dup-safer.c, fopen-safer.c.
942         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
943
944         * dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files.
945
946 2001-02-25  Paul Eggert  <eggert@twinsun.com>
947
948         The mkstemp replacement is taken from glibc 2.2.2, with some
949         portability fixes for use outside glibc, as follows:
950
951         * tempname.c (struct_stat64): New macro.
952         (direxists, __gen_tempname): Use it.
953         This avoids a portability problem with Solaris 8.
954
955         * tempname.c (<config.h>): Include if HAVE_CONFIG_H.
956         (<stddef.h>, <stdint.h>, <string.h>):
957         Include only if STDC_HEADERS || _LIBC.
958         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
959         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
960         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
961         (__set_errno): Define this macro if <errno.h> doesn't.
962         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
963         Define these macros if <stdio.h> doesn't.
964         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
965         Define these macros if <sys/stat.h>
966         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
967         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
968         __xstat64): Define if not _LIBC.
969         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
970         (__gen_tempname): Invoke gettimeofday only if
971         HAVE_GETTIMEOFDAY || _LIBC;
972         otherwise, fall back on plain "time".
973         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
974
975         * mkstemp.c (__GT_FILE): Define to zero if not defined.
976
977         * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
978
979 2001-02-17  Jim Meyering  <meyering@lucent.com>
980
981         * strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
982         around included file name.
983
984         * strnlen.c (__strnlen): Merge in a change from GNU libc.
985
986         * strftime.c: Update from GNU libc (the only changes were to comments).
987
988 2001-02-13  Bruno Haible  <haible@clisp.cons.org>
989
990         * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash.
991
992 2001-02-17  Paul Eggert  <eggert@twinsun.com>
993
994         * mbswidth.c, quotearg.c (mbrtowc, mbsinit):
995         Remove workaround macros for hosts that have mbrtowc but not
996         mbstate_t, as we now insist on proper declarations for both
997         before using mbrtowc.
998
999 2001-02-17  Jim Meyering  <meyering@lucent.com>
1000
1001         * regex.c: Update from libc.
1002
1003 2001-02-16  Paul Eggert  <eggert@twinsun.com>
1004
1005         * alloca.c (malloc): Undef before defining, since stdlib.h
1006         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
1007         Reported by Mark Hounschell via Paul Eggert.
1008
1009 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
1010
1011         * config.charset: Update for FreeBSD 4.2.
1012
1013 2001-01-26  Jim Meyering  <meyering@lucent.com>
1014
1015         * quotearg.c: Include stddef.h.
1016         * quote.c: Include stddef.h.
1017         Reported by Axel Kittenberger.
1018
1019         * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
1020         line in double quotes so that it evokes a better diagnostic.
1021         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
1022         Reported by Axel Kittenberger.
1023
1024 2001-01-15  Bruno Haible  <haible@clisp.cons.org>
1025
1026         * unicodeio.c (print_unicode_char): Cast the second iconv() arg,
1027         to avoid a warning.  Add back 'const' to inptr.
1028
1029 2001-01-16  Jim Meyering  <meyering@lucent.com>
1030
1031         * basename.c: Include <stdio.h>, needed by assert on SunOS4.
1032         From Bruno Haible.
1033
1034 2001-01-14  Jim Meyering  <meyering@lucent.com>
1035
1036         * rename.c: New file.  From Volker Borchert.
1037         Include stdlib.h, string.h or strings.h, and xalloc.h.
1038         Use strip_trailing_slashes rather than open-coding it.
1039
1040 2001-01-03  Paul Eggert  <eggert@twinsun.com>
1041
1042         * strftime.c: Sync with glibc time/strftime.c 1.81.
1043
1044 2001-01-03  Jim Meyering  <meyering@lucent.com>
1045
1046         * unicodeio.c (print_unicode_char): Remove `const' from declaration of
1047         local `inptr' to avoid warning with some system declarations of iconv.
1048
1049 2000-12-29  Paul Eggert  <eggert@twinsun.com>
1050
1051         * modechange.c: Do not assume that mode_t uses the
1052         traditional octal encoding.  E.g. "chmod 1 FOO" should set
1053         the other-execute bit of FOO even if S_IXOTH != 1.
1054
1055         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
1056         WOTH, XOTH, ALLM): New macros.
1057         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
1058          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
1059         Use them.
1060         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
1061         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
1062         (mode_compile):
1063         No need to use uintmax_t; unsigned long is long enough.
1064         Don't bother to get suffix since we don't use it.
1065
1066 2000-12-24  Jim Meyering  <meyering@lucent.com>
1067
1068         * hash.c (is_prime): Return explicit boolean values.
1069         (hash_get_first): Return NULL to appease Irix5.6's 89.
1070         Reported by Nelson Beebe.
1071
1072 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
1073
1074         * localcharset.c (locale_charset): Add support for Win32.
1075
1076 2000-12-18  Paul Eggert  <eggert@twinsun.com>
1077
1078         * physmem.h, physmem.c: New files.
1079
1080         * Makefile.am (libfetish_a_SOURCES): Add physmem.c.
1081         (noinst_HEADERS): Add physmem.h.
1082
1083         * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
1084         't' for compatibility with Solaris 8 sort.
1085
1086 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
1087
1088         * config.charset: Add support for BeOS.
1089
1090 2000-12-16  Jim Meyering  <meyering@lucent.com>
1091
1092         * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
1093         SHELLS_FILE to a file name that's useful on djgpp systems.
1094         Include stdlib.h.
1095         (ADDITIONAL_DEFAULT_SHELLS): Define.
1096         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
1097         Based mostly on a patch from Prashant TR.
1098
1099 2000-12-16  Jim Meyering  <meyering@lucent.com>
1100
1101         This bug had a serious impact on chown: `chown N:M FILE' (for integer
1102         N and M) would have treated it like `chown N:N FILE'.
1103
1104         * userspec.c (parse_user_spec): Fix typo: s/u/g/.
1105
1106 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
1107
1108         * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII,
1109         CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257
1110         to the list of canonical encodings. Rename EUC-CN to GB2312.
1111
1112 2000-12-08  Andreas Schwab  <schwab@suse.de>
1113
1114         * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
1115         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
1116
1117 2000-12-07  Jim Meyering  <meyering@lucent.com>
1118
1119         * stripslash.c (ISSLASH): Define.
1120         (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'.
1121         From Prashant TR.
1122
1123         * dirname.c (FILESYSTEM_PREFIX_LEN): Define.
1124         (dir_name_r): Declare this function as static.
1125         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
1126         manifest itself on a name containing a mix of slashes and
1127         backslashes.
1128         Make this function work with names starting with a DOS-style
1129         drive letter and colon prefix.
1130         (dir_name): Append `.' if necessary.
1131         Based mostly on patches from Prashant TR and Eli Zaretskii.
1132
1133         * dirname.h (dir_name_r): Remove prototype.
1134
1135 2000-12-05  Jim Meyering  <meyering@lucent.com>
1136
1137         * dirname.c (dir_name_r): Add `const' in a few local declarations.
1138
1139 2000-12-04  Jim Meyering  <meyering@lucent.com>
1140
1141         * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
1142         Also include memory.h, stdlib.h, unistd.h if appropriate.
1143         Reported by Andreas Jaeger (conflicting declaration of malloc).
1144
1145 2000-12-02  Jim Meyering  <meyering@lucent.com>
1146
1147         * closeout.h: Make idempotent, to avoid some obscure warnings.
1148
1149 2000-12-01  Paul Eggert  <eggert@twinsun.com>
1150
1151         * memrchr.c: Include <config.h> before any system include file.
1152
1153 2000-11-29  Paul Eggert  <eggert@twinsun.com>
1154
1155         * dirname.c (dir_name_r): Fix typo: int -> size_t.
1156
1157 2000-11-26  Jim Meyering  <meyering@lucent.com>
1158
1159         * memcoll.c: Include sys/types.h.  From Werner Almesberger.
1160
1161 2000-11-22  Paul Eggert  <eggert@twinsun.com>
1162
1163         * strftime.c (my_strftime): Do not invoke mbrlen with a
1164         size of (size_t) -1; it's not portable.
1165
1166 2000-11-17  Akim Demaille  <akim@epita.fr>
1167
1168         * obstack.h: Formatting changes.
1169         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
1170         prevent type checking.
1171         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1172         cast the value to (void *): assigning a `foo *' to a `void *'
1173         variable is valid.
1174         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1175
1176 2000-11-17  Jim Meyering  <meyering@lucent.com>
1177
1178         * strstr.c: Update from GNU libc.
1179
1180 2000-11-16  Jim Meyering  <meyering@lucent.com>
1181
1182         * strverscmp.c: Incorporate weak-alias-related changes from glibc.
1183
1184 2000-11-11  Jim Meyering  <meyering@lucent.com>
1185
1186         * error.c: Add a couple #includes, merging from GNU libc version.
1187
1188 2000-11-10  Jim Meyering  <meyering@lucent.com>
1189
1190         * obstack.h: Update from GNU libc.
1191         * obstack.c: Likewise.
1192
1193 2000-11-06  Paul Eggert  <eggert@twinsun.com>
1194
1195         * getusershell.c (setusershell): Use rewind rather than
1196         fseek/fseeko, to avoid configuration hassles with fseeko.
1197         Don't bother opening SHELLS_FILE if shellstream is NULL;
1198         it's not necessary.
1199
1200 2000-11-05  Jim Meyering  <meyering@lucent.com>
1201
1202         * makepath.h (make_dir): Declare.
1203         * makepath.c (make_dir): Remove `static' attribute.
1204         Tweak a comment.
1205
1206 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
1207
1208         * hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
1209         last one in a bucket, advance to the next bucket.
1210
1211 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
1212
1213         * fnmatch.c: Do not comment out all the code if we are using
1214         the GNU C library, because in some cases we are replacing buggy
1215         code in the GNU C library itself.
1216
1217 2000-10-30  Paul Eggert  <eggert@twinsun.com>
1218
1219         * error.h, getline.h, modechange.h:
1220         Remove "2000" from Copyright line, as the file hasn't been
1221         changed this year other than in the copyright notice.
1222
1223         * xalloc.h: Add "2000" to Copyright line, as this file
1224         was changed this year.
1225
1226 2000-10-30  Paul Eggert  <eggert@twinsun.com>
1227
1228         * fnmatch.c (FOLD): Do not assume that characters are unsigned.
1229         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
1230         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
1231
1232 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
1233
1234         * regex.h (__restrict_arr): Move definition out of #ifndef block.
1235         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
1236         doesn't define __restrict_arr.
1237
1238 2000-10-29  Jim Meyering  <meyering@lucent.com>
1239
1240         * xstat.in: Fix grammar in comment.
1241
1242 2000-10-28  Jim Meyering  <meyering@lucent.com>
1243
1244         * memchr.c: Update from libc.
1245         Adjust for portability:
1246         [HAVE_STDLIB_H]: Include stdlib.h.
1247         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
1248         Undef __memchr, too.
1249         [!weak_alias]: Define __memchr to memchr.
1250
1251         * regex.c: Update from libc.
1252         * regex.h: Likewise.
1253         * getopt1.c: Likewise.
1254         * memcmp.c: Likewise.
1255
1256         * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
1257         Avoid using fseek, when possible -- it's broken by design.
1258         Patch by Ulrich Drepper.
1259
1260 2000-10-26  Jim Meyering  <meyering@lucent.com>
1261
1262         * strftime.c: Update from libc.
1263
1264 2000-10-25  Jim Meyering  <meyering@lucent.com>
1265
1266         * obstack.c: Update from libc.
1267
1268 2000-10-23  Jim Meyering  <meyering@lucent.com>
1269
1270         * hard-locale.c (hard_locale): Revert last change -- it was simply
1271         wrong.  That set_locale call must not have any side effects.
1272         From Paul Eggert.
1273
1274 2000-10-22  Jim Meyering  <meyering@lucent.com>
1275
1276         * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
1277         [CYCLIC]: Remove now-unused definition.
1278
1279         * save-cwd.c (O_DIRECTORY): Define, if needed.
1280         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
1281         Suggestion from Ulrich Drepper.
1282
1283 2000-10-21  Jim Meyering  <meyering@lucent.com>
1284
1285         * dirname.c (dir_name_r): New function, factored out of dir_name.
1286         (dir_name): Use dir_name_r.
1287         * dirname.h (dir_name_r): Declare it.
1288
1289 2000-10-21  Jim Meyering  <meyering@lucent.com>
1290
1291         * dirname.c (memrchr): Declare if necessary.
1292         (dir_name): Remove the restriction that there be no
1293         trailing slashes.  Now, this code skips past them, effectively
1294         ignoring them.
1295         [TEST_DIRNAME] (main): New unit tests.
1296
1297         * memrchr.c: New file from GNU libc.
1298         Undef __memrchr, too.
1299         [!weak_alias]: Define __memrchr to memrchr.
1300         Guard weak_alias use with `#ifdef weak_alias'.
1301
1302 2000-10-17  Jim Meyering  <meyering@lucent.com>
1303
1304         * quote.h (PARAMS): Define and use.
1305         Reported by Akim Demaille.
1306
1307         * getopt.c: Update from libc.
1308
1309 2000-10-16  Jim Meyering  <meyering@lucent.com>
1310
1311         * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale.
1312         From Jan Fedak.
1313
1314 2000-09-25  Jim Meyering  <meyering@lucent.com>
1315
1316         * md5.h (rol): Define (from GnuPG).
1317
1318         * sha.c: Give credit (GnuPG) where due.
1319         (M): Use rol rather than open-coding it.
1320         Add a FIXME comment.
1321
1322 2000-09-21  Jim Meyering  <meyering@lucent.com>
1323
1324         * userspec.c (parse_user_spec): Remove debugging printf I'd added.
1325         Reported by Michael Stone.
1326
1327 2000-09-20  Jim Meyering  <meyering@lucent.com>
1328
1329         * Makefile.am (libfetish_a_SOURCES): Add sha.c.
1330         (noinst_HEADERS): Add sha.h.
1331         Based on code from Scott G. Miller and from GnuPG.
1332
1333 2000-09-15  Jim Meyering  <meyering@lucent.com>
1334
1335         * regex.c: Update from libc.
1336
1337 2000-09-10  Jim Meyering  <meyering@lucent.com>
1338
1339         * getopt.c (_getopt_internal): Update from glibc.
1340
1341 2000-09-09  Jim Meyering  <meyering@lucent.com>
1342
1343         * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
1344         think it should be used as a general replacement for isascii.
1345         * fnmatch.c: Likewise.
1346         * mbswidth.c: Likewise
1347         * regex.c: Likewise.
1348
1349         Don't use atoi.
1350         * userspec.c: Include sys/param.h and limits.h.
1351         Include xstrtol.h.
1352         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
1353         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
1354         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
1355         UID, GID.  Check range.
1356
1357 2000-09-06  Jim Meyering  <meyering@lucent.com>
1358
1359         * getopt.c (_getopt_internal): Update from glibc.
1360
1361 2000-08-30  Jim Meyering  <meyering@lucent.com>
1362
1363         * strftime.c: Merge in changes from GNU libc.
1364
1365 2000-08-26  Jim Meyering  <meyering@lucent.com>
1366
1367         * closeout.c: Include "__fpending.h".
1368         (close_stdout_status): Return right away if there's nothing to flush.
1369
1370         * Makefile.am (noinst_HEADERS): Add __fpending.h.
1371         * __fpending.c: New file.
1372         * __fpending.h: New file.
1373
1374 2000-08-07  Paul Eggert  <eggert@twinsun.com>
1375
1376         Standardize on "memory exhausted" instead of "Memory exhausted"
1377         or "virtual memory exhausted".
1378         * obstack.c (print_and_abort): Use "memory exhausted", not
1379         "virtual memory exhausted".
1380         * same.c (same_name): Invoke xalloc_die instead of printing
1381         our own message.
1382         * userspec.c (parse_user_spec): Likewise.
1383         * bumpalloc.h: comment fix
1384         * same.c, userspec.c: Include xalloc.h.
1385
1386         * xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
1387         not char *const and pointing to a constant array.
1388         * xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
1389         (xrealloc): Comment fix.
1390
1391         * userspec.c (parse_user_spec):
1392         Don't translate a message until just before returning,
1393         to avoid unnecessary translation.
1394
1395 2000-08-07  Jim Meyering  <meyering@lucent.com>
1396
1397         * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
1398         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
1399         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
1400         getgroups.c, gethostname.c, getopt.h, group-member.c,
1401         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
1402         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
1403         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
1404         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
1405         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
1406         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
1407         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
1408         yesno.c: Back out Copyright date changes for each file with no change
1409         this year.  This eases coordination with other programs using the same
1410         source code modules.  From Paul Eggert.
1411
1412 2000-08-03  Greg McGary  <greg@mcgary.org>
1413
1414         * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
1415         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
1416         (EXTEND_BUFFER): Use them.
1417
1418 2000-08-01  Jim Meyering  <meyering@lucent.com>
1419
1420         * dirname.c (ISSLASH): Define.
1421         (BACKSLASH_IS_PATH_SEPARATOR): Define.
1422         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
1423         both `\' and `/' may be use as path separators.
1424         Based on a patch from Prashant TR.
1425
1426 2000-07-31  Paul Eggert  <eggert@twinsun.com>
1427
1428         * quotearg.c (quotearg_n_options): Don't make the initial
1429         slot vector a constant, since it might get modified.
1430
1431 2000-07-31  Jim Meyering  <meyering@lucent.com>
1432
1433         * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'.
1434         * obstack.c (print_and_abort): Likewise.
1435
1436 2000-07-30  Paul Eggert  <eggert@twinsun.com>
1437
1438         * quotearg.c (quotearg_n_options): Preallocate a slot 0
1439         buffer, so that the caller can always quote one small
1440         component of a "memory exhausted" message in slot 0.
1441         From a suggestion by Jim Meyering.
1442
1443 2000-07-30  Jim Meyering  <meyering@lucent.com>
1444
1445         * makepath.c (make_path): Quote the other instance, too.
1446
1447         * quotearg.c (N_STATIC_SLOTVECS): Define.
1448         (STATIC_BUF_SIZE): Define.
1449         (quotearg_n_options): Use only statically allocated storage when
1450         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
1451         than STATIC_BUF_SIZE.
1452
1453 2000-07-29  Jim Meyering  <meyering@lucent.com>
1454
1455         * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
1456         * dirname.c (dir_name): Likewise.
1457
1458         * basename.c (base_name): Use ISSLASH rather than comparing against `/'.
1459
1460         * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
1461         (dir_name): Assert that there are no trailing slashes.
1462
1463 2000-07-18  Bruno Haible  <haible@clisp.cons.org>
1464
1465         * mbswidth.h (mbswidth): Add a flags argument.
1466         (mbswidth): New declaration.
1467         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
1468         * mbswidth.c (mbswidth): Add a flags argument.
1469         (mbsnwidth): New function.
1470
1471 2000-07-24  Jim Meyering  <meyering@lucent.com>
1472
1473         * mbswidth.c: Remove useless #else.  From Bruno Haible.
1474
1475 2000-07-23  Paul Eggert  <eggert@twinsun.com>
1476
1477         * mbswidth.c (_XOPEN_SOURCE):
1478         Don't define; this causes problems on Solaris 7.
1479         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
1480
1481 2000-07-23  Paul Eggert  <eggert@twinsun.com>
1482
1483         * quotearg.c:
1484         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
1485         so that mbstate_t is always defined.
1486
1487         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
1488         be 1 in at least one GCC installation, and this configuration
1489         error is likely to be common.  Ignoring MB_LEN_MAX hurts
1490         performance on hosts that have mbrtowc but have only unibyte
1491         locales, but I assume these hosts are rare.
1492
1493 2000-07-23  Paul Eggert  <eggert@twinsun.com>
1494
1495         * quotearg.c: Streamline by invoking multibyte code only if needed.
1496         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
1497         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
1498         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
1499         invoke multibyte primitives.
1500
1501 2000-07-23  Jim Meyering  <meyering@lucent.com>
1502
1503         * basename.c (base_name): Add an assertion.
1504
1505 2000-07-15  Bruno Haible  <clisp.cons.org>
1506
1507         * quotearg.c: When the system forces us to redefine mbstate_t,
1508         shadow its mbsinit function.
1509
1510 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
1511
1512         * mbswidth.h: New file.
1513         * mbswidth.c: New file.
1514         * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
1515         (noinst_HEADERS): Add mbswidth.h.
1516
1517 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
1518
1519         * config.charset: Add support for FreeBSD. Improve support for HP-UX
1520         and IRIX 6.
1521
1522 2000-07-15  Jim Meyering  <meyering@lucent.com>
1523
1524         * makepath.c: Include quote.h.
1525         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
1526         corresponding argument in a `quote (...)' call.
1527         Give better diagnostics.
1528
1529         * Makefile.am (libfetish_a_SOURCES): Add quote.c.
1530         (noinst_HEADERS): Add quote.h.
1531
1532         * quote.c (quote, quote_n): New file.  Two functions taken verbatim
1533         from tar's src/misc.c.
1534         * quote.h: New file.  Prototypes for same.
1535
1536 2000-07-10  Paul Eggert  <eggert@twinsun.com>
1537
1538         From a suggestion by Bruno Haible.
1539         * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
1540         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
1541         to decide whether to define the BeOS workaround macro;
1542         this adjusts to the change to AC_MBSTATE_T.
1543
1544 2000-07-13  Paul Eggert  <eggert@twinsun.com>
1545
1546         * quotearg.h (enum quoting style): New enum clocale_quoting_style.
1547
1548         * quotearg.c (quoting_style_args, quoting_style_vals,
1549         quotearg_buffer_restyled): Add support for
1550         clocale_quoting_style.  Undo previous change to
1551         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
1552         and "{RIGHT QUOTATION MARK}" msgids.
1553
1554 2000-07-05  Paul Eggert  <eggert@twinsun.com>
1555
1556         The old behavior of quoting `like this' doesn't look good with
1557         newer, ISO-style fonts.  See:
1558         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
1559
1560         Instead, quote "like this" by default.  Let the translator
1561         tailor the locale-specific quoting behavior by providing
1562         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
1563
1564         * quotearg.c (N_): New macro.
1565         (gettext_default): New function.
1566         (quotearg_buffer_restyled): Use
1567         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
1568         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
1569
1570 2000-07-09  Jim Meyering  <meyering@lucent.com>
1571
1572         * Most files: Update copyright dates to include 2000.
1573
1574 2000-07-08  Jim Meyering  <meyering@lucent.com>
1575
1576         * xgethostname.c (ENAMETOOLONG): Define to an unlikely value
1577         if not defined.
1578         (xgethostname): Remove now-unnecessary #ifdef.
1579         Move declaration of `err' into loop where it's used.
1580
1581 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
1582
1583         * xgethostname.c (xgethostname): Protect against the SunOS5.5 bug
1584         by allocating a larger buffer. Test the gethostname return value for
1585         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
1586         returns an error and ENAMETOOLONG isn't defined.
1587
1588 2000-07-05  Paul Eggert  <eggert@twinsun.com>
1589         and Bruno Haible  <haible@clisp.cons.org>
1590
1591         * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
1592
1593 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
1594
1595         * quotearg.c (struct quoting_options): Simplify quote_these_too
1596         dimension.
1597
1598 2000-07-03  Jim Meyering  <meyering@lucent.com>
1599
1600         * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
1601         Reported by Bruno Haible.
1602
1603 2000-07-04  Jim Meyering  <meyering@lucent.com>
1604
1605         * quotearg.c: Make inclusion of <wchar.h> independent of whether
1606         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
1607         lacks mbrtowc.
1608
1609 2000-07-03  Paul Eggert  <eggert@twinsun.com>
1610         and Bruno Haible  <haible@clisp.cons.org>
1611
1612         * quotearg.c (mbrtowc):
1613         Assign to *pwc, and return 1 only if result is nonzero.
1614         (iswprint): Use ISPRINT when substituting our own mbrtowc.
1615
1616 2000-07-03  Jim Meyering  <meyering@lucent.com>
1617
1618         * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
1619         This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
1620         From Bob Proulx.
1621
1622 2000-07-02  Jim Meyering  <meyering@lucent.com>
1623
1624         * quotearg.c (mbstate_t): Don't define here.
1625
1626 2000-07-02  Jim Meyering  <meyering@lucent.com>
1627
1628         * nanosleep.c (SIGCONT): Define if not already defined.
1629
1630 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
1631
1632         * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
1633         per change in ../m4/ls-mntd-fs.m4.
1634         (read_filesystem_list): Ignore symbolic links.
1635
1636 2000-06-29  Jim Meyering  <meyering@lucent.com>
1637
1638         * same.c: Include <string.h> or <strings.h>, as appropriate,
1639         for declaration of strcmp.
1640
1641         * long-options.c: Include <stdlib.h>, for declaration of exit.
1642
1643         * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
1644         Avoid warning by casting result to `char *' to remove `const'.
1645
1646 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
1647
1648         * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
1649
1650 2000-06-26  Paul Eggert  <eggert@twinsun.com>
1651
1652         savedir now sets errno on failure and invokes xmalloc to get memory.
1653         Fix a couple of other minor bugs while we're at it.
1654
1655         * savedir.c (<unistd.h>): Do not include; there's no need.
1656         (NAMLEN): Remove macro.
1657         (malloc, realloc): Remove decls.
1658         (stpcpy): Likewise.
1659         ("xalloc.h"): Include.
1660         (NAME_SIZE_DEFAULT): New macro.
1661         (savedir): Use xmalloc / xrealloc to allocate memory.
1662         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
1663         Skip "" directory entries.
1664         Use strlen to calculate directory entry length, since the old method
1665         is rarely used these days and isn't worth supporting.
1666         Don't use a pointer after freeing it.
1667         Check for integer overflow when calculating allocation size.
1668         Use memcpy to copy entries, instead of stpcpy.
1669         Set errno properly when returning NULL.
1670         Check for readdir error.
1671
1672 2000-06-26  Jim Meyering  <meyering@lucent.com>
1673
1674         * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
1675
1676 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
1677
1678         * getusershell.c (xmalloc, xrealloc): Remove functions.
1679         Include xalloc.h.
1680         Don't include <stdlib.h>.  Don't declare malloc, realloc.
1681
1682 2000-06-23  Bruno Haible  <haible@clisp.cons.org>
1683
1684         * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency.
1685
1686 2000-06-24  Jim Meyering  <meyering@lucent.com>
1687
1688         * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
1689
1690 2000-06-21  Jim Meyering  <meyering@lucent.com>
1691
1692         * getpass.c: New file, from Bruno Haible.  Required for BeOS.
1693
1694 2000-06-19  Paul Eggert  <eggert@twinsun.com>
1695
1696         * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
1697         (mbrtowc, mbstate_t): Define substitutes if
1698         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
1699         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
1700         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
1701
1702 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
1703
1704         * xgetcwd.c (xgetcwd): If the required pathname length is smaller
1705         than 1024, return a memory chunk of least possible size, instead
1706         of size PATH_MAX + 2. In the loop, increment the size proportionally.
1707         Use free/xmalloc instead of xrealloc to avoid copying for very long
1708         paths.
1709
1710 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
1711
1712         * canon-host.c (canon_host): Use malloc and memcpy to copy an
1713         address, not strdup.  Include <stdlib.h> and don't declare free().
1714
1715 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
1716
1717         * path-concat.c (path_concat): Don't access dir[-1] if dir is
1718         the empty string.
1719
1720 2000-06-21  Jim Meyering  <meyering@lucent.com>
1721
1722         * Makefile.am (libfetish_a_SOURCES): Add getstr.c.
1723         (noinst_HEADERS): Add getstr.h.
1724
1725         * getline.c (getstr): Move into a separate file.
1726         * getstr.c (getstr): New file, extracted from getline.c, with
1727         the following changes: new parameter, delim2; both delim[12]
1728         parameters have type `int', not `char'.  The latter would lose
1729         with 8-bit delimiters.
1730         * getstr.h: New file.
1731
1732 2000-06-19  Jim Meyering  <meyering@lucent.com>
1733
1734         * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
1735
1736 2000-06-18  Jim Meyering  <meyering@lucent.com>
1737
1738         * mkdir.c: Remove file, due mainly to copyright incompatibility.
1739         Besides, these days every porting target provides a mkdir function.
1740
1741         * strnlen.c: Include memory.h, string.h, and/or strings.h as needed.
1742         (this snippet comes from src/system.h).
1743
1744 2000-06-15  Paul Eggert  <eggert@twinsun.com>
1745
1746         * human.c (adjust_value): New function.
1747         (human_readable_inexact): Apply rounding style even when
1748         printing approximate values.
1749
1750 2000-06-14  Paul Eggert  <eggert@twinsun.com>
1751
1752         * human.c (human_readable_inexact): Allow an input block
1753         size that is not a multiple of the output block size, and vice versa.
1754         Reported by Piergiorgio Sartor.
1755
1756 2000-06-14  Paul Eggert  <eggert@twinsun.com>
1757
1758         * getdate.y (get_date): Apply relative times after time
1759         zone indicator, not before.  Reported by Todd A. Jacobs.
1760
1761 2000-06-13  Jim Meyering  <meyering@lucent.com>
1762
1763         * Makefile.am (all-local): Depend on lstat.c and stat.c.
1764
1765         * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
1766
1767 2000-06-12  Paul Eggert  <eggert@twinsun.com>
1768
1769         * xstat.in: Include <stdlib.h> in lstat, to declare "free".
1770
1771 2000-06-04  Paul Eggert  <eggert@twinsun.com>
1772
1773         * strnlen.c: Include <config.h> if HAVE_CONFIG_H.
1774
1775 2000-06-04  Jim Meyering  <meyering@lucent.com>
1776
1777         * getugroups.c (getugroups): Cast -1 to gid_t, for systems like
1778         SunOS4.1.4 for which gid_t is an unsigned type.
1779
1780 2000-06-03  Jim Meyering  <meyering@lucent.com>
1781
1782         * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
1783
1784 2000-05-26  Bruno Haible  <haible@clisp.cons.org>
1785
1786         * Makefile.am (install-exec-local): On systems with glibc-2.1 or
1787         newer, don't install charset.alias.
1788         * config.charset: Change the Linux/glibc rules so they become empty
1789         on glibc-2.1 or newer.
1790
1791 2000-06-02  Jim Meyering  <meyering@lucent.com>
1792
1793         * mountlist.c: Back out last change.  Instead, do this...
1794         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy
1795         member using the same `ignore'-testing code.
1796         * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
1797         fs_type strings.
1798         From Mark D. Roth.
1799
1800 2000-05-29  Jim Meyering  <meyering@lucent.com>
1801
1802         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts
1803         with the `ignore' attribute.  Based on a patch from Mark D. Roth.
1804
1805 2000-05-22  Jim Meyering  <meyering@lucent.com>
1806
1807         * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
1808
1809 2000-05-18  Jim Meyering  <meyering@lucent.com>
1810
1811         * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
1812         back, too, since it may have been modified by allocate_entry.
1813         (hash_delete): Rewrite to use neither the assignment operator
1814         nor the comma operator in an if-expression.
1815
1816 2000-05-15  Paul Eggert  <eggert@twinsun.com>
1817
1818         * closeout.c:
1819         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
1820         Remove; no longer needed.
1821         "quotearg.h": Add include.
1822         (file_name): Do not bother to explicitly initialize to NULL; it's less
1823         efficient on some hosts.
1824         (close_stdout_status): Remove test as to whether stdout was already
1825         closed; it breaks for the case "echo x | sort >&-".
1826         Quote file name colons.
1827         Do not assume that _("write error") lacks format strings.
1828
1829 2000-05-15  Jim Meyering  <meyering@lucent.com>
1830
1831         * version-etc.c (version_etc_copyright): Update the copyright string
1832         used in all --version output.
1833
1834 2000-05-14  Jim Meyering  <meyering@lucent.com>
1835
1836         * closeout.c (close_stdout_set_file_name): New function.
1837         (close_stdout_status): Use new file-scoped global.
1838         Return right away if fstat says the stdout file descriptor is invalid.
1839         * closeout.h (close_stdout_set_file_name): Declare.
1840
1841 2000-05-10  Jim Meyering  <meyering@lucent.com>
1842
1843         * closeout.c [default_exit_status]: New file-scoped variable.
1844         (close_stdout_set_status): New function.
1845         * closeout.h (close_stdout_set_status): Declare.
1846
1847 2000-05-08  Jim Meyering  <meyering@lucent.com>
1848
1849         * long-options.c: Don't include closeout.h.
1850         (parse_long_options): Don't call close_stdout for --version.
1851
1852 2000-05-06  Jim Meyering  <meyering@lucent.com>
1853
1854         * strnlen.c: Undefine __strnlen and strnlen.
1855         [!weak_alias]: Define __strnlen to strnlen.
1856
1857         * atexit.c: New file, from libiberty.
1858
1859 2000-05-06  Jim Meyering  <meyering@lucent.com>
1860
1861         * closeout.c (close_stdout_status): Also check for errors on the
1862         stderr stream.
1863
1864 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
1865
1866         * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
1867         instead of xmalloc, xrealloc, path_concat.
1868         (locale_charset): Treat empty environment variables as absent.
1869         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
1870
1871 2000-05-04  Jim Meyering  <meyering@lucent.com>
1872
1873         * getopt.c: Update from glibc.
1874         * obstack.c: Likewise.
1875         * obstack.h: Likewise.
1876         * regex.c: Likewise.  NB: K&R compiler support is dropped for this file
1877
1878         * regex.h: Likewise.
1879         * strndup.c: Likewise.
1880         * strnlen.c: New file, from glibc.
1881
1882 2000-05-01  Jim Meyering  <meyering@lucent.com>
1883
1884         * full-write.c (full_write): Remove `FIXME' part of comment.
1885
1886 2000-04-29  Jim Meyering  <meyering@lucent.com>
1887
1888         * path-concat.c: Declare strdup only if it's not defined.
1889         * canon-host.c: Likewise.
1890
1891 2000-04-28  Jim Meyering  <meyering@lucent.com>
1892
1893         * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
1894         redefinition warning on some systems (HPUX).  Otherwise, regex.h is
1895         included first, then limits.h is included by locale.h by libintl.h.
1896         From John David Anglin.
1897
1898 2000-04-25  Jim Meyering  <meyering@lucent.com>
1899
1900         * makepath.c (S_IRWXUGO): Define.
1901         (make_path): Always perform explicit chmod if MODE specifies any
1902         of the `special' permission bits.  Prompted by a bug report against
1903         install from Mate Wierdl and Joost van Baal.
1904
1905 2000-04-18  Jim Meyering  <meyering@lucent.com>
1906
1907         * README: New file.
1908
1909         * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
1910         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
1911
1912 2000-04-17  Jim Meyering  <meyering@lucent.com>
1913
1914         * strftime.c (my_strftime) [strftime]: Declare strftime here, since
1915         the definition of it to rpl_strftime also defined-away the system's
1916         declaration.
1917
1918 2000-04-15  Jim Meyering  <meyering@lucent.com>
1919
1920         Use `C' to denote so-called `contiguous' files, the same way
1921         that tar does.
1922         * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
1923         (ftypelet): Use S_ISCTG.
1924         From Michael Deutschmann.
1925
1926 2000-04-14  Jim Meyering  <meyering@lucent.com>
1927
1928         * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
1929
1930 2000-04-08  Jim Meyering  <meyering@lucent.com>
1931
1932         * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
1933         names don't conflict.  Reported by Eli Zaretskii.
1934
1935 2000-03-28  Bruno Haible  <haible@clisp.cons.org>
1936
1937         * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
1938         bug.  Deal with the different error behavior of Irix iconv.
1939
1940 2000-04-07  Jim Meyering  <meyering@lucent.com>
1941
1942         * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
1943         to work around system header problems on AIX 3.2.5.  From Bruno Haible.
1944
1945 2000-04-05  Jim Meyering  <meyering@lucent.com>
1946
1947         Portability tweaks required for ultrix4.3.
1948         * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
1949         * readutmp.c: Include sys/types.h before sys/stat.h.
1950         * canon-host.c: Declare strdup.
1951         * path-concat.c: Likewise.
1952         From John David Anglin.
1953
1954 2000-04-04  Jim Meyering  <meyering@lucent.com>
1955
1956         Be more DOS 8.3-friendly.
1957         * ref-add.sin: Renamed from ref-add.sed.in.
1958         * ref-del.sin: Renamed from ref-del.sed.in.
1959         * Makefile.am: Reflect renaming.
1960         Reported by Eli Zaretskii.
1961
1962         Use a temporary file name that won't clash with `charset.alias'
1963         in the DOS 8.3 name space.
1964         * Makefile.am (charset_tmp): Define.
1965         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
1966         (uninstall-local): Likewise.
1967         Reported by Eli Zaretskii.
1968
1969 2000-03-29  Paul Eggert  <eggert@twinsun.com>
1970
1971         * time/strftime.c (my_strftime): Make sure we call the system
1972         strftime, not ourselves, when invoking the underlying strftime.
1973
1974 2000-03-24  Jim Meyering  <meyering@lucent.com>
1975
1976         * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
1977         (charset_alias): Define.
1978         (install-exec-local): Factor out common code.
1979         (uninstall-local): Split lines longer than 80.
1980         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
1981         (SUFFIXES): Define.
1982         (.sed.in.sed): New rule.  Don't redirect directly to $@.
1983         (CLEANFILES): Add ref-add.sed and ref-del.sed.
1984
1985 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
1986
1987         * config.charset: Output a line containing "Packages using this file".
1988         * ref-add.sed.in, ref-del.sed.in: New files.
1989         * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
1990         ref-del.sed): New rules.
1991
1992 2000-03-17  Jim Meyering  <meyering@lucent.com>
1993
1994         * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
1995         Otherwise, include <strings.h>
1996
1997 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
1998
1999         * unicodeio.c (utf8_wctomb): New function.
2000         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
2001         format instead of in UCS-4 with platform dependent endianness.
2002
2003 2000-03-07  Paul Eggert  <eggert@twinsun.com>
2004
2005         * savedir.c (savedir): Work even if directory size is
2006         negative; this can happen with some screwy NFS configurations.
2007
2008 2000-03-06  Jim Meyering  <meyering@lucent.com>
2009
2010         * localcharset.c (get_charset_aliases): Don't try to free file_name
2011         if it's NULL (because we ran out of memory).  From Bruno Haible.
2012
2013 2000-03-05  Jim Meyering  <meyering@lucent.com>
2014
2015         * localcharset.c ("path-concat.h"): Include.
2016         (get_charset_aliases): Use path_concat instead of ANSI string
2017         concatenation.
2018
2019         * unicodeio.h (PARAMS): Define.
2020         Use it to guard prototype.
2021
2022 2000-03-04  Jim Meyering  <meyering@lucent.com>
2023
2024         * Makefile.am (install-exec-local): Create $(libdir) before installing
2025         into it.
2026         (uninstall-local): Uncomment this rule so `make distcheck' works
2027         once again.
2028
2029         * unicodeio.c (<errno.h>): Include it.
2030         (errno): Declare if not defined.
2031
2032         * localcharset.c: Add Bruno's comment justifying use of volatile.
2033
2034         * config.charset: New version, incorporating remarks from a linux
2035         i18n mailing list.  From Bruno Haible.
2036
2037 2000-03-02  Jim Meyering  <meyering@lucent.com>
2038
2039         * Makefile.am (EXTRA_DIST): Add config.charset.
2040
2041 2000-03-01  Jim Meyering  <meyering@lucent.com>
2042
2043         * localcharset.c: Guard some #includes with `#if HAVE_...'.
2044         * unicodeio.c: Likewise.
2045
2046 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
2047
2048         * config.charset: New file.
2049         * localcharset.c: New file.
2050         * unicodeio.h, unicodeio.c: New files.
2051         * Makefile.am (DEFS): Add -DLIBDIR=...
2052         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
2053         (noinst_HEADERS): Add unicodeio.h.
2054         (all-local, install-exec-local, charset.alias): New targets.
2055
2056 2000-02-28  Paul Eggert  <eggert@twinsun.com>
2057
2058         * quotearg.c (ALERT_CHAR): New macro.
2059         (quotearg_buffer_restyled): Use it.
2060
2061 2000-02-27  Jim Meyering  <meyering@lucent.com>
2062
2063         * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
2064         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
2065
2066         * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
2067         not `#if STDC_HEADERS'.
2068         Declare malloc if needed.
2069
2070         * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
2071         now that autoconf always defines the HAVE_DECL_ symbols.
2072         * human.c: Likewise.
2073         * same.c: Likewise.
2074         * strtoumax.c: Likewise.
2075
2076         * backupfile.c: Arrange for cpp to fail if the configure-time
2077         declaration check was not run.
2078         * hash.c: Likewise.
2079         * human.c: Likewise.
2080         * same.c: Likewise.
2081         * strtoumax.c: Likewise.
2082
2083         * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
2084         then first look up the entire `.'-containing string as a login name.
2085
2086 2000-02-18  Paul Eggert  <eggert@twinsun.com>
2087
2088         * getdate.y: Handle two-digit years with leading zeros correctly.
2089         (textint): New typedef.
2090         (parser_control): Member year changed from int to textint.
2091         All uses changed.
2092         (YYSTYPE): Removed; replaced by %union with int and textint members.
2093         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
2094         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
2095         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
2096         (tSNUMBER, tUNUMBER): Now of type <textintval>.
2097         (date, number, to_year): Use width of number in digits, not its value,
2098         to determine whether it's a 2-digit year, or a 2-digit time.
2099         (yylex): Store number of digits of numeric tokens.
2100         Reported by John Kendall.
2101
2102         (parser_control): Changed from struct parser_control to typedef (for
2103         consistency).  All uses changed.
2104
2105         (tID): Removed; not used.
2106         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
2107
2108 2000-02-14  Paul Eggert  <eggert@twinsun.com>
2109
2110         * getpagesize.h (getpagesize): Port to VMS for Alpha;
2111         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
2112
2113 2000-02-12  Jim Meyering  <meyering@lucent.com>
2114
2115         * userspec.c (ISDIGIT): Define it.
2116         (isdigit): Remove definition.
2117         (is_number): Use ISDIGIT, not isdigit.
2118         <libintl.h>: Include.
2119         (_ and N_): Define.
2120         (parse_user_spec): Mark translatable strings.
2121
2122 2000-02-10  Jim Meyering  <meyering@lucent.com>
2123
2124         With these changes, nanosleep.[ch] are finally enough like the other
2125         lib/* replacement files to compile on a few more losing systems.
2126
2127         * nanosleep.h: Don't include config.h.
2128         Remove prototype from declaration of nanosleep.
2129         (PARAMS): Remove now-unneeded definition.
2130         * nanosleep.c: #undef nanosleep.
2131         (rpl_nanosleep): Rename from nanosleep.
2132
2133 2000-02-03  Jim Meyering  <meyering@lucent.com>
2134
2135         * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
2136         rather than with `#if HAVE_UTMPNAME'.
2137
2138 2000-02-01  Jim Meyering  <meyering@lucent.com>
2139
2140         * readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
2141
2142 2000-01-31  Jim Meyering  <meyering@lucent.com>
2143
2144         * nanosleep.h (nanosleep): Guard declaration with
2145         `#if ! HAVE_DECL_NANOSLEEP'.
2146         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
2147         the declaration in that vendor's sys/timers.h.
2148         Reported by Christian Krackowizer.
2149
2150         * quotearg.c (ISASCII): Add #undef and move definition to follow
2151         inclusion of wctype.h to work around solaris2.6 namespace pollution.
2152         (ISPRINT): Likewise.
2153         Reported by Tom Tromey.
2154
2155 2000-01-30  Jim Meyering  <meyering@lucent.com>
2156
2157         * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
2158         uses of ->ut_name.  The latter doesn't work with new Linux header files
2159         where only utmpx.ut_user is declared.
2160
2161         * readutmp.h (UT_USER): Define.
2162
2163 2000-01-23  Jim Meyering  <meyering@lucent.com>
2164
2165         * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
2166         obstack.c.
2167
2168 2000-01-22  Jim Meyering  <meyering@lucent.com>
2169
2170         * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
2171         [! HAVE_DECL_STRTOULL]: Declare strtoull.
2172         Required for some AIX systems.  Reported by Christian Krackowizer.
2173         [TESTING] (main): New function.
2174
2175         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
2176         * dirname.c (dir_name): Support for DOS-style file names with drive
2177         letters.
2178
2179         * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
2180
2181         * strverscmp.c (ISDIGIT): Define.
2182         (strverscmp): Use ISDIGIT, not isdigit.
2183
2184 2000-01-17  Paul Eggert  <eggert@twinsun.com>
2185
2186         * nanosleep.c (nanosleep):
2187         Don't use SA_INTERRUPT to decide whether to call sigaction, as
2188         POSIX.1 doesn't require SA_INTERRUPT and some systems
2189         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
2190         it's been part of POSIX.1 since day 1 (in 1988).
2191
2192 2000-01-17  Jim Meyering  <meyering@lucent.com>
2193
2194         * interlock: Remove unused file.  Reported by François Pinard.
2195
2196 2000-01-16  Paul Eggert  <eggert@twinsun.com>
2197
2198         * quotearg.c (quotearg_buffer_restyled): Do not quote
2199         alert, backslash, formfeed, and vertical tab unnecessarily in
2200         shell quoting style.
2201
2202 Local Variables:
2203 version-control: never
2204 End: