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