1 2000-07-23 Paul Eggert <eggert@twinsun.com>
3 * mbswidth.c (_XOPEN_SOURCE):
4 Don't define; this causes problems on Solaris 7.
5 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
7 2000-07-23 Paul Eggert <eggert@twinsun.com>
10 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
11 so that mbstate_t is always defined.
13 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
14 be 1 in at least one GCC installation, and this configuration
15 error is likely to be common. Ignoring MB_LEN_MAX hurts
16 performance on hosts that have mbrtowc but have only unibyte
17 locales, but I assume these hosts are rare.
19 2000-07-23 Paul Eggert <eggert@twinsun.com>
21 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
22 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
23 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
25 invoke multibyte primitives.
27 2000-07-23 Jim Meyering <meyering@lucent.com>
29 * basename.c (base_name): Add an assertion.
31 2000-07-15 Bruno Haible <clisp.cons.org>
33 * quotearg.c: When the system forces us to redefine mbstate_t,
34 shadow its mbsinit function.
36 2000-07-16 Bruno Haible <haible@clisp.cons.org>
38 * mbswidth.h: New file.
39 * mbswidth.c: New file.
40 * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41 (noinst_HEADERS): Add mbswidth.h.
43 2000-07-17 Bruno Haible <haible@clisp.cons.org>
45 * config.charset: Add support for FreeBSD. Improve support for HP-UX
48 2000-07-15 Jim Meyering <meyering@lucent.com>
50 * makepath.c: Include quote.h.
51 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
52 corresponding argument in a `quote (...)' call.
53 Give better diagnostics.
55 * Makefile.am (libfetish_a_SOURCES): Add quote.c.
56 (noinst_HEADERS): Add quote.h.
58 * quote.c (quote, quote_n): New file. Two functions taken verbatim
59 from tar's src/misc.c.
60 * quote.h: New file. Prototypes for same.
62 2000-07-10 Paul Eggert <eggert@twinsun.com>
64 From a suggestion by Bruno Haible.
65 * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
67 to decide whether to define the BeOS workaround macro;
68 this adjusts to the change to AC_MBSTATE_T.
70 2000-07-13 Paul Eggert <eggert@twinsun.com>
72 * quotearg.h (enum quoting style): New enum clocale_quoting_style.
74 * quotearg.c: (quoting_style_args, quoting_style_vals,
75 quotearg_buffer_restyled): Add support for
76 clocale_quoting_style. Undo previous change to
77 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78 and "{RIGHT QUOTATION MARK}" msgids.
80 2000-07-05 Paul Eggert <eggert@twinsun.com>
82 The old behavior of quoting `like this' doesn't look good with
83 newer, ISO-style fonts. See:
84 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86 Instead, quote "like this" by default. Let the translator
87 tailor the locale-specific quoting behavior by providing
88 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90 * quotearg.c (N_): New macro.
91 (gettext_default): New function.
92 (quotearg_buffer_restyled): Use
93 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96 2000-07-09 Jim Meyering <meyering@lucent.com>
98 * Most files: Update copyright dates to include 2000.
100 2000-07-08 Jim Meyering <meyering@lucent.com>
102 * xgethostname.c (ENAMETOOLONG): Define to an unlikely value
104 (xgethostname): Remove now-unnecessary #ifdef.
105 Move declaration of `err' into loop where it's used.
107 2000-07-05 Bruno Haible <haible@clisp.cons.org>
109 * xgethostname.c (xgethostname): Protect against the SunOS5.5 bug
110 by allocating a larger buffer. Test the gethostname return value for
111 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
112 returns an error and ENAMETOOLONG isn't defined.
114 2000-07-05 Paul Eggert <eggert@twinsun.com>
115 and Bruno Haible <haible@clisp.cons.org>
117 * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
119 2000-07-05 Bruno Haible <haible@clisp.cons.org>
121 * quotearg.c (struct quoting_options): Simplify quote_these_too
124 2000-07-03 Jim Meyering <meyering@lucent.com>
126 * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
127 Reported by Bruno Haible.
129 2000-07-04 Jim Meyering <meyering@lucent.com>
131 * quotearg.c: Make inclusion of <wchar.h> independent of whether
132 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
135 2000-07-03 Paul Eggert <eggert@twinsun.com>
136 and Bruno Haible <haible@clisp.cons.org>
138 * lib/quotearg.c (mbrtowc):
139 Assign to *pwc, and return 1 only if result is nonzero.
140 (iswprint): Use ISPRINT when substituting our own mbrtowc.
142 2000-07-03 Jim Meyering <meyering@lucent.com>
144 * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
145 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
148 2000-07-02 Jim Meyering <meyering@lucent.com>
150 * quotearg.c (mbstate_t): Don't define here.
152 2000-07-02 Jim Meyering <meyering@lucent.com>
154 * nanosleep.c (SIGCONT): Define if not already defined.
156 2000-06-17 Bruno Haible <haible@clisp.cons.org>
158 * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
159 per change in ../m4/ls-mntd-fs.m4.
160 (read_filesystem_list): Ignore symbolic links.
162 2000-06-29 Jim Meyering <meyering@lucent.com>
164 * same.c: Include <string.h> or <strings.h>, as appropriate,
165 for declaration of strcmp.
167 * long-options.c: Include <stdlib.h>, for declaration of exit.
169 * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
170 Avoid warning by casting result to `char *' to remove `const'.
172 2000-06-17 Bruno Haible <haible@clisp.cons.org>
174 * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
176 2000-06-26 Paul Eggert <eggert@twinsun.com>
178 savedir now sets errno on failure and invokes xmalloc to get memory.
179 Fix a couple of other minor bugs while we're at it.
181 * savedir.c (<unistd.h>): Do not include; there's no need.
182 (NAMLEN): Remove macro.
183 (malloc, realloc): Remove decls.
185 ("xalloc.h"): Include.
186 (NAME_SIZE_DEFAULT): New macro.
187 (savedir): Use xmalloc / xrealloc to allocate memory.
188 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
189 Skip "" directory entries.
190 Use strlen to calculate directory entry length, since the old method
191 is rarely used these days and isn't worth supporting.
192 Don't use a pointer after freeing it.
193 Check for integer overflow when calculating allocation size.
194 Use memcpy to copy entries, instead of stpcpy.
195 Set errno properly when returning NULL.
196 Check for readdir error.
198 2000-06-26 Jim Meyering <meyering@lucent.com>
200 * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
202 2000-06-17 Bruno Haible <haible@clisp.cons.org>
204 * getusershell.c (xmalloc, xrealloc): Remove functions.
206 Don't include <stdlib.h>. Don't declare malloc, realloc.
208 2000-06-23 Bruno Haible <haible@clisp.cons.org>
210 * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency.
212 2000-06-24 Jim Meyering <meyering@lucent.com>
214 * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
216 2000-06-21 Jim Meyering <meyering@lucent.com>
218 * getpass.c: New file, from Bruno Haible. Required for BeOS.
220 2000-06-19 Paul Eggert <eggert@twinsun.com>
222 * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
223 (mbrtowc, mbstate_t): Define substitutes if
224 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
225 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
226 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
228 2000-06-17 Bruno Haible <haible@clisp.cons.org>
230 * xgetcwd.c (xgetcwd): If the required pathname length is smaller
231 than 1024, return a memory chunk of least possible size, instead
232 of size PATH_MAX + 2. In the loop, increment the size proportionally.
233 Use free/xmalloc instead of xrealloc to avoid copying for very long
236 2000-06-17 Bruno Haible <haible@clisp.cons.org>
238 * canon-host.c (canon_host): Use malloc and memcpy to copy an
239 address, not strdup. Include <stdlib.h> and don't declare free().
241 2000-06-17 Bruno Haible <haible@clisp.cons.org>
243 * path-concat.c (path_concat): Don't access dir[-1] if dir is
246 2000-06-21 Jim Meyering <meyering@lucent.com>
248 * Makefile.am (libfetish_a_SOURCES): Add getstr.c.
249 (noinst_HEADERS): Add getstr.h.
251 * getline.c (getstr): Move into a separate file.
252 * getstr.c (getstr): New file, extracted from getline.c, with
253 the following changes: new parameter, delim2; both delim[12]
254 parameters have type `int', not `char'. The latter would lose
255 with 8-bit delimiters.
256 * getstr.h: New file.
258 2000-06-19 Jim Meyering <meyering@lucent.com>
260 * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
262 2000-06-18 Jim Meyering <meyering@lucent.com>
264 * mkdir.c: Remove file, due mainly to copyright incompatibility.
265 Besides, these days every porting target provides a mkdir function.
267 * strnlen.c: Include memory.h, string.h, and/or strings.h as needed.
268 (this snippet comes from src/system.h).
270 2000-06-15 Paul Eggert <eggert@twinsun.com>
272 * human.c (adjust_value): New function.
273 (human_readable_inexact): Apply rounding style even when
274 printing approximate values.
276 2000-06-14 Paul Eggert <eggert@twinsun.com>
278 * human.c (human_readable_inexact): Allow an input block
279 size that is not a multiple of the output block size, and vice versa.
280 Reported by Piergiorgio Sartor.
282 2000-06-14 Paul Eggert <eggert@twinsun.com>
284 * getdate.y (get_date): Apply relative times after time
285 zone indicator, not before. Reported by Todd A. Jacobs.
287 2000-06-13 Jim Meyering <meyering@lucent.com>
289 * Makefile.am (all-local): Depend on lstat.c and stat.c.
291 * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
293 2000-06-12 Paul Eggert <eggert@twinsun.com>
295 * xstat.in: Include <stdlib.h> in lstat, to declare "free".
297 2000-06-04 Paul Eggert <eggert@twinsun.com>
299 * strnlen.c: Include <config.h> if HAVE_CONFIG_H.
301 2000-06-04 Jim Meyering <meyering@lucent.com>
303 * getugroups.c (getugroups): Cast -1 to gid_t, for systems like
304 SunOS4.1.4 for which gid_t is an unsigned type.
306 2000-06-03 Jim Meyering <meyering@lucent.com>
308 * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
310 2000-05-26 Bruno Haible <haible@clisp.cons.org>
312 * Makefile.am (install-exec-local): On systems with glibc-2.1 or
313 newer, don't install charset.alias.
314 * config.charset: Change the Linux/glibc rules so they become empty
315 on glibc-2.1 or newer.
317 2000-06-02 Jim Meyering <meyering@lucent.com>
319 * mountlist.c: Back out last change. Instead, do this...
320 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy
321 member using the same `ignore'-testing code.
322 * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
326 2000-05-29 Jim Meyering <meyering@lucent.com>
328 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts
329 with the `ignore' attribute. Based on a patch from Mark D. Roth.
331 2000-05-22 Jim Meyering <meyering@lucent.com>
333 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
335 2000-05-18 Jim Meyering <meyering@lucent.com>
337 * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
338 back, too, since it may have been modified by allocate_entry.
339 (hash_delete): Rewrite to use neither the assignment operator
340 nor the comma operator in an if-expression.
342 2000-05-15 Paul Eggert <eggert@twinsun.com>
345 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
346 Remove; no longer needed.
347 "quotearg.h": Add include.
348 (file_name): Do not bother to explicitly initialize to NULL; it's less
349 efficient on some hosts.
350 (close_stdout_status): Remove test as to whether stdout was already
351 closed; it breaks for the case "echo x | sort >&-".
352 Quote file name colons.
353 Do not assume that _("write error") lacks format strings.
355 2000-05-15 Jim Meyering <meyering@lucent.com>
357 * version-etc.c (version_etc_copyright): Update the copyright string
358 used in all --version output.
360 2000-05-14 Jim Meyering <meyering@lucent.com>
362 * closeout.c (close_stdout_set_file_name): New function.
363 (close_stdout_status): Use new file-scoped global.
364 Return right away if fstat says the stdout file descriptor is invalid.
365 * closeout.h (close_stdout_set_file_name): Declare.
367 2000-05-10 Jim Meyering <meyering@lucent.com>
369 * closeout.c [default_exit_status]: New file-scoped variable.
370 (close_stdout_set_status): New function.
371 * closeout.h (close_stdout_set_status): Declare.
373 2000-05-08 Jim Meyering <meyering@lucent.com>
375 * long-options.c: Don't include closeout.h.
376 (parse_long_options): Don't call close_stdout for --version.
378 2000-05-06 Jim Meyering <meyering@lucent.com>
380 * strnlen.c: Undefine __strnlen and strnlen.
381 [!weak_alias]: Define __strnlen to strnlen.
383 * atexit.c: New file, from libiberty.
385 2000-05-06 Jim Meyering <meyering@lucent.com>
387 * closeout.c (close_stdout_status): Also check for errors on the
390 2000-05-05 Bruno Haible <haible@clisp.cons.org>
392 * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
393 instead of xmalloc, xrealloc, path_concat.
394 (locale_charset): Treat empty environment variables as absent.
395 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
397 2000-05-04 Jim Meyering <meyering@lucent.com>
399 * getopt.c: Update from glibc.
400 * obstack.c: Likewise.
401 * obstack.h: Likewise.
402 * regex.c: Likewise. NB: K&R compiler support is dropped for this file
405 * strndup.c: Likewise.
406 * strnlen.c: New file, from glibc.
408 2000-05-01 Jim Meyering <meyering@lucent.com>
410 * full-write.c (full_write): Remove `FIXME' part of comment.
412 2000-04-29 Jim Meyering <meyering@lucent.com>
414 * path-concat.c: Declare strdup only if it's not defined.
415 * canon-host.c: Likewise.
417 2000-04-28 Jim Meyering <meyering@lucent.com>
419 * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
420 redefinition warning on some systems (HPUX). Otherwise, regex.h is
421 included first, then limits.h is included by locale.h by libintl.h.
422 From John David Anglin.
424 2000-04-25 Jim Meyering <meyering@lucent.com>
426 * makepath.c (S_IRWXUGO): Define.
427 (make_path): Always perform explicit chmod if MODE specifies any
428 of the `special' permission bits. Prompted by a bug report against
429 install from Mate Wierdl and Joost van Baal.
431 2000-04-18 Jim Meyering <meyering@lucent.com>
435 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
436 getpagesize. For BeOS. Based on a patch from Bruno Haible.
438 2000-04-17 Jim Meyering <meyering@lucent.com>
440 * strftime.c (my_strftime) [strftime]: Declare strftime here, since
441 the definition of it to rpl_strftime also defined-away the system's
444 2000-04-15 Jim Meyering <meyering@lucent.com>
446 Use `C' to denote so-called `contiguous' files, the same way
448 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
449 (ftypelet): Use S_ISCTG.
450 From Michael Deutschmann.
452 2000-04-14 Jim Meyering <meyering@lucent.com>
454 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
456 2000-04-08 Jim Meyering <meyering@lucent.com>
458 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
459 names don't conflict. Reported by Eli Zaretskii.
461 2000-03-28 Bruno Haible <haible@clisp.cons.org>
463 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
464 bug. Deal with the different error behavior of Irix iconv.
466 2000-04-07 Jim Meyering <meyering@lucent.com>
468 * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
469 to work around system header problems on AIX 3.2.5. From Bruno Haible.
471 2000-04-05 Jim Meyering <meyering@lucent.com>
473 Portability tweaks required for ultrix4.3.
474 * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
475 * readutmp.c: Include sys/types.h before sys/stat.h.
476 * canon-host.c: Declare strdup.
477 * path-concat.c: Likewise.
478 From John David Anglin.
480 2000-04-04 Jim Meyering <meyering@lucent.com>
482 Be more DOS 8.3-friendly.
483 * ref-add.sin: Renamed from ref-add.sed.in.
484 * ref-del.sin: Renamed from ref-del.sed.in.
485 * Makefile.am: Reflect renaming.
486 Reported by Eli Zaretskii.
488 Use a temporary file name that won't clash with `charset.alias'
489 in the DOS 8.3 name space.
490 * Makefile.am (charset_tmp): Define.
491 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
492 (uninstall-local): Likewise.
493 Reported by Eli Zaretskii.
495 2000-03-29 Paul Eggert <eggert@twinsun.com>
497 * time/strftime.c (my_strftime): Make sure we call the system
498 strftime, not ourselves, when invoking the underlying strftime.
500 2000-03-24 Jim Meyering <meyering@lucent.com>
502 * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
503 (charset_alias): Define.
504 (install-exec-local): Factor out common code.
505 (uninstall-local): Split lines longer than 80.
506 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
508 (.sed.in.sed): New rule. Don't redirect directly to $@.
509 (CLEANFILES): Add ref-add.sed and ref-del.sed.
511 2000-03-19 Bruno Haible <haible@clisp.cons.org>
513 * config.charset: Output a line containing "Packages using this file".
514 * ref-add.sed.in, ref-del.sed.in: New files.
515 * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
516 ref-del.sed): New rules.
518 2000-03-17 Jim Meyering <meyering@lucent.com>
520 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
521 Otherwise, include <strings.h>
523 2000-03-17 Bruno Haible <haible@clisp.cons.org>
525 * unicodeio.c (utf8_wctomb): New function.
526 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
527 format instead of in UCS-4 with platform dependent endianness.
529 2000-03-07 Paul Eggert <eggert@twinsun.com>
531 * savedir.c (savedir): Work even if directory size is
532 negative; this can happen with some screwy NFS configurations.
534 2000-03-06 Jim Meyering <meyering@lucent.com>
536 * localcharset.c (get_charset_aliases): Don't try to free file_name
537 if it's NULL (because we ran out of memory). From Bruno Haible.
539 2000-03-05 Jim Meyering <meyering@lucent.com>
541 * localcharset.c ("path-concat.h"): Include.
542 (get_charset_aliases): Use path_concat instead of ANSI string
545 * unicodeio.h (PARAMS): Define.
546 Use it to guard prototype.
548 2000-03-04 Jim Meyering <meyering@lucent.com>
550 * Makefile.am (install-exec-local): Create $(libdir) before installing
552 (uninstall-local): Uncomment this rule so `make distcheck' works
555 * unicodeio.c (<errno.h>): Include it.
556 (errno): Declare if not defined.
558 * localcharset.c: Add Bruno's comment justifying use of volatile.
560 * config.charset: New version, incorporating remarks from a linux
561 i18n mailing list. From Bruno Haible.
563 2000-03-02 Jim Meyering <meyering@lucent.com>
565 * Makefile.am (EXTRA_DIST): Add config.charset.
567 2000-03-01 Jim Meyering <meyering@lucent.com>
569 * localcharset.c: Guard some #includes with `#if HAVE_...'.
570 * unicodeio.c: Likewise.
572 2000-02-02 Bruno Haible <haible@clisp.cons.org>
574 * config.charset: New file.
575 * localcharset.c: New file.
576 * unicodeio.h, unicodeio.c: New files.
577 * Makefile.am (DEFS): Add -DLIBDIR=...
578 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
579 (noinst_HEADERS): Add unicodeio.h.
580 (all-local, install-exec-local, charset.alias): New targets.
582 2000-02-28 Paul Eggert <eggert@twinsun.com>
584 * quotearg.c (ALERT_CHAR): New macro.
585 (quotearg_buffer_restyled): Use it.
587 2000-02-27 Jim Meyering <meyering@lucent.com>
589 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
590 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
592 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
593 not `#if STDC_HEADERS'.
594 Declare malloc if needed.
596 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
597 now that autoconf always defines the HAVE_DECL_ symbols.
600 * strtoumax.c: Likewise.
602 * backupfile.c: Arrange for cpp to fail if the configure-time
603 declaration check was not run.
607 * strtoumax.c: Likewise.
609 * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
610 then first look up the entire `.'-containing string as a login name.
612 2000-02-18 Paul Eggert <eggert@twinsun.com>
614 * getdate.y: Handle two-digit years with leading zeros correctly.
615 (textint): New typedef.
616 (parser_control): Member year changed from int to textint.
618 (YYSTYPE): Removed; replaced by %union with int and textint members.
619 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
620 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
621 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
622 (tSNUMBER, tUNUMBER): Now of type <textintval>.
623 (date, number, to_year): Use width of number in digits, not its value,
624 to determine whether it's a 2-digit year, or a 2-digit time.
625 (yylex): Store number of digits of numeric tokens.
626 Reported by John Kendall.
628 (parser_control): Changed from struct parser_control to typedef (for
629 consistency). All uses changed.
631 (tID): Removed; not used.
632 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
634 2000-02-14 Paul Eggert <eggert@twinsun.com>
636 * getpagesize.h (getpagesize): Port to VMS for Alpha;
637 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
639 2000-02-12 Jim Meyering <meyering@lucent.com>
641 * userspec.c (ISDIGIT): Define it.
642 (isdigit): Remove definition.
643 (is_number): Use ISDIGIT, not isdigit.
644 <libintl.h>: Include.
646 (parse_user_spec): Mark translatable strings.
648 2000-02-10 Jim Meyering <meyering@lucent.com>
650 With these changes, nanosleep.[ch] are finally enough like the other
651 lib/* replacement files to compile on a few more losing systems.
653 * nanosleep.h: Don't include config.h.
654 Remove prototype from declaration of nanosleep.
655 (PARAMS): Remove now-unneeded definition.
656 * nanosleep.c: #undef nanosleep.
657 (rpl_nanosleep): Rename from nanosleep.
659 2000-02-03 Jim Meyering <meyering@lucent.com>
661 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
662 rather than with `#if HAVE_UTMPNAME'.
664 2000-02-01 Jim Meyering <meyering@lucent.com>
666 * readutmp.h (UT_USER): Add parens. From Andreas Schwab.
668 2000-01-31 Jim Meyering <meyering@lucent.com>
670 * nanosleep.h (nanosleep): Guard declaration with
671 `#if ! HAVE_DECL_NANOSLEEP'.
672 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
673 the declaration in that vendor's sys/timers.h.
674 Reported by Christian Krackowizer.
676 * quotearg.c (ISASCII): Add #undef and move definition to follow
677 inclusion of wctype.h to work around solaris2.6 namespace pollution.
679 Reported by Tom Tromey.
681 2000-01-30 Jim Meyering <meyering@lucent.com>
683 * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
684 uses of ->ut_name. The latter doesn't work with new Linux header files
685 where only utmpx.ut_user is declared.
687 * readutmp.h (UT_USER): Define.
689 2000-01-23 Jim Meyering <meyering@lucent.com>
691 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
694 2000-01-22 Jim Meyering <meyering@lucent.com>
696 * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
697 [! HAVE_DECL_STRTOULL]: Declare strtoull.
698 Required for some AIX systems. Reported by Christian Krackowizer.
699 [TESTING] (main): New function.
701 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
702 * dirname.c (dir_name): Support for DOS-style file names with drive
705 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
707 * strverscmp.c (ISDIGIT): Define.
708 (strverscmp): Use ISDIGIT, not isdigit.
710 2000-01-17 Paul Eggert <eggert@twinsun.com>
712 * nanosleep.c (nanosleep):
713 Don't use SA_INTERRUPT to decide whether to call sigaction, as
714 POSIX.1 doesn't require SA_INTERRUPT and some systems
715 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
716 it's been part of POSIX.1 since day 1 (in 1988).
718 2000-01-17 Jim Meyering <meyering@lucent.com>
720 * interlock: Remove unused file. Reported by François Pinard.
722 2000-01-16 Paul Eggert <eggert@twinsun.com>
724 * quotearg.c (quotearg_buffer_restyled): Do not quote
725 alert, backslash, formfeed, and vertical tab unnecessarily in
729 version-control: never