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