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