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