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