Mercurial > hg > octave-kai > gnulib-hg
annotate lib/ChangeLog @ 4736:60f76c3e517a
updates from libc,automake
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Thu, 25 Sep 2003 12:21:19 +0000 |
parents | f92ded1bb871 |
children | 09375b319a6a |
rev | line source |
---|---|
4736
60f76c3e517a
updates from libc,automake
Karl Berry <karl@freefriends.org>
parents:
4735
diff
changeset
|
1 2003-09-25 Karl Berry <karl@gnu.org> |
60f76c3e517a
updates from libc,automake
Karl Berry <karl@freefriends.org>
parents:
4735
diff
changeset
|
2 |
60f76c3e517a
updates from libc,automake
Karl Berry <karl@freefriends.org>
parents:
4735
diff
changeset
|
3 * argp-fmtstream.c, argp-help.c: update from libc. |
60f76c3e517a
updates from libc,automake
Karl Berry <karl@freefriends.org>
parents:
4735
diff
changeset
|
4 |
4735
f92ded1bb871
New module 'version-etc-2'.
Bruno Haible <bruno@clisp.org>
parents:
4731
diff
changeset
|
5 2003-09-25 Bruno Haible <bruno@clisp.org> |
f92ded1bb871
New module 'version-etc-2'.
Bruno Haible <bruno@clisp.org>
parents:
4731
diff
changeset
|
6 |
f92ded1bb871
New module 'version-etc-2'.
Bruno Haible <bruno@clisp.org>
parents:
4731
diff
changeset
|
7 * version-etc-2.h: New file, from version-etc.h with modifications. |
f92ded1bb871
New module 'version-etc-2'.
Bruno Haible <bruno@clisp.org>
parents:
4731
diff
changeset
|
8 * version-etc-2.c: New file, from version-etc.c with modifications. |
f92ded1bb871
New module 'version-etc-2'.
Bruno Haible <bruno@clisp.org>
parents:
4731
diff
changeset
|
9 |
4731
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
10 2003-09-25 Simon Josefsson <jas@extundo.com> |
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
11 |
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
12 * xgetdomainname.h: New file. |
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
13 * xgetdomainname.c: New file. |
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
14 |
4730
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
15 2003-09-25 Simon Josefsson <jas@extundo.com> |
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
16 Bruno Haible <bruno@clisp.org> |
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
17 |
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
18 * getdomainname.h: New file. |
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
19 * getdomainname.c: New file. |
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
20 |
4722 | 21 2003-09-19 Karl Berry <karl@gnu.org> |
22 | |
23 * argp.h: update from libc. | |
24 | |
4713
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
25 2003-09-16 Paul Eggert <eggert@twinsun.com> |
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
26 |
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
27 * linebuffer.c (readlinebuffer): Return NULL immediately upon |
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
28 input error, instead of returning NULL the next time we are called |
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
29 (and therefore losing track of errno). |
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
30 |
4711
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
31 2003-09-15 Paul Eggert <eggert@twinsun.com> |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
32 |
4713
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
33 * getndelim2.c (getndelim2): Don't trash errno when a read |
4711
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
34 fails, so that the caller gets the proper errno. |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
35 |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
36 * readutmp.c (read_utmp): Likewise. |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
37 Check for fstat error. Close stream and free storage |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
38 when failing. |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
39 |
4709 | 40 2003-09-14 Bruno Haible <bruno@clisp.org> |
41 | |
42 * fwriteerror.h: New file. | |
43 * fwriteerror.c: New file. | |
44 | |
4705 | 45 2003-09-14 Jim Meyering <jim@meyering.net> |
46 | |
47 * getloadavg.c: Correct cpp indentation. | |
48 * strdup.c: Likewise. | |
4706 | 49 * vasnprintf.c: Likewise. |
4705 | 50 |
4701
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
51 2003-09-12 Paul Eggert <eggert@twinsun.com> |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
52 |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
53 * argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
54 * obstack.c [!defined _LIBC]: Likewise. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
55 * argmatch.c (EXIT_FAILURE): Remove; now done by exit.h |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
56 * exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
57 * exitfail.c: Don't include stdlib.h; no longer needed. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
58 |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
59 More changes to assume C89 or better. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
60 |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
61 * error.c (error_tail): Assume vprintf. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
62 |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
63 * argmatch.c (getenv): Remove decl. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
64 * progreloc.c (get_full_program_name): Define via prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
65 * setenv.c (clearenv): Likewise. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
66 * stpncpy.c: Do not include <string.h> or <sys/types.h>; not |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
67 needed. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
68 * strdup.c: Include <stdlib.h>, <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
69 (malloc, memcpy): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
70 * strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
71 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
72 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
73 (memcpy): Remove macro. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
74 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
75 (__P): Remove. All uses removed. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
76 (PTR): Remove. All uses changed to void *. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
77 (CHAR_BIT, NULL): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
78 (spaces, zeros, memset_space, memset_zero) |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
79 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]: |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
80 Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
81 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
82 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days): |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
83 Define with prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
84 Remove now-unnecessary prototype decl. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
85 (extra_args_spec): Assume ANSI C. All uses changed. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
86 (extra_args_spec_iso): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
87 (my_strftime, emacs_strftimeu): Define via prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
88 * strtod.c: Include <float.h>, <stdlib.h>, <string.h> |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
89 unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
90 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
91 * strtoimax.c: Include <stdlib.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
92 (strtoul, strtol): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
93 * strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX, |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
94 LONG_MAX): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
95 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
96 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
97 (LOCALE_PARAM_PROTO): New macro. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
98 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
99 (INTERNAL (strtol), strtol): Define with a prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
100 (PARAMS): Remove. All uses removed. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
101 * tempname.c: Include <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
102 * userspec.c: Include <stdlib.h>, <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
103 * xgethostname.c (main): Define with a prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
104 * xmalloc.c: Include "xalloc.h" first, to check interface. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
105 Include <stdlib.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
106 (calloc, malloc, realloc, free): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
107 * xstrtod.c: Include "xstrtod.h" first, to check interface. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
108 Include <stdlib.h> unconditionally. Sort include file names. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
109 (strtod): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
110 (xstrtod): Define with a prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
111 * xstrtol.c: Include <stdlib.h>, <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
112 (strtol, strtoul): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
113 |
4688 | 114 2003-09-11 Paul Eggert <eggert@twinsun.com> |
115 | |
116 * strndup.c: Don't include <stdio.h>, <sys/types.h>. | |
117 Include <stdlib.h>, <string.h> unconditionally. | |
118 Remove now-unnecessary cast to char *. | |
119 * strnlen.c: Include <string.h> unconditionally. | |
4689 | 120 * yesno.c (yesno): Define with a prototype. |
4701
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
121 |
4683
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
122 2003-09-10 Bruno Haible <bruno@clisp.org> |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
123 |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
124 * strcspn.c: Include <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
125 * strpbrk.c: Include <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
126 * strstr.c: Include <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
127 * unicodeio.c: Include <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
128 * setenv.c: Include <stdlib.h> and <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
129 * unsetenv.c: Likewise. |
4684 | 130 * xreadlink.c: Include <stdlib.h> unconditionally. |
131 * yesno.c: Include <stdlib.h> unconditionally. | |
132 (rpmatch): Add prototype. | |
4683
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
133 |
4681 | 134 2003-09-10 Jim Meyering <jim@meyering.net> |
135 | |
136 * error.c: Correct indentation of cpp directives. | |
137 | |
4670 | 138 2003-09-09 Paul Eggert <eggert@twinsun.com> |
139 | |
140 More K&R removal. | |
141 | |
142 * acosl.c (main): Use a prototype. | |
143 * asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c, | |
144 tanl.c: Likewise. | |
145 | |
146 * getloadavg.c (getloadavg, main): Define via prototypes. | |
147 | |
148 * getopt.h (struct option.name): Assume C89, and use 'const'. | |
149 (getopt, etopt_long, getopt_long_only, _getopt_internal) | |
150 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare | |
151 with a prototype. | |
152 * getopt.c (const): Remove macro. | |
153 Include <string.h> unconditionally. | |
154 (my_index): Remove; all uses changed to strchr. | |
155 (strlen): Remove decl. | |
156 (exchange): Remove forward decl; no longer needed. | |
157 (exchange, _getopt_initialize, _getopt_internal, getopt, main): | |
158 Define with prototype. | |
159 * getopt1.c (const): Remove macro. | |
160 (getopt_long, getopt_long_only, main): Define with prototype. | |
161 | |
162 * getugroups.c: Include <string.h> unconditionally. | |
163 | |
164 * getusershell.c: Include <stdlib.h> unconditionally. | |
165 (getusershell, setusershell, endusershell, readname, main): | |
166 Define with prototypes. | |
167 | |
168 * group-member.c: Include group-member.h first. | |
169 Include <stdlib.h> unconditionally. | |
170 | |
171 * hard-locale.c: Include hard-locale.h first. | |
172 Include <stdlib.h>, <string.h> unconditionally. | |
173 | |
174 * hash.c (free, malloc): Remove decls. | |
175 Include <stdlib.h> unconditionally. | |
176 | |
177 * human.c: Include <stdlib.h>, <string.h> unconditionally. | |
178 (getenv): Do not declare. | |
179 | |
180 * idcache.c: Include <string.h> unconditionally. | |
181 | |
182 * long-options.c: Include long-options.h first, to test interface. | |
183 Include <stdlib.h> unconditionally. | |
184 | |
185 * makepath.c: Include makepath.h first, to test interface. | |
186 Include <stdlib.h> and <string.h> unconditionally. | |
187 | |
188 * linebuffer.c: Include <stdlib.h>. | |
189 (free): Remove decl. | |
190 | |
191 * malloc.c: Include <stdlib.h>, for malloc; don't bother with stddef.h. | |
192 rpl_malloc returns void *, not char *. | |
193 * realloc.c (rpl_realloc): Likewise. Also, define with a prototype. | |
194 | |
195 * md5.h: Include <limits.h> unconditionally. | |
196 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case. | |
197 (__P): Remove; all uses removed. | |
198 * md5.c: Include "md5.h" first. | |
199 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream, | |
200 md5_buffer, md5_process_bytes, md5_process_block): | |
201 Define with prototypes. | |
202 * sha.h (__P): Remove all uses. (It wasn't defined??) | |
203 * sha.c: Include "sha.h" first. | |
204 Include <stdlib.h>, <string.h> unconditionally. | |
205 | |
206 * memchr.c (__ptr_t): Remove; all uses changed to void *. | |
207 * memcmp.c (__ptr_t): Likewise. | |
208 * memrchr.c (__ptr_t): Likewise. | |
209 * memchr.c, memcmp.c, memcoll.c, memrchr.c: | |
210 Include <string.h> unconditionally. | |
211 * memchr.c, memrchr.c: Include <limits.h> unconditionally. | |
212 * memchr.c: Include <stdlib.h> unconditionally. | |
213 * memchr.c (LONG_MAX): Remove. | |
214 * memrchr.c (LONG_MAX): Likewise. | |
215 * memchr.c (__memchr): Define via a prototype. | |
216 * memrchr.c (__memrchr): Likewise. | |
217 * memcmp.c (__P): Remove, and remove all uses. | |
218 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment): | |
219 Remove forward decls; no longer needed. | |
220 * memcpy.c, memmove.c, memset.c: Include <stddef.h>. | |
221 Use types required by C89 in prototype. | |
222 | |
223 * mkdir.c: Include <stdlib.h>, <string.h> unconditionally. | |
224 * savedir.c: Likewise. | |
225 * mkdir.c (free): Remove decl. | |
226 * rmdir.c (rmdir): Define with a prototype. | |
227 * savedir.c: Include savedir.h first, to test interface. | |
228 | |
229 * mktime.c (STDC_HEADERS): Remove. | |
230 Include <stdlib.h>, <string.h> unconditionally. | |
231 | |
232 * modechange.c: Include <stdlib.h> unconditionally. | |
233 (malloc): Remove decl. | |
234 | |
235 * mountlist.c: Include <stdlib.h>, <string.h> unconditionally. | |
236 (free): Remove decl. | |
237 | |
238 * obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]: | |
239 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H. | |
240 (This type really should be intptr_t, but that's a C99ism.) | |
241 (_obstack_memcpy): Remove: all uses changed to memcpy. | |
242 Include <string.h> unconditionally. | |
243 (struct obstack): Assume __STDC__ for types of members | |
244 chunkfun, freefun, extra_arg. | |
245 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1, | |
246 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init, | |
247 obstack_begin, obstack_specify_allocation, | |
248 obstack_specify_allocation_with_arg, obstack_chunkfun, | |
249 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]: | |
250 Remove unprototyped decls and the macros that use them. | |
251 * obstack.c (POINTER): Remove. All uses changed to void *. | |
252 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN, | |
253 _obstack_begin, _obstack_begin_1, _obstack_allocated_p) | |
254 (defined __STDC__ && __STDC__)]: | |
255 Remove nonprototyped code. | |
256 Include <stdlib.h> unconditionally. | |
257 (_obstack_begin, _obstack_begin_1, _obstack_newchunk, | |
258 _obstack_allocated_p, _obstack_free, obstack_free, | |
259 _obstack_memory_used, print_and_abort): | |
260 Define using prototypes. | |
261 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base, | |
262 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0, | |
263 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room, | |
264 obstack_next_free, obstack_object_size, obstack_room) [0]: | |
265 Remove unused, unprototyped code. | |
266 | |
267 * path-concat.c: Include <stdlib.h>, <string.h> unconditionally. | |
268 | |
269 * physmem.c (physmem_total, physmem_available, main): Define | |
270 with prototypes. | |
271 | |
4677
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
272 * posixtm.c: Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
273 (main): Define with a prototype. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
274 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
275 * posixver.c (getenv): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
276 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
277 * putenv.c (malloc): Returns void *, not char *. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
278 Include <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
279 (strchr, memcpy, NULL): Do not define. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
280 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
281 * readtokens.c: Include readtokens.h first, to test interface. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
282 Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
283 (init_tokenbuffer): Define with a prototype. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
284 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
285 * regex.c (PARAMS): Remove. All uses removed. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
286 All uses of _RE_ARGS removed, too. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
287 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h> |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
288 unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
289 (bzero): Assume memset exists. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
290 (memcmp, memcpy, NULL): Remove. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
291 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
292 char, or assignments to local vars of type signed char. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
293 (init_syntax_once, PREFIX(extract_number_and_incr), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
294 PREFIX(print_partial_compiled_pattern), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
295 PREFIX(print_compiled_pattern), PREFIX(print_double_string), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
296 convert_mbs_to_wcs, print_fastmap, re_set_syntax, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
297 PREFIX(regex_grow_registers), PREFIX(regex_compile), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
298 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
299 PREFIX(insert_op2), PREFIX(at_begline_loc_p), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
300 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
301 wcs_compile_range, byte_compile_range, truncate_wchar, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
302 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
303 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
304 count_mbs_length, wcs_re_match_2_internal, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
305 byte_re_match_2_internal, PREFIX(group_match_null_string_p), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
306 PREFIX(alt_match_null_string_p), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
307 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
308 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
309 regfree, PREFIX(extract_number)): Define with prototype. Remove |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
310 now-unnecessary declaration, if any. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
311 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec, |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
312 regcomp, regexec): |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
313 Remove now-unnecessary casts among pointer types. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
314 * regex.h (_RE_ARGS): Remove. All uses removed. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
315 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
316 * rename.c: Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
317 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
318 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
319 * rpmatch.c: Include <stdlib.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
320 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
321 * same.c: Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
322 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
323 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
324 * save-cwd.c: Include <stdlib.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
325 * xgetcwd.c: Likewise. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
326 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
327 * stat.c: Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
328 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
329 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
330 * strchrnul.c (strchrnul): Define with a prototype. |
4678
27f3f6c02580
unsigned char -> char in strchrnul
Paul Eggert <eggert@cs.ucla.edu>
parents:
4677
diff
changeset
|
331 Fix bug: c_in was not converted to char before searching. |
4677
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
332 |
4670 | 333 The following changes are not K&R related: |
334 | |
335 * group-member.h: Include <sys/types.h>, so that this file is | |
336 self-contained. | |
337 * makepath.h: Likewise. | |
338 | |
339 * getusershell.c (readname, default_index, line_size, readname): | |
340 Use size_t, not int, for sizes. | |
341 (readname): If the size overflows, report an error instead of | |
342 looping forever. | |
343 | |
344 2003-09-09 Derek Robert Price <derek@ximbiot.com> | |
345 | |
346 * getndelim2.c: Assume stdlib.h per the C89 spec. | |
347 | |
4647
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
348 2003-09-08 Paul Eggert <eggert@twinsun.com> |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
349 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
350 Assume C89 or better; remove K&R cruft. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
351 A few of these changes were first proposed by Derek Robert Price |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
352 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
353 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
354 * addext.c: Include <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
355 * backupfile.c: Include <string.h>, <stdlib.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
356 Don't declare getenv or malloc. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
357 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
358 * alloca.c: Include <string.h>, <stdlib.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
359 (POINTER_TYPE, pointer): Remove; all uses changed to void *. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
360 (NULL): Remove. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
361 (find_stack_direction, alloca): Use prototypes. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
362 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
363 * atexit.c (atexit): Define using a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
364 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
365 * basename.c, dirname.c, stripslash.c: |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
366 Include <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
367 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
368 * bcopy.c: Include <stddef.h>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
369 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
370 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
371 * canon-host.c: Include <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
372 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
373 * error.h (error, error_at_line, error_print_progname) |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
374 [! (defined (__STDC__) && __STDC__)]: Remove decls. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
375 * error.c: Include error.h first, to check interface. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
376 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
377 (VA_START): Remove; all uses changeed to va_start. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
378 (exit, strerror): Remove decls. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
379 (error_print_progname): Prototype uncondionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
380 Don't include <errno.h>; no longer needed. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
381 (private_strerror): Remove. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
382 (error_tail): Always define. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
383 (error, error_at_line): Assume C89 or better; always use prototypes. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
384 * fatal.c: Include "fatal.h" first, to test interface. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
385 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
386 (VA_START): Remove; all uses changed to va_start. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
387 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
388 this case. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
389 (exit): Remove decl. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
390 (fatal): Prototype unconditionally. Assume va_start works. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
391 Abort at end, to pacify gcc. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
392 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
393 * euidaccess.c (main): Define with a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
394 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
395 * exclude.c: Include <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
396 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
397 * exitfail.c: Include <stdlib.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
398 |
4681 | 399 * fnmatch_.h (__P): Remove. All uses changed to assume |
4647
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
400 prototypes. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
401 * fnmatch.c: Include fnmatch.h first, to test interface. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
402 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
403 (getenv): Remove decl. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
404 (fnmatch): Define using a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
405 * fnmatch_loop.c (FCT): Remove forward decl; no longer needed. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
406 (FCT): Define using a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
407 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
408 * getdate.y: Include <stdlib.h>, <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
409 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
410 * gethostname.c: Include <stddef.h>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
411 (gethostname): Define with prototype. Length is size_t, not int. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
412 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
413 2003-09-08 Paul Eggert <eggert@twinsun.com> |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
414 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
415 * getversion.c: Remove; was migrated to backupfile.c in 1997. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
416 getversion.c should have been removed then, but was accidentally |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
417 preserved. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
418 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
419 * utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
420 (utime_null): Fix typo: 'st' was sometimes called 'sb'. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
421 |
4623
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
422 2003-09-07 Paul Eggert <eggert@twinsun.com> |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
423 |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
424 * time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
425 copy_tm_result. Bug reported by Simon Josefsson in |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
426 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>. |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
427 |
4621
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
428 2003-09-06 Paul Eggert <eggert@twinsun.com> |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
429 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
430 * time_r.c, time_r.h: New files. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
431 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
432 * mktime.c (my_mktime_localtime_r): Remove; all uses changed to |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
433 __localtime_r. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
434 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
435 (__mktime_internal) [!defined _LIBC]: Now extern, not static. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
436 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
437 * strftime.c (my_strftime_gmtime_r): Remove; all uses changed to |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
438 __gmtime_r. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
439 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
440 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
441 Include <time_r.h>. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
442 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
443 * timegm.c: Switch to glibc implementation, with the following changes: |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
444 [defined HAVE_CONFIG_H]: Include <config.h>. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
445 [!defined _LIBC]: Include "timegm.h" rather than <time.h>. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
446 (__mktime_internal) [!defined _LIBC]: New decl. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
447 (__gmtime_r) [!defined _LIBC]: New macro and function. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
448 (timegm): Use a prototype, since gnulib assumes C89. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
449 Do not bother declaring tmp to be const, as it's not really usefu. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
450 * timegm.h: Hoist "#include <time.h>" out of #ifdef. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
451 (timegm): Declare only if HAVE_DECL_TIMEGM. |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
452 |
4619
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
453 2003-09-03 Paul Eggert <eggert@twinsun.com> |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
454 |
4620
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
455 * human.c (human_readable): Fix bug that rounded 10501 to 10k. |
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
456 Bug reported by Lute Kamstra in |
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
457 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>. |
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
458 |
4619
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
459 * getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow", |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
460 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
461 course with correspondingly smaller numbers for tomorrow and |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
462 yesterday. From Tadayoshi Funaba. Originally installed into |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
463 sh-utils on 1999-08-07, but the patch got lost (I guess during the |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
464 coreutils merge?). |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
465 |
4616 | 466 2003-08-31 Simon Josefsson <jas@extundo.com> |
467 | |
468 * timegm.h: New file. | |
469 * timegm.c: New file. Based on wget-1.8.2/src/http.c:mktime_from_utc. | |
470 | |
4613 | 471 2003-08-31 Karl Berry <karl@gnu.org> |
472 | |
473 * argp.h: update from libc. | |
474 | |
4611 | 475 2003-08-28 Bruno Haible <bruno@clisp.org> |
476 | |
477 * binary-io.h: Undefine O_BINARY before defining it. This avoids a | |
478 warning on QNX, which defines O_BINARY to 000000. | |
479 | |
4608 | 480 2003-08-24 Bruno Haible <bruno@clisp.org> |
481 | |
482 * binary-io.h: Include <stdio.h>, to avoid a compilation error when | |
483 MSVC7 <stdio.h> is included later. | |
484 | |
4603 | 485 2003-08-20 Bruno Haible <bruno@clisp.org> |
486 | |
4607
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
487 * progname.h: New file, from GNU gettext. |
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
488 * progname.c: New file, from GNU gettext. |
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
489 * progreloc.c: New file, from GNU gettext. |
4603 | 490 |
4598 | 491 2003-08-19 Bruno Haible <bruno@clisp.org> |
492 | |
493 * xstrdup.c: Assume <string.h> exists. | |
494 | |
4590 | 495 2003-08-18 Jim Meyering <jim@meyering.net> |
496 | |
4592 | 497 * setenv.h: Indent nested cpp directive. |
4590 | 498 * vasnprintf.c: Remove trailing blanks. |
499 | |
4587
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
500 2003-08-17 Simon Josefsson <jas@extundo.com> |
4590 | 501 Bruno Haible <bruno@clisp.org> |
4587
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
502 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
503 * xstrndup.h: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
504 * xstrndup.c: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
505 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
506 2003-08-17 Bruno Haible <bruno@clisp.org> |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
507 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
508 * strndup.h: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
509 |
4582
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
510 2003-08-16 Paul Eggert <eggert@twinsun.com> |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
511 |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
512 * regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
513 space, undoing this 2003-08-12 change: |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
514 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html> |
02efc69861ae
Undo white space changes of 2003-08-12, allowing us to sync more files
Paul Eggert <eggert@cs.ucla.edu>
parents:
4574
diff
changeset
|
515 |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
516 2003-08-16 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
517 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
518 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
519 * xstrtoimax.c: #else #if -> #elif. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
520 * xstrtoumax.c: Likewise. |
4590 | 521 |
4554
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
522 2003-08-15 Paul Eggert <eggert@twinsun.com> |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
523 |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
524 * config.charset, ref-add.sin, ref-del.sin: Use three spaces, |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
525 rather than tab, after '#' in shell-script copyright notices. |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
526 Suggested by Bruno Haible. |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
527 |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
528 2003-08-15 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
529 and Paul Eggert <eggert@twinsun.com> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
530 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
531 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
532 * readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
533 member but strut utmpx does not. Needed for AIX 4.3.3. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
534 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
535 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
536 2003-08-15 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
537 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
538 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
539 * xgethostname.c: Include <stdlib.h>. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
540 (xghostname): Don't exit for anything other than memory-related |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
541 failure; just return NULL. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
542 * userspec.c: Include "posixver.h". |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
543 (parse_user_spec): Accept `.' as a separator only |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
544 in pre-POSIX-200112 mode. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
545 * strtoimax.c: Use #elif rather than #else #if. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
546 * strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]: |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
547 Remove function, now that we can rely on a working tzset function. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
548 [!_LIBC]: Ensure that the required autoconf test has been run. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
549 [!defined _NL_CURRENT && HAVE_STRFTIME]: |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
550 Use underlying_strftime for %r. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
551 * sha.c: Merge in some clean-up and optimization changes from glibc. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
552 * sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
553 Ensure that it is a multiple of 64. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
554 Rearrange loop exit tests so as to avoid performing an |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
555 additional fread after encountering an error or EOF. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
556 * realloc.c: Update copyright date. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
557 |
4549 | 558 2003-08-14 Jim Meyering <jim@meyering.net> |
559 | |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
560 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
561 * obstack.h: Whitespace changes. |
4549 | 562 * mountlist.c: Remove anachronistic casts of xmalloc, xrealloc, |
563 and xcalloc return values. | |
564 (read_filesystem_list) [MOUNTED_GETFSSTAT]: | |
565 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could | |
566 hang on OSF/1 5.1 for DIR on both local and remote file systems. | |
567 Reported by (and fix confirmed by) Nelson H. F. Beebe. | |
568 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any | |
569 error from mntctl. | |
570 Use mntctl's return value to drive the entry-processing loop, since | |
571 we can't rely on the value of the vmt_length member in the last | |
572 entry. On some systems doing so could result in exhausting | |
573 virtual memory. Based in part on a patch from Mike Jetzer. | |
574 | |
575 2003-08-14 Jim Meyering <jim@meyering.net> | |
4590 | 576 and Paul Eggert <eggert@twinsun.com> |
4549 | 577 |
578 Merges from coreutils, plus other fixes. | |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
579 * physmem.c: Merge in portability changes from gcc/libiberty |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
580 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
581 for credits and details. Thanks to Kaveh Ghazi for helping |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
582 to keep these files in sync. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
583 (ARRAY_SIZE): Define it. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
584 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi. |
4549 | 585 * memcasecmp.c: Remove unnecessary parentheses after 'defined'. |
586 (memcasecmp): Don't assume size_t fits in unsigned int. | |
587 Remove casts and duplicate code. | |
588 * md5.c: Include <string.h> and <stdlib.h> unconditionally. | |
589 (memcpy): Remove definition. | |
590 Merge in some clean-up and optimization changes from glibc. | |
591 [BLOCKSIZE]: Move definition to top of file. | |
592 Ensure that it is a multiple of 64. | |
593 Rearrange loop exit tests so as to avoid performing an | |
594 additional fread after encountering an error or EOF. | |
595 * md5.h (md5_uintptr): Define. | |
596 * makepath.c (CLEANUP_CWD): Report an error if we failed to | |
597 return to the initial working directory. Preserve errno | |
598 for caller. | |
599 * idcache.c: Include "xalloc.h". | |
600 (xmalloc, xrealloc): Remove decls. | |
601 (getuser): Remove casts no longer required in C89. | |
602 * human.c: Include stdio.h, for sprintf. | |
603 * group-member.c: Include "xalloc.h". | |
604 (xmalloc, xrealloc): Remove decls. | |
605 (get_group_info): Remove casts no longer required in C89. | |
606 * getusershell.c (readname): Remove casts no longer required in C89. | |
607 * gettimeofday.c (rpl_gmtime, rpl_tzset): New functions. | |
608 * getline.c: Whitespace fix, from coreutils. | |
609 | |
4536
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
610 2003-08-13 Paul Eggert <eggert@twinsun.com> |
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
611 |
4537
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
612 * exclude.c: Include <ctype.h> |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
613 (IN_CTYPE_DOMAIN): New macro. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
614 (is_space): New fn. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
615 (add_exclude_file): If LINE_END is a space, ignore trailing spaces |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
616 and empty lines. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
617 |
4536
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
618 * argp-help.c, argp-parse.c, config.charset, getopt.h: |
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
619 Undo previous (whitespace-only) change. |
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
620 |
4531
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
621 2003-08-12 Paul Eggert <eggert@twinsun.com> |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
622 |
4533
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
623 * argp-help.c, argp-parse.c, config.charset, getopt.h: |
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
624 Normalize leading white space and remove trailing white space. |
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
625 * ref-add.sin, ref-del.sin: Use '#' before empty line in copyright |
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
626 notice, as per ../config/srclist-update. |
4590 | 627 |
4531
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
628 Merge from coreutils. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
629 * euidaccess.h: New file. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
630 * euidaccess.c: Include it. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
631 * .cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h, |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
632 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
633 * regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space. |
4590 | 634 |
4523
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
635 2003-08-11 Bruno Haible <bruno@clisp.org> |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
636 |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
637 * vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1. |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
638 (vasnprintf): Use it instead of wcslen. |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
639 |
4522
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
640 2003-08-11 Bruno Haible <bruno@clisp.org> |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
641 |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
642 * stdbool_.h (_Bool): Undo last change; instead use a negative enum |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
643 value to ensure that _Bool promotes to int. Use #define for _Bool when |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
644 using the Solaris C compiler. Adds comments suggested by Paul Eggert. |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
645 |
4521
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
646 2003-08-10 Karl Berry <karl@gnu.org> |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
647 |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
648 * regex.h: update from libc (whitespace fix). |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
649 |
4517 | 650 2003-08-09 Paul Eggert <eggert@twinsun.com> |
651 | |
652 Merge some files from coreutils. These changes were | |
653 originally made by Jim Meyering. | |
654 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>; | |
655 many older Unixes require this. | |
656 * lib/alloca.c (alloca): Remove cast to argument of free; | |
657 no longer needed in C89. | |
658 * lib/alloca_.h, lib/regex.h: Fix white space to match | |
659 what GNU indent does. | |
660 | |
4506 | 661 2003-08-05 Paul Eggert <eggert@twinsun.com> |
662 | |
663 * bumpalloc.h: Remove. | |
664 | |
4499
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
665 2003-08-04 Paul Eggert <eggert@twinsun.com> |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
666 |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
667 * getloadavg.c: Change copyright notice and spacing to conform to |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
668 GNU coding style. |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
669 |
4507
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
670 Merge from coreutils. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
671 * error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is 1. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
672 From glibc. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
673 * getdate.y (date): Also accept dates like May-23-2003; suggestion |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
674 from Karl Berry, implemented by Jim Meyering. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
675 * getgroups.c: Include "xalloc.h" instead of declaring xalloc fns; |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
676 from Dmitry V. Levin. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
677 Remove anachronistic cast of xrealloc. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
678 * fnmatch_.h (__const): Remove. Use 'const'. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
679 * fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
680 type. Otherwise, it wouldn't compile with at least /bin/cc on |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
681 ymp-cray-unicos9.0.2.X. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
682 Combine two mostly-identical uses of alloca into one. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
683 Thanks to the Cray-Cyber project for access to a Cray Y-MP. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
684 |
4499
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
685 2003-08-04 Dave Love <d.love@dl.ac.uk> |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
686 |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
687 [From Emacs.] |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
688 |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
689 * getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
690 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
691 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
692 obsolete NLIST_NAME_UNION. |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
693 [__GNU__]: Undef BSD and FSCALE. |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
694 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT. |
08aada7d09e0
* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4494
diff
changeset
|
695 |
4494
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
696 2003-08-03 Paul Eggert <eggert@twinsun.com> |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
697 |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
698 * stdbool_.h (_Bool): Make it signed char, instead of |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
699 an enum type, so that it's guaranteed to promote to int. See: |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
700 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html> |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
701 |
4488
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
702 2003-07-31 Paul Eggert <eggert@twinsun.com> |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
703 |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
704 * strerror.c: Include config.h, limits.h. Declare sprintf. |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
705 (strerror): Don't assume that a printable int fits in 14 bytes. |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
706 |
4483
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
707 2003-07-24 Derek Robert Price <derek@ximbiot.com> |
4590 | 708 Bruno Haible <bruno@clisp.org> |
4483
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
709 |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
710 * getline.h (getline, getdelim): Change return type to ssize_t. |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
711 * getline.c (getline, getdelim): Likewise. |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
712 Remove _GNU_SOURCE define; now it's defined in config.h through |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
713 m4/getline.m4. |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
714 |
4473
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
715 2003-07-22 Paul Eggert <eggert@twinsun.com> |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
716 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
717 * xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
718 over-parenthesization in macros. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
719 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
720 Sync with coreutils. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
721 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
722 * xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
723 required by C99. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
724 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
725 Use `exit_failure' for xalloc and xmemcoll instead of their own |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
726 private exit-failure variables. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
727 * xalloc.h (xalloc_exit_failure): Remove. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
728 * xmalloc.c: Likewise. Include exitfail.h. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
729 (xalloc_die): Use exit_failure instead of xalloc_exit_failure. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
730 * xmemcoll.h (xmemcoll_exit_failure): Remove. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
731 * xmemcoll.c: Likewise. Include exitfail.h. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
732 (xmemcoll): Use exit_failure instead of xalloc_exit_failure. |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
733 |
4470 | 734 2003-07-18 Paul Eggert <eggert@twinsun.com> |
735 | |
736 * closeout.h (close_stdout_set_status, close_stdout_status): Remove. | |
737 * closeout.c: Likewise. Include "closeout.h" right after config.h, | |
738 to test that it can stand by itself. Include "exitfail.h". | |
739 Clients should set exit_failure instead. | |
740 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>. | |
741 | |
4465
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
742 2003-07-18 Andreas Schwab <schwab@suse.de> |
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
743 |
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
744 * memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno. |
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
745 |
4463 | 746 2003-07-18 Bruno Haible <bruno@clisp.org> |
747 | |
748 * getndelim2.h: New file. | |
749 * getndelim2.c: Make into a module of its own. Include config.h, | |
750 getndelim2.h. | |
751 (getndelim2): Make non-static. Change return type to ssize_t. | |
752 * getline.h: Change argument names. | |
753 * getline.c: Include getndelim2.h instead of getndelim2.c. | |
754 * getnline.c: Include getndelim2.h. | |
755 | |
4461 | 756 2003-07-17 Bruno Haible <bruno@clisp.org> |
757 | |
758 * Makefile.am: Remove file. | |
759 * Makefile.in: Remove file. | |
760 | |
4460 | 761 2003-07-17 Bruno Haible <bruno@clisp.org> |
762 | |
763 * getnline.h: New file. | |
764 * getnline.c: New file. | |
765 * getndelim2.c: New file, extracted from getline.c. | |
766 (getndelim2): Renamed from getdelim2, with added nmax argument. | |
767 * getline.c: Include getndelim2.c. | |
768 (getdelim2): Moved out to getndelim2.c. | |
769 (getline, getdelim): Update. | |
770 | |
4444
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
771 2003-07-15 <karl@gnu.org> |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
772 |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
773 * vasnprintf.c: update from gettext. |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
774 |
4442 | 775 2003-07-15 Jim Meyering <jim@meyering.net> |
776 | |
777 * makepath.c (make_path): Enclose diagnostic in _(...). | |
778 | |
4440
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
779 2003-07-14 Paul Eggert <eggert@twinsun.com> |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
780 |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
781 * asnprintf.c, asprintf.c, config.charset, gettext.h, |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
782 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c, |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
783 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin, |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
784 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h, |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
785 vasprintf.c, vasprintf.h: Regenerate. These files are now being |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
786 updated automatically by ../config/srclist-update. This changes |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
787 their license from LPGL to GPL. |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
788 |
4439 | 789 2003-07-14 Jim Meyering <jim@meyering.net> |
790 | |
791 Don't emit diagnostics. Let callers do that. | |
792 * save-cwd.c: Don't include "error.h". | |
793 (save_cwd): Don't call error. Ensure that errno is valid | |
794 when returning nonzero. | |
795 | |
796 * save-cwd.h (restore_cwd): Update prototype. | |
797 * save-cwd.c (restore_cwd): Remove two parameters. | |
798 Simplify. Don't call error upon failure. Let callers do that. | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
799 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4 |
4439 | 800 when auditing is enabled. But don't bother updating the #if. |
801 | |
4436 | 802 2003-07-14 Simon Josefsson <jas@extundo.com> |
803 | |
804 * mempcpy.h: New file. | |
805 * mempcpy.c: New file. | |
806 | |
4435 | 807 2003-07-14 Paul Eggert <eggert@twinsun.com> |
808 | |
809 * ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h, | |
810 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c, | |
811 unicodeio.c, unicodeio.h, unlocked-io.h: | |
812 Switch from LGPL to GPL. | |
813 | |
4433
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
814 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org> |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
815 |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
816 * obstack.h (__INT_TO_PTR): Revert change of 2003-03-13; |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
817 it breaks C++ compilation. |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
818 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*. |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
819 |
4429 | 820 2003-07-10 Jim Meyering <jim@meyering.net> |
821 | |
822 * vasnprintf.c: Remove trailing blanks. | |
823 Make cpp indentation consistent. | |
824 | |
4423
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
825 2003-07-09 Paul Eggert <eggert@twinsun.com> |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
826 |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
827 * alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h, |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
828 posixver.c, strftime.c, strnlen.c, strverscmp.c: |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
829 Switch from LGPL to GPL. |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
830 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
831 2003-07-07 Paul Eggert <eggert@twinsun.com> |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
832 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
833 * mktime.c: Fix some boundary cases and remove need for floating point. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
834 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
835 Issue a compile-time diagnostic if time_t is floating point, or if |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
836 two's complement arithmetic is not in effect, or if arithmetic |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
837 right shift does not propagate the sign. These assumptions were |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
838 all in the original code but they weren't checked. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
839 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
840 (TIME_T_MIDPOINT, verify): New macros. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
841 (__isleap): Remove; it has integer overflow problems. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
842 (leapyear): New function, without those problems. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
843 (ydhms_tm_diff): Remove; splitting into two parts. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
844 (ydhms_diff): New function, containing the arithmetic part of |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
845 the old ydhms_tm_diff function. Issue a compile-time |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
846 diagnostic if we are not using C99 integer division. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
847 Avoid casts when possible. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
848 (guess_time_tm): New function, containing the checking part of |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
849 the old ydhms_tm_diff function. Return the new value, rather than |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
850 the difference between it and the old. Accept a new argument T |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
851 so that *T specifies the old value. Check for overflow in the result. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
852 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
853 (__mktime_internal): Use a time_t offset, not a long int offset. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
854 This undoes the 2003-06-04 change, which is no longer needed now |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
855 that we have better overflow checking. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
856 (localtime_offset): Likewise. |
4421 | 857 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
858 (__mktime_internal): Avoid harmful overflow on hosts where time_t |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
859 and long are 64-bit but int is only 32-bit. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
860 (ydhms_diff): Use long int to store year1 and yday1. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
861 Issue a compile-time diagnostic if long int is not wide enough. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
862 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
863 (__mktime_internal): Use long int to store adjusted year and yday. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
864 Use plain C rather than preprocessor commands, if that doesn't |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
865 affect efficiency. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
866 Check for overflow (and try to repair) after each probe |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
867 rather than checking only at the very end. This avoids some bugs |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
868 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
869 does not equal GMT offset at maximum time). |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
870 Use integer to check for overflow rather than floating point; this |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
871 is more portable to non-IEEE hosts, and is a tad faster. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
872 When we detect that we are oscillating between two values, |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
873 don't check whether tm_isdst has the requested value, since |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
874 we already know the answer. When tm_isdst has the wrong value, |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
875 use a different heuristic to find the right one, based on the |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
876 extreme values actually observed in practice in tz2003a, |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
877 rather than the (overly optimistic) "previous 3 calendar quarters". |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
878 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
879 (not_equal_tm, print_tm, check_result): Use "const T" rather than |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
880 "T const" to accommodate glibc style. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
881 (check_result): Use less-confusing report format. "long" -> "long int. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
882 (main): Likewise. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
883 Don't loop if the iteration overflows time_t. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
884 Allow a negative step in the iteration. |
4421 | 885 |
4413
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
886 2003-07-01 Paul Eggert <eggert@twinsun.com> |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
887 |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
888 * xreadlink.c: Include <sys/types.h> unconditionally, instead of |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
889 having it depend on HAVE_SYS_TYPES_H. |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
890 |
4405 | 891 2003-06-25 Bruno Haible <bruno@clisp.org> |
892 | |
893 * readlink.c: New file. | |
894 | |
4401 | 895 2003-06-20 Bruno Haible <bruno@clisp.org> |
896 | |
897 Assume C89, so PARAMS isn't needed. | |
898 * unicodeio.h (PARAMS): Remove. | |
899 * unicodeio.c: Don't use PARAMS. | |
900 | |
4399 | 901 2003-06-18 Jim Meyering <jim@meyering.net> |
902 | |
903 Merge changes from coreutils. | |
904 * readutmp.c: Include <string.h> and <stdlib.h> unconditionally. | |
905 Remove explicit declarations of xmalloc and realloc. | |
906 Include xalloc.h. | |
907 (read_utmp): Remove anachronistic cast of xmalloc. | |
908 | |
4397
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
909 2003-06-17 Paul Eggert <eggert@twinsun.com> |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
910 |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
911 Assume C89, so PARAMS isn't needed. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
912 * backupfile.h (PARAMS): Remove. All uses removed. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
913 * closeout.h, dirname.h, filemode.h, fsusage.h, getdate.h, getline.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
914 group-member.h, hard-locale.h, hash.h, linebuffer.h, long-options.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
915 makepath.h, memcasecmp.h, memcoll.h, modechange.h, mountlist.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
916 path-concat.h, physmem.h, posixtm.h, quote.h, readutmp.h, same.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
917 save-cwd.h, savedir.h, stdio-safer.h, strtoimax.c, strverscmp.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
918 unistd-safer.h, version-etc.h, xalloc.h, xreadlink.h, xstrtod.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
919 xstrtol.h: Likewise. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
920 * filemode.h, hard-locale.h, memcoll.h, modechange.h, physmem.h, |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
921 same.h, strverscmp.h: Do not include config.h; no longer needed. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
922 Anyway, config.h should always be included before any other file. |
4399 | 923 |
4392 | 924 2003-06-11 Simon Josefsson <jas@extundo.com> |
925 | |
926 * sysexit_.h: New file. | |
927 | |
4391 | 928 2003-05-20 Derek Price <derek@ximbiot.com> |
929 | |
930 * stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is necessary. | |
931 | |
4387 | 932 2003-06-10 Simon Josefsson <jas@extundo.com> |
933 | |
934 * strchrnul.h: New file. | |
935 * strchrnul.c: New file. | |
936 | |
4423
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
937 2003-06-10 Simon Josefsson <jas@extundo.com> |
4385
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
938 |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
939 * argp.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
940 * argp-ba.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
941 * argp-eexst.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
942 * argp-fmtstream.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
943 * argp-fmtstream.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
944 * argp-fs-xinl.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
945 * argp-help.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
946 * argp-namefrob.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
947 * argp-parse.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
948 * argp-pv.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
949 * argp-pvh.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
950 * argp-xinl.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
951 |
4373 | 952 2003-06-07 Jim Meyering <jim@meyering.net> |
953 | |
4381 | 954 * readtokens.h: Put `Free Software Foundation, Inc.' |
955 in place of my name in the copyright comment. | |
956 Remove definition and uses of __P. | |
957 | |
4373 | 958 From coreutils. |
4379 | 959 * stat.c: Don't declare xmalloc explicitly. |
960 Instead, include "xalloc.h". | |
4377 | 961 * readtokens.c (readtokens): Remove anachronistic casts of xmalloc, |
962 xrealloc, and xcalloc return values. | |
4373 | 963 * xgetcwd.c (xgetcwd): Include "xgetcwd.h". |
964 Improve comment. | |
4375 | 965 * xgetcwd.h: Remove definition/uses of PARAMS. |
4373 | 966 |
4366
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
967 2003-06-06 Jim Meyering <jim@meyering.net> |
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
968 |
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
969 * stdbool_.h: Renamed from stdbool.h.in. |
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
970 |
4357 | 971 2003-06-06 Jim Meyering <jim@meyering.net> |
972 | |
4365 | 973 Merge from coreutils. |
4368 | 974 * same.c: (same_name): Declare *_basename locals to be `const'. |
975 Consolidate declarations and initializations of *_base* locals. | |
976 | |
977 Merge from coreutils. | |
4365 | 978 This avoids a core dump on systems without GNU putenv, |
979 when running `env -u SOME_ALREADY_UNSET_VARIABLE'. | |
980 * putenv.c (__set_errno, LOCK, UNLOCK): Define. | |
981 (unsetenv): New static function, from GNU libc. | |
982 (rpl_putenv): Use it. | |
983 | |
4361 | 984 * modechange.c: Remove trailing blanks. |
985 | |
4359 | 986 Merge from coreutils. |
987 * fsusage.c: Remove declaration of statfs. | |
988 It conflicted with one from OSF/1 5.1 in <sys/mount.h>. | |
989 | |
4357 | 990 * posixtm.c: Include <stdbool.h> unconditionally. |
991 | |
4355
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
992 2003-06-05 Paul Eggert <eggert@twinsun.com> |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
993 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
994 * mktime.c (__mktime_internal): When resolving a tm_isdst |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
995 mismatch, look in future quarters as well as past. This fixes a |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
996 bug when processing fall-backwards gaps immediately after a long |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
997 period of daylight-saving time. |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
998 |
4355
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
999 * mktime.c: Assume freestanding C89 or better. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
1000 (HAVE_LIMITS_H): Remove. Assume it's 1. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
1001 (__P): Remove; not used. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
1002 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
1003 (mktime, not_equal_tm, print_tm, check_result, |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
1004 main): Use prototypes. Use const * where appropriate. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
1005 (main): Fix typo in testing code that uncovered by above changes. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
1006 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
1007 |
4347
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1008 2003-06-04 Paul Eggert <eggert@twinsun.com> |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1009 |
4353
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
1010 * mktime.c: Fix Debian bug 177940 |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
1011 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>. |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
1012 (localtime_offset): Now long int, not time_t, because we want it |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
1013 to be guaranteed to be signed. All uses changed. |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
1014 (__mktime_internal): If overflow would occur when adding offset, |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
1015 don't add it. |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
1016 |
4351
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1017 Merge 'human' changes from coreutils. Rewrite to support |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1018 locale-specific notations like thousands separators. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1019 * human.c: Simplify authorship notice. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1020 Include human.h immediately after config.h. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1021 <sys/types.h>, <stdio.h>: Do not include; no longer needed. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1022 <limits.h>: Do not include, since human.h does. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1023 (SIZE_MAX, UINTMAX_MAX): New macros. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1024 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1025 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1026 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1027 (power_letter): Renamed from suffixes. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1028 (generate_suffix_backwards): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1029 (adjust_value): Now takes int style (because of human.h changes) |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1030 and long double value (for greater precision on some platforms). |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1031 (group_number): New function. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1032 (human_readable): Use it. Use integer options, not enum. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1033 Put the options before the sizes in the arg list. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1034 Support all the new options. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1035 The old human_readable function has been removed; |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1036 use inttostr.h instead. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1037 (human_readable, default_block_size, humblock): |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1038 Use uintmax_t, not int, for block sizes. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1039 (human_readable_inexact, block_size_types): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1040 (block_size_opts): New constant. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1041 (human_options): Renamed from human_block_size, with new signature |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1042 that allows block sizes up to UINTMAX_MAX. All callers changed. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1043 * human.h: Add copyright and authorship notice. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1044 Include <limits.h> and <stdbool.h> unconditionally. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1045 (PARAMS): Remove. All uses removed. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1046 (LONGEST_HUMAN_READABLE): Add support for thousands separator. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1047 (enum human_inexact_style): Remove tag; now a nameless enum. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1048 (human_floor, human_ceiling, human_round_to_even): Now have |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1049 values 2, 0, 1 rather than -1, 1, 0. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1050 (human_group_digits, human_suppress_point_zero, human_autoscale, |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1051 human_base_1024, human_SI, human_B): New constants. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1052 (human_readable_inexact, human_block_size): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1053 (human_readable): Size args are now uintmax_t, not int. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1054 (human_options): New decl. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
1055 |
4349
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
1056 * exclude.c: (new_exclude, add_exclude): Remove casts that are |
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
1057 unnecessary now that we assume C89 or better. This change |
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
1058 imported from coreutils. |
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
1059 |
4348
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
1060 * mktime.c (__mktime_internal): Do not reject negative timestamps |
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
1061 arbitrarily. This is the same patch as 2003-05-28, but it got lost |
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
1062 in the 2003-05-30 sync from glibc. |
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
1063 |
4347
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1064 .h files should stand alone, but we shouldn't include <sys/types.h> |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1065 if we can get away with just <stddef.h>. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1066 |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1067 * __fpending.h, addext.c, backupfile.c, exclude.c, getline.c, |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1068 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h> |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1069 rather than <sys/types.h>, as we merely need size_t. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1070 * dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>, |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1071 to get size_t. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1072 * hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h: |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1073 Include <stdio.h>, to get FILE. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1074 * memcasecmp.c: Don't include <sys/types.h>, as we can assume |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1075 memcasecmp.h has included <stddef.h> and all we need is size_t. |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1076 * memcoll.c: Include "memcoll.h", which gets us size_t and checks |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1077 our interface, instead of including <sys/types.h> |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1078 |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
1079 2003-06-02 Paul Eggert <eggert@twinsun.com> |
4344 | 1080 |
1081 [from coreutils] | |
1082 Fix some minor time-related bugs with POSIX time arguments. | |
1083 Some valid time stamps were being rejected (notably -1, and | |
1084 time stamps before 1900 on 64-bit hosts). And some invalid | |
1085 time stamps were being accepted, e.g. September 31. | |
1086 | |
1087 * posixtm.h (posixtime): Return bool instead of time_t, so | |
1088 that we can return (time_t) -1 successfully. | |
1089 * posixtm.c: Likewise. | |
1090 [HAVE_STDBOOL_H]: Include <stdbool.h>. | |
1091 (bool, false, true) [!HAVE_STDBOOL_H]: New type. | |
1092 (t): Remove static var. | |
1093 (year, posix_time_parse): Now takes struct tm * arg to modify, instead | |
1094 of static var. All uses changed. | |
1095 (year): Do not reject years before 1900; they can occur with | |
1096 64-bit time_t. | |
1097 (posix_time_parse): Do not check for out-of-range components; | |
1098 that is now the caller's responsibility, since our checks were | |
1099 only approximations. | |
1100 (posixtime): Use mktime to check for out-of-range components, | |
1101 since it knows them exactly. | |
1102 If mktime returns (time_t) -1, check whether an error actually occurred | |
1103 by invoking localtime on -1. | |
1104 (main) [TEST_POSIXTIME]: Check for input data errors, and report | |
1105 posixtime failures better. | |
1106 Improve the test data (in comments only). | |
1107 | |
4339 | 1108 2003-05-30 <karl@gnu.org> |
1109 | |
1110 * mktime.c: update from libc. | |
1111 | |
4337 | 1112 2003-05-30 Bruno Haible <bruno@clisp.org> |
1113 | |
1114 * config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1. | |
1115 * localcharset.h: Likewise. | |
1116 * localcharset.c: Likewise. | |
1117 | |
4330
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
1118 2003-05-28 Paul Eggert <eggert@twinsun.com> |
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
1119 |
4333 | 1120 Assume the headers required for C89 freestanding compilers. |
1121 * addext.c, backupfile.c, fsusage.c, human.c, pathmax.h, | |
1122 rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h> | |
1123 without checking for HAVE_LIMITS_H. | |
1124 * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c, | |
1125 xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed | |
1126 to do that. | |
1127 * fatal.c: Include <stdarg.h> without checking for __STDC__. | |
1128 * exclude.c: Include <stdbool.h> unconditionally. | |
1129 * tempname.c: Include <stddef.h> unconditionally. | |
1130 * hash.c: Include <limits.h>, since we no longer define CHAR_BIT. | |
1131 * modechange.c, rpmatch.c (NULL): Don't define, since | |
1132 <stddef.h> does that. | |
1133 * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed. | |
1134 * safe-read.c (INT_MAX): Don't define, since <limits.h> does that. | |
1135 * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed. | |
1136 * xstrtol.c: Likewise. | |
1137 * safe-read.c: Remove TYPE_SIGNED; no longer needed. | |
1138 * savedir.c: Include <stddef.h> instead of defining NULL. | |
1139 | |
4332
b459be4ef089
* addext.c (addext): Use assignment rather than cast, to avoid
Paul Eggert <eggert@cs.ucla.edu>
parents:
4330
diff
changeset
|
1140 * addext.c (addext): Use assignment rather than cast, to avoid |
b459be4ef089
* addext.c (addext): Use assignment rather than cast, to avoid
Paul Eggert <eggert@cs.ucla.edu>
parents:
4330
diff
changeset
|
1141 warnings on some platforms. |
b459be4ef089
* addext.c (addext): Use assignment rather than cast, to avoid
Paul Eggert <eggert@cs.ucla.edu>
parents:
4330
diff
changeset
|
1142 |
4330
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
1143 * mktime.c (__mktime_internal): Do not reject negative timestamps |
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
1144 arbitrarily. |
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
1145 |
4320
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1146 2003-05-10 Bruno Haible <bruno@clisp.org> |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1147 |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1148 * linebreak.c (iconv_string_length): Don't return -1 just because the |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1149 string is longer than 4 KB. |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
1150 |
4319 | 1151 2003-05-12 Jim Meyering <jim@meyering.net> |
1152 | |
1153 * strftime.c (my_strftime): Let the `-' (no-pad) flag affect | |
1154 the space-padded-by-default conversion specifiers, %e, %k, %l. | |
1155 | |
4314
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1156 2003-05-03 Bruno Haible <bruno@clisp.org> |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1157 |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1158 Upgrade to Unicode-4.0. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1159 * linebreak.c (nonspacing_table_data): Change width of U+00AD, |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1160 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615, |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1161 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5, |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1162 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1163 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1164 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1165 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1166 Change width of U+E0100..U+E01EF from 1 to 0. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
1167 |
4310
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
1168 2003-04-25 Bruno Haible <bruno@clisp.org> |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
1169 |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
1170 * copy-file.c: Include <stddef.h>, for size_t. |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
1171 |
4309 | 1172 2003-04-25 Jim Meyering <jim@meyering.net> |
1173 | |
1174 * copy-file.c (copy_file_preserving): Declare buf_size to be | |
1175 of type size_t, not int. | |
1176 | |
4299 | 1177 2003-04-11 Jim Meyering <jim@meyering.net> |
1178 | |
4302 | 1179 Merge changes from Coreutils. |
1180 | |
4301 | 1181 2003-03-22 Jim Meyering <jim@meyering.net> |
1182 | |
1183 * strftime.c (widen): Cast alloca return value to proper type. | |
1184 | |
4299 | 1185 2003-01-19 Ulrich Drepper <drepper@redhat.com> |
1186 | |
1187 From GNU libc. | |
1188 * strftime.c (my_strftime): Handle very large width | |
1189 specifications for numeric values correctly. Improve checks for | |
1190 overflow. | |
1191 | |
1192 2003-01-19 Jim Meyering <jim@meyering.net> | |
1193 | |
1194 * strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical definitions. | |
1195 (nl_get_alt_digit) [! defined my_strftime]: Define. | |
1196 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of | |
1197 _nl_get_alt_digit and _nl_get_walt_digit. | |
1198 | |
1199 * strftime.c (my_strftime): Merge in locale-related changes from libc. | |
1200 These changes have no effect outside of _LIBC. | |
1201 | |
4294 | 1202 2003-04-10 Bruno Haible <bruno@clisp.org> |
1203 | |
1204 * findprog.h: New file, from GNU gettext. | |
1205 * findprog.c: New file, from GNU gettext. | |
1206 | |
4288 | 1207 2003-04-05 Jim Meyering <jim@meyering.net> |
1208 | |
4290 | 1209 Merge changes from Coreutils. |
1210 | |
4299 | 1211 * exclude.h (PARAMS): Remove definition and uses. |
1212 * exclude.c: Remove uses of `PARAMS'. | |
1213 | |
4290 | 1214 * dirname.c [TEST_DIRNAME]: Update build instructions for test. |
1215 Add test-cases for DOS filenames. Declare program_name. | |
1216 (main): Set up program_name. Patch by Rich Dawe. | |
1217 | |
4288 | 1218 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any |
1219 error from mntctl. | |
1220 Use mntctl's return value to drive the entry-processing loop, since | |
1221 we can't rely on the value of the vmt_length member in the last | |
1222 entry. On some systems doing so could result in exhausting | |
1223 virtual memory. Based in part on a patch from Mike Jetzer. | |
1224 | |
4286 | 1225 2003-04-04 Bruno Haible <bruno@clisp.org> |
1226 | |
1227 * linebreak.h: New file, from GNU gettext. | |
1228 * linebreak.c: New file, from GNU gettext with slight modifications. | |
1229 * lbrkprop.h: New file, from GNU gettext. | |
1230 | |
4275
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1231 2003-04-03 Bruno Haible <bruno@clisp.org> |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1232 |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1233 * utf8-ucs4.h: New file, from GNU gettext. |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1234 * utf16-ucs4.h: New file, from GNU gettext. |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1235 * ucs4-utf8.h: New file, from GNU gettext. |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1236 * ucs4-utf16.h: New file, from GNU gettext. |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
1237 |
4273 | 1238 2003-04-02 Bruno Haible <bruno@clisp.org> |
1239 | |
1240 * binary-io.h: New file, from GNU gettext. | |
1241 | |
4271 | 1242 2003-04-01 Bruno Haible <bruno@clisp.org> |
1243 | |
1244 * pathname.h: New file, from GNU gettext. | |
1245 * concatpath.c: New file, from GNU gettext. | |
1246 | |
4268 | 1247 2003-03-30 Bruno Haible <bruno@clisp.org> |
1248 | |
1249 * copy-file.c (copy_file_preserving): Don't set owner if the function | |
1250 chown() doesn't exist. | |
1251 | |
4266 | 1252 2003-03-28 Bruno Haible <bruno@clisp.org> |
1253 | |
1254 * copy-file.h: New file, from GNU gettext. | |
1255 * copy-file.c: New file, from GNU gettext. | |
1256 | |
4261 | 1257 2003-03-18 Jim Meyering <jim@meyering.net> |
1258 | |
1259 * quote.c (quote_n): Fix typo in comment. | |
1260 | |
4256
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1261 2003-03-14 Jim Meyering <jim@meyering.net> |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1262 |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1263 Merge changes from Coreutils. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1264 * obstack.h (obstack_object_size): Declare temporary, __o, |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1265 to be const, in order to avoid warnings. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1266 (obstack_room): Likewise. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1267 (obstack_empty_p): Likewise. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
1268 |
4252
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
1269 2003-03-13 Paul Eggert <eggert@twinsun.com> |
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
1270 |
4255
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1271 Merge changes from Bison. |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1272 * obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1273 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5 |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1274 when compiling Bison 1.875's `bitset bset = obstack_alloc |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
1275 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe. |
4252
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
1276 * hash.c: Include <stdbool.h> unconditionally. |
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
1277 |
4249
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1278 2003-03-09 Paul Eggert <eggert@twinsun.com> |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1279 |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1280 * argmatch.c (EXIT_FAILURE): Define if the system doesn't. |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1281 Reported by Bruce Becker; see: |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1282 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
1283 |
4246 | 1284 2003-03-03 Paul Eggert <eggert@twinsun.com> |
4590 | 1285 Bruno Haible <bruno@clisp.org> |
4246 | 1286 |
1287 * mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1. | |
1288 Reported by John Hughes, see | |
1289 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html | |
1290 | |
4242
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1291 2003-02-19 Paolo Bonzino <bonzini@gnu.org> |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1292 |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1293 * poll_.h: New file. |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1294 * poll.c: New file. |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
1295 |
4239
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1296 2003-02-18 Paolo Bonzino <bonzini@gnu.org> |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1297 |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1298 * mathl.h: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1299 * acosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1300 * asinl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1301 * atanl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1302 * ceill.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1303 * cosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1304 * expl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1305 * floorl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1306 * frexpl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1307 * ldexpl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1308 * logl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1309 * sincosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1310 * sinl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1311 * sqrtl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1312 * tanl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1313 * trigl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1314 * trigl.h: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
1315 |
4237
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1316 2003-02-17 Bruno Haible <bruno@clisp.org> |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1317 |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1318 * mkdtemp.h: New file, from GNU gettext. |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1319 * mkdtemp.c: New file, from GNU gettext. |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
1320 |
4229
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1321 2003-01-31 Bruno Haible <bruno@clisp.org> |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1322 |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1323 * rename.c: #undef rename before defining rpl_rename. |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1324 * strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen. |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
1325 |
4224
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1326 2003-01-30 Bruno Haible <bruno@clisp.org> |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1327 |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1328 * printf-args.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1329 * printf-args.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1330 * printf-parse.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1331 * printf-parse.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1332 * vasnprintf.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1333 * vasnprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1334 * asnprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1335 * vasprintf.h: New file, from GNU gettext with modifications. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1336 * vasprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1337 * asprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
1338 |
4221 | 1339 2003-01-29 Bruno Haible <bruno@clisp.org> |
1340 | |
1341 * stpncpy.h: New file, from GNU gettext with modifications. | |
1342 * stpncpy.c: New file, from GNU gettext with modifications. | |
1343 | |
4218 | 1344 2003-01-28 Bruno Haible <bruno@clisp.org> |
1345 | |
1346 * c-ctype.h: New file, from GNU gettext, with changes suggested by | |
1347 Paul Eggert. | |
1348 * c-ctype.c: New file, from GNU gettext, with changes suggested by | |
1349 Paul Eggert. | |
1350 | |
4215 | 1351 2003-01-27 Bruno Haible <bruno@clisp.org> |
1352 | |
1353 * xsetenv.h: New file, from GNU gettext. | |
1354 * xsetenv.c: New file, from GNU gettext. | |
1355 | |
4207 | 1356 2003-01-23 Bruno Haible <bruno@clisp.org> |
1357 | |
1358 * minmax.h: New file, from GNU gettext, with comments from Paul Eggert. | |
1359 | |
4201 | 1360 2003-01-22 Bruno Haible <bruno@clisp.org> |
1361 | |
1362 * exit.h: New file, from GNU gettext. | |
1363 | |
4183
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1364 2003-01-11 Bruno Haible <bruno@clisp.org> |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1365 |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1366 * stpcpy.h (stpcpy): Use ANSI C function declarations. |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1367 * strcase.h (strcasecmp, strncasecmp): Likewise. |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
1368 |
4182 | 1369 2003-01-14 Jim Meyering <jim@meyering.net> |
1370 | |
1371 * same.c (same_name): Tweak a comment. | |
1372 | |
4179
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1373 2003-01-11 Bruno Haible <bruno@clisp.org> |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1374 |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1375 * same.c (same_name): Reorder tests so as to avoid calling stat() |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1376 when a string comparison is sufficient. |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
1377 |
4178
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1378 2003-01-11 Bruno Haible <bruno@clisp.org> |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1379 |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1380 * readtokens.c (readtoken): Cast character to 'unsigned char', not |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1381 'unsigned int'. |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
1382 |
4177
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
1383 2003-01-11 Bruno Haible <bruno@clisp.org> |
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
1384 |
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
1385 * hash-pjw.c: Add comment about low quality of this function. |
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
1386 |
4170
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1387 2003-01-12 Paul Eggert <eggert@twinsun.com> |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1388 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1389 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer, |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1390 to avoid collisions with libcurses and libreadline. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1391 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1392 * Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1393 * getstr.h, getstr.c: Remove. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1394 * getline.c: Include "getline.h", to check interface. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1395 Move body of old getstr.c here: this defines MIN_CHUNK and |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1396 declares getdelim2, which is renamed from getstr. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1397 (getline, getdelim): Adjust to renaming of getstr -> getdelim2. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1398 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1399 * linebuffer.c (readlinebuffer): Renamed from readline. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1400 All uses changed. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1401 * linebuffer.h: Likewise. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1402 (readline): Remove backward-compatibility macro. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
1403 |
4160 | 1404 2003-01-12 Jim Meyering <jim@meyering.net> |
1405 | |
1406 * makepath.c: Don't test HAVE_ERRNO_H. It's not necessary. | |
1407 | |
4156
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1408 2003-01-10 Bruno Haible <bruno@clisp.org> |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1409 |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1410 * alloca_.h: New file. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1411 * getdate.y: Unconditionally include alloca.h. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1412 * makepath.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1413 * setenv.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1414 * userspec.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
1415 |
4151
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
1416 2003-01-09 Bruno Haible <bruno@clisp.org> |
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
1417 |
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
1418 * stdbool.h.in: New file. |
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
1419 |
4144
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1420 2003-01-08 Bruno Haible <bruno@clisp.org> |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1421 |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1422 * safe-read.c: Include specification header first, to ensure its |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1423 selfcontainedness. |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1424 * full-write.c: Likewise. |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
1425 |
4143 | 1426 2003-01-08 Jim Meyering <jim@meyering.net> |
1427 | |
1428 * full-write.c: Undefine and define-away `const' after inclusion | |
1429 of errno.h, not before. Suggestion from Bruno Haible. | |
1430 | |
4141 | 1431 2003-01-07 Jim Meyering <jim@meyering.net> |
1432 | |
1433 * full-write.c: Rework so that it may serve to define full_read, too. | |
1434 * full-read.c: Simply #define FULL_READ and include full-write.c. | |
1435 | |
4134 | 1436 2003-01-06 Jim Meyering <jim@meyering.net> |
1437 | |
1438 * version-etc.c: Update year in translatable copyright string. | |
1439 | |
4135
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1440 2002-12-25 Bruno Haible <bruno@clisp.org> |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1441 |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1442 * strtoimax.c: Include <stdint.h> as an alternative to <inttypes.h>. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1443 * xstrtol.h: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1444 * xstrtoimax.c: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1445 * xstrtoumax.c: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1446 * human.h: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1447 |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1448 * tempname.c: Include <inttypes.h> too. Avoids a compilation error |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1449 on systems that have <inttypes.h> but not <stdint.h>. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
1450 |
4123
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
1451 2002-12-31 Paul Eggert <eggert@twinsun.com> |
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
1452 |
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
1453 * memcoll.c (memcoll): Fall back on a simple algorithm using |
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
1454 memcmp if strcoll doesn't work. |
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
1455 |
4106 | 1456 2002-12-23 Bruno Haible <bruno@clisp.org> |
1457 | |
1458 * localcharset.h: New file. | |
1459 * localcharset.c: Include it. | |
1460 * unicodeio.c: Likewise. | |
1461 | |
4105
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
1462 2002-12-22 Bruno Haible <bruno@clisp.org> |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
1463 |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
1464 * utime.c (utime_null): No need to call ftruncate if the file was |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
1465 nonempty. |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
1466 |
4104
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1467 2002-12-23 Bruno Haible <bruno@clisp.org> |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1468 |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1469 * memcoll.c (STRCOLL): New macro. |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1470 (memcoll): Use it. |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
1471 |
4103
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
1472 2002-12-22 Bruno Haible <bruno@clisp.org> |
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
1473 |
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
1474 * getstr.h (getstr): Define, to avoid clash with libcurses. |
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
1475 * linebuffer.h (readline): Define, to avoid clash with libreadline. |
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
1476 |
4102
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
1477 2002-12-22 Bruno Haible <bruno@clisp.org> |
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
1478 |
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
1479 * getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE. |
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
1480 |
4101
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1481 2002-12-23 Bruno Haible <bruno@clisp.org> |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1482 |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1483 * getline.h: Include <stddef.h>, for size_t. |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1484 |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1485 * unicodeio.h: Include <stddef.h>, for size_t. |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1486 * unicodeio.c: Don't include <stddef.h>. |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
1487 |
4089 | 1488 2002-12-17 Bruno Haible <bruno@clisp.org> |
1489 | |
1490 * canon-host.c (strdup): Remove unused declaration. | |
1491 | |
1492 * fsusage.c: Include full_read.h. | |
1493 (get_fs_usage): Use full_read instead of safe_read. | |
1494 | |
1495 * utime.c (utime_null): Use SAFE_READ_ERROR. | |
1496 | |
4080 | 1497 2002-12-11 Bruno Haible <bruno@clisp.org> |
1498 | |
1499 * setenv.h: Rewritten to cope with systems that have setenv() but not | |
1500 unsetenv(). | |
1501 * setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following | |
1502 modifications: | |
1503 | |
1504 2002-12-11 Bruno Haible <bruno@clisp.org> | |
1505 | |
1506 * setenv.c (alloca): Fall back to malloc. | |
1507 (freea): New macro. | |
1508 (setenv): Use freea() to free memory allocated with alloca(). | |
1509 | |
1510 2002-11-13 Bruno Haible <bruno@clisp.org> | |
1511 | |
1512 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C | |
1513 function declarations. | |
1514 * unsetenv.c (unsetenv): Likewise. | |
1515 | |
1516 2002-03-04 Bruno Haible <bruno@clisp.org> | |
1517 | |
1518 Portability to AIX 4.3.3. | |
1519 * unsetenv.c: New file, extracted from setenv.c. | |
1520 * setenv.c: Move the unsetenv() function to unsetenv.c. | |
1521 | |
1522 2001-12-20 Bruno Haible <bruno@clisp.org> | |
1523 | |
1524 * setenv.c (__add_to_environ): Don't call realloc(NULL,...), | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
1525 use malloc instead. For SunOS 4. |
4080 | 1526 |
1527 2001-12-11 Bruno Haible <bruno@clisp.org> | |
1528 | |
1529 * setenv.c: Declare alloca. | |
1530 (compar_fn_t): New typedef. | |
1531 (KNOWN_VALUE, STORE_VALUE): Use it. | |
1532 | |
4081 | 1533 * Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c, |
1534 setenv.h. | |
1535 | |
4078
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1536 2002-12-10 Paul Eggert <eggert@twinsun.com> |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1537 |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1538 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7. |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1539 * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS): |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1540 Choose values that are less likely to collide with system fnmatch |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1541 options. |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1542 * exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1543 defined (e.g., a pure POSIX system). |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1544 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1545 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems. |
11656148e11b
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4073
diff
changeset
|
1546 |
4071 | 1547 2002-12-06 Jim Meyering <jim@meyering.net> |
1548 | |
4073 | 1549 * error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'. |
1550 | |
4071 | 1551 Merge in changes from libc's misc/error.c, in preparation |
1552 for the merge of gnulib's changes back into libc. | |
1553 | |
1554 * error.c (_): Define only if not already defined. | |
1555 Move definition to follow all #include directives. | |
1556 Include unlocked-io.h only if !_LIBC. | |
1557 [_LIBC]: Include <libio/libioP.h>. | |
1558 [USE_IN_LIBIO]: Include <libio/iolibio.h> | |
1559 (fflush): Tweak definition to use INTUSE. | |
1560 (putc): Define. | |
1561 | |
4069
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1562 2002-12-05 Paul Eggert <eggert@twinsun.com> |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1563 |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1564 * alloca.c [defined emacs]: Include "lisp.h". |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1565 (xalloc_die) [defined emacs]: New macro. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1566 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1567 [! defined emacs]: Include <xalloc.h>. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1568 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1569 (pointer): Typedef to POINTER_TYPE *. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1570 (malloc): Remove decl; we now always use xmalloc. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1571 (alloca): Use old-style definition, since Emacs needs this. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
1572 Check for arithmetic overflow when computing combined size. |
4071 | 1573 |
4067
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1574 2002-12-04 Paul Eggert <eggert@twinsun.com> |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1575 |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1576 Do not generate unlocked-io.h automatically, since it's easier to |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1577 maintain it by hand. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1578 |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1579 * unlocked-io.h: New file, from GNU diffutils, |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1580 but with proper copyright notice and attribution. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1581 * gen-uio: Remove. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1582 * Makefile.am: Add copyright notice. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1583 (libfetish_a_SOURCES): Add unlocked-io.h. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1584 (BUILT_SOURCES, all-local): Remove unlocked-io.h. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1585 (DISTCLEANFILES, io_functions): Remove macros. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1586 (EXTRA_DIST): Remove gen_uio. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1587 (unlocked-io.h): Remove rule. |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
1588 |
4058 | 1589 2002-12-04 Jim Meyering <jim@meyering.net> |
1590 | |
4063 | 1591 Reflect the fact that stat.c and lstat.c are no longer generated. |
1592 * Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c. | |
1593 (DISTCLEANFILES): Likewise. | |
1594 (EXTRA_DIST): Likewise. | |
1595 (all_local): Don't depend on stat.c or lstat.c. | |
1596 (stat.c, lstat.c): Remove rules. | |
1597 (EXTRA_DIST): Remove xstat.in. | |
1598 | |
1599 * xstat.in: Remove file. Contents moved into stat.c. | |
1600 * stat.c: New file. Contents mostly from xstat.in. | |
1601 * stat.c: Rework so that it may serve to define rpl_lstat, too. | |
1602 * lstat.c: New file. Simply #define LSTAT and include stat.c. | |
1603 | |
4058 | 1604 * safe-read.c: Rework so that it may serve to define safe_write, too. |
1605 * safe-write.c: Simply #define SAFE_WRITE and include safe-read.c. | |
1606 | |
4051
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1607 2002-12-03 Jim Meyering <jim@meyering.net> |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1608 |
4053 | 1609 * safe-read.c, safe-write.c: Change variable names and comments, but |
1610 not semantics, to minimize the differences between these two files. | |
4058 | 1611 (safe_read): Change comment to mention SAFE_READ_ERROR. |
4053 | 1612 |
4051
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1613 * safe-read.c (IS_EINTR): Define. |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1614 (safe_read): Use IS_EINTR in place of in-function cpp directives. |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
1615 |
4049
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1616 2002-12-02 Bruno Haible <bruno@clisp.org> |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1617 |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1618 * safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1619 Define, taken from safe-read.c. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1620 (INT_MAX): Provide fallback. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1621 (safe_write): Rewrite to iterate IFF the write fails with EINTR. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1622 * safe-write.h (SAFE_WRITE_ERROR): Define. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1623 |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1624 * safe-read.c (EINTR): Remove definition. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1625 (safe_read): Don't use EINTR if it is absent. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1626 |
4046
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
1627 2002-12-02 Jim Meyering <jim@meyering.net> |
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
1628 |
4048
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
1629 * safe-read.c (EINTR): Define. |
4049
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1630 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
1631 (INT_MAX): Provide fallback. |
4048
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
1632 (safe_read): Rewrite to iterate IFF the read fails with EINTR. |
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
1633 |
4046
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
1634 * safe-read.h (SAFE_READ_ERROR): Define. |
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
1635 |
4044
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
1636 2002-12-01 Jim Meyering <jim@meyering.net> |
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
1637 |
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
1638 * safe-read.c: (safe_read): Also exit the loop when read returns zero. |
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
1639 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define. |
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
1640 |
4041
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
1641 2002-11-27 Paul Eggert <eggert@twinsun.com> |
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
1642 |
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
1643 * hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry, |
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
1644 hash_rehash): Replace `if (limit <= value) abort ();' with |
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
1645 `if (! (value < limit)) abort ();', for readability. |
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
1646 |
4039
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1647 2002-11-26 <karl@gnu.org> |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1648 |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1649 * strdup.c: copy from libc again, with jim's ok. |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1650 * .cppi-disable: re-add strdup.c |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
1651 |
4030 | 1652 2002-11-25 <karl@gnu.org> |
1653 | |
1654 * strtoll.c: copy from libc, meaning we now #include <strtol.c> | |
1655 instead of "strtol.c". | |
1656 | |
4027 | 1657 2002-11-25 Jim Meyering <jim@meyering.net> |
1658 | |
1659 * mktime.c: Sync from libc, now that it has the latest fix. | |
1660 | |
4028 | 1661 2002-11-24 <karl@gnu.org> |
1662 | |
1663 * error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c, | |
1664 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl. | |
1665 | |
4017 | 1666 2002-11-24 Jim Meyering <jim@meyering.net> |
1667 | |
1668 Update from coreutils: | |
1669 | |
4019 | 1670 * mktime.c: Merge in changes from libc. |
1671 | |
4017 | 1672 Avoid a link-time failure on some Linux systems. |
1673 * mktime.c (STATIC): Define to be empty (_LIBC) or `static' (otherwise). | |
1674 (__mon_yday): Declare with the STATIC attribute. | |
1675 (__mktime_internal): Likewise. | |
1676 Based on a report from Greg Schafer. | |
1677 | |
4011 | 1678 2002-11-23 Jim Meyering <jim@meyering.net> |
1679 | |
4015 | 1680 * sig2str.c (str2signum, sig2str): Avoid a warning from gcc: |
1681 Use `unsigned', not `int', as type of index. | |
1682 | |
4013 | 1683 * xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>. |
1684 | |
4011 | 1685 * fsusage.c: Remove unneeded parentheses around operands of `defined'. |
1686 | |
4007
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1687 2002-11-22 Paul Eggert <eggert@twinsun.com> |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1688 |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1689 * hash.c: Avoid use of <assert.h>, as the GNU Coding Standards |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1690 hint that one should use `if (! x) abort ();' rather than `assert |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1691 (x);', and anyway it's one less thing to worry about configuring. |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1692 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry, |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1693 hash_rehash, hash_insert): Use abort rather than assert. |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
1694 |
4005
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1695 2002-11-22 Paul Eggert <eggert@twinsun.com> |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1696 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1697 * quotearg.h: Allow multiple inclusion by surrounding with |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1698 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t, |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1699 so that we can be included first. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1700 (PARAMS): Remove; we now assume C89 or later. All uses removed. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1701 * quotearg.c: Include quotearg.h immediately after config.h. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1702 No need to include stddef.h or sys/types.h any more. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1703 Surround local include files with "", not "<>". |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1704 Assume HAVE_LIMITS_H unconditionally, as we assume C89. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1705 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX, |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1706 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1707 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1708 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1709 (ISPRINT): Remove; no longer needed now that we assume C89. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1710 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1711 (clone_quoting_options, quotearg_buffer, quotearg_n_options): |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1712 Preserve errno. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1713 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1714 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style, |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1715 quotearg_char): Use SIZE_MAX rather than |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1716 (size_t) -1 when we are talking about "infinity". |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1717 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1718 (quotearg_buffer_restyled): Fix bug when quoting trigraphs. |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
1719 |
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1720 2002-11-22 Bruno Haible <bruno@clisp.org> |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1721 |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1722 * safe-read.h: Assume C89. Add comments. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1723 (safe_read): Change return type to size_t. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1724 * safe-read.c (safe_read): Change return type to size_t. Handle byte |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1725 counts > SSIZE_MAX correctly. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1726 * safe-write.h: New file. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1727 * safe-write.c: New file. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1728 * full-read.h: New file. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1729 * full-read.c: New file. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1730 * full-write.h: Assume C89. Add comments. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1731 * full-write.c: Include safe-write.h. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1732 (full_write): Rewritten to use safe_write. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1733 Suggested by Jim Meyering and Paul Eggert. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
1734 |
4000 | 1735 2002-11-21 Bruno Haible <bruno@clisp.org> |
1736 | |
4001
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1737 Remove case insensitive option matching. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1738 * argmatch.h (argcasematch): Remove declaration. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1739 (ARGCASEMATCH): Remove macro. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1740 (__xargmatch_internal): Remove case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1741 (XARGMATCH): Update. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1742 (XARGCASEMATCH): Remove macro. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1743 * argmatch.c (argmatch): Renamed from __argmatch_internal. Remove |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1744 case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1745 (argcasematch): Remove function. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1746 (__xargmatch_internal): Remove case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1747 (main): Use XARGMATCH instead of XARGCASEMATCH. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
1748 |
4000 | 1749 * xmalloc.c: Change compile-time error message. Add comment about |
1750 required autoconf version. | |
1751 | |
3984 | 1752 2002-11-21 Jim Meyering <jim@meyering.net> |
1753 | |
3998 | 1754 * strdup.c (strdup): Tweak comment and initial #if/#include. |
1755 | |
3984 | 1756 Merge in changes from the coreutils. |
1757 | |
3995 | 1758 2002-09-25 Paul Eggert <eggert@twinsun.com> |
1759 * fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>. | |
1760 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro. | |
1761 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than | |
1762 int. Work more efficiently if X is the same width as uintmax_t. | |
1763 Do not compare X to -1, to avoid bogus compiler warning. | |
1764 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast. | |
1765 Don't assume that f_frsize and f_bsize are the same type. | |
1766 | |
3992 | 1767 * mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning |
1768 on FreeBSD. | |
1769 | |
3988 | 1770 * makepath.c (make_path): Restore umask *before* creating the final |
1771 component. | |
3990 | 1772 (make_path): Minor reformatting. |
3988 | 1773 |
3986 | 1774 * xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC |
1775 and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC. | |
1776 | |
3984 | 1777 * mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy |
1778 ones. At least on GNU/Linux systems, `auto' means something else. | |
1779 From Michael Stone. | |
1780 | |
3982
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1781 2002-11-20 Paul Eggert <eggert@twinsun.com> |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1782 |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1783 Merge argmatch cleanups from Bison. Assume C89. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1784 |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1785 * argmatch.c: Include config.h here, not in argmatch.h. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1786 Include stdlib.h, for EXIT_FAILURE. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1787 Always include <string.h>, since we assume C89. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1788 (EXIT_FAILURE): Remove pre-C89 bug workaround. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1789 * argmatch.h: Do not include <config.h> or <sys/types.h>. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1790 Include <stddef.h> instead, since it's all we need for size_t. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1791 (PARAMS): Remove. All uses removed. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1792 (ARRAY_CARDINALITY): Do not bother to #undef. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1793 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg, |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1794 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1795 Remove unnecessary parentheses. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1796 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1797 Insert necessary parentheses. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1798 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1799 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
1800 |
3977 | 1801 2002-11-19 Bruno Haible <bruno@clisp.org> |
1802 | |
3979
7627246c7a83
Standard specification idiom. Make mbswidth.h self contained.
Bruno Haible <bruno@clisp.org>
parents:
3978
diff
changeset
|
1803 * mbswidth.c: Include mbswidth.h right at the beginning. |
7627246c7a83
Standard specification idiom. Make mbswidth.h self contained.
Bruno Haible <bruno@clisp.org>
parents:
3978
diff
changeset
|
1804 * mbswidth.h: Include <stddef.h>, for size_t. |
7627246c7a83
Standard specification idiom. Make mbswidth.h self contained.
Bruno Haible <bruno@clisp.org>
parents:
3978
diff
changeset
|
1805 |
3978 | 1806 * mbswidth.h (PARAMS): Remove macro. |
1807 (mbswidth, mbsnwidth): Use ANSI C function declarations. | |
1808 * mbswidth.c (mbswidth, mbsnwidth): Likewise. | |
1809 | |
3977 | 1810 * gcd.h (PARAMS): Remove macro. |
1811 (gcd): Use ANSI C function declarations. | |
1812 * gcd.c (gcd): Likewise. | |
1813 | |
3975
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1814 2002-11-15 Bruno Haible <bruno@clisp.org> |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1815 |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1816 * strcspn.c: Include <stddef.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1817 (strcspn): Use ANSI C function declaration. Change return type to |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1818 size_t. Use NULL. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1819 * strpbrk.c: Minimize diffs to glibc. Include <stddef.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1820 (strpbrk): Use NULL. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1821 * strpbrk.h (PARAMS): Remove macro. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1822 (strpbrk): Use ANSI C function declaration. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1823 * strstr.c: Don't include <sys/types.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1824 * strstr.h (PARAMS): Remove macro. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1825 (strstr): Use ANSI C function declarations. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
1826 |
3968
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1827 2002-11-06 Bruno Haible <bruno@clisp.org> |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1828 |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1829 * gcd.h (gcd): Change argument type to 'unsigned long'. |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1830 * gcd.c (gcd): Likewise. |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
1831 |
3967 | 1832 2002-11-05 Bruno Haible <bruno@clisp.org> |
1833 | |
1834 * gcd.h: New file, from gettext-0.11.5. | |
1835 * gcd.c: New file, from gettext-0.11.5. | |
1836 | |
3966
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1837 2002-11-05 Bruno Haible <bruno@clisp.org> |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1838 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1839 * error.c [!_LIBC]: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1840 * getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1841 * obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1842 * regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1843 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1844 * argmatch.c: Include gettext.h instead of <locale.h> and <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1845 * makepath.c: Include gettext.h instead of <locale.h> and <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1846 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1847 * closeout.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1848 * human.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1849 * quotearg.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1850 * rpmatch.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1851 * unicodeio.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1852 * userspec.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1853 * version-etc.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1854 * xmalloc.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1855 (textdomain): Remove definition. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1856 * xmemcoll.c: Include gettext.h instead of <libintl.h>. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1857 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1858 * long-options.c: Remove include of <libintl.h> and definition of _. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1859 * same.c: Remove include of <libintl.h> and definition of _. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
1860 |
3964 | 1861 2002-11-04 Bruno Haible <bruno@clisp.org> |
1862 | |
1863 * stpcpy.h: New file, from GNU gettext-0.11.5. | |
1864 * strcase.h: New file, from GNU gettext-0.11.5. | |
1865 * strpbrk.h: New file, from GNU gettext-0.11.5. | |
1866 * strstr.h: New file, from GNU gettext-0.11.5. | |
1867 * xgetcwd.h: New file, from GNU gettext-0.11.5. | |
1868 | |
3963
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1869 2002-05-09 Bruno Haible <bruno@clisp.org> |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1870 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1871 * config.charset: Update for newest glibc. Add canonical names |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1872 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1873 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1874 2002-05-09 Bruno Haible <bruno@clisp.org> |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1875 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1876 * localcharset.c (get_charset_aliases): Add more Windows specific |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1877 aliases. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1878 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1879 2002-05-08 Owen Taylor <otaylor@redhat.com> |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1880 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1881 * config.charset: A few additions for Solaris. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1882 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1883 2001-12-05 Bruno Haible <bruno@clisp.org> |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1884 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1885 * localcharset.c (locale_charset): Don't return an empty string. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1886 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1887 2001-10-23 Bruno Haible <haible@clisp.cons.org> |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1888 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1889 * config.charset: msdos in uk_UA uses CP1125. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1890 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1891 2001-08-05 Bruno Haible <haible@clisp.cons.org> |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1892 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1893 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++". |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1894 * localcharset.c (locale_charset): Declare as extern "C". |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1895 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1896 2002-02-15 Bruno Haible <bruno@clisp.org> |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1897 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1898 * config.charset [msdosdjgpp]: For Russian, use CP866. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1899 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1900 2002-02-11 Bruno Haible <bruno@clisp.org> |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1901 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1902 * config.charset: Add support for NetBSD. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
1903 |
3944 | 1904 2002-09-25 <karl@gnu.org> |
1905 | |
1906 * strdup.c: copy from libc/string (via ../config/srclist*). | |
1907 * getopt*: copy from libc/posix. | |
3947
765d3b9a6126
update gettext.h from gettext.h
Karl Berry <karl@freefriends.org>
parents:
3944
diff
changeset
|
1908 * gettext.h: copy from gettext. |
765d3b9a6126
update gettext.h from gettext.h
Karl Berry <karl@freefriends.org>
parents:
3944
diff
changeset
|
1909 * .cppi-disable: add strdup.c, gettext.h. |
3944 | 1910 |
3922 | 1911 2002-07-01 Jim Meyering <meyering@lucent.com> |
1912 | |
1913 * c-stack.c: Include sys/time.h. | |
1914 From Volker Borchert. | |
1915 | |
3919 | 1916 2002-06-11 Paul Eggert <eggert@twinsun.com> |
1917 | |
1918 * fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT): | |
1919 New macro. Use it uniformly instead of | |
1920 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H). | |
1921 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1 | |
1922 reported by Vin Shelton. | |
1923 | |
3913 | 1924 2002-06-22 Jim Meyering <meyering@lucent.com> |
1925 | |
1926 * fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
1927 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h. |
3913 | 1928 |
3911 | 1929 2002-06-22 Paul Eggert <eggert@twinsun.com> |
1930 | |
1931 * c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]: | |
1932 Do not assume SA_SIGINFO behavior. | |
1933 Bug reported by Jim Meyering on NetBSD 1.5.2. | |
1934 | |
3904 | 1935 2002-06-22 Jim Meyering <meyering@lucent.com> |
1936 | |
1937 * c-stack.c, c-stack.h: New files, from diffutils-2.8.2. | |
3911 | 1938 |
3909 | 1939 * exitfail.c, exitfail.h: Likewise. |
1940 * Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h. | |
3904 | 1941 |
1942 * Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place | |
1943 of fnmatch.h. | |
1944 (EXTRA_DIST): Add fnmatch_loop.c. | |
1945 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h. | |
1946 | |
1947 * fnmatch_loop.c: New file, from diffutils-2.8.2. | |
1948 * fnmatch.c: Update from diffutils-2.8.2. | |
1949 * fnmatch_.h: New file. From diffutils-2.8.2. | |
1950 * fnmatch.h: Remove file. | |
1951 | |
3878 | 1952 2002-06-18 Paul Eggert <eggert@twinsun.com> |
1953 | |
1954 * file-type.h: Report an error if neither S_ISREG nor | |
1955 S_IFREG is defined, instead of using a test specific to glibc | |
1956 2.2. This should be safe, since POSIX requires S_ISREG and | |
1957 Unix Version 7 had S_IFREG. We don't need to check for | |
1958 <sys/types.h> since we don't use any symbols that it defines. | |
1959 | |
3869 | 1960 2002-06-15 Jim Meyering <meyering@lucent.com> |
1961 | |
3873 | 1962 * file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef. |
1963 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h> | |
1964 have been included before this file. | |
1965 | |
1966 2002-06-13 Richard Dawe <richdawe@bigfoot.com> | |
1967 | |
1968 * Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t, | |
1969 so that each temporary file name is unique and valid in the first | |
1970 8 characters, for operation under DOS. | |
1971 | |
1972 2002-06-15 Jim Meyering <meyering@lucent.com> | |
1973 | |
1974 Work even with DJGPP 2.03, which lacks support for symlinks. | |
1975 From Richard Dawe. | |
3869 | 1976 * xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK |
1977 is defined. | |
1978 * lchown.c (S_ISLNK): Likewise. | |
1979 | |
3867 | 1980 2002-06-14 Jim Meyering <meyering@lucent.com> |
1981 | |
1982 * file-type.h: Use the version from diffutils-2.8.2. | |
1983 * file-type.c: Likewise. | |
1984 | |
3855 | 1985 2002-05-27 Jim Meyering <meyering@lucent.com> |
1986 | |
1987 Fix a problem seen only on nonconforming systems whereby ls.c's | |
1988 use of localtime, and then of gettimeofday would cause trouble: | |
1989 the localtime call used to initialize rpl_gettimeofday's save | |
1990 mechanism would clobber ls's current local time information so | |
1991 that in any long listing the first file would always be listed | |
1992 with date 1970-01-01. Analysis by Volker Borchert. | |
1993 | |
1994 * gettimeofday.c (localtime): Undefine. | |
1995 (rpl_localtime): New function. | |
1996 | |
3843 | 1997 2002-05-22 Jim Meyering <meyering@lucent.com> |
1998 | |
3847 | 1999 * Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h. |
3843 | 2000 * file-type.h: New file. |
2001 * file-type.c (file_type): New file/function. Extracted from diffutils. | |
2002 | |
3836 | 2003 2002-04-29 Paul Eggert <eggert@twinsun.com> |
2004 | |
2005 * hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1. | |
2006 | |
3834 | 2007 2002-04-28 Paul Eggert <eggert@twinsun.com> |
2008 | |
2009 * sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid | |
2010 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead | |
2011 of 127, since 64 is the largest conceivable number for ancient | |
2012 nonstandard hosts. | |
2013 * sig2str.c: Do not include <sys/wait.h>; no longer needed. | |
2014 | |
3823 | 2015 2002-04-28 Jim Meyering <meyering@lucent.com> |
2016 | |
2017 * sig2str.c (WTERMSIG): Remove definition (unused). | |
2018 | |
3818 | 2019 2002-04-28 Paul Eggert <eggert@twinsun.com> |
2020 | |
2021 * sig2str.h, sig2str.c: New files. | |
3820 | 2022 * Makefile.am (libfetish_a_SOURCES): Add sig2str.h. |
3818 | 2023 |
3812 | 2024 2002-04-24 Jim Meyering <meyering@lucent.com> |
2025 | |
3818 | 2026 * gettext.h: New file, from Gettext. |
3812 | 2027 * Makefile.am (INCLUDES): Remove -I../intl. |
2028 (libfetish_a_SOURCES): Add gettext.h. | |
2029 | |
3808 | 2030 2002-04-16 Jim Meyering <meyering@lucent.com> |
2031 | |
2032 * readutmp.h (UT_TYPE): Remove definition (now in who.c). | |
2033 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define. | |
2034 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define. | |
2035 | |
3805 | 2036 2002-04-12 Jim Meyering <meyering@lucent.com> |
2037 | |
2038 * dirfd.h (dirfd): Elide prototype if dirfd is a macro. | |
2039 | |
3787 | 2040 2002-03-10 Jim Meyering <meyering@lucent.com> |
2041 | |
2042 * makepath.c (make_path): Remove a comma from a diagnostic. | |
2043 Suggestion from Santiago Vila. | |
2044 | |
3783 | 2045 2002-03-08 Jim Meyering <meyering@lucent.com> |
2046 | |
2047 * rename.c: Mention that this wrapper is needed also on | |
2048 mips-dec-ultrix4.4 systems. | |
2049 | |
3775 | 2050 2002-03-02 Jim Meyering <meyering@lucent.com> |
2051 | |
2052 * gettime.c (gettime): Test HAVE_CLOCK_GETTIME, | |
2053 not HAVE_CLOCK_SETTIME. | |
2054 | |
3771 | 2055 2002-02-27 Paul Eggert <eggert@twinsun.com> |
2056 | |
2057 * nanosleep.h: Rename to.... | |
2058 * timespec.h: New name for nanosleep.h. All uses changed. | |
2059 | |
2060 * gettime.c: New file. | |
2061 * settime.c: New file. | |
2062 * stime.c: Remove. | |
2063 | |
2064 * Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c, | |
2065 timespec.h. Remove nanosleep.h. | |
2066 | |
3757 | 2067 2002-02-25 Paul Eggert <eggert@twinsun.com> |
2068 | |
3763 | 2069 * acl.c, acl.h: New files. |
3757 | 2070 * Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c. |
2071 | |
2072 2002-02-24 Jim Meyering <meyering@lucent.com> | |
2073 | |
3777 | 2074 * strnlen.c (strnlen): Define-away/undef so that an inconsistent |
2075 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't | |
2076 cause trouble. Reported by Nelson Beebe. | |
3757 | 2077 |
3753 | 2078 2002-02-23 Paul Eggert <eggert@twinsun.com> |
2079 | |
2080 * path-concat.c (xpath_concat): Reorder code to pacify | |
2081 compilers that don't know that xalloc_die never returns. | |
2082 | |
3751 | 2083 2002-02-20 Jim Meyering <meyering@lucent.com> |
2084 | |
2085 * getdate.c: Regenerate using bison-1.33. | |
2086 | |
3733 | 2087 2002-02-15 Paul Eggert <eggert@twinsun.com> |
2088 | |
2089 * posixver.c, posixver.h: New files. | |
2090 * Makefile.am (libfetish_a_SOURCES): Add them. | |
2091 | |
3728 | 2092 2002-02-02 Paul Eggert <eggert@twinsun.com> |
2093 Bruno Haible <bruno@clisp.org> | |
2094 | |
2095 * unicodeio.h (print_unicode_char): Add exit_on_error argument. | |
2096 (fwrite_success_callback): New declaration. | |
2097 * unicodeio.c (unicode_to_mb): New function, extracted from | |
2098 print_unicode_char. Call failure callback instead of error. | |
2099 (fwrite_success_callback): New function. | |
2100 (exit_failure_callback): New function. | |
2101 (fallback_failure_callback): New function. | |
2102 (print_unicode_char): Call unicode_to_mb. | |
2103 | |
3723 | 2104 2002-01-26 Jim Meyering <meyering@lucent.com> |
2105 | |
2106 * Makefile.am (getdate$U.o): Depend on unlocked-io.h. | |
2107 | |
3720 | 2108 2002-01-22 Jim Meyering <meyering@lucent.com> |
2109 | |
2110 * Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES). | |
2111 Otherwise, some versions of automake would omit the rule that makes | |
2112 Makefile from Makefile.in. | |
2113 | |
3711 | 2114 2001-01-21 Paul Eggert <eggert@twinsun.com> |
2115 | |
2116 * xmemcoll.h, xmemcoll.c: New files. | |
2117 * Makefile.am (libfetish_a_SOURCES): Add them. | |
2118 * memcoll.c: Include errno.h, and declare errno if not defined. | |
2119 (memcoll): Set errno to zero if there is no error. | |
2120 | |
2121 * quotearg.c (quotearg_buffer_restyled): | |
2122 Fix bug with quoting buffers containing NUL when backslashing escapes. | |
2123 This bug was exposed by the other changes in this patch. | |
2124 (quotearg_n_options): New arg ARGSIZE. | |
2125 All callers changed. | |
2126 (quoting_options_from_style): New function. | |
2127 (quotearg_n_style): Use it. | |
2128 (quotearg_n_style_mem): New function. | |
2129 | |
2130 * quotearg.h (quotearg_n_style_mem): New function. | |
2131 | |
3698 | 2132 2002-01-16 Jim Meyering <meyering@lucent.com> |
2133 | |
2134 * getdate.y: Add three semicolons, each just before a closing brace. | |
2135 Bison (as of version 1.31) no longer papers over that mistake. | |
2136 | |
3703 | 2137 2002-02-14 Paul Eggert <eggert@twinsun.com> |
2138 | |
2139 * backupfile.c (ISDIGIT): Comment fix. | |
2140 * getdate.y (ISDIGIT): Likewise. | |
2141 * posixtm.c (ISDIGIT, year): Likewise. | |
2142 * strverscmp.c (ISDIGIT): Likewise. | |
2143 * userspec.c (ISDIGIT): Likewise. | |
2144 | |
3693 | 2145 2002-01-05 Jim Meyering <meyering@lucent.com> |
2146 | |
2147 * version-etc.c (version_etc_copyright): Update copyright year. | |
2148 | |
3691 | 2149 2001-01-19 Paul Eggert <eggert@twinsun.com> |
2150 | |
2151 * closeout.c (close_stdout_status): If ferror (stdout), do | |
2152 not silently exit merely because the output buffer happens to | |
2153 have nothing pending. | |
2154 | |
3689 | 2155 2001-12-18 Paul Eggert <eggert@twinsun.com> |
2156 | |
2157 See the big note in ../ChangeLog. | |
2158 * human.c (suffixes): Prefer K to k for 1024. | |
2159 (generate_suffix_backwards): New function. | |
2160 (human_readable_inexact): Use it. | |
3691 | 2161 * xstrtol.c (__xstrtol): If there is no number but there |
2162 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary. | |
2163 Accept 'K' as well as 'k'. | |
3689 | 2164 |
3683 | 2165 2001-12-15 Jim Meyering <meyering@lucent.com> |
2166 | |
3686 | 2167 * regex.h (__restrict_arr): Update from libc. |
2168 | |
3683 | 2169 * mountlist.h (ME_REMOTE): Recognize file systems of type smbfs |
2170 as `remote' if the name starts with `//'. Suggested by Michael Stone. | |
3686 | 2171 (STREQ): Define. |
3683 | 2172 |
3679 | 2173 2001-12-10 Jim Meyering <meyering@lucent.com> |
2174 | |
2175 * linebuffer.c: Remove explicit declarations of xmalloc and xrealloc, | |
2176 Instead, include "xalloc.h". | |
2177 (initbuffer): Don't cast xmalloc return value to char*. | |
2178 (readline): Reword comment. | |
2179 Don't cast xrealloc return value to char* | |
2180 Return NULL, not 0. | |
2181 | |
3669 | 2182 2001-12-09 Jim Meyering <meyering@lucent.com> |
2183 | |
3677 | 2184 * modechange.c (mode_compile): Add cast to avoid pedantic warning about |
3676 | 2185 `signed and unsigned type in conditional expression'. |
2186 * posixtm.c (posix_time_parse): Likewise. | |
2187 | |
3677 | 2188 * xreadlink.c (xreadlink): Add cast to avoid a pedantic warning. |
3676 | 2189 |
2190 * readtokens.c (readtoken): Declare an index to be of type unsigned | |
2191 to avoid a pedantic warning. | |
2192 | |
2193 * getstr.c: Don't include assert.h. | |
2194 (getstr): Remove warning-evoking assertions. | |
2195 Return -1 if offset parameter is out of bounds. | |
2196 Change the type of a local from int to size_t. | |
2197 | |
2198 * strftime.c (my_strftime_localtime_r): Include this function | |
2199 definition in the `#if ! HAVE_TM_GMTOFF' block. | |
2200 | |
3669 | 2201 * xgethostname.c: Remove declarations of xmalloc and xrealloc. |
2202 Include xalloc.h instead. | |
2203 | |
3664 | 2204 2001-12-02 Jim Meyering <meyering@lucent.com> |
2205 | |
3666 | 2206 * tempname.c: Don't declare getenv, thus reverting the change of |
2207 2001-11-18. It's no longer necessary, now that stdlib.h is always | |
2208 included. | |
2209 | |
3664 | 2210 * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded, |
4590 | 2211 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld. |
3664 | 2212 |
3662 | 2213 2001-11-30 Akim Demaille <akim@epita.fr> |
2214 | |
2215 * xstrdup.c: Include xalloc.h, so that xstrdup is declared | |
2216 before being defined. | |
2217 | |
3659 | 2218 2001-11-27 Paul Eggert <eggert@twinsun.com> |
2219 | |
2220 * quotearg.h (quotearg_n, quotearg_n_style): | |
2221 First arg is int, not unsigned. | |
2222 * quotearg.c (quotearg_n, quotearg_n_style): Likewise. | |
2223 (SIZE_MAX, UINT_MAX): New macros. | |
2224 (quotearg_n_options): Abort if N is negative. | |
2225 Avoid overflow check on hosts where size_t is 64 bits and int | |
2226 is 32 bits, as overflow is impossible there. | |
2227 Fix off-by-one typo that caused unnecessary reallocation. | |
2228 | |
3655 | 2229 2001-11-27 Jim Meyering <meyering@lucent.com> |
2230 | |
2231 * tempname.c: Merge with version from libc. | |
3659 | 2232 * regex.c: Likewise. |
3655 | 2233 |
2234 * tempname.c: Include stdlib.h unconditionally. On some old systems | |
2235 for which STDC_HEADERS is 0, it was not included, resulting in a | |
2236 warning about an integer-to-pointer conversion problem with getenv. | |
2237 Reported by Volker Borchert. | |
2238 | |
3651 | 2239 2001-11-26 Jim Meyering <meyering@lucent.com> |
2240 | |
2241 * gtod.h: Remove file. | |
3659 | 2242 * Makefile.am (libfetish_a_SOURCES): Remove gtod.h. |
3651 | 2243 * gettimeofday.c: Don't include gtod.h. |
2244 (GTOD_init): Remove function. | |
2245 (rpl_gettimeofday): Do its job here instead, rather than aborting. | |
2246 Suggestion from Volker Borchert. | |
2247 | |
3647 | 2248 2001-11-23 Jim Meyering <meyering@lucent.com> |
2249 | |
2250 * hash.h (struct hash_table): Don't define here. Merely declare it. | |
2251 * hash.c (struct hash_table): Define it here instead. | |
2252 | |
3644 | 2253 2001-11-22 Jim Meyering <meyering@lucent.com> |
2254 | |
2255 * hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif. | |
2256 | |
3636 | 2257 2001-11-18 Paul Eggert <eggert@twinsun.com> |
2258 | |
2259 * tempname.c (TMP_MAX): Remove; no longer needed. | |
2260 (TEMPORARIES): New macro. | |
2261 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This | |
2262 removes an artificial limitation (e.g. HP-UX 10.20, where | |
2263 TMP_MAX is 17576). | |
2264 | |
3627 | 2265 2001-11-18 Jim Meyering <meyering@lucent.com> |
2266 | |
2267 * tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
2268 on SunOS 4. |
3627 | 2269 |
3628 | 2270 * Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those |
2271 files will be created before anything else. | |
3627 | 2272 |
3615 | 2273 2001-11-17 Jim Meyering <meyering@lucent.com> |
2274 | |
3638 | 2275 * modechange.c (mode_adjust): Fix error introduced on 1999-04-26 |
2276 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable | |
2277 rather than group writable. Patch by Juan F. Codagnone. | |
2278 | |
3623 | 2279 * readtokens.c: Remove explicit declarations of xmalloc and xrealloc, |
2280 Instead, include "xalloc.h". | |
2281 | |
2282 * mountlist.c: Include unlocked-io.h after all system headers. | |
2283 Remove explicit declarations of xmalloc, xrealloc, | |
2284 and xstrdup. Instead, include "xalloc.h". | |
2285 | |
3619 | 2286 * argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h. |
2287 * fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise. | |
2288 * mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise. | |
3623 | 2289 |
3619 | 2290 * regex.c, sha.c, version-etc.c, yesno.c: Likewise. |
3620 | 2291 Reported by Padraig Brady. |
3619 | 2292 |
3615 | 2293 * mkstemp.c: #undef mkstemp. |
2294 Include config.h. | |
2295 (rpl_mkstemp): Rename from mkstemp. | |
2296 Protoize. | |
2297 | |
3608 | 2298 2001-11-16 Jim Meyering <meyering@lucent.com> |
2299 | |
2300 * physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>. | |
2301 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to | |
2302 determine the amount of total physical memory, use pstat_getstatic. | |
2303 HPUX-11 doesn't define _SC_PHYS_PAGES. | |
2304 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]: | |
2305 If sysconf couldn't be used to determine the amount of available | |
2306 physical memory, use both pstat_getstatic and pstat_getdynamic. | |
2307 Based on a patch from Bob Proulx. | |
2308 | |
3597 | 2309 2001-11-05 Jim Meyering <meyering@lucent.com> |
2310 | |
2311 * xstat.in (slash_aware_lstat): Correct a misleading comment. | |
2312 | |
3583 | 2313 2001-11-03 Jim Meyering <meyering@lucent.com> |
2314 | |
3591 | 2315 * argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args |
2316 in argmatch_to_argument call. | |
2317 | |
3586 | 2318 * dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an |
2319 argument. | |
2320 | |
3583 | 2321 * hash.c (hash_clear): Fix a bug that could lead to an infloop or |
2322 e.g., a fault due to an attempt to free a NULL pointer. | |
2323 | |
3565 | 2324 2001-11-01 Jim Meyering <meyering@lucent.com> |
2325 | |
3576 | 2326 * dirfd.c, dirfd.h: New files. |
3573 | 2327 * Makefile.am (libfetish_a_SOURCES): Add dirfd.h. |
2328 | |
3565 | 2329 * hash.c (hash_print) [TESTING]: Clean up. |
2330 | |
3562 | 2331 2001-10-22 Paul Eggert <eggert@twinsun.com> |
2332 | |
2333 * hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__, | |
2334 to avoid a warning if -Wall. | |
2335 | |
3560 | 2336 2001-10-21 Paul Eggert <eggert@twinsun.com> |
2337 | |
3562 | 2338 * regex.c (uintptr_t): Remove macro and decl; it's config.h's job. |
3560 | 2339 |
3553 | 2340 2001-10-21 Jim Meyering <meyering@lucent.com> |
2341 | |
2342 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, | |
2343 this code would end up calling gettext even in packages built | |
2344 with --disable-nls. | |
3555 | 2345 * getopt.c (_): Likewise. |
3557 | 2346 * regex.c (_): Likewise. |
3553 | 2347 |
3551 | 2348 2001-10-20 Paul Eggert <eggert@twinsun.com> |
2349 | |
2350 * error.c (strerror_r): Do not declare unless !_LIBC. | |
2351 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P. | |
2352 Use strerror_r that is only a macro, even if it is not a function. | |
2353 (strerror): Check for HAVE_DECL_STRERROR before declaring. | |
2354 (private_strerror): Use prototypes, not old-style function definition. | |
2355 (print_errno_message): New function. | |
2356 Support the POSIX 'int'-flavored strerror_r, as well as the traditional | |
2357 char*-flavored one. | |
2358 (error_tail, error, error_at_line): Use it. | |
2359 | |
3546 | 2360 2001-10-11 Jim Meyering <meyering@lucent.com> |
2361 | |
2362 * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ... | |
2363 and quote_n (1, ... to avoid clobbering a buffer. | |
2364 | |
3543 | 2365 2001-10-05 Jim Meyering <meyering@lucent.com> |
2366 | |
2367 * Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h. | |
2368 * hash-pjw.c: New file (factored out of fileutils' remove.c). | |
2369 * hash-pjw.h: New file. | |
2370 | |
3538 | 2371 2001-09-30 Jim Meyering <meyering@lucent.com> |
2372 | |
2373 * mountlist.c [MOUNTED_GETFSSTAT]: | |
2374 Include <sys/ucred.h>, for Apple Darwin. | |
2375 Include sys/mount.h and sys/fs_types.h only if available. | |
2376 (FS_TYPE): Define. | |
2377 (read_filesystem_list): Use FS_TYPE. | |
2378 | |
3536 | 2379 2001-09-29 Paul Eggert <eggert@twinsun.com> |
2380 | |
3562 | 2381 * exclude.c (excluded_filename): 0 -> false, since it's |
3536 | 2382 a boolean context. |
2383 | |
3526 | 2384 2001-09-28 Paul Eggert <eggert@twinsun.com> |
2385 | |
2386 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which | |
2387 #defines strtoimax. Also treat the other strto* functions | |
2388 like strtoimax. | |
2389 | |
2390 * xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL. | |
2391 (strtoul): Do not declare if HAVE_DECL_STRTOUL. | |
2392 (strtoimax, strtoumax): Do not declare if already defined as a macro. | |
2393 | |
3521 | 2394 2001-09-26 Jim Meyering <meyering@lucent.com> |
2395 | |
2396 Most macros in unlocked-io.h had the wrong number of arguments. | |
2397 * gen-uio: New script. | |
3524 | 2398 (USE_UNLOCKED_IO): Define to 1 if not already defined. |
3521 | 2399 * unlocked-io.hin: Remove file. |
2400 * Makefile.am (unlocked-io.h): Rewrite to use a separate script, | |
2401 rather than trying to embed it here. | |
2402 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin | |
2403 Reported by Padraig Brady. | |
2404 | |
3512 | 2405 2001-09-25 Volker Borchert <bt@teknon.de> |
2406 | |
2407 * gettimeofday.c (rpl_gettimeofday): Declare local variable `result'. | |
2408 | |
3503 | 2409 2001-09-23 Jim Meyering <meyering@lucent.com> |
2410 | |
2411 * mountlist.c: Remove useless parentheses in #if directives. | |
2412 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when | |
2413 the deprecated MOUNTED symbol is no longer defined in mntent.h. | |
2414 | |
3495 | 2415 2001-09-22 Jim Meyering <meyering@lucent.com> |
2416 | |
2417 * localcharset.c: Update from latest gettext. | |
2418 * config.charset: Likewise. | |
2419 | |
3493 | 2420 2001-09-20 Jim Meyering <meyering@lucent.com> |
2421 | |
2422 * xstrtol.c (strtoimax): Guard declaration with | |
2423 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'. | |
2424 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0) | |
2425 have their own, conflicting declaration of strtoimax in sys/inttypes.h. | |
2426 (strtoumax): Likewise, for completeness (it wasn't necessary). | |
2427 | |
3482 | 2428 2001-09-06 Paul Eggert <eggert@twinsun.com> |
2429 | |
2430 * strtoimax.c (HAVE_LONG_LONG): | |
2431 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned. | |
2432 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base), | |
2433 to work around bug in IBM C compiler. | |
2434 | |
3479 | 2435 2001-09-16 Jim Meyering <meyering@lucent.com> |
2436 | |
2437 * mkdir.c: New file. | |
2438 | |
3467 | 2439 2001-09-04 Paul Eggert <eggert@twinsun.com> |
2440 | |
2441 * xgetcwd.c: Revert some of the previous change; intead, | |
2442 fix the HAVE_GETCWD_NULL code to behave more like the | |
2443 !HAVE_GETCWD_NULL code used to. | |
2444 | |
2445 Include "xalloc.h". | |
2446 (xgetcwd): Do not return NULL when memory is exhausted; instead, | |
2447 invoke xalloc_die. | |
2448 | |
3465 | 2449 2001-09-04 Paul Eggert <eggert@twinsun.com> |
2450 | |
2451 * xreadlink.c (xreadlink): Omit size_t* arg. All uses changed. | |
2452 Use ssize_t, not int, to store result of readlink. | |
2453 Check for ssize_t overflow as well as size_t overflow, | |
2454 as POSIX says the result of readlink is implementation-defined | |
2455 when ssize_t overflows. | |
2456 Remove unnecessary cast to char*. | |
2457 Use free+malloc instead of realloc, as the storage doesn't need | |
2458 to be preserved and it's clearer and can be more efficient that way. | |
2459 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare. | |
2460 * xreadlink.h (xreadlink): Update prototype. | |
2461 | |
3460 | 2462 2001-09-03 Paul Eggert <eggert@twinsun.com> |
2463 | |
2464 * exclude.c (fnmatch_no_wildcards): Fix confusion between | |
2465 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was | |
2466 spotted by Jim Meyering. | |
2467 | |
3456 | 2468 2001-09-03 Jim Meyering <meyering@lucent.com> |
2469 | |
2470 * xreadlink.c (xreadlink): Preserve errno around `free' during failure. | |
2471 | |
2472 2001-09-03 Paul Eggert <eggert@twinsun.com> | |
2473 | |
2474 * xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more | |
2475 like the HAVE_GETCWD_NULL code. | |
2476 Include pathmax.h if not HAVE_GETCWD. | |
2477 Do not include xalloc.h. | |
2478 (INITIAL_BUFFER_SIZE): New symbol. | |
2479 Do not use xmalloc / xrealloc, since the caller is responsible for | |
2480 handling errors. Preserve errno around `free' during failure. | |
2481 Do not overrun buffer when using getwd. | |
2482 | |
3449 | 2483 2001-09-03 Paul Eggert <eggert@twinsun.com> |
2484 | |
2485 * xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined | |
2486 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0). | |
2487 | |
3447 | 2488 2001-09-02 Jim Meyering <meyering@lucent.com> |
2489 | |
2490 * error.c: Update from GNU libc. | |
2491 | |
3437 | 2492 2001-09-01 Jim Meyering <meyering@lucent.com> |
2493 | |
3442 | 2494 * xreadlink.c: New file. |
2495 * xreadlink.h: New file. | |
2496 * Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h. | |
2497 | |
3439 | 2498 * regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
2499 doesn't conflict with sparc Solaris 7's definition in |
3439 | 2500 /usr/include/sys/int_types.h. |
2501 | |
3437 | 2502 * exclude.c: Use `""', not `<>' to #include non-system header files. |
2503 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp | |
2504 and strncasecmp as r-values. Unixware didn't have declarations. | |
2505 | |
3434 | 2506 2001-08-31 Jim Meyering <meyering@lucent.com> |
2507 | |
2508 * xgetcwd.c (xgetcwd): Reorganize to avoid some duplication. | |
2509 Use an initial, malloc'd, buffer of length 128 rather than | |
2510 a statically allocated one of length 1024. | |
2511 | |
3432 | 2512 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2513 | |
3562 | 2514 * xgetcwd.c: Don't include pathmax.h. |
3432 | 2515 Include stdlib.h and unistd.h if available. |
2516 Include xalloc.h. | |
2517 (xmalloc, xstrdup, free): Remove decls. | |
2518 (xgetcwd): Don't assume sizes fit in unsigned. | |
2519 Check for overflow when computing sizes. | |
2520 Simplify reallocation code. | |
2521 | |
3422 | 2522 2001-08-28 Paul Eggert <eggert@twinsun.com> |
2523 | |
2524 * Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c. | |
2525 | |
2526 * strtoimax.c: Renamed from strtoxmax.c, removing the | |
2527 old strtoimax.c. | |
2528 | |
2529 Also, make the following further changes to make this file's | |
2530 configuration more similar to that of strtol.c: | |
2531 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed. | |
2532 (strtoumax, uintmax_t, strtoull, strtol): Remove. | |
2533 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED. | |
2534 (strtoimax): Renamed from strtoumax. All uses of unsigned values | |
2535 changed to signed values. | |
2536 | |
2537 And make the following changes as well: | |
2538 Fix copyright notice, as 1999 was missing. | |
2539 (verify): New macro. | |
2540 (strtoimax): Check sizes at compile-time, not run-time. | |
2541 Prefer strtol to strtoll if both work. | |
2542 (main): Remove; it was not that useful and was a pain to maintain. | |
2543 | |
2544 * strtoumax.c: Include strtoimax.c, not strtouxmax.c. | |
2545 | |
3415 | 2546 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2547 | |
3422 | 2548 * savedir.c (savedir): Remove size parameter, as POSIX says that |
2549 a directory's st_size can have an arbitrary value, so the old | |
2550 usage could waste an arbitrary amount of memory. All uses | |
2551 changed. | |
2552 * savedir.h: Update prototype. | |
2553 | |
2554 2001-08-30 Paul Eggert <eggert@twinsun.com> | |
2555 | |
2556 * xstrtol.c (strtoimax): New decl. | |
3415 | 2557 |
3413 | 2558 2001-08-28 Paul Eggert <eggert@twinsun.com> |
2559 | |
3422 | 2560 * xstrtol.h: Add copyright notice. |
3413 | 2561 (_DECLARE_XSTRTOL): Improve quality of diagnostic for |
2562 LONGINT_INVALID_SUFFIX_CHAR. | |
2563 | |
3411 | 2564 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2565 | |
2566 * quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct | |
2567 tm to be declared. | |
2568 | |
3409 | 2569 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2570 | |
2571 * hash.c: Remove '2001' from copyright notice. | |
2572 | |
3405 | 2573 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2574 | |
2575 * full-write.h: New file. | |
2576 * Makefile.am (libfetish_a_SOURCES): Add full-write.h. | |
2577 * full-write.c: Correct credits, as cccp.c no longer | |
2578 exists and anyway it was so heavily changed from the old cccp | |
2579 code as to be unrecognizable. Include full-write.h. | |
2580 (full_write) Return size_t, with short writes meaning failure. | |
2581 All callers changed. This fixes a bug with large buffers | |
2582 on 64-bit hosts. | |
2583 * utime.c: Include full-write.h. | |
2584 | |
3397 | 2585 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2586 | |
3400 | 2587 Merge 'exclude' changes from tar 1.13.22. |
2588 This fixes one or two unlikely storage allocation overflow bugs, | |
2589 but doesn't change user-visible behavior otherwise. | |
2590 | |
3405 | 2591 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2592 | |
3400 | 2593 * exclude.c (bool): Declare, perhaps by including stdbool.h. |
2594 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H. | |
2595 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>): | |
2596 Include if available. | |
2597 (<xalloc.h>): Include | |
2598 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't. | |
2599 (verify): New macro. Use it to verify that EXCLUDE macros do not | |
2600 collide with FNM macros. | |
2601 (struct patopts): New struct. | |
2602 (struct exclude): Use it, as exclude patterns now come with options. | |
2603 (new_exclude): Support above changes. | |
2604 (new_exclude, add_exclude_file): | |
2605 Initial size must now be a power of two to simplify overflow checking. | |
2606 (free_exclude, fnmatch_no_wildcards): New function. | |
2607 (excluded_filename): No longer requires options arg, as the options | |
2608 are determined by add_exclude. Now returns bool, not int. | |
2609 (excluded_filename, add_exclude): | |
2610 Add support for the fancy new exclusion options. | |
2611 (add_exclude, add_exclude_file): Now takes int options arg. | |
2612 Check for arithmetic overflow when computing sizes. | |
2613 (add_exclude_file): xrealloc might modify errno, so don't | |
2614 realloc until after errno might be used. | |
2615 | |
2616 * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): | |
2617 New macros. | |
2618 (free_exclude): New decl. | |
2619 (add_exclude, add_exclude_file): Now takes int options arg. | |
2620 (excluded_filename): No longer requires options arg, as the options | |
2621 are determined by add_exclude. Now returns bool, not int. | |
2622 | |
3405 | 2623 2001-08-30 Paul Eggert <eggert@twinsun.com> |
2624 | |
2625 * alloca.c (alloca): Arg is of type size_t, not unsigned. | |
3397 | 2626 |
3387 | 2627 2001-08-27 Jim Meyering <meyering@lucent.com> |
2628 | |
3391 | 2629 * Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c |
2630 | |
2631 * version-etc.c (N_): Remove definition. | |
2632 Revert most of last change. | |
2633 Instead, simply don't mark the `Copyright...' string for translation. | |
2634 Based on advice from Paul Eggert. | |
2635 | |
3387 | 2636 * strtoxmax.c: Tweak comment. |
2637 | |
3368 | 2638 2001-08-26 Jim Meyering <meyering@lucent.com> |
2639 | |
3387 | 2640 * version-etc.c (version_etc_copyright_fmt): Replace literal year |
2641 of copyright with `%s' so translators don't get an untranslated | |
2642 message in 2002. | |
2643 (COPYRIGHT_YEAR): Define. | |
2644 (version_etc): Use fprintf rather than fputs. | |
2645 Suggestion from Ulrich Drepper. | |
2646 | |
3378 | 2647 * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c. |
2648 | |
3375 | 2649 * strtoll.c: New file, from GNU libc. |
3368 | 2650 * xstrtoimax.c: New file. |
2651 | |
3380 | 2652 * xstrtol.h: Add xstrtoimax. |
3368 | 2653 * strtoumax.c: New file. Simply include "strtoumax.c". |
2654 * strtoimax.c: New file. Likewise, but first define STRTOUXMAX_SIGNED. | |
2655 | |
2656 * strtoumax.c: Factor to work both for unsigned and signed types, ... | |
3387 | 2657 * strtoxmax.c: ... then renamed to this. |
3368 | 2658 |
3348 | 2659 2001-08-13 Paul Eggert <eggert@twinsun.com> |
2660 | |
2661 * Makefile.am (unlocked-io.h): Do not append "_unlocked" twice. | |
2662 Port to Solaris 8, where 'sed' requires a space after the 'r' | |
2663 command, and where sh dislikes "$/". Clean up the spacing a bit. | |
2664 Redirect output to $tmp just once. | |
2665 | |
3346 | 2666 2001-08-12 Paul Eggert <eggert@sic.twinsun.com> |
2667 | |
3411 | 2668 * addext.c (<errno.h>): Include. |
3346 | 2669 (errno): Declare if not defined. |
2670 (addext): Work correctly when pathconf returns -1 and leaves | |
2671 errno alone because there is no limit. Also, work even if | |
2672 pathconf returns a value greater than SIZE_MAX. | |
2673 | |
3344 | 2674 2001-08-12 Jim Meyering <meyering@lucent.com> |
2675 | |
2676 * xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]: | |
2677 Simply `return getcwd (NULL, 0);'. | |
2678 [! (defined __GLIBC__ && __GLIBC__ >= 2)]: | |
2679 Use 1300 as initial value for length, not PATH_MAX. | |
2680 | |
2681 * pathmax.h: Clean up cpp syntax. | |
2682 | |
3334 | 2683 2001-08-12 Jim Meyering <meyering@lucent.com> |
2684 | |
2685 * gettimeofday.c: New file. | |
2686 * gtod.h: New file. | |
2687 * Makefile.am (libfetish_a_SOURCES): Add gtod.h. | |
2688 | |
3329 | 2689 2001-08-04 Jim Meyering <meyering@lucent.com> |
2690 | |
2691 * error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt, | |
2692 to get in sync with glibc. | |
2693 | |
3327 | 2694 2001-08-03 Paul Eggert <eggert@twinsun.com> |
2695 | |
2696 The following changes are from gettext 0.10.39 as maintained by | |
2697 Bruno Haible. | |
2698 | |
2699 * mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID): | |
2700 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID | |
2701 with inverted sense. All uses changed. | |
2702 | |
2703 * mbswidth.c: Don't include <limits.h>. | |
2704 Include <stdlib.h> and <string.h> unconditionally. | |
2705 (iswcntrl, mbsinit, ISCNTRL): New macros. | |
2706 (mbsnwidth): Use K&R style function declarations. | |
2707 Don't bother checking for MB_LEN_MAX == 1, since the compiler | |
2708 can optimize it when MB_CUR_MAX == 1. | |
2709 The width of control characters is zero, not 1. | |
2710 | |
3300 | 2711 2001-07-15 Jim Meyering <meyering@lucent.com> |
2712 | |
3301 | 2713 * Makefile.am (EXTRA_DIST): Add unlocked-io.hin. |
2714 (BUILT_SOURCES): Add unlocked-io.h. | |
2715 (io_functions): Define. | |
2716 (unlocked-io.h): New rule. | |
3304 | 2717 (DISTCLEANFILES): Add unlocked-io.h. |
3306 | 2718 (all-local): Depend on unlocked-io.h, to ensure it is created. |
3304 | 2719 |
3301 | 2720 * unlocked-io.hin: New file |
2721 | |
3300 | 2722 * regex.c: Update from glibc. |
2723 | |
3290 | 2724 2001-07-05 Jim Meyering <meyering@lucent.com> |
2725 | |
2726 * Makefile.am (noinst_HEADERS): Remove definition, per new automake | |
2727 recommendation. | |
2728 (libfetish_a_SOURCES): Put all .h files here instead. | |
2729 Remove a thus-exposed (better checks in automake) duplicate and | |
2730 two unnecessary .h files. | |
2731 | |
3279 | 2732 2001-06-11 Jim Meyering <meyering@lucent.com> |
2733 | |
2734 * regex.c: Update from GNU libc. | |
2735 | |
3277 | 2736 2001-05-27 Jim Meyering <meyering@lucent.com> |
2737 | |
2738 * readutmp.h (UT_TYPE): Define. | |
2739 | |
3273 | 2740 2001-05-24 Jim Meyering <meyering@lucent.com> |
2741 | |
2742 * argmatch.c: Include "quote.h". | |
2743 (argmatch_invalid): Remove explicit `' quotes. Instead, use the | |
4366
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
2744 quote function. Reported by Göran Uddeborg. |
3273 | 2745 |
3264 | 2746 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr> |
2747 | |
2748 * dirname.c (dir_name): Compute append_dot using path, not newpath | |
2749 which is not yet declared. | |
2750 | |
2751 2001-05-11 Paul Eggert <eggert@twinsun.com> | |
2752 | |
3411 | 2753 * Makefile.am (libfetish_a_SOURCES): |
3264 | 2754 Add strftime.c, since we now compile it on all hosts. |
2755 | |
3411 | 2756 * strftime.c (my_strftime): |
3264 | 2757 Define to nstrftime if emacs, but only if my_strftime is not defined. |
2758 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from | |
2759 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively. | |
2760 Add one more extra argument: a nanoseconds value. | |
2761 All uses changed. | |
2762 (ns): New macro. | |
2763 (my_strftime function): Add %N format. | |
2764 (emacs_strftimeu): Renamed from emacs_strftime, | |
2765 with extra ut argument. | |
2766 | |
3249 | 2767 2001-05-11 Paul Eggert <eggert@twinsun.com> |
2768 | |
2769 dirname code cleanup. base_name now behaves more compatibly | |
2770 with POSIX basename when given file names that have trailing | |
2771 slashes, and similarly for dir_name. Add new primitives | |
2772 base_len and dir_len. Put the directory-name-related decls | |
2773 into dirname.h. | |
2774 | |
2775 * addext.c (ISSLASH, base_name): Remove; now in dirname.h. | |
2776 * backupfile.c (base_name): Likewise. | |
2777 * basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise. | |
2778 * dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise. | |
2779 * makepath.c (strip_trailing_slashes): Likewise. | |
2780 * path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): | |
2781 Likewise. | |
2782 * rename.c (strip_trailing_slashes): Likewise. | |
2783 * same.c (base_name): Likewise. | |
2784 * stripslash.c (ISSLASH): Likewise. | |
2785 | |
2786 * addext.c: Include <dirname.h> after size_t is defined. | |
2787 * backupfile.c: Likewise. | |
2788 | |
2789 * addext.c (addext): Use base_len to trim redundant | |
2790 trailing slashes instead of doing it ourselves. | |
2791 But do not trim the last slash if it is not redundant. | |
2792 | |
2793 * backupfile.c (find_backup_file_name, | |
2794 max_backup_version): Use base_len instead of rolling it ourselves. | |
2795 Handle the case of "" and (on DOS) "C:" correctly. | |
2796 | |
2797 * basename.c: Do not include <stdio.h>, <assert.h>; no longer needed. | |
2798 Include <string.h>, <dirname.h>. | |
2799 (base_name): Allow file names ending in slashes, other than names | |
2800 that are all slashes. In this case, return the basename followed | |
2801 by the slashes. This is more general, and can be used in places | |
2802 where the original base_name purposely had an assertion failure. | |
2803 (base_len): New function. | |
2804 | |
2805 * dirname.c: Include <string.h> instead of <stdlib.h>. | |
2806 Do not include <assert.h>; no longer needed. | |
2807 Include xalloc.h. | |
2808 (memrchr): Remove decl. | |
2809 (dir_name_r): Remove. | |
2810 (dir_len): Renamed from dirlen. All callers changed. | |
2811 Rewrite in terms of base_name, for simplicity and consistency. | |
2812 (dir_name): Never return NULL. All callers changed. | |
2813 Do not include <stdlib.h> in test program; no longer needed. | |
2814 return 0; is fine for test program. | |
2815 | |
2816 * dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): | |
2817 New macros. | |
2818 (base_name, base_len, dir_len, strip_trailing_slashes): New decls. | |
2819 | |
2820 * path-concat.c (path_concat): Use base_len to compute | |
2821 base length, not strlen; this means we cannot rely on memcpy | |
2822 to null-terminate. | |
2823 | |
2824 * same.c (STREQ): Remove. | |
2825 (same_name): Handle the case where the basename ends in trailing '/'. | |
2826 | |
2827 * stripslash.c (strip_trailing_slashes): Return nonzero if | |
2828 a slash was stripped. Do not strip the last slash after a | |
2829 file system prefix. | |
2830 | |
3229 | 2831 2001-04-08 Jim Meyering <meyering@lucent.com> |
2832 | |
2833 * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is | |
2834 recomputed; that's necessary when the offset spans a DST transition. | |
2835 Patch by David J. MacKenzie. Reported by Hon-Yin Kok. | |
2836 | |
3226 | 2837 2001-04-02 Jim Meyering <meyering@lucent.com> |
2838 | |
2839 * regex.h, regex.c: Update from GNU libc. | |
2840 | |
3221 | 2841 2001-03-19 Paul Eggert <eggert@twinsun.com> |
2842 | |
3249 | 2843 * version-etc.c (version_etc_copyright): Update to 2001. |
3221 | 2844 |
3213 | 2845 2001-03-16 Paul Eggert <eggert@twinsun.com> |
2846 | |
2847 * tempname.c (uint64_t): Define to uintmax_t if | |
2848 not defined, and if UINT64_MAX is not defined. | |
2849 Required at least for Vax Ultrix4.3, which doesn't define uint64_t. | |
2850 Reported by John David Anglin. | |
2851 | |
3211 | 2852 2001-03-10 Bruno Haible <haible@clisp.cons.org> |
2853 | |
2854 * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve | |
2855 alias if codeset is empty. | |
2856 * config.charset (BeOS): Use wildcard syntax. | |
2857 | |
3208 | 2858 2001-03-13 Jim Meyering <meyering@lucent.com> |
2859 | |
2860 * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: | |
2861 Don't insert a backslash when concatenating e.g., `C:' and `foo'. | |
2862 From Bruno Haible. | |
2863 | |
3204 | 2864 2001-03-06 Bruno Haible <haible@clisp.cons.org> |
2865 | |
2866 * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL). | |
2867 Don't return NULL. | |
2868 * unicodeio.c (print_unicode_char): Simplify accordingly. | |
2869 | |
3201 | 2870 2001-03-06 Bruno Haible <haible@clisp.cons.org> |
2871 | |
2872 * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add | |
2873 support for DOS/DJGPP. | |
2874 | |
3197 | 2875 2001-02-28 Paul Eggert <eggert@twinsun.com> |
2876 | |
2877 * Makefile.am (libfetish_a_SOURCES): | |
2878 Add dup-safer.c, fopen-safer.c. | |
2879 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h. | |
2880 | |
3411 | 2881 * dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files. |
3197 | 2882 |
3195 | 2883 2001-02-25 Paul Eggert <eggert@twinsun.com> |
2884 | |
2885 The mkstemp replacement is taken from glibc 2.2.2, with some | |
2886 portability fixes for use outside glibc, as follows: | |
2887 | |
2888 * tempname.c (struct_stat64): New macro. | |
2889 (direxists, __gen_tempname): Use it. | |
2890 This avoids a portability problem with Solaris 8. | |
2891 | |
2892 * tempname.c (<config.h>): Include if HAVE_CONFIG_H. | |
2893 (<stddef.h>, <stdint.h>, <string.h>): | |
2894 Include only if STDC_HEADERS || _LIBC. | |
2895 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC. | |
2896 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC. | |
2897 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC. | |
2898 (__set_errno): Define this macro if <errno.h> doesn't. | |
2899 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE): | |
2900 Define these macros if <stdio.h> doesn't. | |
2901 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR): | |
2902 Define these macros if <sys/stat.h> | |
2903 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN. | |
2904 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64, | |
2905 __xstat64): Define if not _LIBC. | |
2906 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC). | |
2907 (__gen_tempname): Invoke gettimeofday only if | |
2908 HAVE_GETTIMEOFDAY || _LIBC; | |
2909 otherwise, fall back on plain "time". | |
2910 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600. | |
2911 | |
2912 * mkstemp.c (__GT_FILE): Define to zero if not defined. | |
2913 | |
2914 * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2. | |
2915 | |
3182 | 2916 2001-02-17 Jim Meyering <meyering@lucent.com> |
2917 | |
3186 | 2918 * strtoul.c: Sync from GNU libc. Use double quotes, not <...> |
2919 around included file name. | |
2920 | |
3184 | 2921 * strnlen.c (__strnlen): Merge in a change from GNU libc. |
2922 | |
2923 * strftime.c: Update from GNU libc (the only changes were to comments). | |
3182 | 2924 |
3177 | 2925 2001-02-13 Bruno Haible <haible@clisp.cons.org> |
2926 | |
2927 * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash. | |
2928 | |
3173 | 2929 2001-02-17 Paul Eggert <eggert@twinsun.com> |
2930 | |
2931 * mbswidth.c, quotearg.c (mbrtowc, mbsinit): | |
2932 Remove workaround macros for hosts that have mbrtowc but not | |
2933 mbstate_t, as we now insist on proper declarations for both | |
2934 before using mbrtowc. | |
2935 | |
3166 | 2936 2001-02-17 Jim Meyering <meyering@lucent.com> |
2937 | |
2938 * regex.c: Update from libc. | |
2939 | |
3163 | 2940 2001-02-16 Paul Eggert <eggert@twinsun.com> |
2941 | |
3195 | 2942 * alloca.c (malloc): Undef before defining, since stdlib.h |
3164 | 2943 may have defined it. Needed for Encore Umax-3.0.9.16b systems. |
2944 Reported by Mark Hounschell via Paul Eggert. | |
3163 | 2945 |
3149 | 2946 2001-01-30 Bruno Haible <haible@clisp.cons.org> |
2947 | |
2948 * config.charset: Update for FreeBSD 4.2. | |
2949 | |
3131 | 2950 2001-01-26 Jim Meyering <meyering@lucent.com> |
2951 | |
3133 | 2952 * quotearg.c: Include stddef.h. |
2953 * quote.c: Include stddef.h. | |
2954 Reported by Axel Kittenberger. | |
2955 | |
3131 | 2956 * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking |
2957 line in double quotes so that it evokes a better diagnostic. | |
2958 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise. | |
2959 Reported by Axel Kittenberger. | |
2960 | |
3124 | 2961 2001-01-15 Bruno Haible <haible@clisp.cons.org> |
2962 | |
2963 * unicodeio.c (print_unicode_char): Cast the second iconv() arg, | |
2964 to avoid a warning. Add back 'const' to inptr. | |
2965 | |
3108 | 2966 2001-01-16 Jim Meyering <meyering@lucent.com> |
2967 | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
2968 * basename.c: Include <stdio.h>, needed by assert on SunOS 4. |
3108 | 2969 From Bruno Haible. |
2970 | |
3103 | 2971 2001-01-14 Jim Meyering <meyering@lucent.com> |
2972 | |
2973 * rename.c: New file. From Volker Borchert. | |
2974 Include stdlib.h, string.h or strings.h, and xalloc.h. | |
2975 Use strip_trailing_slashes rather than open-coding it. | |
2976 | |
3095 | 2977 2001-01-03 Paul Eggert <eggert@twinsun.com> |
2978 | |
3195 | 2979 * strftime.c: Sync with glibc time/strftime.c 1.81. |
3095 | 2980 |
3091 | 2981 2001-01-03 Jim Meyering <meyering@lucent.com> |
2982 | |
2983 * unicodeio.c (print_unicode_char): Remove `const' from declaration of | |
2984 local `inptr' to avoid warning with some system declarations of iconv. | |
2985 | |
3082 | 2986 2000-12-29 Paul Eggert <eggert@twinsun.com> |
2987 | |
3195 | 2988 * modechange.c: Do not assume that mode_t uses the |
3082 | 2989 traditional octal encoding. E.g. "chmod 1 FOO" should set |
2990 the other-execute bit of FOO even if S_IXOTH != 1. | |
2991 | |
2992 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH, | |
2993 WOTH, XOTH, ALLM): New macros. | |
2994 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, | |
2995 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): | |
2996 Use them. | |
2997 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID. | |
2998 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above. | |
2999 (mode_compile): | |
3000 No need to use uintmax_t; unsigned long is long enough. | |
3001 Don't bother to get suffix since we don't use it. | |
3002 | |
3074 | 3003 2000-12-24 Jim Meyering <meyering@lucent.com> |
3004 | |
3005 * hash.c (is_prime): Return explicit boolean values. | |
3006 (hash_get_first): Return NULL to appease Irix5.6's 89. | |
3075 | 3007 Reported by Nelson Beebe. |
3074 | 3008 |
3063 | 3009 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
3010 | |
3011 * localcharset.c (locale_charset): Add support for Win32. | |
3012 | |
3013 2000-12-18 Paul Eggert <eggert@twinsun.com> | |
3014 | |
3067 | 3015 * physmem.h, physmem.c: New files. |
3063 | 3016 |
3067 | 3017 * Makefile.am (libfetish_a_SOURCES): Add physmem.c. |
3063 | 3018 (noinst_HEADERS): Add physmem.h. |
3019 | |
3067 | 3020 * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and |
3063 | 3021 't' for compatibility with Solaris 8 sort. |
3022 | |
3061 | 3023 2000-12-18 Bruno Haible <haible@clisp.cons.org> |
3024 | |
3025 * config.charset: Add support for BeOS. | |
3026 | |
3053 | 3027 2000-12-16 Jim Meyering <meyering@lucent.com> |
3028 | |
3029 * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define | |
3030 SHELLS_FILE to a file name that's useful on djgpp systems. | |
3031 Include stdlib.h. | |
3032 (ADDITIONAL_DEFAULT_SHELLS): Define. | |
3033 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS. | |
3034 Based mostly on a patch from Prashant TR. | |
3035 | |
3051 | 3036 2000-12-16 Jim Meyering <meyering@lucent.com> |
3037 | |
3038 This bug had a serious impact on chown: `chown N:M FILE' (for integer | |
3039 N and M) would have treated it like `chown N:N FILE'. | |
3040 | |
3041 * userspec.c (parse_user_spec): Fix typo: s/u/g/. | |
3042 | |
3054 | 3043 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
3044 | |
3045 * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII, | |
3046 CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257 | |
3047 to the list of canonical encodings. Rename EUC-CN to GB2312. | |
3048 | |
3044 | 3049 2000-12-08 Andreas Schwab <schwab@suse.de> |
3050 | |
3051 * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an | |
3052 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set. | |
3053 | |
3039 | 3054 2000-12-07 Jim Meyering <meyering@lucent.com> |
3055 | |
3042 | 3056 * stripslash.c (ISSLASH): Define. |
3057 (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'. | |
3058 From Prashant TR. | |
3059 | |
3039 | 3060 * dirname.c (FILESYSTEM_PREFIX_LEN): Define. |
3061 (dir_name_r): Declare this function as static. | |
3062 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd | |
3063 manifest itself on a name containing a mix of slashes and | |
3064 backslashes. | |
3065 Make this function work with names starting with a DOS-style | |
3066 drive letter and colon prefix. | |
3067 (dir_name): Append `.' if necessary. | |
3068 Based mostly on patches from Prashant TR and Eli Zaretskii. | |
3069 | |
3070 * dirname.h (dir_name_r): Remove prototype. | |
3071 | |
3028 | 3072 2000-12-05 Jim Meyering <meyering@lucent.com> |
3073 | |
3074 * dirname.c (dir_name_r): Add `const' in a few local declarations. | |
3075 | |
3023 | 3076 2000-12-04 Jim Meyering <meyering@lucent.com> |
3077 | |
3078 * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc. | |
3025 | 3079 Also include memory.h, stdlib.h, unistd.h if appropriate. |
3026 | 3080 Reported by Andreas Jaeger (conflicting declaration of malloc). |
3023 | 3081 |
3020 | 3082 2000-12-02 Jim Meyering <meyering@lucent.com> |
3083 | |
3084 * closeout.h: Make idempotent, to avoid some obscure warnings. | |
3085 | |
3010 | 3086 2000-12-01 Paul Eggert <eggert@twinsun.com> |
3087 | |
3195 | 3088 * memrchr.c: Include <config.h> before any system include file. |
3010 | 3089 |
3005 | 3090 2000-11-29 Paul Eggert <eggert@twinsun.com> |
3091 | |
3195 | 3092 * dirname.c (dir_name_r): Fix typo: int -> size_t. |
3005 | 3093 |
2998 | 3094 2000-11-26 Jim Meyering <meyering@lucent.com> |
3095 | |
3096 * memcoll.c: Include sys/types.h. From Werner Almesberger. | |
3097 | |
2994 | 3098 2000-11-22 Paul Eggert <eggert@twinsun.com> |
3099 | |
3195 | 3100 * strftime.c (my_strftime): Do not invoke mbrlen with a |
2994 | 3101 size of (size_t) -1; it's not portable. |
3102 | |
2992 | 3103 2000-11-17 Akim Demaille <akim@epita.fr> |
3104 | |
3195 | 3105 * obstack.h: Formatting changes. |
2992 | 3106 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would |
3107 prevent type checking. | |
3108 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't | |
3109 cast the value to (void *): assigning a `foo *' to a `void *' | |
3110 variable is valid. | |
3111 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int. | |
3112 | |
2989 | 3113 2000-11-17 Jim Meyering <meyering@lucent.com> |
3114 | |
3115 * strstr.c: Update from GNU libc. | |
3116 | |
2987 | 3117 2000-11-16 Jim Meyering <meyering@lucent.com> |
3118 | |
3119 * strverscmp.c: Incorporate weak-alias-related changes from glibc. | |
3120 | |
3121 2000-11-11 Jim Meyering <meyering@lucent.com> | |
3122 | |
3123 * error.c: Add a couple #includes, merging from GNU libc version. | |
3124 | |
2980 | 3125 2000-11-10 Jim Meyering <meyering@lucent.com> |
3126 | |
3127 * obstack.h: Update from GNU libc. | |
3128 * obstack.c: Likewise. | |
3129 | |
2967 | 3130 2000-11-06 Paul Eggert <eggert@twinsun.com> |
3131 | |
2981 | 3132 * getusershell.c (setusershell): Use rewind rather than |
2967 | 3133 fseek/fseeko, to avoid configuration hassles with fseeko. |
3134 Don't bother opening SHELLS_FILE if shellstream is NULL; | |
3135 it's not necessary. | |
3136 | |
2965 | 3137 2000-11-05 Jim Meyering <meyering@lucent.com> |
3138 | |
3139 * makepath.h (make_dir): Declare. | |
3140 * makepath.c (make_dir): Remove `static' attribute. | |
3141 Tweak a comment. | |
3142 | |
2957 | 3143 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr> |
3144 | |
3145 * hash.c (hash_get_next): Fix a thinko: when ENTRY is the | |
3146 last one in a bucket, advance to the next bucket. | |
3147 | |
2955 | 3148 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg> |
3149 | |
2981 | 3150 * fnmatch.c: Do not comment out all the code if we are using |
2955 | 3151 the GNU C library, because in some cases we are replacing buggy |
3152 code in the GNU C library itself. | |
3153 | |
2952 | 3154 2000-10-30 Paul Eggert <eggert@twinsun.com> |
3155 | |
2981 | 3156 * error.h, getline.h, modechange.h: |
2952 | 3157 Remove "2000" from Copyright line, as the file hasn't been |
3158 changed this year other than in the copyright notice. | |
3159 | |
2981 | 3160 * xalloc.h: Add "2000" to Copyright line, as this file |
2952 | 3161 was changed this year. |
3162 | |
2949 | 3163 2000-10-30 Paul Eggert <eggert@twinsun.com> |
3164 | |
2981 | 3165 * fnmatch.c (FOLD): Do not assume that characters are unsigned. |
2949 | 3166 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs, |
3167 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero. | |
3168 | |
2941 | 3169 2000-10-29 Greg Louis <glouis@dynamicro.on.ca> |
3170 | |
3171 * regex.h (__restrict_arr): Move definition out of #ifndef block. | |
3172 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but | |
3173 doesn't define __restrict_arr. | |
3174 | |
2939 | 3175 2000-10-29 Jim Meyering <meyering@lucent.com> |
3176 | |
3177 * xstat.in: Fix grammar in comment. | |
3178 | |
2929 | 3179 2000-10-28 Jim Meyering <meyering@lucent.com> |
3180 | |
2933 | 3181 * memchr.c: Update from libc. |
3182 Adjust for portability: | |
3183 [HAVE_STDLIB_H]: Include stdlib.h. | |
3184 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h. | |
3185 Undef __memchr, too. | |
3186 [!weak_alias]: Define __memchr to memchr. | |
3187 | |
2931 | 3188 * regex.c: Update from libc. |
3189 * regex.h: Likewise. | |
3190 * getopt1.c: Likewise. | |
2935 | 3191 * memcmp.c: Likewise. |
2931 | 3192 |
2942
c5e4ce044bd7
fix typo: s/fseek0/fseeko/
Jim Meyering <jim@meyering.net>
parents:
2941
diff
changeset
|
3193 * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko. |
2967 | 3194 Avoid using fseek, when possible -- it's broken by design. |
2929 | 3195 Patch by Ulrich Drepper. |
3196 | |
2924 | 3197 2000-10-26 Jim Meyering <meyering@lucent.com> |
3198 | |
3199 * strftime.c: Update from libc. | |
3200 | |
2918 | 3201 2000-10-25 Jim Meyering <meyering@lucent.com> |
3202 | |
3203 * obstack.c: Update from libc. | |
3204 | |
2911 | 3205 2000-10-23 Jim Meyering <meyering@lucent.com> |
3206 | |
3207 * hard-locale.c (hard_locale): Revert last change -- it was simply | |
3208 wrong. That set_locale call must not have any side effects. | |
3209 From Paul Eggert. | |
3210 | |
2904 | 3211 2000-10-22 Jim Meyering <meyering@lucent.com> |
3212 | |
2907 | 3213 * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC. |
3214 [CYCLIC]: Remove now-unused definition. | |
3215 | |
2904 | 3216 * save-cwd.c (O_DIRECTORY): Define, if needed. |
3217 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".". | |
3218 Suggestion from Ulrich Drepper. | |
3219 | |
2893 | 3220 2000-10-21 Jim Meyering <meyering@lucent.com> |
3221 | |
2920 | 3222 * dirname.c (dir_name_r): New function, factored out of dir_name. |
3223 (dir_name): Use dir_name_r. | |
3224 * dirname.h (dir_name_r): Declare it. | |
3225 | |
3226 2000-10-21 Jim Meyering <meyering@lucent.com> | |
3227 | |
2898 | 3228 * dirname.c (memrchr): Declare if necessary. |
3229 (dir_name): Remove the restriction that there be no | |
3230 trailing slashes. Now, this code skips past them, effectively | |
3231 ignoring them. | |
3232 [TEST_DIRNAME] (main): New unit tests. | |
3233 | |
2893 | 3234 * memrchr.c: New file from GNU libc. |
3235 Undef __memrchr, too. | |
3236 [!weak_alias]: Define __memrchr to memrchr. | |
3237 Guard weak_alias use with `#ifdef weak_alias'. | |
3238 | |
2886 | 3239 2000-10-17 Jim Meyering <meyering@lucent.com> |
3240 | |
2891 | 3241 * quote.h (PARAMS): Define and use. |
2890 | 3242 Reported by Akim Demaille. |
2889 | 3243 |
2886 | 3244 * getopt.c: Update from libc. |
3245 | |
2884 | 3246 2000-10-16 Jim Meyering <meyering@lucent.com> |
3247 | |
3248 * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale. | |
3249 From Jan Fedak. | |
3250 | |
2880 | 3251 2000-09-25 Jim Meyering <meyering@lucent.com> |
3252 | |
3253 * md5.h (rol): Define (from GnuPG). | |
3254 | |
3255 * sha.c: Give credit (GnuPG) where due. | |
3256 (M): Use rol rather than open-coding it. | |
3257 Add a FIXME comment. | |
3258 | |
2876 | 3259 2000-09-21 Jim Meyering <meyering@lucent.com> |
3260 | |
3261 * userspec.c (parse_user_spec): Remove debugging printf I'd added. | |
2877 | 3262 Reported by Michael Stone. |
2876 | 3263 |
2874 | 3264 2000-09-20 Jim Meyering <meyering@lucent.com> |
3265 | |
3266 * Makefile.am (libfetish_a_SOURCES): Add sha.c. | |
3267 (noinst_HEADERS): Add sha.h. | |
3268 Based on code from Scott G. Miller and from GnuPG. | |
3269 | |
2861 | 3270 2000-09-15 Jim Meyering <meyering@lucent.com> |
3271 | |
3272 * regex.c: Update from libc. | |
3273 | |
2859 | 3274 2000-09-10 Jim Meyering <meyering@lucent.com> |
3275 | |
3276 * getopt.c (_getopt_internal): Update from glibc. | |
3277 | |
2855 | 3278 2000-09-09 Jim Meyering <meyering@lucent.com> |
3279 | |
2857 | 3280 * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't |
3281 think it should be used as a general replacement for isascii. | |
3282 * fnmatch.c: Likewise. | |
3283 * mbswidth.c: Likewise | |
3284 * regex.c: Likewise. | |
3285 | |
2855 | 3286 Don't use atoi. |
3287 * userspec.c: Include sys/param.h and limits.h. | |
3288 Include xstrtol.h. | |
3289 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define. | |
3290 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define. | |
3291 (parse_user_spec): Use xstrtoul, not atoi when converting numeric | |
3292 UID, GID. Check range. | |
3293 | |
2853 | 3294 2000-09-06 Jim Meyering <meyering@lucent.com> |
3295 | |
3296 * getopt.c (_getopt_internal): Update from glibc. | |
3297 | |
2846 | 3298 2000-08-30 Jim Meyering <meyering@lucent.com> |
3299 | |
3300 * strftime.c: Merge in changes from GNU libc. | |
3301 | |
2837 | 3302 2000-08-26 Jim Meyering <meyering@lucent.com> |
3303 | |
2839 | 3304 * closeout.c: Include "__fpending.h". |
3305 (close_stdout_status): Return right away if there's nothing to flush. | |
3306 | |
2837 | 3307 * Makefile.am (noinst_HEADERS): Add __fpending.h. |
3308 * __fpending.c: New file. | |
3309 * __fpending.h: New file. | |
3310 | |
2815 | 3311 2000-08-07 Paul Eggert <eggert@twinsun.com> |
3312 | |
3313 Standardize on "memory exhausted" instead of "Memory exhausted" | |
3314 or "virtual memory exhausted". | |
3315 * obstack.c (print_and_abort): Use "memory exhausted", not | |
3316 "virtual memory exhausted". | |
3317 * same.c (same_name): Invoke xalloc_die instead of printing | |
3318 our own message. | |
3319 * userspec.c (parse_user_spec): Likewise. | |
3320 * bumpalloc.h: comment fix | |
3321 * same.c, userspec.c: Include xalloc.h. | |
3322 | |
3323 * xalloc.h (xalloc_msg_memory_exhausted): Now char const[], | |
3324 not char *const and pointing to a constant array. | |
3325 * xmalloc.c (xalloc_msg_memory_exhausted): Likewise. | |
3326 (xrealloc): Comment fix. | |
3327 | |
3328 * userspec.c (parse_user_spec): | |
3329 Don't translate a message until just before returning, | |
3330 to avoid unnecessary translation. | |
3331 | |
2808 | 3332 2000-08-07 Jim Meyering <meyering@lucent.com> |
3333 | |
3334 * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h, | |
3335 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c, | |
3336 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h, | |
3337 getgroups.c, gethostname.c, getopt.h, group-member.c, | |
3338 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c, | |
3339 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c, | |
3340 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h, | |
3341 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c, | |
3342 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c, | |
3343 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c, | |
3344 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c, | |
3345 yesno.c: Back out Copyright date changes for each file with no change | |
3346 this year. This eases coordination with other programs using the same | |
3347 source code modules. From Paul Eggert. | |
3348 | |
2804 | 3349 2000-08-03 Greg McGary <greg@mcgary.org> |
3350 | |
3351 * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, | |
3352 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros. | |
3353 (EXTEND_BUFFER): Use them. | |
3354 | |
2802 | 3355 2000-08-01 Jim Meyering <meyering@lucent.com> |
3356 | |
3357 * dirname.c (ISSLASH): Define. | |
3358 (BACKSLASH_IS_PATH_SEPARATOR): Define. | |
3359 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which | |
3360 both `\' and `/' may be use as path separators. | |
3361 Based on a patch from Prashant TR. | |
3362 | |
2800 | 3363 2000-07-31 Paul Eggert <eggert@twinsun.com> |
3364 | |
2815 | 3365 * quotearg.c (quotearg_n_options): Don't make the initial |
2800 | 3366 slot vector a constant, since it might get modified. |
3367 | |
2794 | 3368 2000-07-31 Jim Meyering <meyering@lucent.com> |
3369 | |
3370 * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'. | |
3371 * obstack.c (print_and_abort): Likewise. | |
3372 | |
2796 | 3373 2000-07-30 Paul Eggert <eggert@twinsun.com> |
3374 | |
3375 * quotearg.c (quotearg_n_options): Preallocate a slot 0 | |
3376 buffer, so that the caller can always quote one small | |
3377 component of a "memory exhausted" message in slot 0. | |
3378 From a suggestion by Jim Meyering. | |
3379 | |
2791 | 3380 2000-07-30 Jim Meyering <meyering@lucent.com> |
3381 | |
3382 * makepath.c (make_path): Quote the other instance, too. | |
3383 | |
3384 * quotearg.c (N_STATIC_SLOTVECS): Define. | |
3385 (STATIC_BUF_SIZE): Define. | |
3386 (quotearg_n_options): Use only statically allocated storage when | |
3387 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller | |
3388 than STATIC_BUF_SIZE. | |
3389 | |
2782 | 3390 2000-07-29 Jim Meyering <meyering@lucent.com> |
3391 | |
2788 | 3392 * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS. |
3393 * dirname.c (dir_name): Likewise. | |
3394 | |
3395 * basename.c (base_name): Use ISSLASH rather than comparing against `/'. | |
3396 | |
2782 | 3397 * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const. |
2785 | 3398 (dir_name): Assert that there are no trailing slashes. |
2782 | 3399 |
2780 | 3400 2000-07-18 Bruno Haible <haible@clisp.cons.org> |
3401 | |
3402 * mbswidth.h (mbswidth): Add a flags argument. | |
3403 (mbswidth): New declaration. | |
3404 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros. | |
3405 * mbswidth.c (mbswidth): Add a flags argument. | |
3406 (mbsnwidth): New function. | |
3407 | |
2776 | 3408 2000-07-24 Jim Meyering <meyering@lucent.com> |
3409 | |
3410 * mbswidth.c: Remove useless #else. From Bruno Haible. | |
3411 | |
2773 | 3412 2000-07-23 Paul Eggert <eggert@twinsun.com> |
3413 | |
3414 * mbswidth.c (_XOPEN_SOURCE): | |
3415 Don't define; this causes problems on Solaris 7. | |
3416 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare. | |
3417 | |
2771 | 3418 2000-07-23 Paul Eggert <eggert@twinsun.com> |
3419 | |
2815 | 3420 * quotearg.c: |
2771 | 3421 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), |
3422 so that mbstate_t is always defined. | |
3423 | |
3424 Do not inspect MB_LEN_MAX, since it's incorrectly defined to | |
3425 be 1 in at least one GCC installation, and this configuration | |
3426 error is likely to be common. Ignoring MB_LEN_MAX hurts | |
3427 performance on hosts that have mbrtowc but have only unibyte | |
3428 locales, but I assume these hosts are rare. | |
3429 | |
2769 | 3430 2000-07-23 Paul Eggert <eggert@twinsun.com> |
3431 | |
2815 | 3432 * quotearg.c: Streamline by invoking multibyte code only if needed. |
2769 | 3433 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX. |
3434 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX). | |
3435 (quotearg_buffer_restyled): If a unibyte locale, don't bother to | |
3436 invoke multibyte primitives. | |
3437 | |
2764 | 3438 2000-07-23 Jim Meyering <meyering@lucent.com> |
3439 | |
3440 * basename.c (base_name): Add an assertion. | |
3441 | |
2762 | 3442 2000-07-15 Bruno Haible <clisp.cons.org> |
3443 | |
3444 * quotearg.c: When the system forces us to redefine mbstate_t, | |
3445 shadow its mbsinit function. | |
3446 | |
2755 | 3447 2000-07-16 Bruno Haible <haible@clisp.cons.org> |
3448 | |
3449 * mbswidth.h: New file. | |
3450 * mbswidth.c: New file. | |
2759 | 3451 * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c. |
2769 | 3452 (noinst_HEADERS): Add mbswidth.h. |
2755 | 3453 |
2754 | 3454 2000-07-17 Bruno Haible <haible@clisp.cons.org> |
3455 | |
3456 * config.charset: Add support for FreeBSD. Improve support for HP-UX | |
3457 and IRIX 6. | |
3458 | |
2747 | 3459 2000-07-15 Jim Meyering <meyering@lucent.com> |
3460 | |
2751 | 3461 * makepath.c: Include quote.h. |
3462 (make_path): Convert "`%s'" in format strings to "%s", and wrap each | |
3463 corresponding argument in a `quote (...)' call. | |
3464 Give better diagnostics. | |
3465 | |
2749 | 3466 * Makefile.am (libfetish_a_SOURCES): Add quote.c. |
3467 (noinst_HEADERS): Add quote.h. | |
3468 | |
2747 | 3469 * quote.c (quote, quote_n): New file. Two functions taken verbatim |
3470 from tar's src/misc.c. | |
3471 * quote.h: New file. Prototypes for same. | |
3472 | |
2740 | 3473 2000-07-10 Paul Eggert <eggert@twinsun.com> |
3474 | |
3475 From a suggestion by Bruno Haible. | |
3476 * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition. | |
3477 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT, | |
3478 to decide whether to define the BeOS workaround macro; | |
3479 this adjusts to the change to AC_MBSTATE_T. | |
3480 | |
2738 | 3481 2000-07-13 Paul Eggert <eggert@twinsun.com> |
3482 | |
3483 * quotearg.h (enum quoting style): New enum clocale_quoting_style. | |
3484 | |
3206 | 3485 * quotearg.c (quoting_style_args, quoting_style_vals, |
2738 | 3486 quotearg_buffer_restyled): Add support for |
3487 clocale_quoting_style. Undo previous change to | |
3488 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}" | |
3489 and "{RIGHT QUOTATION MARK}" msgids. | |
3490 | |
2723 | 3491 2000-07-05 Paul Eggert <eggert@twinsun.com> |
3492 | |
3493 The old behavior of quoting `like this' doesn't look good with | |
3494 newer, ISO-style fonts. See: | |
3495 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |
3496 | |
3497 Instead, quote "like this" by default. Let the translator | |
3498 tailor the locale-specific quoting behavior by providing | |
3499 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}. | |
3500 | |
3501 * quotearg.c (N_): New macro. | |
3502 (gettext_default): New function. | |
3503 (quotearg_buffer_restyled): Use | |
3504 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and | |
3505 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote. | |
3506 | |
2719 | 3507 2000-07-09 Jim Meyering <meyering@lucent.com> |
3508 | |
3509 * Most files: Update copyright dates to include 2000. | |
3510 | |
2721 | 3511 2000-07-08 Jim Meyering <meyering@lucent.com> |
3512 | |
3513 * xgethostname.c (ENAMETOOLONG): Define to an unlikely value | |
3514 if not defined. | |
3515 (xgethostname): Remove now-unnecessary #ifdef. | |
3516 Move declaration of `err' into loop where it's used. | |
3517 | |
3518 2000-07-05 Bruno Haible <haible@clisp.cons.org> | |
3519 | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
3520 * xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug |
2721 | 3521 by allocating a larger buffer. Test the gethostname return value for |
3522 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname | |
3523 returns an error and ENAMETOOLONG isn't defined. | |
3524 | |
2710 | 3525 2000-07-05 Paul Eggert <eggert@twinsun.com> |
3526 and Bruno Haible <haible@clisp.cons.org> | |
3527 | |
3528 * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't. | |
3529 | |
2708 | 3530 2000-07-05 Bruno Haible <haible@clisp.cons.org> |
3531 | |
3532 * quotearg.c (struct quoting_options): Simplify quote_these_too | |
3533 dimension. | |
3534 | |
2706 | 3535 2000-07-03 Jim Meyering <meyering@lucent.com> |
3536 | |
3537 * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen. | |
3538 Reported by Bruno Haible. | |
3539 | |
2704 | 3540 2000-07-04 Jim Meyering <meyering@lucent.com> |
3541 | |
3542 * quotearg.c: Make inclusion of <wchar.h> independent of whether | |
3543 HAVE_MBRTOWC is set. Required at least for irix-5.6, which | |
3544 lacks mbrtowc. | |
3545 | |
2693 | 3546 2000-07-03 Paul Eggert <eggert@twinsun.com> |
3547 and Bruno Haible <haible@clisp.cons.org> | |
3548 | |
2815 | 3549 * quotearg.c (mbrtowc): |
2693 | 3550 Assign to *pwc, and return 1 only if result is nonzero. |
3551 (iswprint): Use ISPRINT when substituting our own mbrtowc. | |
3552 | |
2697 | 3553 2000-07-03 Jim Meyering <meyering@lucent.com> |
3554 | |
3555 * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H. | |
3556 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20. | |
3557 From Bob Proulx. | |
3558 | |
2691 | 3559 2000-07-02 Jim Meyering <meyering@lucent.com> |
3560 | |
3561 * quotearg.c (mbstate_t): Don't define here. | |
3562 | |
2688 | 3563 2000-07-02 Jim Meyering <meyering@lucent.com> |
3564 | |
3565 * nanosleep.c (SIGCONT): Define if not already defined. | |
3566 | |
2678 | 3567 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3568 | |
3569 * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV, | |
3570 per change in ../m4/ls-mntd-fs.m4. | |
3571 (read_filesystem_list): Ignore symbolic links. | |
3572 | |
2668 | 3573 2000-06-29 Jim Meyering <meyering@lucent.com> |
3574 | |
2672 | 3575 * same.c: Include <string.h> or <strings.h>, as appropriate, |
3576 for declaration of strcmp. | |
3577 | |
2670 | 3578 * long-options.c: Include <stdlib.h>, for declaration of exit. |
3579 | |
2668 | 3580 * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: |
3581 Avoid warning by casting result to `char *' to remove `const'. | |
3582 | |
2662 | 3583 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3584 | |
3585 * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c. | |
3586 | |
2659 | 3587 2000-06-26 Paul Eggert <eggert@twinsun.com> |
3588 | |
3589 savedir now sets errno on failure and invokes xmalloc to get memory. | |
3590 Fix a couple of other minor bugs while we're at it. | |
3591 | |
3592 * savedir.c (<unistd.h>): Do not include; there's no need. | |
3593 (NAMLEN): Remove macro. | |
3594 (malloc, realloc): Remove decls. | |
3595 (stpcpy): Likewise. | |
3596 ("xalloc.h"): Include. | |
3597 (NAME_SIZE_DEFAULT): New macro. | |
3598 (savedir): Use xmalloc / xrealloc to allocate memory. | |
3599 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero. | |
3600 Skip "" directory entries. | |
3601 Use strlen to calculate directory entry length, since the old method | |
3602 is rarely used these days and isn't worth supporting. | |
3603 Don't use a pointer after freeing it. | |
3604 Check for integer overflow when calculating allocation size. | |
3605 Use memcpy to copy entries, instead of stpcpy. | |
3606 Set errno properly when returning NULL. | |
3607 Check for readdir error. | |
3608 | |
2657 | 3609 2000-06-26 Jim Meyering <meyering@lucent.com> |
3610 | |
3611 * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort. | |
3612 | |
2655 | 3613 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3614 | |
3615 * getusershell.c (xmalloc, xrealloc): Remove functions. | |
3616 Include xalloc.h. | |
3617 Don't include <stdlib.h>. Don't declare malloc, realloc. | |
3618 | |
2651 | 3619 2000-06-23 Bruno Haible <haible@clisp.cons.org> |
3620 | |
3621 * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency. | |
3622 | |
2644 | 3623 2000-06-24 Jim Meyering <meyering@lucent.com> |
3624 | |
3625 * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r. | |
3626 | |
2636 | 3627 2000-06-21 Jim Meyering <meyering@lucent.com> |
3628 | |
3629 * getpass.c: New file, from Bruno Haible. Required for BeOS. | |
3630 | |
2640 | 3631 2000-06-19 Paul Eggert <eggert@twinsun.com> |
3632 | |
3633 * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5. | |
3634 (mbrtowc, mbstate_t): Define substitutes if | |
3635 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT. | |
3636 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT, | |
3637 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H). | |
3638 | |
2628 | 3639 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3640 | |
3641 * xgetcwd.c (xgetcwd): If the required pathname length is smaller | |
3642 than 1024, return a memory chunk of least possible size, instead | |
3643 of size PATH_MAX + 2. In the loop, increment the size proportionally. | |
3644 Use free/xmalloc instead of xrealloc to avoid copying for very long | |
3645 paths. | |
3646 | |
2626 | 3647 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3648 | |
3649 * canon-host.c (canon_host): Use malloc and memcpy to copy an | |
3650 address, not strdup. Include <stdlib.h> and don't declare free(). | |
3651 | |
2624 | 3652 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
3653 | |
3654 * path-concat.c (path_concat): Don't access dir[-1] if dir is | |
3655 the empty string. | |
3656 | |
2621 | 3657 2000-06-21 Jim Meyering <meyering@lucent.com> |
3658 | |
3659 * Makefile.am (libfetish_a_SOURCES): Add getstr.c. | |
3660 (noinst_HEADERS): Add getstr.h. | |
3661 | |
3662 * getline.c (getstr): Move into a separate file. | |
3663 * getstr.c (getstr): New file, extracted from getline.c, with | |
3664 the following changes: new parameter, delim2; both delim[12] | |
3665 parameters have type `int', not `char'. The latter would lose | |
3666 with 8-bit delimiters. | |
3667 * getstr.h: New file. | |
3668 | |
2611 | 3669 2000-06-19 Jim Meyering <meyering@lucent.com> |
3670 | |
3671 * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define. | |
3672 | |
2602 | 3673 2000-06-18 Jim Meyering <meyering@lucent.com> |
3674 | |
2608 | 3675 * mkdir.c: Remove file, due mainly to copyright incompatibility. |
3676 Besides, these days every porting target provides a mkdir function. | |
3677 | |
2606 | 3678 * strnlen.c: Include memory.h, string.h, and/or strings.h as needed. |
3679 (this snippet comes from src/system.h). | |
3680 | |
2594 | 3681 2000-06-15 Paul Eggert <eggert@twinsun.com> |
3682 | |
2640 | 3683 * human.c (adjust_value): New function. |
2594 | 3684 (human_readable_inexact): Apply rounding style even when |
3685 printing approximate values. | |
3686 | |
2591 | 3687 2000-06-14 Paul Eggert <eggert@twinsun.com> |
3688 | |
2640 | 3689 * human.c (human_readable_inexact): Allow an input block |
2591 | 3690 size that is not a multiple of the output block size, and vice versa. |
2592 | 3691 Reported by Piergiorgio Sartor. |
2591 | 3692 |
2589 | 3693 2000-06-14 Paul Eggert <eggert@twinsun.com> |
3694 | |
2640 | 3695 * getdate.y (get_date): Apply relative times after time |
2589 | 3696 zone indicator, not before. Reported by Todd A. Jacobs. |
3697 | |
2585 | 3698 2000-06-13 Jim Meyering <meyering@lucent.com> |
3699 | |
2591 | 3700 * Makefile.am (all-local): Depend on lstat.c and stat.c. |
3701 | |
2585 | 3702 * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c. |
3703 | |
2583 | 3704 2000-06-12 Paul Eggert <eggert@twinsun.com> |
3705 | |
3706 * xstat.in: Include <stdlib.h> in lstat, to declare "free". | |
3707 | |
2575 | 3708 2000-06-04 Paul Eggert <eggert@twinsun.com> |
3709 | |
2583 | 3710 * strnlen.c: Include <config.h> if HAVE_CONFIG_H. |
2575 | 3711 |
2573 | 3712 2000-06-04 Jim Meyering <meyering@lucent.com> |
3713 | |
3714 * getugroups.c (getugroups): Cast -1 to gid_t, for systems like | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
3715 SunOS 4.1.4 for which gid_t is an unsigned type. |
2573 | 3716 |
2569 | 3717 2000-06-03 Jim Meyering <meyering@lucent.com> |
3718 | |
3719 * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr. | |
3720 | |
2559 | 3721 2000-05-26 Bruno Haible <haible@clisp.cons.org> |
3722 | |
3723 * Makefile.am (install-exec-local): On systems with glibc-2.1 or | |
3724 newer, don't install charset.alias. | |
3725 * config.charset: Change the Linux/glibc rules so they become empty | |
3726 on glibc-2.1 or newer. | |
3727 | |
2554 | 3728 2000-06-02 Jim Meyering <meyering@lucent.com> |
3729 | |
3730 * mountlist.c: Back out last change. Instead, do this... | |
3731 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy | |
3732 member using the same `ignore'-testing code. | |
3733 * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored | |
3734 fs_type strings. | |
3735 From Mark D. Roth. | |
3736 | |
2549 | 3737 2000-05-29 Jim Meyering <meyering@lucent.com> |
3738 | |
3739 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts | |
3740 with the `ignore' attribute. Based on a patch from Mark D. Roth. | |
3741 | |
2548 | 3742 2000-05-22 Jim Meyering <meyering@lucent.com> |
3743 | |
3744 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block. | |
3745 | |
2525 | 3746 2000-05-18 Jim Meyering <meyering@lucent.com> |
3747 | |
3748 * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list | |
3749 back, too, since it may have been modified by allocate_entry. | |
3750 (hash_delete): Rewrite to use neither the assignment operator | |
3751 nor the comma operator in an if-expression. | |
3752 | |
2523 | 3753 2000-05-15 Paul Eggert <eggert@twinsun.com> |
3754 | |
2583 | 3755 * closeout.c: |
2523 | 3756 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO): |
3757 Remove; no longer needed. | |
3758 "quotearg.h": Add include. | |
3759 (file_name): Do not bother to explicitly initialize to NULL; it's less | |
3760 efficient on some hosts. | |
3761 (close_stdout_status): Remove test as to whether stdout was already | |
3762 closed; it breaks for the case "echo x | sort >&-". | |
3763 Quote file name colons. | |
3764 Do not assume that _("write error") lacks format strings. | |
3765 | |
2518 | 3766 2000-05-15 Jim Meyering <meyering@lucent.com> |
3767 | |
3768 * version-etc.c (version_etc_copyright): Update the copyright string | |
3769 used in all --version output. | |
3770 | |
2521 | 3771 2000-05-14 Jim Meyering <meyering@lucent.com> |
3772 | |
3773 * closeout.c (close_stdout_set_file_name): New function. | |
3774 (close_stdout_status): Use new file-scoped global. | |
3775 Return right away if fstat says the stdout file descriptor is invalid. | |
3776 * closeout.h (close_stdout_set_file_name): Declare. | |
3777 | |
2515 | 3778 2000-05-10 Jim Meyering <meyering@lucent.com> |
3779 | |
3780 * closeout.c [default_exit_status]: New file-scoped variable. | |
3781 (close_stdout_set_status): New function. | |
3782 * closeout.h (close_stdout_set_status): Declare. | |
3783 | |
2508 | 3784 2000-05-08 Jim Meyering <meyering@lucent.com> |
3785 | |
3786 * long-options.c: Don't include closeout.h. | |
3787 (parse_long_options): Don't call close_stdout for --version. | |
3788 | |
2499 | 3789 2000-05-06 Jim Meyering <meyering@lucent.com> |
3790 | |
2504 | 3791 * strnlen.c: Undefine __strnlen and strnlen. |
3792 [!weak_alias]: Define __strnlen to strnlen. | |
3793 | |
2499 | 3794 * atexit.c: New file, from libiberty. |
3795 | |
3796 2000-05-06 Jim Meyering <meyering@lucent.com> | |
3797 | |
3798 * closeout.c (close_stdout_status): Also check for errors on the | |
3799 stderr stream. | |
3800 | |
2488 | 3801 2000-05-05 Bruno Haible <haible@clisp.cons.org> |
3802 | |
3803 * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy | |
3804 instead of xmalloc, xrealloc, path_concat. | |
3805 (locale_charset): Treat empty environment variables as absent. | |
3806 (DIRECTORY_SEPARATOR, ISSLASH): New macros. | |
3807 | |
2467 | 3808 2000-05-04 Jim Meyering <meyering@lucent.com> |
3809 | |
3810 * getopt.c: Update from glibc. | |
2478 | 3811 * obstack.c: Likewise. |
3812 * obstack.h: Likewise. | |
2473 | 3813 * regex.c: Likewise. NB: K&R compiler support is dropped for this file |
3814 | |
3815 * regex.h: Likewise. | |
2470 | 3816 * strndup.c: Likewise. |
3817 * strnlen.c: New file, from glibc. | |
2467 | 3818 |
2461 | 3819 2000-05-01 Jim Meyering <meyering@lucent.com> |
3820 | |
3821 * full-write.c (full_write): Remove `FIXME' part of comment. | |
3822 | |
2447 | 3823 2000-04-29 Jim Meyering <meyering@lucent.com> |
3824 | |
3825 * path-concat.c: Declare strdup only if it's not defined. | |
3826 * canon-host.c: Likewise. | |
3827 | |
2445 | 3828 2000-04-28 Jim Meyering <meyering@lucent.com> |
3829 | |
3830 * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid | |
3831 redefinition warning on some systems (HPUX). Otherwise, regex.h is | |
3832 included first, then limits.h is included by locale.h by libintl.h. | |
3833 From John David Anglin. | |
3834 | |
2440 | 3835 2000-04-25 Jim Meyering <meyering@lucent.com> |
3836 | |
3837 * makepath.c (S_IRWXUGO): Define. | |
3838 (make_path): Always perform explicit chmod if MODE specifies any | |
2442 | 3839 of the `special' permission bits. Prompted by a bug report against |
3840 install from Mate Wierdl and Joost van Baal. | |
2440 | 3841 |
2435 | 3842 2000-04-18 Jim Meyering <meyering@lucent.com> |
3843 | |
2440 | 3844 * README: New file. |
3845 | |
2435 | 3846 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define |
3847 getpagesize. For BeOS. Based on a patch from Bruno Haible. | |
3848 | |
2431 | 3849 2000-04-17 Jim Meyering <meyering@lucent.com> |
3850 | |
3851 * strftime.c (my_strftime) [strftime]: Declare strftime here, since | |
3852 the definition of it to rpl_strftime also defined-away the system's | |
3853 declaration. | |
3854 | |
2427 | 3855 2000-04-15 Jim Meyering <meyering@lucent.com> |
3856 | |
3857 Use `C' to denote so-called `contiguous' files, the same way | |
3858 that tar does. | |
3859 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. | |
3860 (ftypelet): Use S_ISCTG. | |
3861 From Michael Deutschmann. | |
3862 | |
3863 2000-04-14 Jim Meyering <meyering@lucent.com> | |
3864 | |
3865 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime. | |
3866 | |
2416 | 3867 2000-04-08 Jim Meyering <meyering@lucent.com> |
3868 | |
3869 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3 | |
3870 names don't conflict. Reported by Eli Zaretskii. | |
3871 | |
2413 | 3872 2000-03-28 Bruno Haible <haible@clisp.cons.org> |
3873 | |
3874 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv | |
2431 | 3875 bug. Deal with the different error behavior of Irix iconv. |
2413 | 3876 |
3877 2000-04-07 Jim Meyering <meyering@lucent.com> | |
3878 | |
3879 * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h, | |
3880 to work around system header problems on AIX 3.2.5. From Bruno Haible. | |
3881 | |
2406 | 3882 2000-04-05 Jim Meyering <meyering@lucent.com> |
3883 | |
3884 Portability tweaks required for ultrix4.3. | |
3885 * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent. | |
3886 * readutmp.c: Include sys/types.h before sys/stat.h. | |
3887 * canon-host.c: Declare strdup. | |
3888 * path-concat.c: Likewise. | |
3889 From John David Anglin. | |
3890 | |
2397 | 3891 2000-04-04 Jim Meyering <meyering@lucent.com> |
3892 | |
3893 Be more DOS 8.3-friendly. | |
3894 * ref-add.sin: Renamed from ref-add.sed.in. | |
3895 * ref-del.sin: Renamed from ref-del.sed.in. | |
3896 * Makefile.am: Reflect renaming. | |
3897 Reported by Eli Zaretskii. | |
3898 | |
3899 Use a temporary file name that won't clash with `charset.alias' | |
3900 in the DOS 8.3 name space. | |
3901 * Makefile.am (charset_tmp): Define. | |
3902 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t. | |
3903 (uninstall-local): Likewise. | |
3904 Reported by Eli Zaretskii. | |
3905 | |
2379 | 3906 2000-03-29 Paul Eggert <eggert@twinsun.com> |
3907 | |
3908 * time/strftime.c (my_strftime): Make sure we call the system | |
3909 strftime, not ourselves, when invoking the underlying strftime. | |
3910 | |
2364 | 3911 2000-03-24 Jim Meyering <meyering@lucent.com> |
3912 | |
3913 * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in. | |
3914 (charset_alias): Define. | |
3915 (install-exec-local): Factor out common code. | |
3916 (uninstall-local): Split lines longer than 80. | |
3917 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead) | |
3918 (SUFFIXES): Define. | |
3919 (.sed.in.sed): New rule. Don't redirect directly to $@. | |
3920 (CLEANFILES): Add ref-add.sed and ref-del.sed. | |
3921 | |
3922 2000-03-19 Bruno Haible <haible@clisp.cons.org> | |
3923 | |
3924 * config.charset: Output a line containing "Packages using this file". | |
3925 * ref-add.sed.in, ref-del.sed.in: New files. | |
3926 * Makefile.am (install-exec-local, uninstall-local, ref-add.sed, | |
3927 ref-del.sed): New rules. | |
3928 | |
2353 | 3929 2000-03-17 Jim Meyering <meyering@lucent.com> |
3930 | |
3931 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H. | |
3932 Otherwise, include <strings.h> | |
3933 | |
3934 2000-03-17 Bruno Haible <haible@clisp.cons.org> | |
3935 | |
3936 * unicodeio.c (utf8_wctomb): New function. | |
3937 (print_unicode_char): Pass the Unicode character to iconv in UTF-8 | |
3938 format instead of in UCS-4 with platform dependent endianness. | |
3939 | |
2343 | 3940 2000-03-07 Paul Eggert <eggert@twinsun.com> |
3941 | |
2583 | 3942 * savedir.c (savedir): Work even if directory size is |
2343 | 3943 negative; this can happen with some screwy NFS configurations. |
3944 | |
2348 | 3945 2000-03-06 Jim Meyering <meyering@lucent.com> |
3946 | |
3947 * localcharset.c (get_charset_aliases): Don't try to free file_name | |
3948 if it's NULL (because we ran out of memory). From Bruno Haible. | |
3949 | |
2337 | 3950 2000-03-05 Jim Meyering <meyering@lucent.com> |
3951 | |
2339 | 3952 * localcharset.c ("path-concat.h"): Include. |
3953 (get_charset_aliases): Use path_concat instead of ANSI string | |
3954 concatenation. | |
3955 | |
2337 | 3956 * unicodeio.h (PARAMS): Define. |
3957 Use it to guard prototype. | |
3958 | |
2330 | 3959 2000-03-04 Jim Meyering <meyering@lucent.com> |
3960 | |
2332 | 3961 * Makefile.am (install-exec-local): Create $(libdir) before installing |
3962 into it. | |
2334 | 3963 (uninstall-local): Uncomment this rule so `make distcheck' works |
3964 once again. | |
2332 | 3965 |
2330 | 3966 * unicodeio.c (<errno.h>): Include it. |
3967 (errno): Declare if not defined. | |
3968 | |
3969 * localcharset.c: Add Bruno's comment justifying use of volatile. | |
3970 | |
3971 * config.charset: New version, incorporating remarks from a linux | |
3972 i18n mailing list. From Bruno Haible. | |
3973 | |
3974 2000-03-02 Jim Meyering <meyering@lucent.com> | |
3975 | |
3976 * Makefile.am (EXTRA_DIST): Add config.charset. | |
3977 | |
2309 | 3978 2000-03-01 Jim Meyering <meyering@lucent.com> |
3979 | |
3980 * localcharset.c: Guard some #includes with `#if HAVE_...'. | |
3981 * unicodeio.c: Likewise. | |
3982 | |
3983 2000-02-02 Bruno Haible <haible@clisp.cons.org> | |
3984 | |
3985 * config.charset: New file. | |
3986 * localcharset.c: New file. | |
3987 * unicodeio.h, unicodeio.c: New files. | |
3988 * Makefile.am (DEFS): Add -DLIBDIR=... | |
3989 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c. | |
3990 (noinst_HEADERS): Add unicodeio.h. | |
3991 (all-local, install-exec-local, charset.alias): New targets. | |
3992 | |
2300 | 3993 2000-02-28 Paul Eggert <eggert@twinsun.com> |
3994 | |
2583 | 3995 * quotearg.c (ALERT_CHAR): New macro. |
2300 | 3996 (quotearg_buffer_restyled): Use it. |
3997 | |
2285 | 3998 2000-02-27 Jim Meyering <meyering@lucent.com> |
3999 | |
2298 | 4000 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/. |
4001 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'. | |
4002 | |
2295 | 4003 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H', |
4004 not `#if STDC_HEADERS'. | |
4005 Declare malloc if needed. | |
4006 | |
2290 | 4007 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..' |
4008 now that autoconf always defines the HAVE_DECL_ symbols. | |
4009 * human.c: Likewise. | |
4010 * same.c: Likewise. | |
4011 * strtoumax.c: Likewise. | |
4012 | |
4013 * backupfile.c: Arrange for cpp to fail if the configure-time | |
4014 declaration check was not run. | |
4015 * hash.c: Likewise. | |
4016 * human.c: Likewise. | |
4017 * same.c: Likewise. | |
4018 * strtoumax.c: Likewise. | |
4019 | |
2285 | 4020 * userspec.c (parse_user_spec): If there is no `:' but there is a `.', |
4021 then first look up the entire `.'-containing string as a login name. | |
4022 | |
2286 | 4023 2000-02-18 Paul Eggert <eggert@twinsun.com> |
4024 | |
2583 | 4025 * getdate.y: Handle two-digit years with leading zeros correctly. |
2286 | 4026 (textint): New typedef. |
4027 (parser_control): Member year changed from int to textint. | |
4028 All uses changed. | |
4029 (YYSTYPE): Removed; replaced by %union with int and textint members. | |
4030 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN, | |
4031 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER, | |
4032 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>. | |
4033 (tSNUMBER, tUNUMBER): Now of type <textintval>. | |
4034 (date, number, to_year): Use width of number in digits, not its value, | |
4035 to determine whether it's a 2-digit year, or a 2-digit time. | |
4036 (yylex): Store number of digits of numeric tokens. | |
4037 Reported by John Kendall. | |
4038 | |
4039 (parser_control): Changed from struct parser_control to typedef (for | |
4040 consistency). All uses changed. | |
4041 | |
4042 (tID): Removed; not used. | |
4043 (yylex): Return '?' for unknown identifiers, rather than (unused) tID. | |
4044 | |
2278 | 4045 2000-02-14 Paul Eggert <eggert@twinsun.com> |
4046 | |
2583 | 4047 * getpagesize.h (getpagesize): Port to VMS for Alpha; |
2279 | 4048 adapted from changes to grep getpagesize.h by Martin P.J. Zinser. |
2278 | 4049 |
2274 | 4050 2000-02-12 Jim Meyering <meyering@lucent.com> |
4051 | |
4052 * userspec.c (ISDIGIT): Define it. | |
4053 (isdigit): Remove definition. | |
4054 (is_number): Use ISDIGIT, not isdigit. | |
4055 <libintl.h>: Include. | |
4056 (_ and N_): Define. | |
4057 (parse_user_spec): Mark translatable strings. | |
4058 | |
2268 | 4059 2000-02-10 Jim Meyering <meyering@lucent.com> |
4060 | |
4061 With these changes, nanosleep.[ch] are finally enough like the other | |
4062 lib/* replacement files to compile on a few more losing systems. | |
4063 | |
4064 * nanosleep.h: Don't include config.h. | |
4065 Remove prototype from declaration of nanosleep. | |
4066 (PARAMS): Remove now-unneeded definition. | |
4067 * nanosleep.c: #undef nanosleep. | |
4068 (rpl_nanosleep): Rename from nanosleep. | |
4069 | |
2245 | 4070 2000-02-03 Jim Meyering <meyering@lucent.com> |
4071 | |
4072 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION', | |
4073 rather than with `#if HAVE_UTMPNAME'. | |
4074 | |
4075 2000-02-01 Jim Meyering <meyering@lucent.com> | |
4076 | |
4077 * readutmp.h (UT_USER): Add parens. From Andreas Schwab. | |
4078 | |
2235 | 4079 2000-01-31 Jim Meyering <meyering@lucent.com> |
4080 | |
2240 | 4081 * nanosleep.h (nanosleep): Guard declaration with |
4082 `#if ! HAVE_DECL_NANOSLEEP'. | |
2275 | 4083 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to |
2240 | 4084 the declaration in that vendor's sys/timers.h. |
4085 Reported by Christian Krackowizer. | |
4086 | |
2235 | 4087 * quotearg.c (ISASCII): Add #undef and move definition to follow |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
4088 inclusion of wctype.h to work around Solaris 2.6 namespace pollution. |
2235 | 4089 (ISPRINT): Likewise. |
2236 | 4090 Reported by Tom Tromey. |
2235 | 4091 |
2228 | 4092 2000-01-30 Jim Meyering <meyering@lucent.com> |
4093 | |
4094 * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding | |
4095 uses of ->ut_name. The latter doesn't work with new Linux header files | |
4096 where only utmpx.ut_user is declared. | |
4097 | |
4098 * readutmp.h (UT_USER): Define. | |
4099 | |
2193 | 4100 2000-01-23 Jim Meyering <meyering@lucent.com> |
4101 | |
4102 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of | |
4103 obstack.c. | |
4104 | |
2163 | 4105 2000-01-22 Jim Meyering <meyering@lucent.com> |
2188 | 4106 |
4107 * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul. | |
4108 [! HAVE_DECL_STRTOULL]: Declare strtoull. | |
4109 Required for some AIX systems. Reported by Christian Krackowizer. | |
4110 [TESTING] (main): New function. | |
4111 | |
2172 | 4112 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il> |
4113 * dirname.c (dir_name): Support for DOS-style file names with drive | |
4114 letters. | |
2163 | 4115 |
2185 | 4116 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint. |
2184 | 4117 |
2163 | 4118 * strverscmp.c (ISDIGIT): Define. |
4119 (strverscmp): Use ISDIGIT, not isdigit. | |
4120 | |
2152 | 4121 2000-01-17 Paul Eggert <eggert@twinsun.com> |
4122 | |
4123 * nanosleep.c (nanosleep): | |
4124 Don't use SA_INTERRUPT to decide whether to call sigaction, as | |
4125 POSIX.1 doesn't require SA_INTERRUPT and some systems | |
4126 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; | |
4127 it's been part of POSIX.1 since day 1 (in 1988). | |
4128 | |
2150 | 4129 2000-01-17 Jim Meyering <meyering@lucent.com> |
4130 | |
4366
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
4131 * interlock: Remove unused file. Reported by François Pinard. |
2150 | 4132 |
2144 | 4133 2000-01-16 Paul Eggert <eggert@twinsun.com> |
4134 | |
2583 | 4135 * quotearg.c (quotearg_buffer_restyled): Do not quote |
2144 | 4136 alert, backslash, formfeed, and vertical tab unnecessarily in |
4137 shell quoting style. | |
2190 | 4138 |
4139 Local Variables: | |
4140 version-control: never | |
4141 End: |