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