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