Mercurial > hg > octave-kai > gnulib-hg
annotate lib/ChangeLog @ 4677:b95345dafad0
Remove K&R cruft, day two.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 10 Sep 2003 07:13:02 +0000 |
parents | 11c0cb234663 |
children | 27f3f6c02580 |
rev | line source |
---|---|
4670 | 1 2003-09-09 Paul Eggert <eggert@twinsun.com> |
2 | |
3 More K&R removal. | |
4 | |
5 * acosl.c (main): Use a prototype. | |
6 * asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c, | |
7 tanl.c: Likewise. | |
8 | |
9 * getloadavg.c (getloadavg, main): Define via prototypes. | |
10 | |
11 * getopt.h (struct option.name): Assume C89, and use 'const'. | |
12 (getopt, etopt_long, getopt_long_only, _getopt_internal) | |
13 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare | |
14 with a prototype. | |
15 * getopt.c (const): Remove macro. | |
16 Include <string.h> unconditionally. | |
17 (my_index): Remove; all uses changed to strchr. | |
18 (strlen): Remove decl. | |
19 (exchange): Remove forward decl; no longer needed. | |
20 (exchange, _getopt_initialize, _getopt_internal, getopt, main): | |
21 Define with prototype. | |
22 * getopt1.c (const): Remove macro. | |
23 (getopt_long, getopt_long_only, main): Define with prototype. | |
24 | |
25 * getugroups.c: Include <string.h> unconditionally. | |
26 | |
27 * getusershell.c: Include <stdlib.h> unconditionally. | |
28 (getusershell, setusershell, endusershell, readname, main): | |
29 Define with prototypes. | |
30 | |
31 * group-member.c: Include group-member.h first. | |
32 Include <stdlib.h> unconditionally. | |
33 | |
34 * hard-locale.c: Include hard-locale.h first. | |
35 Include <stdlib.h>, <string.h> unconditionally. | |
36 | |
37 * hash.c (free, malloc): Remove decls. | |
38 Include <stdlib.h> unconditionally. | |
39 | |
40 * human.c: Include <stdlib.h>, <string.h> unconditionally. | |
41 (getenv): Do not declare. | |
42 | |
43 * idcache.c: Include <string.h> unconditionally. | |
44 | |
45 * long-options.c: Include long-options.h first, to test interface. | |
46 Include <stdlib.h> unconditionally. | |
47 | |
48 * makepath.c: Include makepath.h first, to test interface. | |
49 Include <stdlib.h> and <string.h> unconditionally. | |
50 | |
51 * linebuffer.c: Include <stdlib.h>. | |
52 (free): Remove decl. | |
53 | |
54 * malloc.c: Include <stdlib.h>, for malloc; don't bother with stddef.h. | |
55 rpl_malloc returns void *, not char *. | |
56 * realloc.c (rpl_realloc): Likewise. Also, define with a prototype. | |
57 | |
58 * md5.h: Include <limits.h> unconditionally. | |
59 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case. | |
60 (__P): Remove; all uses removed. | |
61 * md5.c: Include "md5.h" first. | |
62 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream, | |
63 md5_buffer, md5_process_bytes, md5_process_block): | |
64 Define with prototypes. | |
65 * sha.h (__P): Remove all uses. (It wasn't defined??) | |
66 * sha.c: Include "sha.h" first. | |
67 Include <stdlib.h>, <string.h> unconditionally. | |
68 | |
69 * memchr.c (__ptr_t): Remove; all uses changed to void *. | |
70 * memcmp.c (__ptr_t): Likewise. | |
71 * memrchr.c (__ptr_t): Likewise. | |
72 * memchr.c, memcmp.c, memcoll.c, memrchr.c: | |
73 Include <string.h> unconditionally. | |
74 * memchr.c, memrchr.c: Include <limits.h> unconditionally. | |
75 * memchr.c: Include <stdlib.h> unconditionally. | |
76 * memchr.c (LONG_MAX): Remove. | |
77 * memrchr.c (LONG_MAX): Likewise. | |
78 * memchr.c (__memchr): Define via a prototype. | |
79 * memrchr.c (__memrchr): Likewise. | |
80 * memcmp.c (__P): Remove, and remove all uses. | |
81 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment): | |
82 Remove forward decls; no longer needed. | |
83 * memcpy.c, memmove.c, memset.c: Include <stddef.h>. | |
84 Use types required by C89 in prototype. | |
85 | |
86 * mkdir.c: Include <stdlib.h>, <string.h> unconditionally. | |
87 * savedir.c: Likewise. | |
88 * mkdir.c (free): Remove decl. | |
89 * rmdir.c (rmdir): Define with a prototype. | |
90 * savedir.c: Include savedir.h first, to test interface. | |
91 | |
92 * mktime.c (STDC_HEADERS): Remove. | |
93 Include <stdlib.h>, <string.h> unconditionally. | |
94 | |
95 * modechange.c: Include <stdlib.h> unconditionally. | |
96 (malloc): Remove decl. | |
97 | |
98 * mountlist.c: Include <stdlib.h>, <string.h> unconditionally. | |
99 (free): Remove decl. | |
100 | |
101 * obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]: | |
102 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H. | |
103 (This type really should be intptr_t, but that's a C99ism.) | |
104 (_obstack_memcpy): Remove: all uses changed to memcpy. | |
105 Include <string.h> unconditionally. | |
106 (struct obstack): Assume __STDC__ for types of members | |
107 chunkfun, freefun, extra_arg. | |
108 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1, | |
109 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init, | |
110 obstack_begin, obstack_specify_allocation, | |
111 obstack_specify_allocation_with_arg, obstack_chunkfun, | |
112 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]: | |
113 Remove unprototyped decls and the macros that use them. | |
114 * obstack.c (POINTER): Remove. All uses changed to void *. | |
115 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN, | |
116 _obstack_begin, _obstack_begin_1, _obstack_allocated_p) | |
117 (defined __STDC__ && __STDC__)]: | |
118 Remove nonprototyped code. | |
119 Include <stdlib.h> unconditionally. | |
120 (_obstack_begin, _obstack_begin_1, _obstack_newchunk, | |
121 _obstack_allocated_p, _obstack_free, obstack_free, | |
122 _obstack_memory_used, print_and_abort): | |
123 Define using prototypes. | |
124 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base, | |
125 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0, | |
126 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room, | |
127 obstack_next_free, obstack_object_size, obstack_room) [0]: | |
128 Remove unused, unprototyped code. | |
129 | |
130 * path-concat.c: Include <stdlib.h>, <string.h> unconditionally. | |
131 | |
132 * physmem.c (physmem_total, physmem_available, main): Define | |
133 with prototypes. | |
134 | |
4677
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
135 * posixtm.c: Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
136 (main): Define with a prototype. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
137 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
138 * posixver.c (getenv): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
139 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
140 * putenv.c (malloc): Returns void *, not char *. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
141 Include <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
142 (strchr, memcpy, NULL): Do not define. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
143 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
144 * readtokens.c: Include readtokens.h first, to test interface. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
145 Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
146 (init_tokenbuffer): Define with a prototype. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
147 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
148 * regex.c (PARAMS): Remove. All uses removed. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
149 All uses of _RE_ARGS removed, too. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
150 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h> |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
151 unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
152 (bzero): Assume memset exists. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
153 (memcmp, memcpy, NULL): Remove. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
154 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
155 char, or assignments to local vars of type signed char. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
156 (init_syntax_once, PREFIX(extract_number_and_incr), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
157 PREFIX(print_partial_compiled_pattern), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
158 PREFIX(print_compiled_pattern), PREFIX(print_double_string), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
159 convert_mbs_to_wcs, print_fastmap, re_set_syntax, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
160 PREFIX(regex_grow_registers), PREFIX(regex_compile), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
161 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
162 PREFIX(insert_op2), PREFIX(at_begline_loc_p), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
163 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
164 wcs_compile_range, byte_compile_range, truncate_wchar, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
165 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
166 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
167 count_mbs_length, wcs_re_match_2_internal, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
168 byte_re_match_2_internal, PREFIX(group_match_null_string_p), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
169 PREFIX(alt_match_null_string_p), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
170 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
171 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
172 regfree, PREFIX(extract_number)): Define with prototype. Remove |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
173 now-unnecessary declaration, if any. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
174 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
175 regcomp, regexec): |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
176 Remove now-unnecessary casts among pointer types. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
177 * regex.h (_RE_ARGS): Remove. All uses removed. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
178 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
179 * rename.c: Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
180 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
181 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
182 * rpmatch.c: Include <stdlib.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
183 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
184 * same.c: Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
185 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
186 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
187 * save-cwd.c: Include <stdlib.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
188 * xgetcwd.c: Likewise. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
189 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
190 * stat.c: Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
191 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
192 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
193 * strchrnul.c (strchrnul): Define with a prototype. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
194 Fix bug: c_in was not converted to unsigned char before searching. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
195 |
4670 | 196 The following changes are not K&R related: |
197 | |
198 * group-member.h: Include <sys/types.h>, so that this file is | |
199 self-contained. | |
200 * makepath.h: Likewise. | |
201 | |
202 * getusershell.c (readname, default_index, line_size, readname): | |
203 Use size_t, not int, for sizes. | |
204 (readname): If the size overflows, report an error instead of | |
205 looping forever. | |
206 | |
207 2003-09-09 Derek Robert Price <derek@ximbiot.com> | |
208 | |
209 * getndelim2.c: Assume stdlib.h per the C89 spec. | |
210 | |
4647
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
211 2003-09-08 Paul Eggert <eggert@twinsun.com> |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
212 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
213 Assume C89 or better; remove K&R cruft. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
214 A few of these changes were first proposed by Derek Robert Price |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
215 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
216 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
217 * addext.c: Include <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
218 * backupfile.c: Include <string.h>, <stdlib.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
219 Don't declare getenv or malloc. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
220 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
221 * alloca.c: Include <string.h>, <stdlib.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
222 (POINTER_TYPE, pointer): Remove; all uses changed to void *. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
223 (NULL): Remove. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
224 (find_stack_direction, alloca): Use prototypes. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
225 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
226 * atexit.c (atexit): Define using a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
227 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
228 * basename.c, dirname.c, stripslash.c: |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
229 Include <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
230 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
231 * bcopy.c: Include <stddef.h>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
232 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
233 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
234 * canon-host.c: Include <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
235 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
236 * error.h (error, error_at_line, error_print_progname) |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
237 [! (defined (__STDC__) && __STDC__)]: Remove decls. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
238 * error.c: Include error.h first, to check interface. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
239 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
240 (VA_START): Remove; all uses changeed to va_start. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
241 (exit, strerror): Remove decls. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
242 (error_print_progname): Prototype uncondionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
243 Don't include <errno.h>; no longer needed. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
244 (private_strerror): Remove. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
245 (error_tail): Always define. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
246 (error, error_at_line): Assume C89 or better; always use prototypes. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
247 * fatal.c: Include "fatal.h" first, to test interface. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
248 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
249 (VA_START): Remove; all uses changed to va_start. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
250 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
251 this case. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
252 (exit): Remove decl. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
253 (fatal): Prototype unconditionally. Assume va_start works. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
254 Abort at end, to pacify gcc. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
255 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
256 * euidaccess.c (main): Define with a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
257 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
258 * exclude.c: Include <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
259 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
260 * exitfail.c: Include <stdlib.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
261 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
262 * fnmatch.h (__P): Remove. All uses changed to assume |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
263 prototypes. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
264 * fnmatch.c: Include fnmatch.h first, to test interface. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
265 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
266 (getenv): Remove decl. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
267 (fnmatch): Define using a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
268 * fnmatch_loop.c (FCT): Remove forward decl; no longer needed. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
269 (FCT): Define using a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
270 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
271 * getdate.y: Include <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
272 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
273 * gethostname.c: Include <stddef.h>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
274 (gethostname): Define with prototype. Length is size_t, not int. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
275 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
276 2003-09-08 Paul Eggert <eggert@twinsun.com> |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
277 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
278 * getversion.c: Remove; was migrated to backupfile.c in 1997. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
279 getversion.c should have been removed then, but was accidentally |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
280 preserved. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
281 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
282 * utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
283 (utime_null): Fix typo: 'st' was sometimes called 'sb'. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
284 |
4623
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
285 2003-09-07 Paul Eggert <eggert@twinsun.com> |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
286 |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
287 * time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
288 copy_tm_result. Bug reported by Simon Josefsson in |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
289 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>. |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
290 |
4621
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
291 2003-09-06 Paul Eggert <eggert@twinsun.com> |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
292 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
293 * time_r.c, time_r.h: New files. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
294 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
295 * mktime.c (my_mktime_localtime_r): Remove; all uses changed to |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
296 __localtime_r. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
297 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
298 (__mktime_internal) [!defined _LIBC]: Now extern, not static. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
299 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
300 * strftime.c (my_strftime_gmtime_r): Remove; all uses changed to |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
301 __gmtime_r. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
302 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
303 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
304 Include <time_r.h>. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
305 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
306 * timegm.c: Switch to glibc implementation, with the following changes: |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
307 [defined HAVE_CONFIG_H]: Include <config.h>. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
308 [!defined _LIBC]: Include "timegm.h" rather than <time.h>. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
309 (__mktime_internal) [!defined _LIBC]: New decl. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
310 (__gmtime_r) [!defined _LIBC]: New macro and function. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
311 (timegm): Use a prototype, since gnulib assumes C89. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
312 Do not bother declaring tmp to be const, as it's not really usefu. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
313 * timegm.h: Hoist "#include <time.h>" out of #ifdef. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
314 (timegm): Declare only if HAVE_DECL_TIMEGM. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
315 |
4619
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
316 2003-09-03 Paul Eggert <eggert@twinsun.com> |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
317 |
4620
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
318 * human.c (human_readable): Fix bug that rounded 10501 to 10k. |
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
319 Bug reported by Lute Kamstra in |
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
320 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>. |
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
321 |
4619
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
322 * getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow", |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
323 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
324 course with correspondingly smaller numbers for tomorrow and |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
325 yesterday. From Tadayoshi Funaba. Originally installed into |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
326 sh-utils on 1999-08-07, but the patch got lost (I guess during the |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
327 coreutils merge?). |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
328 |
4616 | 329 2003-08-31 Simon Josefsson <jas@extundo.com> |
330 | |
331 * timegm.h: New file. | |
332 * timegm.c: New file. Based on wget-1.8.2/src/http.c:mktime_from_utc. | |
333 | |
4613 | 334 2003-08-31 Karl Berry <karl@gnu.org> |
335 | |
336 * argp.h: update from libc. | |
337 | |
4611 | 338 2003-08-28 Bruno Haible <bruno@clisp.org> |
339 | |
340 * binary-io.h: Undefine O_BINARY before defining it. This avoids a | |
341 warning on QNX, which defines O_BINARY to 000000. | |
342 | |
4608 | 343 2003-08-24 Bruno Haible <bruno@clisp.org> |
344 | |
345 * binary-io.h: Include <stdio.h>, to avoid a compilation error when | |
346 MSVC7 <stdio.h> is included later. | |
347 | |
4603 | 348 2003-08-20 Bruno Haible <bruno@clisp.org> |
349 | |
4607
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
350 * progname.h: New file, from GNU gettext. |
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
351 * progname.c: New file, from GNU gettext. |
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
352 * progreloc.c: New file, from GNU gettext. |
4603 | 353 |
4598 | 354 2003-08-19 Bruno Haible <bruno@clisp.org> |
355 | |
356 * xstrdup.c: Assume <string.h> exists. | |
357 | |
4590 | 358 2003-08-18 Jim Meyering <jim@meyering.net> |
359 | |
4592 | 360 * setenv.h: Indent nested cpp directive. |
4590 | 361 * vasnprintf.c: Remove trailing blanks. |
362 | |
4587
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
363 2003-08-17 Simon Josefsson <jas@extundo.com> |
4590 | 364 Bruno Haible <bruno@clisp.org> |
4587
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
365 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
366 * xstrndup.h: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
367 * xstrndup.c: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
368 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
369 2003-08-17 Bruno Haible <bruno@clisp.org> |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
370 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
371 * strndup.h: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
372 |
4582
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
373 2003-08-16 Paul Eggert <eggert@twinsun.com> |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
374 |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
375 * regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
376 space, undoing this 2003-08-12 change: |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
377 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html> |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
378 |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
379 2003-08-16 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
380 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
381 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
382 * xstrtoimax.c: #else #if -> #elif. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
383 * xstrtoumax.c: Likewise. |
4590 | 384 |
4554
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
385 2003-08-15 Paul Eggert <eggert@twinsun.com> |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
386 |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
387 * config.charset, ref-add.sin, ref-del.sin: Use three spaces, |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
388 rather than tab, after '#' in shell-script copyright notices. |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
389 Suggested by Bruno Haible. |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
390 |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
391 2003-08-15 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
392 and Paul Eggert <eggert@twinsun.com> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
393 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
394 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
395 * readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
396 member but strut utmpx does not. Needed for AIX 4.3.3. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
397 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
398 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
399 2003-08-15 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
400 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
401 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
402 * xgethostname.c: Include <stdlib.h>. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
403 (xghostname): Don't exit for anything other than memory-related |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
404 failure; just return NULL. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
405 * userspec.c: Include "posixver.h". |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
406 (parse_user_spec): Accept `.' as a separator only |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
407 in pre-POSIX-200112 mode. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
408 * strtoimax.c: Use #elif rather than #else #if. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
409 * strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]: |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
410 Remove function, now that we can rely on a working tzset function. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
411 [!_LIBC]: Ensure that the required autoconf test has been run. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
412 [!defined _NL_CURRENT && HAVE_STRFTIME]: |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
413 Use underlying_strftime for %r. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
414 * sha.c: Merge in some clean-up and optimization changes from glibc. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
415 * sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
416 Ensure that it is a multiple of 64. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
417 Rearrange loop exit tests so as to avoid performing an |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
418 additional fread after encountering an error or EOF. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
419 * realloc.c: Update copyright date. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
420 |
4549 | 421 2003-08-14 Jim Meyering <jim@meyering.net> |
422 | |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
423 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
424 * obstack.h: Whitespace changes. |
4549 | 425 * mountlist.c: Remove anachronistic casts of xmalloc, xrealloc, |
426 and xcalloc return values. | |
427 (read_filesystem_list) [MOUNTED_GETFSSTAT]: | |
428 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could | |
429 hang on OSF/1 5.1 for DIR on both local and remote file systems. | |
430 Reported by (and fix confirmed by) Nelson H. F. Beebe. | |
431 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any | |
432 error from mntctl. | |
433 Use mntctl's return value to drive the entry-processing loop, since | |
434 we can't rely on the value of the vmt_length member in the last | |
435 entry. On some systems doing so could result in exhausting | |
436 virtual memory. Based in part on a patch from Mike Jetzer. | |
437 | |
438 2003-08-14 Jim Meyering <jim@meyering.net> | |
4590 | 439 and Paul Eggert <eggert@twinsun.com> |
4549 | 440 |
441 Merges from coreutils, plus other fixes. | |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
442 * physmem.c: Merge in portability changes from gcc/libiberty |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
443 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
444 for credits and details. Thanks to Kaveh Ghazi for helping |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
445 to keep these files in sync. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
446 (ARRAY_SIZE): Define it. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
447 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi. |
4549 | 448 * memcasecmp.c: Remove unnecessary parentheses after 'defined'. |
449 (memcasecmp): Don't assume size_t fits in unsigned int. | |
450 Remove casts and duplicate code. | |
451 * md5.c: Include <string.h> and <stdlib.h> unconditionally. | |
452 (memcpy): Remove definition. | |
453 Merge in some clean-up and optimization changes from glibc. | |
454 [BLOCKSIZE]: Move definition to top of file. | |
455 Ensure that it is a multiple of 64. | |
456 Rearrange loop exit tests so as to avoid performing an | |
457 additional fread after encountering an error or EOF. | |
458 * md5.h (md5_uintptr): Define. | |
459 * makepath.c (CLEANUP_CWD): Report an error if we failed to | |
460 return to the initial working directory. Preserve errno | |
461 for caller. | |
462 * idcache.c: Include "xalloc.h". | |
463 (xmalloc, xrealloc): Remove decls. | |
464 (getuser): Remove casts no longer required in C89. | |
465 * human.c: Include stdio.h, for sprintf. | |
466 * group-member.c: Include "xalloc.h". | |
467 (xmalloc, xrealloc): Remove decls. | |
468 (get_group_info): Remove casts no longer required in C89. | |
469 * getusershell.c (readname): Remove casts no longer required in C89. | |
470 * gettimeofday.c (rpl_gmtime, rpl_tzset): New functions. | |
471 * getline.c: Whitespace fix, from coreutils. | |
472 | |
4536
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
473 2003-08-13 Paul Eggert <eggert@twinsun.com> |
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
474 |
4537
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
475 * exclude.c: Include <ctype.h> |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
476 (IN_CTYPE_DOMAIN): New macro. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
477 (is_space): New fn. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
478 (add_exclude_file): If LINE_END is a space, ignore trailing spaces |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
479 and empty lines. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
480 |
4536
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
481 * argp-help.c, argp-parse.c, config.charset, getopt.h: |
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
482 Undo previous (whitespace-only) change. |
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
483 |
4531
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
484 2003-08-12 Paul Eggert <eggert@twinsun.com> |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
485 |
4533
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
486 * argp-help.c, argp-parse.c, config.charset, getopt.h: |
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
487 Normalize leading white space and remove trailing white space. |
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
488 * ref-add.sin, ref-del.sin: Use '#' before empty line in copyright |
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
489 notice, as per ../config/srclist-update. |
4590 | 490 |
4531
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
491 Merge from coreutils. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
492 * euidaccess.h: New file. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
493 * euidaccess.c: Include it. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
494 * .cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h, |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
495 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
496 * regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space. |
4590 | 497 |
4523
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
498 2003-08-11 Bruno Haible <bruno@clisp.org> |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
499 |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
500 * vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1. |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
501 (vasnprintf): Use it instead of wcslen. |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
502 |
4522
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
503 2003-08-11 Bruno Haible <bruno@clisp.org> |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
504 |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
505 * stdbool_.h (_Bool): Undo last change; instead use a negative enum |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
506 value to ensure that _Bool promotes to int. Use #define for _Bool when |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
507 using the Solaris C compiler. Adds comments suggested by Paul Eggert. |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
508 |
4521
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
509 2003-08-10 Karl Berry <karl@gnu.org> |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
510 |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
511 * regex.h: update from libc (whitespace fix). |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
512 |
4517 | 513 2003-08-09 Paul Eggert <eggert@twinsun.com> |
514 | |
515 Merge some files from coreutils. These changes were | |
516 originally made by Jim Meyering. | |
517 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>; | |
518 many older Unixes require this. | |
519 * lib/alloca.c (alloca): Remove cast to argument of free; | |
520 no longer needed in C89. | |
521 * lib/alloca_.h, lib/regex.h: Fix white space to match | |
522 what GNU indent does. | |
523 | |
4506 | 524 2003-08-05 Paul Eggert <eggert@twinsun.com> |
525 | |
526 * bumpalloc.h: Remove. | |
527 | |
4499
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
528 2003-08-04 Paul Eggert <eggert@twinsun.com> |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
529 |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
530 * getloadavg.c: Change copyright notice and spacing to conform to |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
531 GNU coding style. |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
532 |
4507
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
533 Merge from coreutils. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
534 * error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is 1. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
535 From glibc. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
536 * getdate.y (date): Also accept dates like May-23-2003; suggestion |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
537 from Karl Berry, implemented by Jim Meyering. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
538 * getgroups.c: Include "xalloc.h" instead of declaring xalloc fns; |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
539 from Dmitry V. Levin. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
540 Remove anachronistic cast of xrealloc. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
541 * fnmatch_.h (__const): Remove. Use 'const'. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
542 * fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
543 type. Otherwise, it wouldn't compile with at least /bin/cc on |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
544 ymp-cray-unicos9.0.2.X. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
545 Combine two mostly-identical uses of alloca into one. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
546 Thanks to the Cray-Cyber project for access to a Cray Y-MP. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
547 |
4499
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
548 2003-08-04 Dave Love <d.love@dl.ac.uk> |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
549 |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
550 [From Emacs.] |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
551 |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
552 * getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
553 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
554 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
555 obsolete NLIST_NAME_UNION. |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
556 [__GNU__]: Undef BSD and FSCALE. |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
557 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT. |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
558 |
4494
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
559 2003-08-03 Paul Eggert <eggert@twinsun.com> |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
560 |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
561 * stdbool_.h (_Bool): Make it signed char, instead of |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
562 an enum type, so that it's guaranteed to promote to int. See: |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
563 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html> |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
564 |
4488
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
565 2003-07-31 Paul Eggert <eggert@twinsun.com> |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
566 |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
567 * strerror.c: Include config.h, limits.h. Declare sprintf. |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
568 (strerror): Don't assume that a printable int fits in 14 bytes. |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
569 |
4483
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
570 2003-07-24 Derek Robert Price <derek@ximbiot.com> |
4590 | 571 Bruno Haible <bruno@clisp.org> |
4483
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
572 |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
573 * getline.h (getline, getdelim): Change return type to ssize_t. |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
574 * getline.c (getline, getdelim): Likewise. |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
575 Remove _GNU_SOURCE define; now it's defined in config.h through |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
576 m4/getline.m4. |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
577 |
4473
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
578 2003-07-22 Paul Eggert <eggert@twinsun.com> |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
579 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
580 * xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
581 over-parenthesization in macros. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
582 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
583 Sync with coreutils. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
584 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
585 * xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
586 required by C99. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
587 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
588 Use `exit_failure' for xalloc and xmemcoll instead of their own |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
589 private exit-failure variables. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
590 * xalloc.h (xalloc_exit_failure): Remove. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
591 * xmalloc.c: Likewise. Include exitfail.h. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
592 (xalloc_die): Use exit_failure instead of xalloc_exit_failure. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
593 * xmemcoll.h (xmemcoll_exit_failure): Remove. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
594 * xmemcoll.c: Likewise. Include exitfail.h. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
595 (xmemcoll): Use exit_failure instead of xalloc_exit_failure. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
596 |
4470 | 597 2003-07-18 Paul Eggert <eggert@twinsun.com> |
598 | |
599 * closeout.h (close_stdout_set_status, close_stdout_status): Remove. | |
600 * closeout.c: Likewise. Include "closeout.h" right after config.h, | |
601 to test that it can stand by itself. Include "exitfail.h". | |
602 Clients should set exit_failure instead. | |
603 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>. | |
604 | |
4465
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
605 2003-07-18 Andreas Schwab <schwab@suse.de> |
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
606 |
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
607 * memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno. |
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
608 |
4463 | 609 2003-07-18 Bruno Haible <bruno@clisp.org> |
610 | |
611 * getndelim2.h: New file. | |
612 * getndelim2.c: Make into a module of its own. Include config.h, | |
613 getndelim2.h. | |
614 (getndelim2): Make non-static. Change return type to ssize_t. | |
615 * getline.h: Change argument names. | |
616 * getline.c: Include getndelim2.h instead of getndelim2.c. | |
617 * getnline.c: Include getndelim2.h. | |
618 | |
4461 | 619 2003-07-17 Bruno Haible <bruno@clisp.org> |
620 | |
621 * Makefile.am: Remove file. | |
622 * Makefile.in: Remove file. | |
623 | |
4460 | 624 2003-07-17 Bruno Haible <bruno@clisp.org> |
625 | |
626 * getnline.h: New file. | |
627 * getnline.c: New file. | |
628 * getndelim2.c: New file, extracted from getline.c. | |
629 (getndelim2): Renamed from getdelim2, with added nmax argument. | |
630 * getline.c: Include getndelim2.c. | |
631 (getdelim2): Moved out to getndelim2.c. | |
632 (getline, getdelim): Update. | |
633 | |
4444
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
634 2003-07-15 <karl@gnu.org> |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
635 |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
636 * vasnprintf.c: update from gettext. |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
637 |
4442 | 638 2003-07-15 Jim Meyering <jim@meyering.net> |
639 | |
640 * makepath.c (make_path): Enclose diagnostic in _(...). | |
641 | |
4440
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
642 2003-07-14 Paul Eggert <eggert@twinsun.com> |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
643 |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
644 * asnprintf.c, asprintf.c, config.charset, gettext.h, |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
645 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c, |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
646 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin, |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
647 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h, |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
648 vasprintf.c, vasprintf.h: Regenerate. These files are now being |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
649 updated automatically by ../config/srclist-update. This changes |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
650 their license from LPGL to GPL. |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
651 |
4439 | 652 2003-07-14 Jim Meyering <jim@meyering.net> |
653 | |
654 Don't emit diagnostics. Let callers do that. | |
655 * save-cwd.c: Don't include "error.h". | |
656 (save_cwd): Don't call error. Ensure that errno is valid | |
657 when returning nonzero. | |
658 | |
659 * save-cwd.h (restore_cwd): Update prototype. | |
660 * save-cwd.c (restore_cwd): Remove two parameters. | |
661 Simplify. Don't call error upon failure. Let callers do that. | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
662 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4 |
4439 | 663 when auditing is enabled. But don't bother updating the #if. |
664 | |
4436 | 665 2003-07-14 Simon Josefsson <jas@extundo.com> |
666 | |
667 * mempcpy.h: New file. | |
668 * mempcpy.c: New file. | |
669 | |
4435 | 670 2003-07-14 Paul Eggert <eggert@twinsun.com> |
671 | |
672 * ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h, | |
673 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c, | |
674 unicodeio.c, unicodeio.h, unlocked-io.h: | |
675 Switch from LGPL to GPL. | |
676 | |
4433
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
677 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org> |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
678 |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
679 * obstack.h (__INT_TO_PTR): Revert change of 2003-03-13; |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
680 it breaks C++ compilation. |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
681 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*. |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
682 |
4429 | 683 2003-07-10 Jim Meyering <jim@meyering.net> |
684 | |
685 * vasnprintf.c: Remove trailing blanks. | |
686 Make cpp indentation consistent. | |
687 | |
4423
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
688 2003-07-09 Paul Eggert <eggert@twinsun.com> |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
689 |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
690 * alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h, |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
691 posixver.c, strftime.c, strnlen.c, strverscmp.c: |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
692 Switch from LGPL to GPL. |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
693 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
694 2003-07-07 Paul Eggert <eggert@twinsun.com> |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
695 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
696 * mktime.c: Fix some boundary cases and remove need for floating point. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
697 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
698 Issue a compile-time diagnostic if time_t is floating point, or if |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
699 two's complement arithmetic is not in effect, or if arithmetic |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
700 right shift does not propagate the sign. These assumptions were |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
701 all in the original code but they weren't checked. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
702 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
703 (TIME_T_MIDPOINT, verify): New macros. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
704 (__isleap): Remove; it has integer overflow problems. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
705 (leapyear): New function, without those problems. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
706 (ydhms_tm_diff): Remove; splitting into two parts. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
707 (ydhms_diff): New function, containing the arithmetic part of |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
708 the old ydhms_tm_diff function. Issue a compile-time |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
709 diagnostic if we are not using C99 integer division. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
710 Avoid casts when possible. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
711 (guess_time_tm): New function, containing the checking part of |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
712 the old ydhms_tm_diff function. Return the new value, rather than |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
713 the difference between it and the old. Accept a new argument T |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
714 so that *T specifies the old value. Check for overflow in the result. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
715 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
716 (__mktime_internal): Use a time_t offset, not a long int offset. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
717 This undoes the 2003-06-04 change, which is no longer needed now |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
718 that we have better overflow checking. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
719 (localtime_offset): Likewise. |
4421 | 720 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
721 (__mktime_internal): Avoid harmful overflow on hosts where time_t |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
722 and long are 64-bit but int is only 32-bit. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
723 (ydhms_diff): Use long int to store year1 and yday1. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
724 Issue a compile-time diagnostic if long int is not wide enough. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
725 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
726 (__mktime_internal): Use long int to store adjusted year and yday. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
727 Use plain C rather than preprocessor commands, if that doesn't |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
728 affect efficiency. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
729 Check for overflow (and try to repair) after each probe |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
730 rather than checking only at the very end. This avoids some bugs |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
731 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
732 does not equal GMT offset at maximum time). |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
733 Use integer to check for overflow rather than floating point; this |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
734 is more portable to non-IEEE hosts, and is a tad faster. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
735 When we detect that we are oscillating between two values, |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
736 don't check whether tm_isdst has the requested value, since |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
737 we already know the answer. When tm_isdst has the wrong value, |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
738 use a different heuristic to find the right one, based on the |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
739 extreme values actually observed in practice in tz2003a, |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
740 rather than the (overly optimistic) "previous 3 calendar quarters". |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
741 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
742 (not_equal_tm, print_tm, check_result): Use "const T" rather than |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
743 "T const" to accommodate glibc style. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
744 (check_result): Use less-confusing report format. "long" -> "long int. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
745 (main): Likewise. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
746 Don't loop if the iteration overflows time_t. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
747 Allow a negative step in the iteration. |
4421 | 748 |
4413
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
749 2003-07-01 Paul Eggert <eggert@twinsun.com> |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
750 |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
751 * xreadlink.c: Include <sys/types.h> unconditionally, instead of |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
752 having it depend on HAVE_SYS_TYPES_H. |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
753 |
4405 | 754 2003-06-25 Bruno Haible <bruno@clisp.org> |
755 | |
756 * readlink.c: New file. | |
757 | |
4401 | 758 2003-06-20 Bruno Haible <bruno@clisp.org> |
759 | |
760 Assume C89, so PARAMS isn't needed. | |
761 * unicodeio.h (PARAMS): Remove. | |
762 * unicodeio.c: Don't use PARAMS. | |
763 | |
4399 | 764 2003-06-18 Jim Meyering <jim@meyering.net> |
765 | |
766 Merge changes from coreutils. | |
767 * readutmp.c: Include <string.h> and <stdlib.h> unconditionally. | |
768 Remove explicit declarations of xmalloc and realloc. | |
769 Include xalloc.h. | |
770 (read_utmp): Remove anachronistic cast of xmalloc. | |
771 | |
4397
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
772 2003-06-17 Paul Eggert <eggert@twinsun.com> |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
773 |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
774 Assume C89, so PARAMS isn't needed. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
775 * backupfile.h (PARAMS): Remove. All uses removed. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
776 * closeout.h, dirname.h, filemode.h, fsusage.h, getdate.h, getline.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
777 group-member.h, hard-locale.h, hash.h, linebuffer.h, long-options.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
778 makepath.h, memcasecmp.h, memcoll.h, modechange.h, mountlist.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
779 path-concat.h, physmem.h, posixtm.h, quote.h, readutmp.h, same.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
780 save-cwd.h, savedir.h, stdio-safer.h, strtoimax.c, strverscmp.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
781 unistd-safer.h, version-etc.h, xalloc.h, xreadlink.h, xstrtod.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
782 xstrtol.h: Likewise. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
783 * filemode.h, hard-locale.h, memcoll.h, modechange.h, physmem.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
784 same.h, strverscmp.h: Do not include config.h; no longer needed. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
785 Anyway, config.h should always be included before any other file. |
4399 | 786 |
4392 | 787 2003-06-11 Simon Josefsson <jas@extundo.com> |
788 | |
789 * sysexit_.h: New file. | |
790 | |
4391 | 791 2003-05-20 Derek Price <derek@ximbiot.com> |
792 | |
793 * stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is necessary. | |
794 | |
4387 | 795 2003-06-10 Simon Josefsson <jas@extundo.com> |
796 | |
797 * strchrnul.h: New file. | |
798 * strchrnul.c: New file. | |
799 | |
4423
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
800 2003-06-10 Simon Josefsson <jas@extundo.com> |
4385
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
801 |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
802 * argp.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
803 * argp-ba.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
804 * argp-eexst.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
805 * argp-fmtstream.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
806 * argp-fmtstream.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
807 * argp-fs-xinl.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
808 * argp-help.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
809 * argp-namefrob.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
810 * argp-parse.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
811 * argp-pv.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
812 * argp-pvh.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
813 * argp-xinl.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
814 |
4373 | 815 2003-06-07 Jim Meyering <jim@meyering.net> |
816 | |
4381 | 817 * readtokens.h: Put `Free Software Foundation, Inc.' |
818 in place of my name in the copyright comment. | |
819 Remove definition and uses of __P. | |
820 | |
4373 | 821 From coreutils. |
4379 | 822 * stat.c: Don't declare xmalloc explicitly. |
823 Instead, include "xalloc.h". | |
4377 | 824 * readtokens.c (readtokens): Remove anachronistic casts of xmalloc, |
825 xrealloc, and xcalloc return values. | |
4373 | 826 * xgetcwd.c (xgetcwd): Include "xgetcwd.h". |
827 Improve comment. | |
4375 | 828 * xgetcwd.h: Remove definition/uses of PARAMS. |
4373 | 829 |
4366
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
830 2003-06-06 Jim Meyering <jim@meyering.net> |
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
831 |
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
832 * stdbool_.h: Renamed from stdbool.h.in. |
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
833 |
4357 | 834 2003-06-06 Jim Meyering <jim@meyering.net> |
835 | |
4365 | 836 Merge from coreutils. |
4368 | 837 * same.c: (same_name): Declare *_basename locals to be `const'. |
838 Consolidate declarations and initializations of *_base* locals. | |
839 | |
840 Merge from coreutils. | |
4365 | 841 This avoids a core dump on systems without GNU putenv, |
842 when running `env -u SOME_ALREADY_UNSET_VARIABLE'. | |
843 * putenv.c (__set_errno, LOCK, UNLOCK): Define. | |
844 (unsetenv): New static function, from GNU libc. | |
845 (rpl_putenv): Use it. | |
846 | |
4361 | 847 * modechange.c: Remove trailing blanks. |
848 | |
4359 | 849 Merge from coreutils. |
850 * fsusage.c: Remove declaration of statfs. | |
851 It conflicted with one from OSF/1 5.1 in <sys/mount.h>. | |
852 | |
4357 | 853 * posixtm.c: Include <stdbool.h> unconditionally. |
854 | |
4355
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
855 2003-06-05 Paul Eggert <eggert@twinsun.com> |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
856 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
857 * mktime.c (__mktime_internal): When resolving a tm_isdst |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
858 mismatch, look in future quarters as well as past. This fixes a |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
859 bug when processing fall-backwards gaps immediately after a long |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
860 period of daylight-saving time. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
861 |
4355
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
862 * mktime.c: Assume freestanding C89 or better. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
863 (HAVE_LIMITS_H): Remove. Assume it's 1. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
864 (__P): Remove; not used. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
865 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
866 (mktime, not_equal_tm, print_tm, check_result, |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
867 main): Use prototypes. Use const * where appropriate. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
868 (main): Fix typo in testing code that uncovered by above changes. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
869 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
870 |
4347
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
871 2003-06-04 Paul Eggert <eggert@twinsun.com> |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
872 |
4353
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
873 * mktime.c: Fix Debian bug 177940 |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
874 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>. |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
875 (localtime_offset): Now long int, not time_t, because we want it |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
876 to be guaranteed to be signed. All uses changed. |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
877 (__mktime_internal): If overflow would occur when adding offset, |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
878 don't add it. |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
879 |
4351
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
880 Merge 'human' changes from coreutils. Rewrite to support |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
881 locale-specific notations like thousands separators. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
882 * human.c: Simplify authorship notice. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
883 Include human.h immediately after config.h. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
884 <sys/types.h>, <stdio.h>: Do not include; no longer needed. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
885 <limits.h>: Do not include, since human.h does. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
886 (SIZE_MAX, UINTMAX_MAX): New macros. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
887 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
888 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
889 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
890 (power_letter): Renamed from suffixes. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
891 (generate_suffix_backwards): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
892 (adjust_value): Now takes int style (because of human.h changes) |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
893 and long double value (for greater precision on some platforms). |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
894 (group_number): New function. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
895 (human_readable): Use it. Use integer options, not enum. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
896 Put the options before the sizes in the arg list. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
897 Support all the new options. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
898 The old human_readable function has been removed; |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
899 use inttostr.h instead. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
900 (human_readable, default_block_size, humblock): |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
901 Use uintmax_t, not int, for block sizes. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
902 (human_readable_inexact, block_size_types): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
903 (block_size_opts): New constant. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
904 (human_options): Renamed from human_block_size, with new signature |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
905 that allows block sizes up to UINTMAX_MAX. All callers changed. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
906 * human.h: Add copyright and authorship notice. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
907 Include <limits.h> and <stdbool.h> unconditionally. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
908 (PARAMS): Remove. All uses removed. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
909 (LONGEST_HUMAN_READABLE): Add support for thousands separator. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
910 (enum human_inexact_style): Remove tag; now a nameless enum. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
911 (human_floor, human_ceiling, human_round_to_even): Now have |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
912 values 2, 0, 1 rather than -1, 1, 0. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
913 (human_group_digits, human_suppress_point_zero, human_autoscale, |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
914 human_base_1024, human_SI, human_B): New constants. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
915 (human_readable_inexact, human_block_size): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
916 (human_readable): Size args are now uintmax_t, not int. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
917 (human_options): New decl. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
918 |
4349
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
919 * exclude.c: (new_exclude, add_exclude): Remove casts that are |
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
920 unnecessary now that we assume C89 or better. This change |
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
921 imported from coreutils. |
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
922 |
4348
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
923 * mktime.c (__mktime_internal): Do not reject negative timestamps |
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
924 arbitrarily. This is the same patch as 2003-05-28, but it got lost |
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
925 in the 2003-05-30 sync from glibc. |
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
926 |
4347
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
927 .h files should stand alone, but we shouldn't include <sys/types.h> |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
928 if we can get away with just <stddef.h>. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
929 |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
930 * __fpending.h, addext.c, backupfile.c, exclude.c, getline.c, |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
931 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h> |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
932 rather than <sys/types.h>, as we merely need size_t. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
933 * dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>, |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
934 to get size_t. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
935 * hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h: |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
936 Include <stdio.h>, to get FILE. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
937 * memcasecmp.c: Don't include <sys/types.h>, as we can assume |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
938 memcasecmp.h has included <stddef.h> and all we need is size_t. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
939 * memcoll.c: Include "memcoll.h", which gets us size_t and checks |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
940 our interface, instead of including <sys/types.h> |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
941 |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
942 2003-06-02 Paul Eggert <eggert@twinsun.com> |
4344 | 943 |
944 [from coreutils] | |
945 Fix some minor time-related bugs with POSIX time arguments. | |
946 Some valid time stamps were being rejected (notably -1, and | |
947 time stamps before 1900 on 64-bit hosts). And some invalid | |
948 time stamps were being accepted, e.g. September 31. | |
949 | |
950 * posixtm.h (posixtime): Return bool instead of time_t, so | |
951 that we can return (time_t) -1 successfully. | |
952 * posixtm.c: Likewise. | |
953 [HAVE_STDBOOL_H]: Include <stdbool.h>. | |
954 (bool, false, true) [!HAVE_STDBOOL_H]: New type. | |
955 (t): Remove static var. | |
956 (year, posix_time_parse): Now takes struct tm * arg to modify, instead | |
957 of static var. All uses changed. | |
958 (year): Do not reject years before 1900; they can occur with | |
959 64-bit time_t. | |
960 (posix_time_parse): Do not check for out-of-range components; | |
961 that is now the caller's responsibility, since our checks were | |
962 only approximations. | |
963 (posixtime): Use mktime to check for out-of-range components, | |
964 since it knows them exactly. | |
965 If mktime returns (time_t) -1, check whether an error actually occurred | |
966 by invoking localtime on -1. | |
967 (main) [TEST_POSIXTIME]: Check for input data errors, and report | |
968 posixtime failures better. | |
969 Improve the test data (in comments only). | |
970 | |
4339 | 971 2003-05-30 <karl@gnu.org> |
972 | |
973 * mktime.c: update from libc. | |
974 | |
4337 | 975 2003-05-30 Bruno Haible <bruno@clisp.org> |
976 | |
977 * config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1. | |
978 * localcharset.h: Likewise. | |
979 * localcharset.c: Likewise. | |
980 | |
4330
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
981 2003-05-28 Paul Eggert <eggert@twinsun.com> |
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
982 |
4333 | 983 Assume the headers required for C89 freestanding compilers. |
984 * addext.c, backupfile.c, fsusage.c, human.c, pathmax.h, | |
985 rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h> | |
986 without checking for HAVE_LIMITS_H. | |
987 * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c, | |
988 xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed | |
989 to do that. | |
990 * fatal.c: Include <stdarg.h> without checking for __STDC__. | |
991 * exclude.c: Include <stdbool.h> unconditionally. | |
992 * tempname.c: Include <stddef.h> unconditionally. | |
993 * hash.c: Include <limits.h>, since we no longer define CHAR_BIT. | |
994 * modechange.c, rpmatch.c (NULL): Don't define, since | |
995 <stddef.h> does that. | |
996 * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed. | |
997 * safe-read.c (INT_MAX): Don't define, since <limits.h> does that. | |
998 * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed. | |
999 * xstrtol.c: Likewise. | |
1000 * safe-read.c: Remove TYPE_SIGNED; no longer needed. | |
1001 * savedir.c: Include <stddef.h> instead of defining NULL. | |
1002 | |
4332
b459be4ef089
* addext.c (addext): Use assignment rather than cast, to avoid
Paul Eggert <eggert@cs.ucla.edu>
parents:
4330
diff
changeset
|
1003 * addext.c (addext): Use assignment rather than cast, to avoid |
b459be4ef089
* addext.c (addext): Use assignment rather than cast, to avoid
Paul Eggert <eggert@cs.ucla.edu>
parents:
4330
diff
changeset
|
1004 warnings on some platforms. |
b459be4ef089
* addext.c (addext): Use assignment rather than cast, to avoid
Paul Eggert <eggert@cs.ucla.edu>
parents:
4330
diff
changeset
|
1005 |
4330
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
1006 * mktime.c (__mktime_internal): Do not reject negative timestamps |
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
1007 arbitrarily. |
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
1008 |
4320
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1009 2003-05-10 Bruno Haible <bruno@clisp.org> |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1010 |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1011 * linebreak.c (iconv_string_length): Don't return -1 just because the |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1012 string is longer than 4 KB. |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1013 |
4319 | 1014 2003-05-12 Jim Meyering <jim@meyering.net> |
1015 | |
1016 * strftime.c (my_strftime): Let the `-' (no-pad) flag affect | |
1017 the space-padded-by-default conversion specifiers, %e, %k, %l. | |
1018 | |
4314
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1019 2003-05-03 Bruno Haible <bruno@clisp.org> |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1020 |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1021 Upgrade to Unicode-4.0. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1022 * linebreak.c (nonspacing_table_data): Change width of U+00AD, |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1023 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615, |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1024 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5, |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1025 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1026 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1027 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1028 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1029 Change width of U+E0100..U+E01EF from 1 to 0. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1030 |
4310
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
1031 2003-04-25 Bruno Haible <bruno@clisp.org> |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
1032 |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
1033 * copy-file.c: Include <stddef.h>, for size_t. |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
1034 |
4309 | 1035 2003-04-25 Jim Meyering <jim@meyering.net> |
1036 | |
1037 * copy-file.c (copy_file_preserving): Declare buf_size to be | |
1038 of type size_t, not int. | |
1039 | |
4299 | 1040 2003-04-11 Jim Meyering <jim@meyering.net> |
1041 | |
4302 | 1042 Merge changes from Coreutils. |
1043 | |
4301 | 1044 2003-03-22 Jim Meyering <jim@meyering.net> |
1045 | |
1046 * strftime.c (widen): Cast alloca return value to proper type. | |
1047 | |
4299 | 1048 2003-01-19 Ulrich Drepper <drepper@redhat.com> |
1049 | |
1050 From GNU libc. | |
1051 * strftime.c (my_strftime): Handle very large width | |
1052 specifications for numeric values correctly. Improve checks for | |
1053 overflow. | |
1054 | |
1055 2003-01-19 Jim Meyering <jim@meyering.net> | |
1056 | |
1057 * strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical definitions. | |
1058 (nl_get_alt_digit) [! defined my_strftime]: Define. | |
1059 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of | |
1060 _nl_get_alt_digit and _nl_get_walt_digit. | |
1061 | |
1062 * strftime.c (my_strftime): Merge in locale-related changes from libc. | |
1063 These changes have no effect outside of _LIBC. | |
1064 | |
4294 | 1065 2003-04-10 Bruno Haible <bruno@clisp.org> |
1066 | |
1067 * findprog.h: New file, from GNU gettext. | |
1068 * findprog.c: New file, from GNU gettext. | |
1069 | |
4288 | 1070 2003-04-05 Jim Meyering <jim@meyering.net> |
1071 | |
4290 | 1072 Merge changes from Coreutils. |
1073 | |
4299 | 1074 * exclude.h (PARAMS): Remove definition and uses. |
1075 * exclude.c: Remove uses of `PARAMS'. | |
1076 | |
4290 | 1077 * dirname.c [TEST_DIRNAME]: Update build instructions for test. |
1078 Add test-cases for DOS filenames. Declare program_name. | |
1079 (main): Set up program_name. Patch by Rich Dawe. | |
1080 | |
4288 | 1081 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any |
1082 error from mntctl. | |
1083 Use mntctl's return value to drive the entry-processing loop, since | |
1084 we can't rely on the value of the vmt_length member in the last | |
1085 entry. On some systems doing so could result in exhausting | |
1086 virtual memory. Based in part on a patch from Mike Jetzer. | |
1087 | |
4286 | 1088 2003-04-04 Bruno Haible <bruno@clisp.org> |
1089 | |
1090 * linebreak.h: New file, from GNU gettext. | |
1091 * linebreak.c: New file, from GNU gettext with slight modifications. | |
1092 * lbrkprop.h: New file, from GNU gettext. | |
1093 | |
4275
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1094 2003-04-03 Bruno Haible <bruno@clisp.org> |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1095 |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1096 * utf8-ucs4.h: New file, from GNU gettext. |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1097 * utf16-ucs4.h: New file, from GNU gettext. |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1098 * ucs4-utf8.h: New file, from GNU gettext. |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1099 * ucs4-utf16.h: New file, from GNU gettext. |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1100 |
4273 | 1101 2003-04-02 Bruno Haible <bruno@clisp.org> |
1102 | |
1103 * binary-io.h: New file, from GNU gettext. | |
1104 | |
4271 | 1105 2003-04-01 Bruno Haible <bruno@clisp.org> |
1106 | |
1107 * pathname.h: New file, from GNU gettext. | |
1108 * concatpath.c: New file, from GNU gettext. | |
1109 | |
4268 | 1110 2003-03-30 Bruno Haible <bruno@clisp.org> |
1111 | |
1112 * copy-file.c (copy_file_preserving): Don't set owner if the function | |
1113 chown() doesn't exist. | |
1114 | |
4266 | 1115 2003-03-28 Bruno Haible <bruno@clisp.org> |
1116 | |
1117 * copy-file.h: New file, from GNU gettext. | |
1118 * copy-file.c: New file, from GNU gettext. | |
1119 | |
4261 | 1120 2003-03-18 Jim Meyering <jim@meyering.net> |
1121 | |
1122 * quote.c (quote_n): Fix typo in comment. | |
1123 | |
4256
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1124 2003-03-14 Jim Meyering <jim@meyering.net> |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1125 |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1126 Merge changes from Coreutils. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1127 * obstack.h (obstack_object_size): Declare temporary, __o, |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1128 to be const, in order to avoid warnings. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1129 (obstack_room): Likewise. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1130 (obstack_empty_p): Likewise. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1131 |
4252
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
1132 2003-03-13 Paul Eggert <eggert@twinsun.com> |
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
1133 |
4255
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1134 Merge changes from Bison. |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1135 * obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1136 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5 |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1137 when compiling Bison 1.875's `bitset bset = obstack_alloc |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1138 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe. |
4252
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
1139 * hash.c: Include <stdbool.h> unconditionally. |
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
1140 |
4249
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1141 2003-03-09 Paul Eggert <eggert@twinsun.com> |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1142 |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1143 * argmatch.c (EXIT_FAILURE): Define if the system doesn't. |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1144 Reported by Bruce Becker; see: |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1145 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1146 |
4246 | 1147 2003-03-03 Paul Eggert <eggert@twinsun.com> |
4590 | 1148 Bruno Haible <bruno@clisp.org> |
4246 | 1149 |
1150 * mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1. | |
1151 Reported by John Hughes, see | |
1152 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html | |
1153 | |
4242
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1154 2003-02-19 Paolo Bonzino <bonzini@gnu.org> |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1155 |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1156 * poll_.h: New file. |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1157 * poll.c: New file. |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1158 |
4239
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1159 2003-02-18 Paolo Bonzino <bonzini@gnu.org> |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1160 |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1161 * mathl.h: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1162 * acosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1163 * asinl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1164 * atanl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1165 * ceill.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1166 * cosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1167 * expl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1168 * floorl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1169 * frexpl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1170 * ldexpl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1171 * logl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1172 * sincosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1173 * sinl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1174 * sqrtl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1175 * tanl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1176 * trigl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1177 * trigl.h: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1178 |
4237
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1179 2003-02-17 Bruno Haible <bruno@clisp.org> |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1180 |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1181 * mkdtemp.h: New file, from GNU gettext. |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1182 * mkdtemp.c: New file, from GNU gettext. |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1183 |
4229
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1184 2003-01-31 Bruno Haible <bruno@clisp.org> |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1185 |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1186 * rename.c: #undef rename before defining rpl_rename. |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1187 * strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen. |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1188 |
4224
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1189 2003-01-30 Bruno Haible <bruno@clisp.org> |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1190 |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1191 * printf-args.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1192 * printf-args.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1193 * printf-parse.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1194 * printf-parse.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1195 * vasnprintf.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1196 * vasnprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1197 * asnprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1198 * vasprintf.h: New file, from GNU gettext with modifications. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1199 * vasprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1200 * asprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1201 |
4221 | 1202 2003-01-29 Bruno Haible <bruno@clisp.org> |
1203 | |
1204 * stpncpy.h: New file, from GNU gettext with modifications. | |
1205 * stpncpy.c: New file, from GNU gettext with modifications. | |
1206 | |
4218 | 1207 2003-01-28 Bruno Haible <bruno@clisp.org> |
1208 | |
1209 * c-ctype.h: New file, from GNU gettext, with changes suggested by | |
1210 Paul Eggert. | |
1211 * c-ctype.c: New file, from GNU gettext, with changes suggested by | |
1212 Paul Eggert. | |
1213 | |
4215 | 1214 2003-01-27 Bruno Haible <bruno@clisp.org> |
1215 | |
1216 * xsetenv.h: New file, from GNU gettext. | |
1217 * xsetenv.c: New file, from GNU gettext. | |
1218 | |
4207 | 1219 2003-01-23 Bruno Haible <bruno@clisp.org> |
1220 | |
1221 * minmax.h: New file, from GNU gettext, with comments from Paul Eggert. | |
1222 | |
4201 | 1223 2003-01-22 Bruno Haible <bruno@clisp.org> |
1224 | |
1225 * exit.h: New file, from GNU gettext. | |
1226 | |
4183
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1227 2003-01-11 Bruno Haible <bruno@clisp.org> |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1228 |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1229 * stpcpy.h (stpcpy): Use ANSI C function declarations. |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1230 * strcase.h (strcasecmp, strncasecmp): Likewise. |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1231 |
4182 | 1232 2003-01-14 Jim Meyering <jim@meyering.net> |
1233 | |
1234 * same.c (same_name): Tweak a comment. | |
1235 | |
4179
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1236 2003-01-11 Bruno Haible <bruno@clisp.org> |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1237 |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1238 * 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
|
1239 when a string comparison is sufficient. |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1240 |
4178
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1241 2003-01-11 Bruno Haible <bruno@clisp.org> |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1242 |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1243 * 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
|
1244 'unsigned int'. |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1245 |
4177
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
1246 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
|
1247 |
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
1248 * 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
|
1249 |
4170
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1250 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
|
1251 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1252 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
|
1253 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
|
1254 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1255 * 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
|
1256 * getstr.h, getstr.c: Remove. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1257 * 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
|
1258 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
|
1259 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
|
1260 (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
|
1261 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1262 * linebuffer.c (readlinebuffer): Renamed from readline. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1263 All uses changed. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1264 * linebuffer.h: Likewise. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1265 (readline): Remove backward-compatibility macro. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1266 |
4160 | 1267 2003-01-12 Jim Meyering <jim@meyering.net> |
1268 | |
1269 * makepath.c: Don't test HAVE_ERRNO_H. It's not necessary. | |
1270 | |
4156
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1271 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
|
1272 |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1273 * alloca_.h: New file. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1274 * 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
|
1275 * makepath.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1276 * setenv.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1277 * userspec.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1278 |
4151
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
1279 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
|
1280 |
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
1281 * 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
|
1282 |
4144
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1283 2003-01-08 Bruno Haible <bruno@clisp.org> |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1284 |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1285 * safe-read.c: Include specification header first, to ensure its |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1286 selfcontainedness. |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1287 * full-write.c: Likewise. |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1288 |
4143 | 1289 2003-01-08 Jim Meyering <jim@meyering.net> |
1290 | |
1291 * full-write.c: Undefine and define-away `const' after inclusion | |
1292 of errno.h, not before. Suggestion from Bruno Haible. | |
1293 | |
4141 | 1294 2003-01-07 Jim Meyering <jim@meyering.net> |
1295 | |
1296 * full-write.c: Rework so that it may serve to define full_read, too. | |
1297 * full-read.c: Simply #define FULL_READ and include full-write.c. | |
1298 | |
4134 | 1299 2003-01-06 Jim Meyering <jim@meyering.net> |
1300 | |
1301 * version-etc.c: Update year in translatable copyright string. | |
1302 | |
4135
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1303 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
|
1304 |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1305 * 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
|
1306 * xstrtol.h: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1307 * xstrtoimax.c: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1308 * xstrtoumax.c: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1309 * human.h: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1310 |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1311 * 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
|
1312 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
|
1313 |
4123
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
1314 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
|
1315 |
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
1316 * 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
|
1317 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
|
1318 |
4106 | 1319 2002-12-23 Bruno Haible <bruno@clisp.org> |
1320 | |
1321 * localcharset.h: New file. | |
1322 * localcharset.c: Include it. | |
1323 * unicodeio.c: Likewise. | |
1324 | |
4105
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
1325 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
|
1326 |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
1327 * 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
|
1328 nonempty. |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
1329 |
4104
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1330 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
|
1331 |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1332 * memcoll.c (STRCOLL): New macro. |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1333 (memcoll): Use it. |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1334 |
4103
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
1335 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
|
1336 |
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
1337 * 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
|
1338 * 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
|
1339 |
4102
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
1340 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
|
1341 |
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
1342 * 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
|
1343 |
4101
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1344 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
|
1345 |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1346 * 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
|
1347 |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1348 * 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
|
1349 * 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
|
1350 |
4089 | 1351 2002-12-17 Bruno Haible <bruno@clisp.org> |
1352 | |
1353 * canon-host.c (strdup): Remove unused declaration. | |
1354 | |
1355 * fsusage.c: Include full_read.h. | |
1356 (get_fs_usage): Use full_read instead of safe_read. | |
1357 | |
1358 * utime.c (utime_null): Use SAFE_READ_ERROR. | |
1359 | |
4080 | 1360 2002-12-11 Bruno Haible <bruno@clisp.org> |
1361 | |
1362 * setenv.h: Rewritten to cope with systems that have setenv() but not | |
1363 unsetenv(). | |
1364 * setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following | |
1365 modifications: | |
1366 | |
1367 2002-12-11 Bruno Haible <bruno@clisp.org> | |
1368 | |
1369 * setenv.c (alloca): Fall back to malloc. | |
1370 (freea): New macro. | |
1371 (setenv): Use freea() to free memory allocated with alloca(). | |
1372 | |
1373 2002-11-13 Bruno Haible <bruno@clisp.org> | |
1374 | |
1375 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C | |
1376 function declarations. | |
1377 * unsetenv.c (unsetenv): Likewise. | |
1378 | |
1379 2002-03-04 Bruno Haible <bruno@clisp.org> | |
1380 | |
1381 Portability to AIX 4.3.3. | |
1382 * unsetenv.c: New file, extracted from setenv.c. | |
1383 * setenv.c: Move the unsetenv() function to unsetenv.c. | |
1384 | |
1385 2001-12-20 Bruno Haible <bruno@clisp.org> | |
1386 | |
1387 * setenv.c (__add_to_environ): Don't call realloc(NULL,...), | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
1388 use malloc instead. For SunOS 4. |
4080 | 1389 |
1390 2001-12-11 Bruno Haible <bruno@clisp.org> | |
1391 | |
1392 * setenv.c: Declare alloca. | |
1393 (compar_fn_t): New typedef. | |
1394 (KNOWN_VALUE, STORE_VALUE): Use it. | |
1395 | |
4081 | 1396 * Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c, |
1397 setenv.h. | |
1398 | |
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
|
1399 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
|
1400 |
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
|
1401 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
|
1402 * 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
|
1403 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
|
1404 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
|
1405 * 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
|
1406 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
|
1407 (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
|
1408 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
|
1409 |
4071 | 1410 2002-12-06 Jim Meyering <jim@meyering.net> |
1411 | |
4073 | 1412 * error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'. |
1413 | |
4071 | 1414 Merge in changes from libc's misc/error.c, in preparation |
1415 for the merge of gnulib's changes back into libc. | |
1416 | |
1417 * error.c (_): Define only if not already defined. | |
1418 Move definition to follow all #include directives. | |
1419 Include unlocked-io.h only if !_LIBC. | |
1420 [_LIBC]: Include <libio/libioP.h>. | |
1421 [USE_IN_LIBIO]: Include <libio/iolibio.h> | |
1422 (fflush): Tweak definition to use INTUSE. | |
1423 (putc): Define. | |
1424 | |
4069
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1425 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
|
1426 |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1427 * 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
|
1428 (xalloc_die) [defined emacs]: New macro. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1429 (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
|
1430 [! defined emacs]: Include <xalloc.h>. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1431 (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
|
1432 (pointer): Typedef to POINTER_TYPE *. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1433 (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
|
1434 (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
|
1435 Check for arithmetic overflow when computing combined size. |
4071 | 1436 |
4067
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1437 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
|
1438 |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1439 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
|
1440 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
|
1441 |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1442 * 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
|
1443 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
|
1444 * 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
|
1445 * 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
|
1446 (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
|
1447 (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
|
1448 (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
|
1449 (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
|
1450 (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
|
1451 |
4058 | 1452 2002-12-04 Jim Meyering <jim@meyering.net> |
1453 | |
4063 | 1454 Reflect the fact that stat.c and lstat.c are no longer generated. |
1455 * Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c. | |
1456 (DISTCLEANFILES): Likewise. | |
1457 (EXTRA_DIST): Likewise. | |
1458 (all_local): Don't depend on stat.c or lstat.c. | |
1459 (stat.c, lstat.c): Remove rules. | |
1460 (EXTRA_DIST): Remove xstat.in. | |
1461 | |
1462 * xstat.in: Remove file. Contents moved into stat.c. | |
1463 * stat.c: New file. Contents mostly from xstat.in. | |
1464 * stat.c: Rework so that it may serve to define rpl_lstat, too. | |
1465 * lstat.c: New file. Simply #define LSTAT and include stat.c. | |
1466 | |
4058 | 1467 * safe-read.c: Rework so that it may serve to define safe_write, too. |
1468 * safe-write.c: Simply #define SAFE_WRITE and include safe-read.c. | |
1469 | |
4051
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1470 2002-12-03 Jim Meyering <jim@meyering.net> |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1471 |
4053 | 1472 * safe-read.c, safe-write.c: Change variable names and comments, but |
1473 not semantics, to minimize the differences between these two files. | |
4058 | 1474 (safe_read): Change comment to mention SAFE_READ_ERROR. |
4053 | 1475 |
4051
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1476 * safe-read.c (IS_EINTR): Define. |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1477 (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
|
1478 |
4049
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1479 2002-12-02 Bruno Haible <bruno@clisp.org> |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1480 |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1481 * 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
|
1482 Define, taken from safe-read.c. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1483 (INT_MAX): Provide fallback. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1484 (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
|
1485 * safe-write.h (SAFE_WRITE_ERROR): Define. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1486 |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1487 * safe-read.c (EINTR): Remove definition. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1488 (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
|
1489 |
4046
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
1490 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
|
1491 |
4048
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
1492 * safe-read.c (EINTR): Define. |
4049
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1493 (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
|
1494 (INT_MAX): Provide fallback. |
4048
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
1495 (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
|
1496 |
4046
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
1497 * safe-read.h (SAFE_READ_ERROR): Define. |
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
1498 |
4044
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
1499 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
|
1500 |
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
1501 * 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
|
1502 (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
|
1503 |
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
|
1504 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
|
1505 |
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
1506 * 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
|
1507 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
|
1508 `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
|
1509 |
4039
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1510 2002-11-26 <karl@gnu.org> |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1511 |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1512 * 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
|
1513 * .cppi-disable: re-add strdup.c |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1514 |
4030 | 1515 2002-11-25 <karl@gnu.org> |
1516 | |
1517 * strtoll.c: copy from libc, meaning we now #include <strtol.c> | |
1518 instead of "strtol.c". | |
1519 | |
4027 | 1520 2002-11-25 Jim Meyering <jim@meyering.net> |
1521 | |
1522 * mktime.c: Sync from libc, now that it has the latest fix. | |
1523 | |
4028 | 1524 2002-11-24 <karl@gnu.org> |
1525 | |
1526 * error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c, | |
1527 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl. | |
1528 | |
4017 | 1529 2002-11-24 Jim Meyering <jim@meyering.net> |
1530 | |
1531 Update from coreutils: | |
1532 | |
4019 | 1533 * mktime.c: Merge in changes from libc. |
1534 | |
4017 | 1535 Avoid a link-time failure on some Linux systems. |
1536 * mktime.c (STATIC): Define to be empty (_LIBC) or `static' (otherwise). | |
1537 (__mon_yday): Declare with the STATIC attribute. | |
1538 (__mktime_internal): Likewise. | |
1539 Based on a report from Greg Schafer. | |
1540 | |
4011 | 1541 2002-11-23 Jim Meyering <jim@meyering.net> |
1542 | |
4015 | 1543 * sig2str.c (str2signum, sig2str): Avoid a warning from gcc: |
1544 Use `unsigned', not `int', as type of index. | |
1545 | |
4013 | 1546 * xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>. |
1547 | |
4011 | 1548 * fsusage.c: Remove unneeded parentheses around operands of `defined'. |
1549 | |
4007
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1550 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
|
1551 |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1552 * 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
|
1553 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
|
1554 (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
|
1555 (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
|
1556 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
|
1557 |
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
|
1558 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
|
1559 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1560 * 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
|
1561 "#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
|
1562 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
|
1563 (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
|
1564 * 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
|
1565 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
|
1566 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
|
1567 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
|
1568 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
|
1569 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
|
1570 (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
|
1571 (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
|
1572 (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
|
1573 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1574 (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
|
1575 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
|
1576 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1577 (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
|
1578 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
|
1579 (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
|
1580 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1581 (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
|
1582 |
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1583 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
|
1584 |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1585 * 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
|
1586 (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
|
1587 * 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
|
1588 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
|
1589 * 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
|
1590 * 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
|
1591 * 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
|
1592 * 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
|
1593 * 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
|
1594 * 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
|
1595 (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
|
1596 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
|
1597 |
4000 | 1598 2002-11-21 Bruno Haible <bruno@clisp.org> |
1599 | |
4001
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1600 Remove case insensitive option matching. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1601 * argmatch.h (argcasematch): Remove declaration. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1602 (ARGCASEMATCH): Remove macro. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1603 (__xargmatch_internal): Remove case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1604 (XARGMATCH): Update. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1605 (XARGCASEMATCH): Remove macro. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1606 * argmatch.c (argmatch): Renamed from __argmatch_internal. Remove |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1607 case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1608 (argcasematch): Remove function. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1609 (__xargmatch_internal): Remove case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1610 (main): Use XARGMATCH instead of XARGCASEMATCH. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1611 |
4000 | 1612 * xmalloc.c: Change compile-time error message. Add comment about |
1613 required autoconf version. | |
1614 | |
3984 | 1615 2002-11-21 Jim Meyering <jim@meyering.net> |
1616 | |
3998 | 1617 * strdup.c (strdup): Tweak comment and initial #if/#include. |
1618 | |
3984 | 1619 Merge in changes from the coreutils. |
1620 | |
3995 | 1621 2002-09-25 Paul Eggert <eggert@twinsun.com> |
1622 * fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>. | |
1623 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro. | |
1624 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than | |
1625 int. Work more efficiently if X is the same width as uintmax_t. | |
1626 Do not compare X to -1, to avoid bogus compiler warning. | |
1627 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast. | |
1628 Don't assume that f_frsize and f_bsize are the same type. | |
1629 | |
3992 | 1630 * mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning |
1631 on FreeBSD. | |
1632 | |
3988 | 1633 * makepath.c (make_path): Restore umask *before* creating the final |
1634 component. | |
3990 | 1635 (make_path): Minor reformatting. |
3988 | 1636 |
3986 | 1637 * xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC |
1638 and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC. | |
1639 | |
3984 | 1640 * mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy |
1641 ones. At least on GNU/Linux systems, `auto' means something else. | |
1642 From Michael Stone. | |
1643 | |
3982
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1644 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
|
1645 |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1646 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
|
1647 |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1648 * 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
|
1649 Include stdlib.h, for EXIT_FAILURE. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1650 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
|
1651 (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
|
1652 * 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
|
1653 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
|
1654 (PARAMS): Remove. All uses removed. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1655 (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
|
1656 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg, |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1657 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1658 Remove unnecessary parentheses. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1659 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1660 Insert necessary parentheses. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1661 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1662 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1663 |
3977 | 1664 2002-11-19 Bruno Haible <bruno@clisp.org> |
1665 | |
3979
7627246c7a83
Standard specification idiom. Make mbswidth.h self contained.
Bruno Haible <bruno@clisp.org>
parents:
3978
diff
changeset
|
1666 * 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
|
1667 * 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
|
1668 |
3978 | 1669 * mbswidth.h (PARAMS): Remove macro. |
1670 (mbswidth, mbsnwidth): Use ANSI C function declarations. | |
1671 * mbswidth.c (mbswidth, mbsnwidth): Likewise. | |
1672 | |
3977 | 1673 * gcd.h (PARAMS): Remove macro. |
1674 (gcd): Use ANSI C function declarations. | |
1675 * gcd.c (gcd): Likewise. | |
1676 | |
3975
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1677 2002-11-15 Bruno Haible <bruno@clisp.org> |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1678 |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1679 * strcspn.c: Include <stddef.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1680 (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
|
1681 size_t. Use NULL. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1682 * strpbrk.c: Minimize diffs to glibc. Include <stddef.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1683 (strpbrk): Use NULL. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1684 * strpbrk.h (PARAMS): Remove macro. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1685 (strpbrk): Use ANSI C function declaration. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1686 * strstr.c: Don't include <sys/types.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1687 * strstr.h (PARAMS): Remove macro. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1688 (strstr): Use ANSI C function declarations. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1689 |
3968
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1690 2002-11-06 Bruno Haible <bruno@clisp.org> |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1691 |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1692 * 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
|
1693 * gcd.c (gcd): Likewise. |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1694 |
3967 | 1695 2002-11-05 Bruno Haible <bruno@clisp.org> |
1696 | |
1697 * gcd.h: New file, from gettext-0.11.5. | |
1698 * gcd.c: New file, from gettext-0.11.5. | |
1699 | |
3966
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1700 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
|
1701 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1702 * 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
|
1703 * 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
|
1704 * 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
|
1705 * 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
|
1706 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1707 * 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
|
1708 * 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
|
1709 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1710 * 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
|
1711 * 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
|
1712 * 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
|
1713 * 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
|
1714 * 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
|
1715 * 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
|
1716 * 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
|
1717 * 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
|
1718 (textdomain): Remove definition. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1719 * 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
|
1720 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1721 * 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
|
1722 * 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
|
1723 |
3964 | 1724 2002-11-04 Bruno Haible <bruno@clisp.org> |
1725 | |
1726 * stpcpy.h: New file, from GNU gettext-0.11.5. | |
1727 * strcase.h: New file, from GNU gettext-0.11.5. | |
1728 * strpbrk.h: New file, from GNU gettext-0.11.5. | |
1729 * strstr.h: New file, from GNU gettext-0.11.5. | |
1730 * xgetcwd.h: New file, from GNU gettext-0.11.5. | |
1731 | |
3963
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1732 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
|
1733 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1734 * 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
|
1735 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
|
1736 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1737 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
|
1738 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1739 * 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
|
1740 aliases. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1741 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1742 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
|
1743 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1744 * 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
|
1745 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1746 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
|
1747 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1748 * 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
|
1749 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1750 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
|
1751 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1752 * 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
|
1753 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1754 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
|
1755 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1756 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
|
1757 * 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
|
1758 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1759 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
|
1760 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1761 * 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
|
1762 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1763 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
|
1764 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1765 * 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
|
1766 |
3944 | 1767 2002-09-25 <karl@gnu.org> |
1768 | |
1769 * strdup.c: copy from libc/string (via ../config/srclist*). | |
1770 * getopt*: copy from libc/posix. | |
3947
765d3b9a6126
update gettext.h from gettext.h
Karl Berry <karl@freefriends.org>
parents:
3944
diff
changeset
|
1771 * gettext.h: copy from gettext. |
765d3b9a6126
update gettext.h from gettext.h
Karl Berry <karl@freefriends.org>
parents:
3944
diff
changeset
|
1772 * .cppi-disable: add strdup.c, gettext.h. |
3944 | 1773 |
3922 | 1774 2002-07-01 Jim Meyering <meyering@lucent.com> |
1775 | |
1776 * c-stack.c: Include sys/time.h. | |
1777 From Volker Borchert. | |
1778 | |
3919 | 1779 2002-06-11 Paul Eggert <eggert@twinsun.com> |
1780 | |
1781 * fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT): | |
1782 New macro. Use it uniformly instead of | |
1783 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H). | |
1784 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1 | |
1785 reported by Vin Shelton. | |
1786 | |
3913 | 1787 2002-06-22 Jim Meyering <meyering@lucent.com> |
1788 | |
1789 * fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
1790 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h. |
3913 | 1791 |
3911 | 1792 2002-06-22 Paul Eggert <eggert@twinsun.com> |
1793 | |
1794 * c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]: | |
1795 Do not assume SA_SIGINFO behavior. | |
1796 Bug reported by Jim Meyering on NetBSD 1.5.2. | |
1797 | |
3904 | 1798 2002-06-22 Jim Meyering <meyering@lucent.com> |
1799 | |
1800 * c-stack.c, c-stack.h: New files, from diffutils-2.8.2. | |
3911 | 1801 |
3909 | 1802 * exitfail.c, exitfail.h: Likewise. |
1803 * Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h. | |
3904 | 1804 |
1805 * Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place | |
1806 of fnmatch.h. | |
1807 (EXTRA_DIST): Add fnmatch_loop.c. | |
1808 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h. | |
1809 | |
1810 * fnmatch_loop.c: New file, from diffutils-2.8.2. | |
1811 * fnmatch.c: Update from diffutils-2.8.2. | |
1812 * fnmatch_.h: New file. From diffutils-2.8.2. | |
1813 * fnmatch.h: Remove file. | |
1814 | |
3878 | 1815 2002-06-18 Paul Eggert <eggert@twinsun.com> |
1816 | |
1817 * file-type.h: Report an error if neither S_ISREG nor | |
1818 S_IFREG is defined, instead of using a test specific to glibc | |
1819 2.2. This should be safe, since POSIX requires S_ISREG and | |
1820 Unix Version 7 had S_IFREG. We don't need to check for | |
1821 <sys/types.h> since we don't use any symbols that it defines. | |
1822 | |
3869 | 1823 2002-06-15 Jim Meyering <meyering@lucent.com> |
1824 | |
3873 | 1825 * file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef. |
1826 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h> | |
1827 have been included before this file. | |
1828 | |
1829 2002-06-13 Richard Dawe <richdawe@bigfoot.com> | |
1830 | |
1831 * Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t, | |
1832 so that each temporary file name is unique and valid in the first | |
1833 8 characters, for operation under DOS. | |
1834 | |
1835 2002-06-15 Jim Meyering <meyering@lucent.com> | |
1836 | |
1837 Work even with DJGPP 2.03, which lacks support for symlinks. | |
1838 From Richard Dawe. | |
3869 | 1839 * xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK |
1840 is defined. | |
1841 * lchown.c (S_ISLNK): Likewise. | |
1842 | |
3867 | 1843 2002-06-14 Jim Meyering <meyering@lucent.com> |
1844 | |
1845 * file-type.h: Use the version from diffutils-2.8.2. | |
1846 * file-type.c: Likewise. | |
1847 | |
3855 | 1848 2002-05-27 Jim Meyering <meyering@lucent.com> |
1849 | |
1850 Fix a problem seen only on nonconforming systems whereby ls.c's | |
1851 use of localtime, and then of gettimeofday would cause trouble: | |
1852 the localtime call used to initialize rpl_gettimeofday's save | |
1853 mechanism would clobber ls's current local time information so | |
1854 that in any long listing the first file would always be listed | |
1855 with date 1970-01-01. Analysis by Volker Borchert. | |
1856 | |
1857 * gettimeofday.c (localtime): Undefine. | |
1858 (rpl_localtime): New function. | |
1859 | |
3843 | 1860 2002-05-22 Jim Meyering <meyering@lucent.com> |
1861 | |
3847 | 1862 * Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h. |
3843 | 1863 * file-type.h: New file. |
1864 * file-type.c (file_type): New file/function. Extracted from diffutils. | |
1865 | |
3836 | 1866 2002-04-29 Paul Eggert <eggert@twinsun.com> |
1867 | |
1868 * hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1. | |
1869 | |
3834 | 1870 2002-04-28 Paul Eggert <eggert@twinsun.com> |
1871 | |
1872 * sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid | |
1873 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead | |
1874 of 127, since 64 is the largest conceivable number for ancient | |
1875 nonstandard hosts. | |
1876 * sig2str.c: Do not include <sys/wait.h>; no longer needed. | |
1877 | |
3823 | 1878 2002-04-28 Jim Meyering <meyering@lucent.com> |
1879 | |
1880 * sig2str.c (WTERMSIG): Remove definition (unused). | |
1881 | |
3818 | 1882 2002-04-28 Paul Eggert <eggert@twinsun.com> |
1883 | |
1884 * sig2str.h, sig2str.c: New files. | |
3820 | 1885 * Makefile.am (libfetish_a_SOURCES): Add sig2str.h. |
3818 | 1886 |
3812 | 1887 2002-04-24 Jim Meyering <meyering@lucent.com> |
1888 | |
3818 | 1889 * gettext.h: New file, from Gettext. |
3812 | 1890 * Makefile.am (INCLUDES): Remove -I../intl. |
1891 (libfetish_a_SOURCES): Add gettext.h. | |
1892 | |
3808 | 1893 2002-04-16 Jim Meyering <meyering@lucent.com> |
1894 | |
1895 * readutmp.h (UT_TYPE): Remove definition (now in who.c). | |
1896 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define. | |
1897 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define. | |
1898 | |
3805 | 1899 2002-04-12 Jim Meyering <meyering@lucent.com> |
1900 | |
1901 * dirfd.h (dirfd): Elide prototype if dirfd is a macro. | |
1902 | |
3787 | 1903 2002-03-10 Jim Meyering <meyering@lucent.com> |
1904 | |
1905 * makepath.c (make_path): Remove a comma from a diagnostic. | |
1906 Suggestion from Santiago Vila. | |
1907 | |
3783 | 1908 2002-03-08 Jim Meyering <meyering@lucent.com> |
1909 | |
1910 * rename.c: Mention that this wrapper is needed also on | |
1911 mips-dec-ultrix4.4 systems. | |
1912 | |
3775 | 1913 2002-03-02 Jim Meyering <meyering@lucent.com> |
1914 | |
1915 * gettime.c (gettime): Test HAVE_CLOCK_GETTIME, | |
1916 not HAVE_CLOCK_SETTIME. | |
1917 | |
3771 | 1918 2002-02-27 Paul Eggert <eggert@twinsun.com> |
1919 | |
1920 * nanosleep.h: Rename to.... | |
1921 * timespec.h: New name for nanosleep.h. All uses changed. | |
1922 | |
1923 * gettime.c: New file. | |
1924 * settime.c: New file. | |
1925 * stime.c: Remove. | |
1926 | |
1927 * Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c, | |
1928 timespec.h. Remove nanosleep.h. | |
1929 | |
3757 | 1930 2002-02-25 Paul Eggert <eggert@twinsun.com> |
1931 | |
3763 | 1932 * acl.c, acl.h: New files. |
3757 | 1933 * Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c. |
1934 | |
1935 2002-02-24 Jim Meyering <meyering@lucent.com> | |
1936 | |
3777 | 1937 * strnlen.c (strnlen): Define-away/undef so that an inconsistent |
1938 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't | |
1939 cause trouble. Reported by Nelson Beebe. | |
3757 | 1940 |
3753 | 1941 2002-02-23 Paul Eggert <eggert@twinsun.com> |
1942 | |
1943 * path-concat.c (xpath_concat): Reorder code to pacify | |
1944 compilers that don't know that xalloc_die never returns. | |
1945 | |
3751 | 1946 2002-02-20 Jim Meyering <meyering@lucent.com> |
1947 | |
1948 * getdate.c: Regenerate using bison-1.33. | |
1949 | |
3733 | 1950 2002-02-15 Paul Eggert <eggert@twinsun.com> |
1951 | |
1952 * posixver.c, posixver.h: New files. | |
1953 * Makefile.am (libfetish_a_SOURCES): Add them. | |
1954 | |
3728 | 1955 2002-02-02 Paul Eggert <eggert@twinsun.com> |
1956 Bruno Haible <bruno@clisp.org> | |
1957 | |
1958 * unicodeio.h (print_unicode_char): Add exit_on_error argument. | |
1959 (fwrite_success_callback): New declaration. | |
1960 * unicodeio.c (unicode_to_mb): New function, extracted from | |
1961 print_unicode_char. Call failure callback instead of error. | |
1962 (fwrite_success_callback): New function. | |
1963 (exit_failure_callback): New function. | |
1964 (fallback_failure_callback): New function. | |
1965 (print_unicode_char): Call unicode_to_mb. | |
1966 | |
3723 | 1967 2002-01-26 Jim Meyering <meyering@lucent.com> |
1968 | |
1969 * Makefile.am (getdate$U.o): Depend on unlocked-io.h. | |
1970 | |
3720 | 1971 2002-01-22 Jim Meyering <meyering@lucent.com> |
1972 | |
1973 * Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES). | |
1974 Otherwise, some versions of automake would omit the rule that makes | |
1975 Makefile from Makefile.in. | |
1976 | |
3711 | 1977 2001-01-21 Paul Eggert <eggert@twinsun.com> |
1978 | |
1979 * xmemcoll.h, xmemcoll.c: New files. | |
1980 * Makefile.am (libfetish_a_SOURCES): Add them. | |
1981 * memcoll.c: Include errno.h, and declare errno if not defined. | |
1982 (memcoll): Set errno to zero if there is no error. | |
1983 | |
1984 * quotearg.c (quotearg_buffer_restyled): | |
1985 Fix bug with quoting buffers containing NUL when backslashing escapes. | |
1986 This bug was exposed by the other changes in this patch. | |
1987 (quotearg_n_options): New arg ARGSIZE. | |
1988 All callers changed. | |
1989 (quoting_options_from_style): New function. | |
1990 (quotearg_n_style): Use it. | |
1991 (quotearg_n_style_mem): New function. | |
1992 | |
1993 * quotearg.h (quotearg_n_style_mem): New function. | |
1994 | |
3698 | 1995 2002-01-16 Jim Meyering <meyering@lucent.com> |
1996 | |
1997 * getdate.y: Add three semicolons, each just before a closing brace. | |
1998 Bison (as of version 1.31) no longer papers over that mistake. | |
1999 | |
3703 | 2000 2002-02-14 Paul Eggert <eggert@twinsun.com> |
2001 | |
2002 * backupfile.c (ISDIGIT): Comment fix. | |
2003 * getdate.y (ISDIGIT): Likewise. | |
2004 * posixtm.c (ISDIGIT, year): Likewise. | |
2005 * strverscmp.c (ISDIGIT): Likewise. | |
2006 * userspec.c (ISDIGIT): Likewise. | |
2007 | |
3693 | 2008 2002-01-05 Jim Meyering <meyering@lucent.com> |
2009 | |
2010 * version-etc.c (version_etc_copyright): Update copyright year. | |
2011 | |
3691 | 2012 2001-01-19 Paul Eggert <eggert@twinsun.com> |
2013 | |
2014 * closeout.c (close_stdout_status): If ferror (stdout), do | |
2015 not silently exit merely because the output buffer happens to | |
2016 have nothing pending. | |
2017 | |
3689 | 2018 2001-12-18 Paul Eggert <eggert@twinsun.com> |
2019 | |
2020 See the big note in ../ChangeLog. | |
2021 * human.c (suffixes): Prefer K to k for 1024. | |
2022 (generate_suffix_backwards): New function. | |
2023 (human_readable_inexact): Use it. | |
3691 | 2024 * xstrtol.c (__xstrtol): If there is no number but there |
2025 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary. | |
2026 Accept 'K' as well as 'k'. | |
3689 | 2027 |
3683 | 2028 2001-12-15 Jim Meyering <meyering@lucent.com> |
2029 | |
3686 | 2030 * regex.h (__restrict_arr): Update from libc. |
2031 | |
3683 | 2032 * mountlist.h (ME_REMOTE): Recognize file systems of type smbfs |
2033 as `remote' if the name starts with `//'. Suggested by Michael Stone. | |
3686 | 2034 (STREQ): Define. |
3683 | 2035 |
3679 | 2036 2001-12-10 Jim Meyering <meyering@lucent.com> |
2037 | |
2038 * linebuffer.c: Remove explicit declarations of xmalloc and xrealloc, | |
2039 Instead, include "xalloc.h". | |
2040 (initbuffer): Don't cast xmalloc return value to char*. | |
2041 (readline): Reword comment. | |
2042 Don't cast xrealloc return value to char* | |
2043 Return NULL, not 0. | |
2044 | |
3669 | 2045 2001-12-09 Jim Meyering <meyering@lucent.com> |
2046 | |
3677 | 2047 * modechange.c (mode_compile): Add cast to avoid pedantic warning about |
3676 | 2048 `signed and unsigned type in conditional expression'. |
2049 * posixtm.c (posix_time_parse): Likewise. | |
2050 | |
3677 | 2051 * xreadlink.c (xreadlink): Add cast to avoid a pedantic warning. |
3676 | 2052 |
2053 * readtokens.c (readtoken): Declare an index to be of type unsigned | |
2054 to avoid a pedantic warning. | |
2055 | |
2056 * getstr.c: Don't include assert.h. | |
2057 (getstr): Remove warning-evoking assertions. | |
2058 Return -1 if offset parameter is out of bounds. | |
2059 Change the type of a local from int to size_t. | |
2060 | |
2061 * strftime.c (my_strftime_localtime_r): Include this function | |
2062 definition in the `#if ! HAVE_TM_GMTOFF' block. | |
2063 | |
3669 | 2064 * xgethostname.c: Remove declarations of xmalloc and xrealloc. |
2065 Include xalloc.h instead. | |
2066 | |
3664 | 2067 2001-12-02 Jim Meyering <meyering@lucent.com> |
2068 | |
3666 | 2069 * tempname.c: Don't declare getenv, thus reverting the change of |
2070 2001-11-18. It's no longer necessary, now that stdlib.h is always | |
2071 included. | |
2072 | |
3664 | 2073 * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded, |
4590 | 2074 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld. |
3664 | 2075 |
3662 | 2076 2001-11-30 Akim Demaille <akim@epita.fr> |
2077 | |
2078 * xstrdup.c: Include xalloc.h, so that xstrdup is declared | |
2079 before being defined. | |
2080 | |
3659 | 2081 2001-11-27 Paul Eggert <eggert@twinsun.com> |
2082 | |
2083 * quotearg.h (quotearg_n, quotearg_n_style): | |
2084 First arg is int, not unsigned. | |
2085 * quotearg.c (quotearg_n, quotearg_n_style): Likewise. | |
2086 (SIZE_MAX, UINT_MAX): New macros. | |
2087 (quotearg_n_options): Abort if N is negative. | |
2088 Avoid overflow check on hosts where size_t is 64 bits and int | |
2089 is 32 bits, as overflow is impossible there. | |
2090 Fix off-by-one typo that caused unnecessary reallocation. | |
2091 | |
3655 | 2092 2001-11-27 Jim Meyering <meyering@lucent.com> |
2093 | |
2094 * tempname.c: Merge with version from libc. | |
3659 | 2095 * regex.c: Likewise. |
3655 | 2096 |
2097 * tempname.c: Include stdlib.h unconditionally. On some old systems | |
2098 for which STDC_HEADERS is 0, it was not included, resulting in a | |
2099 warning about an integer-to-pointer conversion problem with getenv. | |
2100 Reported by Volker Borchert. | |
2101 | |
3651 | 2102 2001-11-26 Jim Meyering <meyering@lucent.com> |
2103 | |
2104 * gtod.h: Remove file. | |
3659 | 2105 * Makefile.am (libfetish_a_SOURCES): Remove gtod.h. |
3651 | 2106 * gettimeofday.c: Don't include gtod.h. |
2107 (GTOD_init): Remove function. | |
2108 (rpl_gettimeofday): Do its job here instead, rather than aborting. | |
2109 Suggestion from Volker Borchert. | |
2110 | |
3647 | 2111 2001-11-23 Jim Meyering <meyering@lucent.com> |
2112 | |
2113 * hash.h (struct hash_table): Don't define here. Merely declare it. | |
2114 * hash.c (struct hash_table): Define it here instead. | |
2115 | |
3644 | 2116 2001-11-22 Jim Meyering <meyering@lucent.com> |
2117 | |
2118 * hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif. | |
2119 | |
3636 | 2120 2001-11-18 Paul Eggert <eggert@twinsun.com> |
2121 | |
2122 * tempname.c (TMP_MAX): Remove; no longer needed. | |
2123 (TEMPORARIES): New macro. | |
2124 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This | |
2125 removes an artificial limitation (e.g. HP-UX 10.20, where | |
2126 TMP_MAX is 17576). | |
2127 | |
3627 | 2128 2001-11-18 Jim Meyering <meyering@lucent.com> |
2129 | |
2130 * tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
2131 on SunOS 4. |
3627 | 2132 |
3628 | 2133 * Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those |
2134 files will be created before anything else. | |
3627 | 2135 |
3615 | 2136 2001-11-17 Jim Meyering <meyering@lucent.com> |
2137 | |
3638 | 2138 * modechange.c (mode_adjust): Fix error introduced on 1999-04-26 |
2139 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable | |
2140 rather than group writable. Patch by Juan F. Codagnone. | |
2141 | |
3623 | 2142 * readtokens.c: Remove explicit declarations of xmalloc and xrealloc, |
2143 Instead, include "xalloc.h". | |
2144 | |
2145 * mountlist.c: Include unlocked-io.h after all system headers. | |
2146 Remove explicit declarations of xmalloc, xrealloc, | |
2147 and xstrdup. Instead, include "xalloc.h". | |
2148 | |
3619 | 2149 * argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h. |
2150 * fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise. | |
2151 * mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise. | |
3623 | 2152 |
3619 | 2153 * regex.c, sha.c, version-etc.c, yesno.c: Likewise. |
3620 | 2154 Reported by Padraig Brady. |
3619 | 2155 |
3615 | 2156 * mkstemp.c: #undef mkstemp. |
2157 Include config.h. | |
2158 (rpl_mkstemp): Rename from mkstemp. | |
2159 Protoize. | |
2160 | |
3608 | 2161 2001-11-16 Jim Meyering <meyering@lucent.com> |
2162 | |
2163 * physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>. | |
2164 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to | |
2165 determine the amount of total physical memory, use pstat_getstatic. | |
2166 HPUX-11 doesn't define _SC_PHYS_PAGES. | |
2167 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]: | |
2168 If sysconf couldn't be used to determine the amount of available | |
2169 physical memory, use both pstat_getstatic and pstat_getdynamic. | |
2170 Based on a patch from Bob Proulx. | |
2171 | |
3597 | 2172 2001-11-05 Jim Meyering <meyering@lucent.com> |
2173 | |
2174 * xstat.in (slash_aware_lstat): Correct a misleading comment. | |
2175 | |
3583 | 2176 2001-11-03 Jim Meyering <meyering@lucent.com> |
2177 | |
3591 | 2178 * argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args |
2179 in argmatch_to_argument call. | |
2180 | |
3586 | 2181 * dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an |
2182 argument. | |
2183 | |
3583 | 2184 * hash.c (hash_clear): Fix a bug that could lead to an infloop or |
2185 e.g., a fault due to an attempt to free a NULL pointer. | |
2186 | |
3565 | 2187 2001-11-01 Jim Meyering <meyering@lucent.com> |
2188 | |
3576 | 2189 * dirfd.c, dirfd.h: New files. |
3573 | 2190 * Makefile.am (libfetish_a_SOURCES): Add dirfd.h. |
2191 | |
3565 | 2192 * hash.c (hash_print) [TESTING]: Clean up. |
2193 | |
3562 | 2194 2001-10-22 Paul Eggert <eggert@twinsun.com> |
2195 | |
2196 * hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__, | |
2197 to avoid a warning if -Wall. | |
2198 | |
3560 | 2199 2001-10-21 Paul Eggert <eggert@twinsun.com> |
2200 | |
3562 | 2201 * regex.c (uintptr_t): Remove macro and decl; it's config.h's job. |
3560 | 2202 |
3553 | 2203 2001-10-21 Jim Meyering <meyering@lucent.com> |
2204 | |
2205 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, | |
2206 this code would end up calling gettext even in packages built | |
2207 with --disable-nls. | |
3555 | 2208 * getopt.c (_): Likewise. |
3557 | 2209 * regex.c (_): Likewise. |
3553 | 2210 |
3551 | 2211 2001-10-20 Paul Eggert <eggert@twinsun.com> |
2212 | |
2213 * error.c (strerror_r): Do not declare unless !_LIBC. | |
2214 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P. | |
2215 Use strerror_r that is only a macro, even if it is not a function. | |
2216 (strerror): Check for HAVE_DECL_STRERROR before declaring. | |
2217 (private_strerror): Use prototypes, not old-style function definition. | |
2218 (print_errno_message): New function. | |
2219 Support the POSIX 'int'-flavored strerror_r, as well as the traditional | |
2220 char*-flavored one. | |
2221 (error_tail, error, error_at_line): Use it. | |
2222 | |
3546 | 2223 2001-10-11 Jim Meyering <meyering@lucent.com> |
2224 | |
2225 * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ... | |
2226 and quote_n (1, ... to avoid clobbering a buffer. | |
2227 | |
3543 | 2228 2001-10-05 Jim Meyering <meyering@lucent.com> |
2229 | |
2230 * Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h. | |
2231 * hash-pjw.c: New file (factored out of fileutils' remove.c). | |
2232 * hash-pjw.h: New file. | |
2233 | |
3538 | 2234 2001-09-30 Jim Meyering <meyering@lucent.com> |
2235 | |
2236 * mountlist.c [MOUNTED_GETFSSTAT]: | |
2237 Include <sys/ucred.h>, for Apple Darwin. | |
2238 Include sys/mount.h and sys/fs_types.h only if available. | |
2239 (FS_TYPE): Define. | |
2240 (read_filesystem_list): Use FS_TYPE. | |
2241 | |
3536 | 2242 2001-09-29 Paul Eggert <eggert@twinsun.com> |
2243 | |
3562 | 2244 * exclude.c (excluded_filename): 0 -> false, since it's |
3536 | 2245 a boolean context. |
2246 | |
3526 | 2247 2001-09-28 Paul Eggert <eggert@twinsun.com> |
2248 | |
2249 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which | |
2250 #defines strtoimax. Also treat the other strto* functions | |
2251 like strtoimax. | |
2252 | |
2253 * xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL. | |
2254 (strtoul): Do not declare if HAVE_DECL_STRTOUL. | |
2255 (strtoimax, strtoumax): Do not declare if already defined as a macro. | |
2256 | |
3521 | 2257 2001-09-26 Jim Meyering <meyering@lucent.com> |
2258 | |
2259 Most macros in unlocked-io.h had the wrong number of arguments. | |
2260 * gen-uio: New script. | |
3524 | 2261 (USE_UNLOCKED_IO): Define to 1 if not already defined. |
3521 | 2262 * unlocked-io.hin: Remove file. |
2263 * Makefile.am (unlocked-io.h): Rewrite to use a separate script, | |
2264 rather than trying to embed it here. | |
2265 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin | |
2266 Reported by Padraig Brady. | |
2267 | |
3512 | 2268 2001-09-25 Volker Borchert <bt@teknon.de> |
2269 | |
2270 * gettimeofday.c (rpl_gettimeofday): Declare local variable `result'. | |
2271 | |
3503 | 2272 2001-09-23 Jim Meyering <meyering@lucent.com> |
2273 | |
2274 * mountlist.c: Remove useless parentheses in #if directives. | |
2275 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when | |
2276 the deprecated MOUNTED symbol is no longer defined in mntent.h. | |
2277 | |
3495 | 2278 2001-09-22 Jim Meyering <meyering@lucent.com> |
2279 | |
2280 * localcharset.c: Update from latest gettext. | |
2281 * config.charset: Likewise. | |
2282 | |
3493 | 2283 2001-09-20 Jim Meyering <meyering@lucent.com> |
2284 | |
2285 * xstrtol.c (strtoimax): Guard declaration with | |
2286 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'. | |
2287 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0) | |
2288 have their own, conflicting declaration of strtoimax in sys/inttypes.h. | |
2289 (strtoumax): Likewise, for completeness (it wasn't necessary). | |
2290 | |
3482 | 2291 2001-09-06 Paul Eggert <eggert@twinsun.com> |
2292 | |
2293 * strtoimax.c (HAVE_LONG_LONG): | |
2294 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned. | |
2295 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base), | |
2296 to work around bug in IBM C compiler. | |
2297 | |
3479 | 2298 2001-09-16 Jim Meyering <meyering@lucent.com> |
2299 | |
2300 * mkdir.c: New file. | |
2301 | |
3467 | 2302 2001-09-04 Paul Eggert <eggert@twinsun.com> |
2303 | |
2304 * xgetcwd.c: Revert some of the previous change; intead, | |
2305 fix the HAVE_GETCWD_NULL code to behave more like the | |
2306 !HAVE_GETCWD_NULL code used to. | |
2307 | |
2308 Include "xalloc.h". | |
2309 (xgetcwd): Do not return NULL when memory is exhausted; instead, | |
2310 invoke xalloc_die. | |
2311 | |
3465 | 2312 2001-09-04 Paul Eggert <eggert@twinsun.com> |
2313 | |
2314 * xreadlink.c (xreadlink): Omit size_t* arg. All uses changed. | |
2315 Use ssize_t, not int, to store result of readlink. | |
2316 Check for ssize_t overflow as well as size_t overflow, | |
2317 as POSIX says the result of readlink is implementation-defined | |
2318 when ssize_t overflows. | |
2319 Remove unnecessary cast to char*. | |
2320 Use free+malloc instead of realloc, as the storage doesn't need | |
2321 to be preserved and it's clearer and can be more efficient that way. | |
2322 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare. | |
2323 * xreadlink.h (xreadlink): Update prototype. | |
2324 | |
3460 | 2325 2001-09-03 Paul Eggert <eggert@twinsun.com> |
2326 | |
2327 * exclude.c (fnmatch_no_wildcards): Fix confusion between | |
2328 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was | |
2329 spotted by Jim Meyering. | |
2330 | |
3456 | 2331 2001-09-03 Jim Meyering <meyering@lucent.com> |
2332 | |
2333 * xreadlink.c (xreadlink): Preserve errno around `free' during failure. | |
2334 | |
2335 2001-09-03 Paul Eggert <eggert@twinsun.com> | |
2336 | |
2337 * xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more | |
2338 like the HAVE_GETCWD_NULL code. | |
2339 Include pathmax.h if not HAVE_GETCWD. | |
2340 Do not include xalloc.h. | |
2341 (INITIAL_BUFFER_SIZE): New symbol. | |
2342 Do not use xmalloc / xrealloc, since the caller is responsible for | |
2343 handling errors. Preserve errno around `free' during failure. | |
2344 Do not overrun buffer when using getwd. | |
2345 | |
3449 | 2346 2001-09-03 Paul Eggert <eggert@twinsun.com> |
2347 | |
2348 * xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined | |
2349 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0). | |
2350 | |
3447 | 2351 2001-09-02 Jim Meyering <meyering@lucent.com> |
2352 | |
2353 * error.c: Update from GNU libc. | |
2354 | |
3437 | 2355 2001-09-01 Jim Meyering <meyering@lucent.com> |
2356 | |
3442 | 2357 * xreadlink.c: New file. |
2358 * xreadlink.h: New file. | |
2359 * Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h. | |
2360 | |
3439 | 2361 * regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
2362 doesn't conflict with sparc Solaris 7's definition in |
3439 | 2363 /usr/include/sys/int_types.h. |
2364 | |
3437 | 2365 * exclude.c: Use `""', not `<>' to #include non-system header files. |
2366 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp | |
2367 and strncasecmp as r-values. Unixware didn't have declarations. | |
2368 | |
3434 | 2369 2001-08-31 Jim Meyering <meyering@lucent.com> |
2370 | |
2371 * xgetcwd.c (xgetcwd): Reorganize to avoid some duplication. | |
2372 Use an initial, malloc'd, buffer of length 128 rather than | |
2373 a statically allocated one of length 1024. | |
2374 | |
3432 | 2375 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2376 | |
3562 | 2377 * xgetcwd.c: Don't include pathmax.h. |
3432 | 2378 Include stdlib.h and unistd.h if available. |
2379 Include xalloc.h. | |
2380 (xmalloc, xstrdup, free): Remove decls. | |
2381 (xgetcwd): Don't assume sizes fit in unsigned. | |
2382 Check for overflow when computing sizes. | |
2383 Simplify reallocation code. | |
2384 | |
3422 | 2385 2001-08-28 Paul Eggert <eggert@twinsun.com> |
2386 | |
2387 * Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c. | |
2388 | |
2389 * strtoimax.c: Renamed from strtoxmax.c, removing the | |
2390 old strtoimax.c. | |
2391 | |
2392 Also, make the following further changes to make this file's | |
2393 configuration more similar to that of strtol.c: | |
2394 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed. | |
2395 (strtoumax, uintmax_t, strtoull, strtol): Remove. | |
2396 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED. | |
2397 (strtoimax): Renamed from strtoumax. All uses of unsigned values | |
2398 changed to signed values. | |
2399 | |
2400 And make the following changes as well: | |
2401 Fix copyright notice, as 1999 was missing. | |
2402 (verify): New macro. | |
2403 (strtoimax): Check sizes at compile-time, not run-time. | |
2404 Prefer strtol to strtoll if both work. | |
2405 (main): Remove; it was not that useful and was a pain to maintain. | |
2406 | |
2407 * strtoumax.c: Include strtoimax.c, not strtouxmax.c. | |
2408 | |
3415 | 2409 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2410 | |
3422 | 2411 * savedir.c (savedir): Remove size parameter, as POSIX says that |
2412 a directory's st_size can have an arbitrary value, so the old | |
2413 usage could waste an arbitrary amount of memory. All uses | |
2414 changed. | |
2415 * savedir.h: Update prototype. | |
2416 | |
2417 2001-08-30 Paul Eggert <eggert@twinsun.com> | |
2418 | |
2419 * xstrtol.c (strtoimax): New decl. | |
3415 | 2420 |
3413 | 2421 2001-08-28 Paul Eggert <eggert@twinsun.com> |
2422 | |
3422 | 2423 * xstrtol.h: Add copyright notice. |
3413 | 2424 (_DECLARE_XSTRTOL): Improve quality of diagnostic for |
2425 LONGINT_INVALID_SUFFIX_CHAR. | |
2426 | |
3411 | 2427 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2428 | |
2429 * quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct | |
2430 tm to be declared. | |
2431 | |
3409 | 2432 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2433 | |
2434 * hash.c: Remove '2001' from copyright notice. | |
2435 | |
3405 | 2436 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2437 | |
2438 * full-write.h: New file. | |
2439 * Makefile.am (libfetish_a_SOURCES): Add full-write.h. | |
2440 * full-write.c: Correct credits, as cccp.c no longer | |
2441 exists and anyway it was so heavily changed from the old cccp | |
2442 code as to be unrecognizable. Include full-write.h. | |
2443 (full_write) Return size_t, with short writes meaning failure. | |
2444 All callers changed. This fixes a bug with large buffers | |
2445 on 64-bit hosts. | |
2446 * utime.c: Include full-write.h. | |
2447 | |
3397 | 2448 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2449 | |
3400 | 2450 Merge 'exclude' changes from tar 1.13.22. |
2451 This fixes one or two unlikely storage allocation overflow bugs, | |
2452 but doesn't change user-visible behavior otherwise. | |
2453 | |
3405 | 2454 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2455 | |
3400 | 2456 * exclude.c (bool): Declare, perhaps by including stdbool.h. |
2457 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H. | |
2458 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>): | |
2459 Include if available. | |
2460 (<xalloc.h>): Include | |
2461 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't. | |
2462 (verify): New macro. Use it to verify that EXCLUDE macros do not | |
2463 collide with FNM macros. | |
2464 (struct patopts): New struct. | |
2465 (struct exclude): Use it, as exclude patterns now come with options. | |
2466 (new_exclude): Support above changes. | |
2467 (new_exclude, add_exclude_file): | |
2468 Initial size must now be a power of two to simplify overflow checking. | |
2469 (free_exclude, fnmatch_no_wildcards): New function. | |
2470 (excluded_filename): No longer requires options arg, as the options | |
2471 are determined by add_exclude. Now returns bool, not int. | |
2472 (excluded_filename, add_exclude): | |
2473 Add support for the fancy new exclusion options. | |
2474 (add_exclude, add_exclude_file): Now takes int options arg. | |
2475 Check for arithmetic overflow when computing sizes. | |
2476 (add_exclude_file): xrealloc might modify errno, so don't | |
2477 realloc until after errno might be used. | |
2478 | |
2479 * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): | |
2480 New macros. | |
2481 (free_exclude): New decl. | |
2482 (add_exclude, add_exclude_file): Now takes int options arg. | |
2483 (excluded_filename): No longer requires options arg, as the options | |
2484 are determined by add_exclude. Now returns bool, not int. | |
2485 | |
3405 | 2486 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2487 | |
2488 * alloca.c (alloca): Arg is of type size_t, not unsigned. | |
3397 | 2489 |
3387 | 2490 2001-08-27 Jim Meyering <meyering@lucent.com> |
2491 | |
3391 | 2492 * Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c |
2493 | |
2494 * version-etc.c (N_): Remove definition. | |
2495 Revert most of last change. | |
2496 Instead, simply don't mark the `Copyright...' string for translation. | |
2497 Based on advice from Paul Eggert. | |
2498 | |
3387 | 2499 * strtoxmax.c: Tweak comment. |
2500 | |
3368 | 2501 2001-08-26 Jim Meyering <meyering@lucent.com> |
2502 | |
3387 | 2503 * version-etc.c (version_etc_copyright_fmt): Replace literal year |
2504 of copyright with `%s' so translators don't get an untranslated | |
2505 message in 2002. | |
2506 (COPYRIGHT_YEAR): Define. | |
2507 (version_etc): Use fprintf rather than fputs. | |
2508 Suggestion from Ulrich Drepper. | |
2509 | |
3378 | 2510 * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c. |
2511 | |
3375 | 2512 * strtoll.c: New file, from GNU libc. |
3368 | 2513 * xstrtoimax.c: New file. |
2514 | |
3380 | 2515 * xstrtol.h: Add xstrtoimax. |
3368 | 2516 * strtoumax.c: New file. Simply include "strtoumax.c". |
2517 * strtoimax.c: New file. Likewise, but first define STRTOUXMAX_SIGNED. | |
2518 | |
2519 * strtoumax.c: Factor to work both for unsigned and signed types, ... | |
3387 | 2520 * strtoxmax.c: ... then renamed to this. |
3368 | 2521 |
3348 | 2522 2001-08-13 Paul Eggert <eggert@twinsun.com> |
2523 | |
2524 * Makefile.am (unlocked-io.h): Do not append "_unlocked" twice. | |
2525 Port to Solaris 8, where 'sed' requires a space after the 'r' | |
2526 command, and where sh dislikes "$/". Clean up the spacing a bit. | |
2527 Redirect output to $tmp just once. | |
2528 | |
3346 | 2529 2001-08-12 Paul Eggert <eggert@sic.twinsun.com> |
2530 | |
3411 | 2531 * addext.c (<errno.h>): Include. |
3346 | 2532 (errno): Declare if not defined. |
2533 (addext): Work correctly when pathconf returns -1 and leaves | |
2534 errno alone because there is no limit. Also, work even if | |
2535 pathconf returns a value greater than SIZE_MAX. | |
2536 | |
3344 | 2537 2001-08-12 Jim Meyering <meyering@lucent.com> |
2538 | |
2539 * xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]: | |
2540 Simply `return getcwd (NULL, 0);'. | |
2541 [! (defined __GLIBC__ && __GLIBC__ >= 2)]: | |
2542 Use 1300 as initial value for length, not PATH_MAX. | |
2543 | |
2544 * pathmax.h: Clean up cpp syntax. | |
2545 | |
3334 | 2546 2001-08-12 Jim Meyering <meyering@lucent.com> |
2547 | |
2548 * gettimeofday.c: New file. | |
2549 * gtod.h: New file. | |
2550 * Makefile.am (libfetish_a_SOURCES): Add gtod.h. | |
2551 | |
3329 | 2552 2001-08-04 Jim Meyering <meyering@lucent.com> |
2553 | |
2554 * error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt, | |
2555 to get in sync with glibc. | |
2556 | |
3327 | 2557 2001-08-03 Paul Eggert <eggert@twinsun.com> |
2558 | |
2559 The following changes are from gettext 0.10.39 as maintained by | |
2560 Bruno Haible. | |
2561 | |
2562 * mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID): | |
2563 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID | |
2564 with inverted sense. All uses changed. | |
2565 | |
2566 * mbswidth.c: Don't include <limits.h>. | |
2567 Include <stdlib.h> and <string.h> unconditionally. | |
2568 (iswcntrl, mbsinit, ISCNTRL): New macros. | |
2569 (mbsnwidth): Use K&R style function declarations. | |
2570 Don't bother checking for MB_LEN_MAX == 1, since the compiler | |
2571 can optimize it when MB_CUR_MAX == 1. | |
2572 The width of control characters is zero, not 1. | |
2573 | |
3300 | 2574 2001-07-15 Jim Meyering <meyering@lucent.com> |
2575 | |
3301 | 2576 * Makefile.am (EXTRA_DIST): Add unlocked-io.hin. |
2577 (BUILT_SOURCES): Add unlocked-io.h. | |
2578 (io_functions): Define. | |
2579 (unlocked-io.h): New rule. | |
3304 | 2580 (DISTCLEANFILES): Add unlocked-io.h. |
3306 | 2581 (all-local): Depend on unlocked-io.h, to ensure it is created. |
3304 | 2582 |
3301 | 2583 * unlocked-io.hin: New file |
2584 | |
3300 | 2585 * regex.c: Update from glibc. |
2586 | |
3290 | 2587 2001-07-05 Jim Meyering <meyering@lucent.com> |
2588 | |
2589 * Makefile.am (noinst_HEADERS): Remove definition, per new automake | |
2590 recommendation. | |
2591 (libfetish_a_SOURCES): Put all .h files here instead. | |
2592 Remove a thus-exposed (better checks in automake) duplicate and | |
2593 two unnecessary .h files. | |
2594 | |
3279 | 2595 2001-06-11 Jim Meyering <meyering@lucent.com> |
2596 | |
2597 * regex.c: Update from GNU libc. | |
2598 | |
3277 | 2599 2001-05-27 Jim Meyering <meyering@lucent.com> |
2600 | |
2601 * readutmp.h (UT_TYPE): Define. | |
2602 | |
3273 | 2603 2001-05-24 Jim Meyering <meyering@lucent.com> |
2604 | |
2605 * argmatch.c: Include "quote.h". | |
2606 (argmatch_invalid): Remove explicit `' quotes. Instead, use the | |
4366
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
2607 quote function. Reported by Göran Uddeborg. |
3273 | 2608 |
3264 | 2609 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr> |
2610 | |
2611 * dirname.c (dir_name): Compute append_dot using path, not newpath | |
2612 which is not yet declared. | |
2613 | |
2614 2001-05-11 Paul Eggert <eggert@twinsun.com> | |
2615 | |
3411 | 2616 * Makefile.am (libfetish_a_SOURCES): |
3264 | 2617 Add strftime.c, since we now compile it on all hosts. |
2618 | |
3411 | 2619 * strftime.c (my_strftime): |
3264 | 2620 Define to nstrftime if emacs, but only if my_strftime is not defined. |
2621 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from | |
2622 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively. | |
2623 Add one more extra argument: a nanoseconds value. | |
2624 All uses changed. | |
2625 (ns): New macro. | |
2626 (my_strftime function): Add %N format. | |
2627 (emacs_strftimeu): Renamed from emacs_strftime, | |
2628 with extra ut argument. | |
2629 | |
3249 | 2630 2001-05-11 Paul Eggert <eggert@twinsun.com> |
2631 | |
2632 dirname code cleanup. base_name now behaves more compatibly | |
2633 with POSIX basename when given file names that have trailing | |
2634 slashes, and similarly for dir_name. Add new primitives | |
2635 base_len and dir_len. Put the directory-name-related decls | |
2636 into dirname.h. | |
2637 | |
2638 * addext.c (ISSLASH, base_name): Remove; now in dirname.h. | |
2639 * backupfile.c (base_name): Likewise. | |
2640 * basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise. | |
2641 * dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise. | |
2642 * makepath.c (strip_trailing_slashes): Likewise. | |
2643 * path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): | |
2644 Likewise. | |
2645 * rename.c (strip_trailing_slashes): Likewise. | |
2646 * same.c (base_name): Likewise. | |
2647 * stripslash.c (ISSLASH): Likewise. | |
2648 | |
2649 * addext.c: Include <dirname.h> after size_t is defined. | |
2650 * backupfile.c: Likewise. | |
2651 | |
2652 * addext.c (addext): Use base_len to trim redundant | |
2653 trailing slashes instead of doing it ourselves. | |
2654 But do not trim the last slash if it is not redundant. | |
2655 | |
2656 * backupfile.c (find_backup_file_name, | |
2657 max_backup_version): Use base_len instead of rolling it ourselves. | |
2658 Handle the case of "" and (on DOS) "C:" correctly. | |
2659 | |
2660 * basename.c: Do not include <stdio.h>, <assert.h>; no longer needed. | |
2661 Include <string.h>, <dirname.h>. | |
2662 (base_name): Allow file names ending in slashes, other than names | |
2663 that are all slashes. In this case, return the basename followed | |
2664 by the slashes. This is more general, and can be used in places | |
2665 where the original base_name purposely had an assertion failure. | |
2666 (base_len): New function. | |
2667 | |
2668 * dirname.c: Include <string.h> instead of <stdlib.h>. | |
2669 Do not include <assert.h>; no longer needed. | |
2670 Include xalloc.h. | |
2671 (memrchr): Remove decl. | |
2672 (dir_name_r): Remove. | |
2673 (dir_len): Renamed from dirlen. All callers changed. | |
2674 Rewrite in terms of base_name, for simplicity and consistency. | |
2675 (dir_name): Never return NULL. All callers changed. | |
2676 Do not include <stdlib.h> in test program; no longer needed. | |
2677 return 0; is fine for test program. | |
2678 | |
2679 * dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): | |
2680 New macros. | |
2681 (base_name, base_len, dir_len, strip_trailing_slashes): New decls. | |
2682 | |
2683 * path-concat.c (path_concat): Use base_len to compute | |
2684 base length, not strlen; this means we cannot rely on memcpy | |
2685 to null-terminate. | |
2686 | |
2687 * same.c (STREQ): Remove. | |
2688 (same_name): Handle the case where the basename ends in trailing '/'. | |
2689 | |
2690 * stripslash.c (strip_trailing_slashes): Return nonzero if | |
2691 a slash was stripped. Do not strip the last slash after a | |
2692 file system prefix. | |
2693 | |
3229 | 2694 2001-04-08 Jim Meyering <meyering@lucent.com> |
2695 | |
2696 * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is | |
2697 recomputed; that's necessary when the offset spans a DST transition. | |
2698 Patch by David J. MacKenzie. Reported by Hon-Yin Kok. | |
2699 | |
3226 | 2700 2001-04-02 Jim Meyering <meyering@lucent.com> |
2701 | |
2702 * regex.h, regex.c: Update from GNU libc. | |
2703 | |
3221 | 2704 2001-03-19 Paul Eggert <eggert@twinsun.com> |
2705 | |
3249 | 2706 * version-etc.c (version_etc_copyright): Update to 2001. |
3221 | 2707 |
3213 | 2708 2001-03-16 Paul Eggert <eggert@twinsun.com> |
2709 | |
2710 * tempname.c (uint64_t): Define to uintmax_t if | |
2711 not defined, and if UINT64_MAX is not defined. | |
2712 Required at least for Vax Ultrix4.3, which doesn't define uint64_t. | |
2713 Reported by John David Anglin. | |
2714 | |
3211 | 2715 2001-03-10 Bruno Haible <haible@clisp.cons.org> |
2716 | |
2717 * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve | |
2718 alias if codeset is empty. | |
2719 * config.charset (BeOS): Use wildcard syntax. | |
2720 | |
3208 | 2721 2001-03-13 Jim Meyering <meyering@lucent.com> |
2722 | |
2723 * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: | |
2724 Don't insert a backslash when concatenating e.g., `C:' and `foo'. | |
2725 From Bruno Haible. | |
2726 | |
3204 | 2727 2001-03-06 Bruno Haible <haible@clisp.cons.org> |
2728 | |
2729 * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL). | |
2730 Don't return NULL. | |
2731 * unicodeio.c (print_unicode_char): Simplify accordingly. | |
2732 | |
3201 | 2733 2001-03-06 Bruno Haible <haible@clisp.cons.org> |
2734 | |
2735 * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add | |
2736 support for DOS/DJGPP. | |
2737 | |
3197 | 2738 2001-02-28 Paul Eggert <eggert@twinsun.com> |
2739 | |
2740 * Makefile.am (libfetish_a_SOURCES): | |
2741 Add dup-safer.c, fopen-safer.c. | |
2742 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h. | |
2743 | |
3411 | 2744 * dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files. |
3197 | 2745 |
3195 | 2746 2001-02-25 Paul Eggert <eggert@twinsun.com> |
2747 | |
2748 The mkstemp replacement is taken from glibc 2.2.2, with some | |
2749 portability fixes for use outside glibc, as follows: | |
2750 | |
2751 * tempname.c (struct_stat64): New macro. | |
2752 (direxists, __gen_tempname): Use it. | |
2753 This avoids a portability problem with Solaris 8. | |
2754 | |
2755 * tempname.c (<config.h>): Include if HAVE_CONFIG_H. | |
2756 (<stddef.h>, <stdint.h>, <string.h>): | |
2757 Include only if STDC_HEADERS || _LIBC. | |
2758 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC. | |
2759 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC. | |
2760 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC. | |
2761 (__set_errno): Define this macro if <errno.h> doesn't. | |
2762 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE): | |
2763 Define these macros if <stdio.h> doesn't. | |
2764 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR): | |
2765 Define these macros if <sys/stat.h> | |
2766 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN. | |
2767 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64, | |
2768 __xstat64): Define if not _LIBC. | |
2769 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC). | |
2770 (__gen_tempname): Invoke gettimeofday only if | |
2771 HAVE_GETTIMEOFDAY || _LIBC; | |
2772 otherwise, fall back on plain "time". | |
2773 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600. | |
2774 | |
2775 * mkstemp.c (__GT_FILE): Define to zero if not defined. | |
2776 | |
2777 * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2. | |
2778 | |
3182 | 2779 2001-02-17 Jim Meyering <meyering@lucent.com> |
2780 | |
3186 | 2781 * strtoul.c: Sync from GNU libc. Use double quotes, not <...> |
2782 around included file name. | |
2783 | |
3184 | 2784 * strnlen.c (__strnlen): Merge in a change from GNU libc. |
2785 | |
2786 * strftime.c: Update from GNU libc (the only changes were to comments). | |
3182 | 2787 |
3177 | 2788 2001-02-13 Bruno Haible <haible@clisp.cons.org> |
2789 | |
2790 * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash. | |
2791 | |
3173 | 2792 2001-02-17 Paul Eggert <eggert@twinsun.com> |
2793 | |
2794 * mbswidth.c, quotearg.c (mbrtowc, mbsinit): | |
2795 Remove workaround macros for hosts that have mbrtowc but not | |
2796 mbstate_t, as we now insist on proper declarations for both | |
2797 before using mbrtowc. | |
2798 | |
3166 | 2799 2001-02-17 Jim Meyering <meyering@lucent.com> |
2800 | |
2801 * regex.c: Update from libc. | |
2802 | |
3163 | 2803 2001-02-16 Paul Eggert <eggert@twinsun.com> |
2804 | |
3195 | 2805 * alloca.c (malloc): Undef before defining, since stdlib.h |
3164 | 2806 may have defined it. Needed for Encore Umax-3.0.9.16b systems. |
2807 Reported by Mark Hounschell via Paul Eggert. | |
3163 | 2808 |
3149 | 2809 2001-01-30 Bruno Haible <haible@clisp.cons.org> |
2810 | |
2811 * config.charset: Update for FreeBSD 4.2. | |
2812 | |
3131 | 2813 2001-01-26 Jim Meyering <meyering@lucent.com> |
2814 | |
3133 | 2815 * quotearg.c: Include stddef.h. |
2816 * quote.c: Include stddef.h. | |
2817 Reported by Axel Kittenberger. | |
2818 | |
3131 | 2819 * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking |
2820 line in double quotes so that it evokes a better diagnostic. | |
2821 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise. | |
2822 Reported by Axel Kittenberger. | |
2823 | |
3124 | 2824 2001-01-15 Bruno Haible <haible@clisp.cons.org> |
2825 | |
2826 * unicodeio.c (print_unicode_char): Cast the second iconv() arg, | |
2827 to avoid a warning. Add back 'const' to inptr. | |
2828 | |
3108 | 2829 2001-01-16 Jim Meyering <meyering@lucent.com> |
2830 | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
2831 * basename.c: Include <stdio.h>, needed by assert on SunOS 4. |
3108 | 2832 From Bruno Haible. |
2833 | |
3103 | 2834 2001-01-14 Jim Meyering <meyering@lucent.com> |
2835 | |
2836 * rename.c: New file. From Volker Borchert. | |
2837 Include stdlib.h, string.h or strings.h, and xalloc.h. | |
2838 Use strip_trailing_slashes rather than open-coding it. | |
2839 | |
3095 | 2840 2001-01-03 Paul Eggert <eggert@twinsun.com> |
2841 | |
3195 | 2842 * strftime.c: Sync with glibc time/strftime.c 1.81. |
3095 | 2843 |
3091 | 2844 2001-01-03 Jim Meyering <meyering@lucent.com> |
2845 | |
2846 * unicodeio.c (print_unicode_char): Remove `const' from declaration of | |
2847 local `inptr' to avoid warning with some system declarations of iconv. | |
2848 | |
3082 | 2849 2000-12-29 Paul Eggert <eggert@twinsun.com> |
2850 | |
3195 | 2851 * modechange.c: Do not assume that mode_t uses the |
3082 | 2852 traditional octal encoding. E.g. "chmod 1 FOO" should set |
2853 the other-execute bit of FOO even if S_IXOTH != 1. | |
2854 | |
2855 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH, | |
2856 WOTH, XOTH, ALLM): New macros. | |
2857 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, | |
2858 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): | |
2859 Use them. | |
2860 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID. | |
2861 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above. | |
2862 (mode_compile): | |
2863 No need to use uintmax_t; unsigned long is long enough. | |
2864 Don't bother to get suffix since we don't use it. | |
2865 | |
3074 | 2866 2000-12-24 Jim Meyering <meyering@lucent.com> |
2867 | |
2868 * hash.c (is_prime): Return explicit boolean values. | |
2869 (hash_get_first): Return NULL to appease Irix5.6's 89. | |
3075 | 2870 Reported by Nelson Beebe. |
3074 | 2871 |
3063 | 2872 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
2873 | |
2874 * localcharset.c (locale_charset): Add support for Win32. | |
2875 | |
2876 2000-12-18 Paul Eggert <eggert@twinsun.com> | |
2877 | |
3067 | 2878 * physmem.h, physmem.c: New files. |
3063 | 2879 |
3067 | 2880 * Makefile.am (libfetish_a_SOURCES): Add physmem.c. |
3063 | 2881 (noinst_HEADERS): Add physmem.h. |
2882 | |
3067 | 2883 * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and |
3063 | 2884 't' for compatibility with Solaris 8 sort. |
2885 | |
3061 | 2886 2000-12-18 Bruno Haible <haible@clisp.cons.org> |
2887 | |
2888 * config.charset: Add support for BeOS. | |
2889 | |
3053 | 2890 2000-12-16 Jim Meyering <meyering@lucent.com> |
2891 | |
2892 * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define | |
2893 SHELLS_FILE to a file name that's useful on djgpp systems. | |
2894 Include stdlib.h. | |
2895 (ADDITIONAL_DEFAULT_SHELLS): Define. | |
2896 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS. | |
2897 Based mostly on a patch from Prashant TR. | |
2898 | |
3051 | 2899 2000-12-16 Jim Meyering <meyering@lucent.com> |
2900 | |
2901 This bug had a serious impact on chown: `chown N:M FILE' (for integer | |
2902 N and M) would have treated it like `chown N:N FILE'. | |
2903 | |
2904 * userspec.c (parse_user_spec): Fix typo: s/u/g/. | |
2905 | |
3054 | 2906 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
2907 | |
2908 * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII, | |
2909 CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257 | |
2910 to the list of canonical encodings. Rename EUC-CN to GB2312. | |
2911 | |
3044 | 2912 2000-12-08 Andreas Schwab <schwab@suse.de> |
2913 | |
2914 * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an | |
2915 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set. | |
2916 | |
3039 | 2917 2000-12-07 Jim Meyering <meyering@lucent.com> |
2918 | |
3042 | 2919 * stripslash.c (ISSLASH): Define. |
2920 (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'. | |
2921 From Prashant TR. | |
2922 | |
3039 | 2923 * dirname.c (FILESYSTEM_PREFIX_LEN): Define. |
2924 (dir_name_r): Declare this function as static. | |
2925 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd | |
2926 manifest itself on a name containing a mix of slashes and | |
2927 backslashes. | |
2928 Make this function work with names starting with a DOS-style | |
2929 drive letter and colon prefix. | |
2930 (dir_name): Append `.' if necessary. | |
2931 Based mostly on patches from Prashant TR and Eli Zaretskii. | |
2932 | |
2933 * dirname.h (dir_name_r): Remove prototype. | |
2934 | |
3028 | 2935 2000-12-05 Jim Meyering <meyering@lucent.com> |
2936 | |
2937 * dirname.c (dir_name_r): Add `const' in a few local declarations. | |
2938 | |
3023 | 2939 2000-12-04 Jim Meyering <meyering@lucent.com> |
2940 | |
2941 * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc. | |
3025 | 2942 Also include memory.h, stdlib.h, unistd.h if appropriate. |
3026 | 2943 Reported by Andreas Jaeger (conflicting declaration of malloc). |
3023 | 2944 |
3020 | 2945 2000-12-02 Jim Meyering <meyering@lucent.com> |
2946 | |
2947 * closeout.h: Make idempotent, to avoid some obscure warnings. | |
2948 | |
3010 | 2949 2000-12-01 Paul Eggert <eggert@twinsun.com> |
2950 | |
3195 | 2951 * memrchr.c: Include <config.h> before any system include file. |
3010 | 2952 |
3005 | 2953 2000-11-29 Paul Eggert <eggert@twinsun.com> |
2954 | |
3195 | 2955 * dirname.c (dir_name_r): Fix typo: int -> size_t. |
3005 | 2956 |
2998 | 2957 2000-11-26 Jim Meyering <meyering@lucent.com> |
2958 | |
2959 * memcoll.c: Include sys/types.h. From Werner Almesberger. | |
2960 | |
2994 | 2961 2000-11-22 Paul Eggert <eggert@twinsun.com> |
2962 | |
3195 | 2963 * strftime.c (my_strftime): Do not invoke mbrlen with a |
2994 | 2964 size of (size_t) -1; it's not portable. |
2965 | |
2992 | 2966 2000-11-17 Akim Demaille <akim@epita.fr> |
2967 | |
3195 | 2968 * obstack.h: Formatting changes. |
2992 | 2969 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would |
2970 prevent type checking. | |
2971 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't | |
2972 cast the value to (void *): assigning a `foo *' to a `void *' | |
2973 variable is valid. | |
2974 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int. | |
2975 | |
2989 | 2976 2000-11-17 Jim Meyering <meyering@lucent.com> |
2977 | |
2978 * strstr.c: Update from GNU libc. | |
2979 | |
2987 | 2980 2000-11-16 Jim Meyering <meyering@lucent.com> |
2981 | |
2982 * strverscmp.c: Incorporate weak-alias-related changes from glibc. | |
2983 | |
2984 2000-11-11 Jim Meyering <meyering@lucent.com> | |
2985 | |
2986 * error.c: Add a couple #includes, merging from GNU libc version. | |
2987 | |
2980 | 2988 2000-11-10 Jim Meyering <meyering@lucent.com> |
2989 | |
2990 * obstack.h: Update from GNU libc. | |
2991 * obstack.c: Likewise. | |
2992 | |
2967 | 2993 2000-11-06 Paul Eggert <eggert@twinsun.com> |
2994 | |
2981 | 2995 * getusershell.c (setusershell): Use rewind rather than |
2967 | 2996 fseek/fseeko, to avoid configuration hassles with fseeko. |
2997 Don't bother opening SHELLS_FILE if shellstream is NULL; | |
2998 it's not necessary. | |
2999 | |
2965 | 3000 2000-11-05 Jim Meyering <meyering@lucent.com> |
3001 | |
3002 * makepath.h (make_dir): Declare. | |
3003 * makepath.c (make_dir): Remove `static' attribute. | |
3004 Tweak a comment. | |
3005 | |
2957 | 3006 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr> |
3007 | |
3008 * hash.c (hash_get_next): Fix a thinko: when ENTRY is the | |
3009 last one in a bucket, advance to the next bucket. | |
3010 | |
2955 | 3011 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg> |
3012 | |
2981 | 3013 * fnmatch.c: Do not comment out all the code if we are using |
2955 | 3014 the GNU C library, because in some cases we are replacing buggy |
3015 code in the GNU C library itself. | |
3016 | |
2952 | 3017 2000-10-30 Paul Eggert <eggert@twinsun.com> |
3018 | |
2981 | 3019 * error.h, getline.h, modechange.h: |
2952 | 3020 Remove "2000" from Copyright line, as the file hasn't been |
3021 changed this year other than in the copyright notice. | |
3022 | |
2981 | 3023 * xalloc.h: Add "2000" to Copyright line, as this file |
2952 | 3024 was changed this year. |
3025 | |
2949 | 3026 2000-10-30 Paul Eggert <eggert@twinsun.com> |
3027 | |
2981 | 3028 * fnmatch.c (FOLD): Do not assume that characters are unsigned. |
2949 | 3029 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs, |
3030 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero. | |
3031 | |
2941 | 3032 2000-10-29 Greg Louis <glouis@dynamicro.on.ca> |
3033 | |
3034 * regex.h (__restrict_arr): Move definition out of #ifndef block. | |
3035 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but | |
3036 doesn't define __restrict_arr. | |
3037 | |
2939 | 3038 2000-10-29 Jim Meyering <meyering@lucent.com> |
3039 | |
3040 * xstat.in: Fix grammar in comment. | |
3041 | |
2929 | 3042 2000-10-28 Jim Meyering <meyering@lucent.com> |
3043 | |
2933 | 3044 * memchr.c: Update from libc. |
3045 Adjust for portability: | |
3046 [HAVE_STDLIB_H]: Include stdlib.h. | |
3047 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h. | |
3048 Undef __memchr, too. | |
3049 [!weak_alias]: Define __memchr to memchr. | |
3050 | |
2931 | 3051 * regex.c: Update from libc. |
3052 * regex.h: Likewise. | |
3053 * getopt1.c: Likewise. | |
2935 | 3054 * memcmp.c: Likewise. |
2931 | 3055 |
2942
c5e4ce044bd7
fix typo: s/fseek0/fseeko/
Jim Meyering <jim@meyering.net>
parents:
2941
diff
changeset
|
3056 * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko. |
2967 | 3057 Avoid using fseek, when possible -- it's broken by design. |
2929 | 3058 Patch by Ulrich Drepper. |
3059 | |
2924 | 3060 2000-10-26 Jim Meyering <meyering@lucent.com> |
3061 | |
3062 * strftime.c: Update from libc. | |
3063 | |
2918 | 3064 2000-10-25 Jim Meyering <meyering@lucent.com> |
3065 | |
3066 * obstack.c: Update from libc. | |
3067 | |
2911 | 3068 2000-10-23 Jim Meyering <meyering@lucent.com> |
3069 | |
3070 * hard-locale.c (hard_locale): Revert last change -- it was simply | |
3071 wrong. That set_locale call must not have any side effects. | |
3072 From Paul Eggert. | |
3073 | |
2904 | 3074 2000-10-22 Jim Meyering <meyering@lucent.com> |
3075 | |
2907 | 3076 * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC. |
3077 [CYCLIC]: Remove now-unused definition. | |
3078 | |
2904 | 3079 * save-cwd.c (O_DIRECTORY): Define, if needed. |
3080 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".". | |
3081 Suggestion from Ulrich Drepper. | |
3082 | |
2893 | 3083 2000-10-21 Jim Meyering <meyering@lucent.com> |
3084 | |
2920 | 3085 * dirname.c (dir_name_r): New function, factored out of dir_name. |
3086 (dir_name): Use dir_name_r. | |
3087 * dirname.h (dir_name_r): Declare it. | |
3088 | |
3089 2000-10-21 Jim Meyering <meyering@lucent.com> | |
3090 | |
2898 | 3091 * dirname.c (memrchr): Declare if necessary. |
3092 (dir_name): Remove the restriction that there be no | |
3093 trailing slashes. Now, this code skips past them, effectively | |
3094 ignoring them. | |
3095 [TEST_DIRNAME] (main): New unit tests. | |
3096 | |
2893 | 3097 * memrchr.c: New file from GNU libc. |
3098 Undef __memrchr, too. | |
3099 [!weak_alias]: Define __memrchr to memrchr. | |
3100 Guard weak_alias use with `#ifdef weak_alias'. | |
3101 | |
2886 | 3102 2000-10-17 Jim Meyering <meyering@lucent.com> |
3103 | |
2891 | 3104 * quote.h (PARAMS): Define and use. |
2890 | 3105 Reported by Akim Demaille. |
2889 | 3106 |
2886 | 3107 * getopt.c: Update from libc. |
3108 | |
2884 | 3109 2000-10-16 Jim Meyering <meyering@lucent.com> |
3110 | |
3111 * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale. | |
3112 From Jan Fedak. | |
3113 | |
2880 | 3114 2000-09-25 Jim Meyering <meyering@lucent.com> |
3115 | |
3116 * md5.h (rol): Define (from GnuPG). | |
3117 | |
3118 * sha.c: Give credit (GnuPG) where due. | |
3119 (M): Use rol rather than open-coding it. | |
3120 Add a FIXME comment. | |
3121 | |
2876 | 3122 2000-09-21 Jim Meyering <meyering@lucent.com> |
3123 | |
3124 * userspec.c (parse_user_spec): Remove debugging printf I'd added. | |
2877 | 3125 Reported by Michael Stone. |
2876 | 3126 |
2874 | 3127 2000-09-20 Jim Meyering <meyering@lucent.com> |
3128 | |
3129 * Makefile.am (libfetish_a_SOURCES): Add sha.c. | |
3130 (noinst_HEADERS): Add sha.h. | |
3131 Based on code from Scott G. Miller and from GnuPG. | |
3132 | |
2861 | 3133 2000-09-15 Jim Meyering <meyering@lucent.com> |
3134 | |
3135 * regex.c: Update from libc. | |
3136 | |
2859 | 3137 2000-09-10 Jim Meyering <meyering@lucent.com> |
3138 | |
3139 * getopt.c (_getopt_internal): Update from glibc. | |
3140 | |
2855 | 3141 2000-09-09 Jim Meyering <meyering@lucent.com> |
3142 | |
2857 | 3143 * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't |
3144 think it should be used as a general replacement for isascii. | |
3145 * fnmatch.c: Likewise. | |
3146 * mbswidth.c: Likewise | |
3147 * regex.c: Likewise. | |
3148 | |
2855 | 3149 Don't use atoi. |
3150 * userspec.c: Include sys/param.h and limits.h. | |
3151 Include xstrtol.h. | |
3152 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define. | |
3153 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define. | |
3154 (parse_user_spec): Use xstrtoul, not atoi when converting numeric | |
3155 UID, GID. Check range. | |
3156 | |
2853 | 3157 2000-09-06 Jim Meyering <meyering@lucent.com> |
3158 | |
3159 * getopt.c (_getopt_internal): Update from glibc. | |
3160 | |
2846 | 3161 2000-08-30 Jim Meyering <meyering@lucent.com> |
3162 | |
3163 * strftime.c: Merge in changes from GNU libc. | |
3164 | |
2837 | 3165 2000-08-26 Jim Meyering <meyering@lucent.com> |
3166 | |
2839 | 3167 * closeout.c: Include "__fpending.h". |
3168 (close_stdout_status): Return right away if there's nothing to flush. | |
3169 | |
2837 | 3170 * Makefile.am (noinst_HEADERS): Add __fpending.h. |
3171 * __fpending.c: New file. | |
3172 * __fpending.h: New file. | |
3173 | |
2815 | 3174 2000-08-07 Paul Eggert <eggert@twinsun.com> |
3175 | |
3176 Standardize on "memory exhausted" instead of "Memory exhausted" | |
3177 or "virtual memory exhausted". | |
3178 * obstack.c (print_and_abort): Use "memory exhausted", not | |
3179 "virtual memory exhausted". | |
3180 * same.c (same_name): Invoke xalloc_die instead of printing | |
3181 our own message. | |
3182 * userspec.c (parse_user_spec): Likewise. | |
3183 * bumpalloc.h: comment fix | |
3184 * same.c, userspec.c: Include xalloc.h. | |
3185 | |
3186 * xalloc.h (xalloc_msg_memory_exhausted): Now char const[], | |
3187 not char *const and pointing to a constant array. | |
3188 * xmalloc.c (xalloc_msg_memory_exhausted): Likewise. | |
3189 (xrealloc): Comment fix. | |
3190 | |
3191 * userspec.c (parse_user_spec): | |
3192 Don't translate a message until just before returning, | |
3193 to avoid unnecessary translation. | |
3194 | |
2808 | 3195 2000-08-07 Jim Meyering <meyering@lucent.com> |
3196 | |
3197 * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h, | |
3198 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c, | |
3199 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h, | |
3200 getgroups.c, gethostname.c, getopt.h, group-member.c, | |
3201 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c, | |
3202 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c, | |
3203 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h, | |
3204 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c, | |
3205 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c, | |
3206 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c, | |
3207 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c, | |
3208 yesno.c: Back out Copyright date changes for each file with no change | |
3209 this year. This eases coordination with other programs using the same | |
3210 source code modules. From Paul Eggert. | |
3211 | |
2804 | 3212 2000-08-03 Greg McGary <greg@mcgary.org> |
3213 | |
3214 * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, | |
3215 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros. | |
3216 (EXTEND_BUFFER): Use them. | |
3217 | |
2802 | 3218 2000-08-01 Jim Meyering <meyering@lucent.com> |
3219 | |
3220 * dirname.c (ISSLASH): Define. | |
3221 (BACKSLASH_IS_PATH_SEPARATOR): Define. | |
3222 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which | |
3223 both `\' and `/' may be use as path separators. | |
3224 Based on a patch from Prashant TR. | |
3225 | |
2800 | 3226 2000-07-31 Paul Eggert <eggert@twinsun.com> |
3227 | |
2815 | 3228 * quotearg.c (quotearg_n_options): Don't make the initial |
2800 | 3229 slot vector a constant, since it might get modified. |
3230 | |
2794 | 3231 2000-07-31 Jim Meyering <meyering@lucent.com> |
3232 | |
3233 * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'. | |
3234 * obstack.c (print_and_abort): Likewise. | |
3235 | |
2796 | 3236 2000-07-30 Paul Eggert <eggert@twinsun.com> |
3237 | |
3238 * quotearg.c (quotearg_n_options): Preallocate a slot 0 | |
3239 buffer, so that the caller can always quote one small | |
3240 component of a "memory exhausted" message in slot 0. | |
3241 From a suggestion by Jim Meyering. | |
3242 | |
2791 | 3243 2000-07-30 Jim Meyering <meyering@lucent.com> |
3244 | |
3245 * makepath.c (make_path): Quote the other instance, too. | |
3246 | |
3247 * quotearg.c (N_STATIC_SLOTVECS): Define. | |
3248 (STATIC_BUF_SIZE): Define. | |
3249 (quotearg_n_options): Use only statically allocated storage when | |
3250 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller | |
3251 than STATIC_BUF_SIZE. | |
3252 | |
2782 | 3253 2000-07-29 Jim Meyering <meyering@lucent.com> |
3254 | |
2788 | 3255 * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS. |
3256 * dirname.c (dir_name): Likewise. | |
3257 | |
3258 * basename.c (base_name): Use ISSLASH rather than comparing against `/'. | |
3259 | |
2782 | 3260 * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const. |
2785 | 3261 (dir_name): Assert that there are no trailing slashes. |
2782 | 3262 |
2780 | 3263 2000-07-18 Bruno Haible <haible@clisp.cons.org> |
3264 | |
3265 * mbswidth.h (mbswidth): Add a flags argument. | |
3266 (mbswidth): New declaration. | |
3267 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros. | |
3268 * mbswidth.c (mbswidth): Add a flags argument. | |
3269 (mbsnwidth): New function. | |
3270 | |
2776 | 3271 2000-07-24 Jim Meyering <meyering@lucent.com> |
3272 | |
3273 * mbswidth.c: Remove useless #else. From Bruno Haible. | |
3274 | |
2773 | 3275 2000-07-23 Paul Eggert <eggert@twinsun.com> |
3276 | |
3277 * mbswidth.c (_XOPEN_SOURCE): | |
3278 Don't define; this causes problems on Solaris 7. | |
3279 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare. | |
3280 | |
2771 | 3281 2000-07-23 Paul Eggert <eggert@twinsun.com> |
3282 | |
2815 | 3283 * quotearg.c: |
2771 | 3284 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), |
3285 so that mbstate_t is always defined. | |
3286 | |
3287 Do not inspect MB_LEN_MAX, since it's incorrectly defined to | |
3288 be 1 in at least one GCC installation, and this configuration | |
3289 error is likely to be common. Ignoring MB_LEN_MAX hurts | |
3290 performance on hosts that have mbrtowc but have only unibyte | |
3291 locales, but I assume these hosts are rare. | |
3292 | |
2769 | 3293 2000-07-23 Paul Eggert <eggert@twinsun.com> |
3294 | |
2815 | 3295 * quotearg.c: Streamline by invoking multibyte code only if needed. |
2769 | 3296 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX. |
3297 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX). | |
3298 (quotearg_buffer_restyled): If a unibyte locale, don't bother to | |
3299 invoke multibyte primitives. | |
3300 | |
2764 | 3301 2000-07-23 Jim Meyering <meyering@lucent.com> |
3302 | |
3303 * basename.c (base_name): Add an assertion. | |
3304 | |
2762 | 3305 2000-07-15 Bruno Haible <clisp.cons.org> |
3306 | |
3307 * quotearg.c: When the system forces us to redefine mbstate_t, | |
3308 shadow its mbsinit function. | |
3309 | |
2755 | 3310 2000-07-16 Bruno Haible <haible@clisp.cons.org> |
3311 | |
3312 * mbswidth.h: New file. | |
3313 * mbswidth.c: New file. | |
2759 | 3314 * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c. |
2769 | 3315 (noinst_HEADERS): Add mbswidth.h. |
2755 | 3316 |
2754 | 3317 2000-07-17 Bruno Haible <haible@clisp.cons.org> |
3318 | |
3319 * config.charset: Add support for FreeBSD. Improve support for HP-UX | |
3320 and IRIX 6. | |
3321 | |
2747 | 3322 2000-07-15 Jim Meyering <meyering@lucent.com> |
3323 | |
2751 | 3324 * makepath.c: Include quote.h. |
3325 (make_path): Convert "`%s'" in format strings to "%s", and wrap each | |
3326 corresponding argument in a `quote (...)' call. | |
3327 Give better diagnostics. | |
3328 | |
2749 | 3329 * Makefile.am (libfetish_a_SOURCES): Add quote.c. |
3330 (noinst_HEADERS): Add quote.h. | |
3331 | |
2747 | 3332 * quote.c (quote, quote_n): New file. Two functions taken verbatim |
3333 from tar's src/misc.c. | |
3334 * quote.h: New file. Prototypes for same. | |
3335 | |
2740 | 3336 2000-07-10 Paul Eggert <eggert@twinsun.com> |
3337 | |
3338 From a suggestion by Bruno Haible. | |
3339 * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition. | |
3340 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT, | |
3341 to decide whether to define the BeOS workaround macro; | |
3342 this adjusts to the change to AC_MBSTATE_T. | |
3343 | |
2738 | 3344 2000-07-13 Paul Eggert <eggert@twinsun.com> |
3345 | |
3346 * quotearg.h (enum quoting style): New enum clocale_quoting_style. | |
3347 | |
3206 | 3348 * quotearg.c (quoting_style_args, quoting_style_vals, |
2738 | 3349 quotearg_buffer_restyled): Add support for |
3350 clocale_quoting_style. Undo previous change to | |
3351 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}" | |
3352 and "{RIGHT QUOTATION MARK}" msgids. | |
3353 | |
2723 | 3354 2000-07-05 Paul Eggert <eggert@twinsun.com> |
3355 | |
3356 The old behavior of quoting `like this' doesn't look good with | |
3357 newer, ISO-style fonts. See: | |
3358 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |
3359 | |
3360 Instead, quote "like this" by default. Let the translator | |
3361 tailor the locale-specific quoting behavior by providing | |
3362 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}. | |
3363 | |
3364 * quotearg.c (N_): New macro. | |
3365 (gettext_default): New function. | |
3366 (quotearg_buffer_restyled): Use | |
3367 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and | |
3368 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote. | |
3369 | |
2719 | 3370 2000-07-09 Jim Meyering <meyering@lucent.com> |
3371 | |
3372 * Most files: Update copyright dates to include 2000. | |
3373 | |
2721 | 3374 2000-07-08 Jim Meyering <meyering@lucent.com> |
3375 | |
3376 * xgethostname.c (ENAMETOOLONG): Define to an unlikely value | |
3377 if not defined. | |
3378 (xgethostname): Remove now-unnecessary #ifdef. | |
3379 Move declaration of `err' into loop where it's used. | |
3380 | |
3381 2000-07-05 Bruno Haible <haible@clisp.cons.org> | |
3382 | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
3383 * xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug |
2721 | 3384 by allocating a larger buffer. Test the gethostname return value for |
3385 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname | |
3386 returns an error and ENAMETOOLONG isn't defined. | |
3387 | |
2710 | 3388 2000-07-05 Paul Eggert <eggert@twinsun.com> |
3389 and Bruno Haible <haible@clisp.cons.org> | |
3390 | |
3391 * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't. | |
3392 | |
2708 | 3393 2000-07-05 Bruno Haible <haible@clisp.cons.org> |
3394 | |
3395 * quotearg.c (struct quoting_options): Simplify quote_these_too | |
3396 dimension. | |
3397 | |
2706 | 3398 2000-07-03 Jim Meyering <meyering@lucent.com> |
3399 | |
3400 * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen. | |
3401 Reported by Bruno Haible. | |
3402 | |
2704 | 3403 2000-07-04 Jim Meyering <meyering@lucent.com> |
3404 | |
3405 * quotearg.c: Make inclusion of <wchar.h> independent of whether | |
3406 HAVE_MBRTOWC is set. Required at least for irix-5.6, which | |
3407 lacks mbrtowc. | |
3408 | |
2693 | 3409 2000-07-03 Paul Eggert <eggert@twinsun.com> |
3410 and Bruno Haible <haible@clisp.cons.org> | |
3411 | |
2815 | 3412 * quotearg.c (mbrtowc): |
2693 | 3413 Assign to *pwc, and return 1 only if result is nonzero. |
3414 (iswprint): Use ISPRINT when substituting our own mbrtowc. | |
3415 | |
2697 | 3416 2000-07-03 Jim Meyering <meyering@lucent.com> |
3417 | |
3418 * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H. | |
3419 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20. | |
3420 From Bob Proulx. | |
3421 | |
2691 | 3422 2000-07-02 Jim Meyering <meyering@lucent.com> |
3423 | |
3424 * quotearg.c (mbstate_t): Don't define here. | |
3425 | |
2688 | 3426 2000-07-02 Jim Meyering <meyering@lucent.com> |
3427 | |
3428 * nanosleep.c (SIGCONT): Define if not already defined. | |
3429 | |
2678 | 3430 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3431 | |
3432 * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV, | |
3433 per change in ../m4/ls-mntd-fs.m4. | |
3434 (read_filesystem_list): Ignore symbolic links. | |
3435 | |
2668 | 3436 2000-06-29 Jim Meyering <meyering@lucent.com> |
3437 | |
2672 | 3438 * same.c: Include <string.h> or <strings.h>, as appropriate, |
3439 for declaration of strcmp. | |
3440 | |
2670 | 3441 * long-options.c: Include <stdlib.h>, for declaration of exit. |
3442 | |
2668 | 3443 * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: |
3444 Avoid warning by casting result to `char *' to remove `const'. | |
3445 | |
2662 | 3446 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3447 | |
3448 * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c. | |
3449 | |
2659 | 3450 2000-06-26 Paul Eggert <eggert@twinsun.com> |
3451 | |
3452 savedir now sets errno on failure and invokes xmalloc to get memory. | |
3453 Fix a couple of other minor bugs while we're at it. | |
3454 | |
3455 * savedir.c (<unistd.h>): Do not include; there's no need. | |
3456 (NAMLEN): Remove macro. | |
3457 (malloc, realloc): Remove decls. | |
3458 (stpcpy): Likewise. | |
3459 ("xalloc.h"): Include. | |
3460 (NAME_SIZE_DEFAULT): New macro. | |
3461 (savedir): Use xmalloc / xrealloc to allocate memory. | |
3462 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero. | |
3463 Skip "" directory entries. | |
3464 Use strlen to calculate directory entry length, since the old method | |
3465 is rarely used these days and isn't worth supporting. | |
3466 Don't use a pointer after freeing it. | |
3467 Check for integer overflow when calculating allocation size. | |
3468 Use memcpy to copy entries, instead of stpcpy. | |
3469 Set errno properly when returning NULL. | |
3470 Check for readdir error. | |
3471 | |
2657 | 3472 2000-06-26 Jim Meyering <meyering@lucent.com> |
3473 | |
3474 * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort. | |
3475 | |
2655 | 3476 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3477 | |
3478 * getusershell.c (xmalloc, xrealloc): Remove functions. | |
3479 Include xalloc.h. | |
3480 Don't include <stdlib.h>. Don't declare malloc, realloc. | |
3481 | |
2651 | 3482 2000-06-23 Bruno Haible <haible@clisp.cons.org> |
3483 | |
3484 * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency. | |
3485 | |
2644 | 3486 2000-06-24 Jim Meyering <meyering@lucent.com> |
3487 | |
3488 * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r. | |
3489 | |
2636 | 3490 2000-06-21 Jim Meyering <meyering@lucent.com> |
3491 | |
3492 * getpass.c: New file, from Bruno Haible. Required for BeOS. | |
3493 | |
2640 | 3494 2000-06-19 Paul Eggert <eggert@twinsun.com> |
3495 | |
3496 * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5. | |
3497 (mbrtowc, mbstate_t): Define substitutes if | |
3498 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT. | |
3499 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT, | |
3500 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H). | |
3501 | |
2628 | 3502 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3503 | |
3504 * xgetcwd.c (xgetcwd): If the required pathname length is smaller | |
3505 than 1024, return a memory chunk of least possible size, instead | |
3506 of size PATH_MAX + 2. In the loop, increment the size proportionally. | |
3507 Use free/xmalloc instead of xrealloc to avoid copying for very long | |
3508 paths. | |
3509 | |
2626 | 3510 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3511 | |
3512 * canon-host.c (canon_host): Use malloc and memcpy to copy an | |
3513 address, not strdup. Include <stdlib.h> and don't declare free(). | |
3514 | |
2624 | 3515 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3516 | |
3517 * path-concat.c (path_concat): Don't access dir[-1] if dir is | |
3518 the empty string. | |
3519 | |
2621 | 3520 2000-06-21 Jim Meyering <meyering@lucent.com> |
3521 | |
3522 * Makefile.am (libfetish_a_SOURCES): Add getstr.c. | |
3523 (noinst_HEADERS): Add getstr.h. | |
3524 | |
3525 * getline.c (getstr): Move into a separate file. | |
3526 * getstr.c (getstr): New file, extracted from getline.c, with | |
3527 the following changes: new parameter, delim2; both delim[12] | |
3528 parameters have type `int', not `char'. The latter would lose | |
3529 with 8-bit delimiters. | |
3530 * getstr.h: New file. | |
3531 | |
2611 | 3532 2000-06-19 Jim Meyering <meyering@lucent.com> |
3533 | |
3534 * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define. | |
3535 | |
2602 | 3536 2000-06-18 Jim Meyering <meyering@lucent.com> |
3537 | |
2608 | 3538 * mkdir.c: Remove file, due mainly to copyright incompatibility. |
3539 Besides, these days every porting target provides a mkdir function. | |
3540 | |
2606 | 3541 * strnlen.c: Include memory.h, string.h, and/or strings.h as needed. |
3542 (this snippet comes from src/system.h). | |
3543 | |
2594 | 3544 2000-06-15 Paul Eggert <eggert@twinsun.com> |
3545 | |
2640 | 3546 * human.c (adjust_value): New function. |
2594 | 3547 (human_readable_inexact): Apply rounding style even when |
3548 printing approximate values. | |
3549 | |
2591 | 3550 2000-06-14 Paul Eggert <eggert@twinsun.com> |
3551 | |
2640 | 3552 * human.c (human_readable_inexact): Allow an input block |
2591 | 3553 size that is not a multiple of the output block size, and vice versa. |
2592 | 3554 Reported by Piergiorgio Sartor. |
2591 | 3555 |
2589 | 3556 2000-06-14 Paul Eggert <eggert@twinsun.com> |
3557 | |
2640 | 3558 * getdate.y (get_date): Apply relative times after time |
2589 | 3559 zone indicator, not before. Reported by Todd A. Jacobs. |
3560 | |
2585 | 3561 2000-06-13 Jim Meyering <meyering@lucent.com> |
3562 | |
2591 | 3563 * Makefile.am (all-local): Depend on lstat.c and stat.c. |
3564 | |
2585 | 3565 * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c. |
3566 | |
2583 | 3567 2000-06-12 Paul Eggert <eggert@twinsun.com> |
3568 | |
3569 * xstat.in: Include <stdlib.h> in lstat, to declare "free". | |
3570 | |
2575 | 3571 2000-06-04 Paul Eggert <eggert@twinsun.com> |
3572 | |
2583 | 3573 * strnlen.c: Include <config.h> if HAVE_CONFIG_H. |
2575 | 3574 |
2573 | 3575 2000-06-04 Jim Meyering <meyering@lucent.com> |
3576 | |
3577 * getugroups.c (getugroups): Cast -1 to gid_t, for systems like | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
3578 SunOS 4.1.4 for which gid_t is an unsigned type. |
2573 | 3579 |
2569 | 3580 2000-06-03 Jim Meyering <meyering@lucent.com> |
3581 | |
3582 * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr. | |
3583 | |
2559 | 3584 2000-05-26 Bruno Haible <haible@clisp.cons.org> |
3585 | |
3586 * Makefile.am (install-exec-local): On systems with glibc-2.1 or | |
3587 newer, don't install charset.alias. | |
3588 * config.charset: Change the Linux/glibc rules so they become empty | |
3589 on glibc-2.1 or newer. | |
3590 | |
2554 | 3591 2000-06-02 Jim Meyering <meyering@lucent.com> |
3592 | |
3593 * mountlist.c: Back out last change. Instead, do this... | |
3594 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy | |
3595 member using the same `ignore'-testing code. | |
3596 * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored | |
3597 fs_type strings. | |
3598 From Mark D. Roth. | |
3599 | |
2549 | 3600 2000-05-29 Jim Meyering <meyering@lucent.com> |
3601 | |
3602 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts | |
3603 with the `ignore' attribute. Based on a patch from Mark D. Roth. | |
3604 | |
2548 | 3605 2000-05-22 Jim Meyering <meyering@lucent.com> |
3606 | |
3607 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block. | |
3608 | |
2525 | 3609 2000-05-18 Jim Meyering <meyering@lucent.com> |
3610 | |
3611 * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list | |
3612 back, too, since it may have been modified by allocate_entry. | |
3613 (hash_delete): Rewrite to use neither the assignment operator | |
3614 nor the comma operator in an if-expression. | |
3615 | |
2523 | 3616 2000-05-15 Paul Eggert <eggert@twinsun.com> |
3617 | |
2583 | 3618 * closeout.c: |
2523 | 3619 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO): |
3620 Remove; no longer needed. | |
3621 "quotearg.h": Add include. | |
3622 (file_name): Do not bother to explicitly initialize to NULL; it's less | |
3623 efficient on some hosts. | |
3624 (close_stdout_status): Remove test as to whether stdout was already | |
3625 closed; it breaks for the case "echo x | sort >&-". | |
3626 Quote file name colons. | |
3627 Do not assume that _("write error") lacks format strings. | |
3628 | |
2518 | 3629 2000-05-15 Jim Meyering <meyering@lucent.com> |
3630 | |
3631 * version-etc.c (version_etc_copyright): Update the copyright string | |
3632 used in all --version output. | |
3633 | |
2521 | 3634 2000-05-14 Jim Meyering <meyering@lucent.com> |
3635 | |
3636 * closeout.c (close_stdout_set_file_name): New function. | |
3637 (close_stdout_status): Use new file-scoped global. | |
3638 Return right away if fstat says the stdout file descriptor is invalid. | |
3639 * closeout.h (close_stdout_set_file_name): Declare. | |
3640 | |
2515 | 3641 2000-05-10 Jim Meyering <meyering@lucent.com> |
3642 | |
3643 * closeout.c [default_exit_status]: New file-scoped variable. | |
3644 (close_stdout_set_status): New function. | |
3645 * closeout.h (close_stdout_set_status): Declare. | |
3646 | |
2508 | 3647 2000-05-08 Jim Meyering <meyering@lucent.com> |
3648 | |
3649 * long-options.c: Don't include closeout.h. | |
3650 (parse_long_options): Don't call close_stdout for --version. | |
3651 | |
2499 | 3652 2000-05-06 Jim Meyering <meyering@lucent.com> |
3653 | |
2504 | 3654 * strnlen.c: Undefine __strnlen and strnlen. |
3655 [!weak_alias]: Define __strnlen to strnlen. | |
3656 | |
2499 | 3657 * atexit.c: New file, from libiberty. |
3658 | |
3659 2000-05-06 Jim Meyering <meyering@lucent.com> | |
3660 | |
3661 * closeout.c (close_stdout_status): Also check for errors on the | |
3662 stderr stream. | |
3663 | |
2488 | 3664 2000-05-05 Bruno Haible <haible@clisp.cons.org> |
3665 | |
3666 * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy | |
3667 instead of xmalloc, xrealloc, path_concat. | |
3668 (locale_charset): Treat empty environment variables as absent. | |
3669 (DIRECTORY_SEPARATOR, ISSLASH): New macros. | |
3670 | |
2467 | 3671 2000-05-04 Jim Meyering <meyering@lucent.com> |
3672 | |
3673 * getopt.c: Update from glibc. | |
2478 | 3674 * obstack.c: Likewise. |
3675 * obstack.h: Likewise. | |
2473 | 3676 * regex.c: Likewise. NB: K&R compiler support is dropped for this file |
3677 | |
3678 * regex.h: Likewise. | |
2470 | 3679 * strndup.c: Likewise. |
3680 * strnlen.c: New file, from glibc. | |
2467 | 3681 |
2461 | 3682 2000-05-01 Jim Meyering <meyering@lucent.com> |
3683 | |
3684 * full-write.c (full_write): Remove `FIXME' part of comment. | |
3685 | |
2447 | 3686 2000-04-29 Jim Meyering <meyering@lucent.com> |
3687 | |
3688 * path-concat.c: Declare strdup only if it's not defined. | |
3689 * canon-host.c: Likewise. | |
3690 | |
2445 | 3691 2000-04-28 Jim Meyering <meyering@lucent.com> |
3692 | |
3693 * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid | |
3694 redefinition warning on some systems (HPUX). Otherwise, regex.h is | |
3695 included first, then limits.h is included by locale.h by libintl.h. | |
3696 From John David Anglin. | |
3697 | |
2440 | 3698 2000-04-25 Jim Meyering <meyering@lucent.com> |
3699 | |
3700 * makepath.c (S_IRWXUGO): Define. | |
3701 (make_path): Always perform explicit chmod if MODE specifies any | |
2442 | 3702 of the `special' permission bits. Prompted by a bug report against |
3703 install from Mate Wierdl and Joost van Baal. | |
2440 | 3704 |
2435 | 3705 2000-04-18 Jim Meyering <meyering@lucent.com> |
3706 | |
2440 | 3707 * README: New file. |
3708 | |
2435 | 3709 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define |
3710 getpagesize. For BeOS. Based on a patch from Bruno Haible. | |
3711 | |
2431 | 3712 2000-04-17 Jim Meyering <meyering@lucent.com> |
3713 | |
3714 * strftime.c (my_strftime) [strftime]: Declare strftime here, since | |
3715 the definition of it to rpl_strftime also defined-away the system's | |
3716 declaration. | |
3717 | |
2427 | 3718 2000-04-15 Jim Meyering <meyering@lucent.com> |
3719 | |
3720 Use `C' to denote so-called `contiguous' files, the same way | |
3721 that tar does. | |
3722 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. | |
3723 (ftypelet): Use S_ISCTG. | |
3724 From Michael Deutschmann. | |
3725 | |
3726 2000-04-14 Jim Meyering <meyering@lucent.com> | |
3727 | |
3728 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime. | |
3729 | |
2416 | 3730 2000-04-08 Jim Meyering <meyering@lucent.com> |
3731 | |
3732 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3 | |
3733 names don't conflict. Reported by Eli Zaretskii. | |
3734 | |
2413 | 3735 2000-03-28 Bruno Haible <haible@clisp.cons.org> |
3736 | |
3737 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv | |
2431 | 3738 bug. Deal with the different error behavior of Irix iconv. |
2413 | 3739 |
3740 2000-04-07 Jim Meyering <meyering@lucent.com> | |
3741 | |
3742 * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h, | |
3743 to work around system header problems on AIX 3.2.5. From Bruno Haible. | |
3744 | |
2406 | 3745 2000-04-05 Jim Meyering <meyering@lucent.com> |
3746 | |
3747 Portability tweaks required for ultrix4.3. | |
3748 * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent. | |
3749 * readutmp.c: Include sys/types.h before sys/stat.h. | |
3750 * canon-host.c: Declare strdup. | |
3751 * path-concat.c: Likewise. | |
3752 From John David Anglin. | |
3753 | |
2397 | 3754 2000-04-04 Jim Meyering <meyering@lucent.com> |
3755 | |
3756 Be more DOS 8.3-friendly. | |
3757 * ref-add.sin: Renamed from ref-add.sed.in. | |
3758 * ref-del.sin: Renamed from ref-del.sed.in. | |
3759 * Makefile.am: Reflect renaming. | |
3760 Reported by Eli Zaretskii. | |
3761 | |
3762 Use a temporary file name that won't clash with `charset.alias' | |
3763 in the DOS 8.3 name space. | |
3764 * Makefile.am (charset_tmp): Define. | |
3765 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t. | |
3766 (uninstall-local): Likewise. | |
3767 Reported by Eli Zaretskii. | |
3768 | |
2379 | 3769 2000-03-29 Paul Eggert <eggert@twinsun.com> |
3770 | |
3771 * time/strftime.c (my_strftime): Make sure we call the system | |
3772 strftime, not ourselves, when invoking the underlying strftime. | |
3773 | |
2364 | 3774 2000-03-24 Jim Meyering <meyering@lucent.com> |
3775 | |
3776 * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in. | |
3777 (charset_alias): Define. | |
3778 (install-exec-local): Factor out common code. | |
3779 (uninstall-local): Split lines longer than 80. | |
3780 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead) | |
3781 (SUFFIXES): Define. | |
3782 (.sed.in.sed): New rule. Don't redirect directly to $@. | |
3783 (CLEANFILES): Add ref-add.sed and ref-del.sed. | |
3784 | |
3785 2000-03-19 Bruno Haible <haible@clisp.cons.org> | |
3786 | |
3787 * config.charset: Output a line containing "Packages using this file". | |
3788 * ref-add.sed.in, ref-del.sed.in: New files. | |
3789 * Makefile.am (install-exec-local, uninstall-local, ref-add.sed, | |
3790 ref-del.sed): New rules. | |
3791 | |
2353 | 3792 2000-03-17 Jim Meyering <meyering@lucent.com> |
3793 | |
3794 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H. | |
3795 Otherwise, include <strings.h> | |
3796 | |
3797 2000-03-17 Bruno Haible <haible@clisp.cons.org> | |
3798 | |
3799 * unicodeio.c (utf8_wctomb): New function. | |
3800 (print_unicode_char): Pass the Unicode character to iconv in UTF-8 | |
3801 format instead of in UCS-4 with platform dependent endianness. | |
3802 | |
2343 | 3803 2000-03-07 Paul Eggert <eggert@twinsun.com> |
3804 | |
2583 | 3805 * savedir.c (savedir): Work even if directory size is |
2343 | 3806 negative; this can happen with some screwy NFS configurations. |
3807 | |
2348 | 3808 2000-03-06 Jim Meyering <meyering@lucent.com> |
3809 | |
3810 * localcharset.c (get_charset_aliases): Don't try to free file_name | |
3811 if it's NULL (because we ran out of memory). From Bruno Haible. | |
3812 | |
2337 | 3813 2000-03-05 Jim Meyering <meyering@lucent.com> |
3814 | |
2339 | 3815 * localcharset.c ("path-concat.h"): Include. |
3816 (get_charset_aliases): Use path_concat instead of ANSI string | |
3817 concatenation. | |
3818 | |
2337 | 3819 * unicodeio.h (PARAMS): Define. |
3820 Use it to guard prototype. | |
3821 | |
2330 | 3822 2000-03-04 Jim Meyering <meyering@lucent.com> |
3823 | |
2332 | 3824 * Makefile.am (install-exec-local): Create $(libdir) before installing |
3825 into it. | |
2334 | 3826 (uninstall-local): Uncomment this rule so `make distcheck' works |
3827 once again. | |
2332 | 3828 |
2330 | 3829 * unicodeio.c (<errno.h>): Include it. |
3830 (errno): Declare if not defined. | |
3831 | |
3832 * localcharset.c: Add Bruno's comment justifying use of volatile. | |
3833 | |
3834 * config.charset: New version, incorporating remarks from a linux | |
3835 i18n mailing list. From Bruno Haible. | |
3836 | |
3837 2000-03-02 Jim Meyering <meyering@lucent.com> | |
3838 | |
3839 * Makefile.am (EXTRA_DIST): Add config.charset. | |
3840 | |
2309 | 3841 2000-03-01 Jim Meyering <meyering@lucent.com> |
3842 | |
3843 * localcharset.c: Guard some #includes with `#if HAVE_...'. | |
3844 * unicodeio.c: Likewise. | |
3845 | |
3846 2000-02-02 Bruno Haible <haible@clisp.cons.org> | |
3847 | |
3848 * config.charset: New file. | |
3849 * localcharset.c: New file. | |
3850 * unicodeio.h, unicodeio.c: New files. | |
3851 * Makefile.am (DEFS): Add -DLIBDIR=... | |
3852 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c. | |
3853 (noinst_HEADERS): Add unicodeio.h. | |
3854 (all-local, install-exec-local, charset.alias): New targets. | |
3855 | |
2300 | 3856 2000-02-28 Paul Eggert <eggert@twinsun.com> |
3857 | |
2583 | 3858 * quotearg.c (ALERT_CHAR): New macro. |
2300 | 3859 (quotearg_buffer_restyled): Use it. |
3860 | |
2285 | 3861 2000-02-27 Jim Meyering <meyering@lucent.com> |
3862 | |
2298 | 3863 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/. |
3864 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'. | |
3865 | |
2295 | 3866 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H', |
3867 not `#if STDC_HEADERS'. | |
3868 Declare malloc if needed. | |
3869 | |
2290 | 3870 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..' |
3871 now that autoconf always defines the HAVE_DECL_ symbols. | |
3872 * human.c: Likewise. | |
3873 * same.c: Likewise. | |
3874 * strtoumax.c: Likewise. | |
3875 | |
3876 * backupfile.c: Arrange for cpp to fail if the configure-time | |
3877 declaration check was not run. | |
3878 * hash.c: Likewise. | |
3879 * human.c: Likewise. | |
3880 * same.c: Likewise. | |
3881 * strtoumax.c: Likewise. | |
3882 | |
2285 | 3883 * userspec.c (parse_user_spec): If there is no `:' but there is a `.', |
3884 then first look up the entire `.'-containing string as a login name. | |
3885 | |
2286 | 3886 2000-02-18 Paul Eggert <eggert@twinsun.com> |
3887 | |
2583 | 3888 * getdate.y: Handle two-digit years with leading zeros correctly. |
2286 | 3889 (textint): New typedef. |
3890 (parser_control): Member year changed from int to textint. | |
3891 All uses changed. | |
3892 (YYSTYPE): Removed; replaced by %union with int and textint members. | |
3893 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN, | |
3894 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER, | |
3895 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>. | |
3896 (tSNUMBER, tUNUMBER): Now of type <textintval>. | |
3897 (date, number, to_year): Use width of number in digits, not its value, | |
3898 to determine whether it's a 2-digit year, or a 2-digit time. | |
3899 (yylex): Store number of digits of numeric tokens. | |
3900 Reported by John Kendall. | |
3901 | |
3902 (parser_control): Changed from struct parser_control to typedef (for | |
3903 consistency). All uses changed. | |
3904 | |
3905 (tID): Removed; not used. | |
3906 (yylex): Return '?' for unknown identifiers, rather than (unused) tID. | |
3907 | |
2278 | 3908 2000-02-14 Paul Eggert <eggert@twinsun.com> |
3909 | |
2583 | 3910 * getpagesize.h (getpagesize): Port to VMS for Alpha; |
2279 | 3911 adapted from changes to grep getpagesize.h by Martin P.J. Zinser. |
2278 | 3912 |
2274 | 3913 2000-02-12 Jim Meyering <meyering@lucent.com> |
3914 | |
3915 * userspec.c (ISDIGIT): Define it. | |
3916 (isdigit): Remove definition. | |
3917 (is_number): Use ISDIGIT, not isdigit. | |
3918 <libintl.h>: Include. | |
3919 (_ and N_): Define. | |
3920 (parse_user_spec): Mark translatable strings. | |
3921 | |
2268 | 3922 2000-02-10 Jim Meyering <meyering@lucent.com> |
3923 | |
3924 With these changes, nanosleep.[ch] are finally enough like the other | |
3925 lib/* replacement files to compile on a few more losing systems. | |
3926 | |
3927 * nanosleep.h: Don't include config.h. | |
3928 Remove prototype from declaration of nanosleep. | |
3929 (PARAMS): Remove now-unneeded definition. | |
3930 * nanosleep.c: #undef nanosleep. | |
3931 (rpl_nanosleep): Rename from nanosleep. | |
3932 | |
2245 | 3933 2000-02-03 Jim Meyering <meyering@lucent.com> |
3934 | |
3935 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION', | |
3936 rather than with `#if HAVE_UTMPNAME'. | |
3937 | |
3938 2000-02-01 Jim Meyering <meyering@lucent.com> | |
3939 | |
3940 * readutmp.h (UT_USER): Add parens. From Andreas Schwab. | |
3941 | |
2235 | 3942 2000-01-31 Jim Meyering <meyering@lucent.com> |
3943 | |
2240 | 3944 * nanosleep.h (nanosleep): Guard declaration with |
3945 `#if ! HAVE_DECL_NANOSLEEP'. | |
2275 | 3946 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to |
2240 | 3947 the declaration in that vendor's sys/timers.h. |
3948 Reported by Christian Krackowizer. | |
3949 | |
2235 | 3950 * quotearg.c (ISASCII): Add #undef and move definition to follow |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
3951 inclusion of wctype.h to work around Solaris 2.6 namespace pollution. |
2235 | 3952 (ISPRINT): Likewise. |
2236 | 3953 Reported by Tom Tromey. |
2235 | 3954 |
2228 | 3955 2000-01-30 Jim Meyering <meyering@lucent.com> |
3956 | |
3957 * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding | |
3958 uses of ->ut_name. The latter doesn't work with new Linux header files | |
3959 where only utmpx.ut_user is declared. | |
3960 | |
3961 * readutmp.h (UT_USER): Define. | |
3962 | |
2193 | 3963 2000-01-23 Jim Meyering <meyering@lucent.com> |
3964 | |
3965 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of | |
3966 obstack.c. | |
3967 | |
2163 | 3968 2000-01-22 Jim Meyering <meyering@lucent.com> |
2188 | 3969 |
3970 * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul. | |
3971 [! HAVE_DECL_STRTOULL]: Declare strtoull. | |
3972 Required for some AIX systems. Reported by Christian Krackowizer. | |
3973 [TESTING] (main): New function. | |
3974 | |
2172 | 3975 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il> |
3976 * dirname.c (dir_name): Support for DOS-style file names with drive | |
3977 letters. | |
2163 | 3978 |
2185 | 3979 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint. |
2184 | 3980 |
2163 | 3981 * strverscmp.c (ISDIGIT): Define. |
3982 (strverscmp): Use ISDIGIT, not isdigit. | |
3983 | |
2152 | 3984 2000-01-17 Paul Eggert <eggert@twinsun.com> |
3985 | |
3986 * nanosleep.c (nanosleep): | |
3987 Don't use SA_INTERRUPT to decide whether to call sigaction, as | |
3988 POSIX.1 doesn't require SA_INTERRUPT and some systems | |
3989 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; | |
3990 it's been part of POSIX.1 since day 1 (in 1988). | |
3991 | |
2150 | 3992 2000-01-17 Jim Meyering <meyering@lucent.com> |
3993 | |
4366
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
3994 * interlock: Remove unused file. Reported by François Pinard. |
2150 | 3995 |
2144 | 3996 2000-01-16 Paul Eggert <eggert@twinsun.com> |
3997 | |
2583 | 3998 * quotearg.c (quotearg_buffer_restyled): Do not quote |
2144 | 3999 alert, backslash, formfeed, and vertical tab unnecessarily in |
4000 shell quoting style. | |
2190 | 4001 |
4002 Local Variables: | |
4003 version-control: never | |
4004 End: |