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