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