Mercurial > hg > octave-kai > gnulib-hg
annotate lib/ChangeLog @ 5985:d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
copyright symbol and the year.
* version-etc.c (COPYRIGHT_YEAR): New constant.
(version_etc_va): Use parameterized copyright notice.
Reword to conform to the current GNU coding standards.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 11 Jul 2005 21:58:02 +0000 |
parents | b92b9d86794b |
children | 8694796f8a72 |
rev | line source |
---|---|
5985
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5984
diff
changeset
|
1 2005-07-11 Paul Eggert <eggert@cs.ucla.edu> |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5984
diff
changeset
|
2 |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5984
diff
changeset
|
3 * version-etc-fsf.c (version_etc_copyright): Parameterize the |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5984
diff
changeset
|
4 copyright symbol and the year. |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5984
diff
changeset
|
5 * version-etc.c (COPYRIGHT_YEAR): New constant. |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5984
diff
changeset
|
6 (version_etc_va): Use parameterized copyright notice. |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5984
diff
changeset
|
7 Reword to conform to the current GNU coding standards. |
d2208bf40bf8
* version-etc-fsf.c (version_etc_copyright): Parameterize the
Paul Eggert <eggert@cs.ucla.edu>
parents:
5984
diff
changeset
|
8 |
5984
b92b9d86794b
* size_max.h: New file.
Simon Josefsson <simon@josefsson.org>
parents:
5976
diff
changeset
|
9 2005-07-11 Simon Josefsson <jas@extundo.com> |
b92b9d86794b
* size_max.h: New file.
Simon Josefsson <simon@josefsson.org>
parents:
5976
diff
changeset
|
10 |
b92b9d86794b
* size_max.h: New file.
Simon Josefsson <simon@josefsson.org>
parents:
5976
diff
changeset
|
11 * size_max.h: New file. |
b92b9d86794b
* size_max.h: New file.
Simon Josefsson <simon@josefsson.org>
parents:
5976
diff
changeset
|
12 |
5976 | 13 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua> |
14 | |
15 * argp-namefrob.h: Include unlocked-io.h. Removed unnecessary | |
16 block of defines. | |
17 | |
5972
aa260da0bbbe
* config/srclist.txt: Comment out regcomp.c, since we have a porting fix
Paul Eggert <eggert@cs.ucla.edu>
parents:
5968
diff
changeset
|
18 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change) |
aa260da0bbbe
* config/srclist.txt: Comment out regcomp.c, since we have a porting fix
Paul Eggert <eggert@cs.ucla.edu>
parents:
5968
diff
changeset
|
19 and Paul Eggert <eggert@cs.ucla.edu> |
aa260da0bbbe
* config/srclist.txt: Comment out regcomp.c, since we have a porting fix
Paul Eggert <eggert@cs.ucla.edu>
parents:
5968
diff
changeset
|
20 |
aa260da0bbbe
* config/srclist.txt: Comment out regcomp.c, since we have a porting fix
Paul Eggert <eggert@cs.ucla.edu>
parents:
5968
diff
changeset
|
21 * regcomp.c (init_dfa, build_range_exp): Store __btowc value |
aa260da0bbbe
* config/srclist.txt: Comment out regcomp.c, since we have a porting fix
Paul Eggert <eggert@cs.ucla.edu>
parents:
5968
diff
changeset
|
22 in wint_t, not wchar_t. Remove now-unnecessary cast. |
aa260da0bbbe
* config/srclist.txt: Comment out regcomp.c, since we have a porting fix
Paul Eggert <eggert@cs.ucla.edu>
parents:
5968
diff
changeset
|
23 |
5968
541fed6ae301
* modules/regex (Files): Add lib/regex_internal.c,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5960
diff
changeset
|
24 2005-07-07 Paul Eggert <eggert@cs.ucla.edu> |
541fed6ae301
* modules/regex (Files): Add lib/regex_internal.c,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5960
diff
changeset
|
25 |
541fed6ae301
* modules/regex (Files): Add lib/regex_internal.c,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5960
diff
changeset
|
26 * regex.c, regex.h: Sync from libc. |
541fed6ae301
* modules/regex (Files): Add lib/regex_internal.c,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5960
diff
changeset
|
27 * regcomp.c, regexec_internal.c, regex_internal.h, regexec.c: |
541fed6ae301
* modules/regex (Files): Add lib/regex_internal.c,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5960
diff
changeset
|
28 New files, synced from libc, except that regex_internal.h |
541fed6ae301
* modules/regex (Files): Add lib/regex_internal.c,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5960
diff
changeset
|
29 currently has a small porting fix. |
541fed6ae301
* modules/regex (Files): Add lib/regex_internal.c,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5960
diff
changeset
|
30 |
5960
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
31 2005-07-03 Paul Eggert <eggert@cs.ucla.edu> |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
32 |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
33 Remove the dependency of the strftime module on the tzset module. |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
34 * strftime.c (my_strftime) [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]: |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
35 Copy the input structure, to work around some of the bug with |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
36 Solaris 2.5.1 and Solaris 2.6. If you still care about these old |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
37 Solaris releases, you should also use the tzset module, but we won't |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
38 require it as a dependency any more since we don't want LGPLed code |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
39 to depend on GPLed code. |
2a0d593683dc
Remove the dependency of the strftime module on the tzset module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5958
diff
changeset
|
40 |
5958 | 41 2005-07-02 Jim Meyering <jim@meyering.net> |
42 | |
43 * backupfile.c (backup_args): Change a `0' to NULL. | |
44 | |
5955
ace6ea191424
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering <jim@meyering.net>
parents:
5954
diff
changeset
|
45 2005-07-01 Jim Meyering <jim@meyering.net> |
ace6ea191424
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering <jim@meyering.net>
parents:
5954
diff
changeset
|
46 |
ace6ea191424
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering <jim@meyering.net>
parents:
5954
diff
changeset
|
47 * chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c: |
ace6ea191424
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering <jim@meyering.net>
parents:
5954
diff
changeset
|
48 * getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c: |
ace6ea191424
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering <jim@meyering.net>
parents:
5954
diff
changeset
|
49 * save-cwd.c, tempname.c: |
ace6ea191424
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering <jim@meyering.net>
parents:
5954
diff
changeset
|
50 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally, |
ace6ea191424
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering <jim@meyering.net>
parents:
5954
diff
changeset
|
51 and don't include <sys/file.h>). |
ace6ea191424
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering <jim@meyering.net>
parents:
5954
diff
changeset
|
52 |
5954
2dcad1ee5053
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5950
diff
changeset
|
53 2005-07-01 Paul Eggert <eggert@cs.ucla.edu> |
2dcad1ee5053
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5950
diff
changeset
|
54 |
2dcad1ee5053
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5950
diff
changeset
|
55 * xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h> |
2dcad1ee5053
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5950
diff
changeset
|
56 declares only 'struct timespec;' (!). |
2dcad1ee5053
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5950
diff
changeset
|
57 |
5950 | 58 2005-06-29 Jim Meyering <jim@meyering.net> |
59 | |
60 * mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded | |
61 type name. Use the variable name instead. | |
62 * idcache.c (getuser, getuidbyname, getgroup, getgidbyname): Likewise. | |
63 | |
5940
5e3f37f5f1d4
2005-06-25 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5937
diff
changeset
|
64 2005-06-28 Simon Josefsson <jas@extundo.com> |
5e3f37f5f1d4
2005-06-25 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5937
diff
changeset
|
65 |
5e3f37f5f1d4
2005-06-25 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5937
diff
changeset
|
66 * check-version.h, check-version.c: New files. |
5e3f37f5f1d4
2005-06-25 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5937
diff
changeset
|
67 |
5936
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
68 2005-06-28 Simon Josefsson <jas@extundo.com> |
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
69 |
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
70 * base64.c (base64_encode): Indent. Rename 'b64' to avoid |
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
71 collision with global variable. Better indentation. Don't |
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
72 increment buffer pointer beyond buffer end. Based on comments |
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
73 from Paul Eggert <eggert@cs.ucla.edu>. |
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
74 |
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
75 * base64.h: Indent. |
c1d164e8c502
2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5934
diff
changeset
|
76 |
5934
fe449ec53f0d
* canon-host.c (canon-host): Append trailing "," to 0 in
Paul Eggert <eggert@cs.ucla.edu>
parents:
5933
diff
changeset
|
77 2005-06-24 Paul Eggert <eggert@cs.ucla.edu> |
fe449ec53f0d
* canon-host.c (canon-host): Append trailing "," to 0 in
Paul Eggert <eggert@cs.ucla.edu>
parents:
5933
diff
changeset
|
78 |
fe449ec53f0d
* canon-host.c (canon-host): Append trailing "," to 0 in
Paul Eggert <eggert@cs.ucla.edu>
parents:
5933
diff
changeset
|
79 * canon-host.c (canon-host): Append trailing "," to 0 in |
fe449ec53f0d
* canon-host.c (canon-host): Append trailing "," to 0 in
Paul Eggert <eggert@cs.ucla.edu>
parents:
5933
diff
changeset
|
80 initializer of struct addrinfo, as an indication that we don't |
fe449ec53f0d
* canon-host.c (canon-host): Append trailing "," to 0 in
Paul Eggert <eggert@cs.ucla.edu>
parents:
5933
diff
changeset
|
81 care how many members the structure has. |
fe449ec53f0d
* canon-host.c (canon-host): Append trailing "," to 0 in
Paul Eggert <eggert@cs.ucla.edu>
parents:
5933
diff
changeset
|
82 |
5933
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
83 2005-06-24 Derek Price <derek@ximbiot.com> |
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
84 and Bruno Haible <bruno@clisp.org> |
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
85 |
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
86 Remove stat module & update lstat. |
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
87 * stat.c: Remove this file... |
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
88 (slash_aware_lstat): ...moving this content and its support... |
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
89 * lstat.c (rpl_lstat): ...into here. |
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
90 * lstat.h: New file. |
35504bd557fa
Remove stat module & update lstat.
Derek R. Price <derek@ximbiot.com>
parents:
5932
diff
changeset
|
91 |
5932
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
92 2005-06-23 Paul Eggert <eggert@cs.ucla.edu> |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
93 |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
94 * mktime.c: Include <string.h> even if !DEBUG. (From glibc.) |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
95 (ranged_convert): Don't save conversion in a temporary struct. |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
96 This causes a warning with GCC 4.0.0, and anyway in the typical |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
97 case it's not worth the extra 100 bytes or so of code. |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
98 (ranged_convert, __mktime_internal): When calling a function via a |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
99 pointer P, use P () rather than (*P) (), as we now assume C89 or |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
100 better. |
8ef7d6084536
* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert <eggert@cs.ucla.edu>
parents:
5931
diff
changeset
|
101 |
5930
d3f94dc03257
* xmalloc.c (HAVE_GNU_CALLOC): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5928
diff
changeset
|
102 2005-06-22 Paul Eggert <eggert@cs.ucla.edu> |
d3f94dc03257
* xmalloc.c (HAVE_GNU_CALLOC): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5928
diff
changeset
|
103 |
5931
673d533b0778
(desirable_utmp_entry): Fix bug where "who -b" and "who -r"
Paul Eggert <eggert@cs.ucla.edu>
parents:
5930
diff
changeset
|
104 * readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and |
673d533b0778
(desirable_utmp_entry): Fix bug where "who -b" and "who -r"
Paul Eggert <eggert@cs.ucla.edu>
parents:
5930
diff
changeset
|
105 "who -r" failed to give output. Problem reported by Tim Waugh. |
673d533b0778
(desirable_utmp_entry): Fix bug where "who -b" and "who -r"
Paul Eggert <eggert@cs.ucla.edu>
parents:
5930
diff
changeset
|
106 |
5930
d3f94dc03257
* xmalloc.c (HAVE_GNU_CALLOC): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5928
diff
changeset
|
107 * xmalloc.c (HAVE_GNU_CALLOC): New constant. |
d3f94dc03257
* xmalloc.c (HAVE_GNU_CALLOC): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5928
diff
changeset
|
108 (xcalloc): Use it to avoid needless tests. |
d3f94dc03257
* xmalloc.c (HAVE_GNU_CALLOC): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5928
diff
changeset
|
109 Problem reported by Jim Meyering. |
d3f94dc03257
* xmalloc.c (HAVE_GNU_CALLOC): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5928
diff
changeset
|
110 |
5928 | 111 2005-06-16 Jim Meyering <jim@meyering.net> |
112 | |
113 * calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1) | |
114 when either N or S is zero. | |
115 | |
5925 | 116 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net> |
117 | |
118 * argp.h (__option_is_short): Check upper limit of | |
5928 | 119 __key. Isprint() requires its argument to have the value |
120 of an unsigned char or EOF. | |
5925 | 121 |
5919
1c2b6487c46b
* fnmatch.c (fnmatch): If there is an encoding error in a
Paul Eggert <eggert@cs.ucla.edu>
parents:
5916
diff
changeset
|
122 2005-06-10 Paul Eggert <eggert@cs.ucla.edu> |
1c2b6487c46b
* fnmatch.c (fnmatch): If there is an encoding error in a
Paul Eggert <eggert@cs.ucla.edu>
parents:
5916
diff
changeset
|
123 |
1c2b6487c46b
* fnmatch.c (fnmatch): If there is an encoding error in a
Paul Eggert <eggert@cs.ucla.edu>
parents:
5916
diff
changeset
|
124 * fnmatch.c (fnmatch): If there is an encoding error in a |
1c2b6487c46b
* fnmatch.c (fnmatch): If there is an encoding error in a
Paul Eggert <eggert@cs.ucla.edu>
parents:
5916
diff
changeset
|
125 multibyte string or pattern, fall back on unibyte matching. |
1c2b6487c46b
* fnmatch.c (fnmatch): If there is an encoding error in a
Paul Eggert <eggert@cs.ucla.edu>
parents:
5916
diff
changeset
|
126 Problem reported by James Youngman. |
1c2b6487c46b
* fnmatch.c (fnmatch): If there is an encoding error in a
Paul Eggert <eggert@cs.ucla.edu>
parents:
5916
diff
changeset
|
127 |
5916
e9721cce07d6
Avoid gcc warning on mingw.
Bruno Haible <bruno@clisp.org>
parents:
5913
diff
changeset
|
128 2005-06-08 Bruno Haible <bruno@clisp.org> |
e9721cce07d6
Avoid gcc warning on mingw.
Bruno Haible <bruno@clisp.org>
parents:
5913
diff
changeset
|
129 |
e9721cce07d6
Avoid gcc warning on mingw.
Bruno Haible <bruno@clisp.org>
parents:
5913
diff
changeset
|
130 * binary-io.h (fileno): Undefine before defining it. Avoids a gcc |
e9721cce07d6
Avoid gcc warning on mingw.
Bruno Haible <bruno@clisp.org>
parents:
5913
diff
changeset
|
131 warning on mingw. |
e9721cce07d6
Avoid gcc warning on mingw.
Bruno Haible <bruno@clisp.org>
parents:
5913
diff
changeset
|
132 |
5913 | 133 2005-06-08 Bruno Haible <bruno@clisp.org> |
134 | |
135 * csharpcomp.h: New file, from GNU gettext. | |
136 * csharpcomp.c: New file, from GNU gettext. | |
137 * csharpcomp.sh.in: New file, from GNU gettext. | |
138 | |
5912 | 139 2005-06-07 Derek Price <derek@ximbiot.com> |
140 | |
141 Sync from CVS. | |
142 * glob_.h: Indent nested #ifdef. | |
143 | |
5907 | 144 2005-06-02 Paul Eggert <eggert@cs.ucla.edu> |
145 | |
146 Sync from coreutils. | |
147 Use "file name" when talking about file names, instead of "filename" | |
148 or "path", as per the GNU coding standards. | |
149 * mkdir-p.c: Renamed from makepath.c. | |
150 (make_dir_parents): Renamed from make_path. All callers changed. | |
151 * mkdir-p.h: Likewise. All includers changed. | |
152 * filenamecat.c: Renamed from path-concat.c. | |
153 (file_name_concat): Renamed from path_concat. All callers changed. | |
154 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT. | |
155 * filenamecat.h: Likewise. All includers changed. | |
156 * acl.c: Don't use "path" or "filename" to mean "file name" | |
157 in comments or local variable names. | |
158 * basename.c: Likewise. | |
159 * canonicalize.c, canonicalize.h: Likewise. | |
160 * dirname.c, dirname.h: Likewise. | |
161 * euidaccess.c: Likewise. | |
162 * exclude.c: Likewise | |
163 * fnmatch_.h, fnmatch_loop.c: Likewise. | |
164 * fsusage.c, fsuage.h: Likewise. | |
165 * fts.c, fts_.h: Likewise. | |
166 * getcwd.c: Likewise. | |
167 * getloadavg.c: Likewise. | |
168 * mkstemp.c: Likewise. | |
169 * mountlist.c, mountlist.h: Likewise. | |
170 * openat.c, openat.h: Likewise. | |
171 * readlink-stub.c: Likewise. | |
172 * readutmp.c, readutmp.h: Likewise. | |
173 * rename.c: Likewise. | |
174 * rmdir.c: Likewise. | |
175 * same.c: Likewise. | |
176 * savedir.c: Likewise. | |
177 * stripslash.c: Likewise. | |
178 * tempname.c: Likewise. | |
179 * xreadlink.c: Likewise. | |
180 * exclude.c (excluded_file_name): Renamed from excluded_filename. | |
181 All uses changed. | |
182 * exclude.h: Likewise. | |
183 | |
184 * euidaccess.c (getuid, getgid, getuid, getegid) | |
185 [!defined _POSIX_VERSION]: Remove decls; not needed these days. | |
186 * idcache.c (getpwuid, getpwnam, getgrgid, getgrnam) | |
187 [!defined _POSIX_VERSION]: Remove decls; not needed these days. | |
188 * pathmax.h: Include <limits.h> unconditionally, since other | |
189 files have been getting away with it for years (MORE/BSD 4.3 | |
190 is extinct now). | |
191 * userspec.c (getpwnam, getgrnam, getgrgid) | |
192 [!defined _POSIX_VERSION]: Remove decls; not needed these days. | |
193 | |
194 * pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]: | |
195 Define to 256, not 255, as per modern POSIX. | |
196 | |
5902 | 197 2005-06-01 Bruno Haible <bruno@clisp.org> |
198 | |
199 * csharpexec.h: New file, from GNU gettext. | |
200 * csharpexec.c: New file, from GNU gettext. | |
201 * csharpexec.sh.in: New file, from GNU gettext. | |
202 | |
5900 | 203 2005-05-31 Derek Price <derek@ximbiot.com> |
204 Paul Eggert <eggert@cs.ucla.edu> | |
205 | |
206 Sync from cvs. | |
207 * glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment. | |
208 | |
5898
429b55c14554
* MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
Derek R. Price <derek@ximbiot.com>
parents:
5895
diff
changeset
|
209 2005-05-29 Derek Price <derek@ximbiot.com> |
429b55c14554
* MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
Derek R. Price <derek@ximbiot.com>
parents:
5895
diff
changeset
|
210 Paul Eggert <eggert@cs.ucla.edu> |
429b55c14554
* MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
Derek R. Price <derek@ximbiot.com>
parents:
5895
diff
changeset
|
211 |
429b55c14554
* MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
Derek R. Price <derek@ximbiot.com>
parents:
5895
diff
changeset
|
212 * glob_.h, glob.c: New files. |
429b55c14554
* MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
Derek R. Price <derek@ximbiot.com>
parents:
5895
diff
changeset
|
213 |
5894
d09af5fbd9f2
* modules/fts (Files): Remove m4/inttypes-pri.m4.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5892
diff
changeset
|
214 2005-05-27 Paul Eggert <eggert@cs.ucla.edu> |
d09af5fbd9f2
* modules/fts (Files): Remove m4/inttypes-pri.m4.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5892
diff
changeset
|
215 |
5895
1640ff3cd5f5
* getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5894
diff
changeset
|
216 * getlogin_r.c (getlogin_r): Don't set errno to 0 on return. |
1640ff3cd5f5
* getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5894
diff
changeset
|
217 |
5894
d09af5fbd9f2
* modules/fts (Files): Remove m4/inttypes-pri.m4.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5892
diff
changeset
|
218 * fts.c: Don't worry about debugging on pre-C99-comopatible hosts; |
d09af5fbd9f2
* modules/fts (Files): Remove m4/inttypes-pri.m4.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5892
diff
changeset
|
219 the configuration hassle isn't worth it. |
d09af5fbd9f2
* modules/fts (Files): Remove m4/inttypes-pri.m4.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5892
diff
changeset
|
220 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG. |
d09af5fbd9f2
* modules/fts (Files): Remove m4/inttypes-pri.m4.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5892
diff
changeset
|
221 (LONGEST_MODIFIER, PRIuMAX): Remove. |
d09af5fbd9f2
* modules/fts (Files): Remove m4/inttypes-pri.m4.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5892
diff
changeset
|
222 |
5892 | 223 2005-05-27 Bruno Haible <bruno@clisp.org> |
224 | |
225 * getlogin_r.h: Remove second include of <stddef.h>. | |
226 | |
5888
266767a72575
* getlogin_r.h: Simplify API documentation.
Derek R. Price <derek@ximbiot.com>
parents:
5887
diff
changeset
|
227 2005-05-25 Bruno Haible <bruno@clisp.org> |
266767a72575
* getlogin_r.h: Simplify API documentation.
Derek R. Price <derek@ximbiot.com>
parents:
5887
diff
changeset
|
228 Derek Price <derek@ximbiot.com> |
266767a72575
* getlogin_r.h: Simplify API documentation.
Derek R. Price <derek@ximbiot.com>
parents:
5887
diff
changeset
|
229 |
266767a72575
* getlogin_r.h: Simplify API documentation.
Derek R. Price <derek@ximbiot.com>
parents:
5887
diff
changeset
|
230 * getlogin_r.h: Simplify API documentation. |
266767a72575
* getlogin_r.h: Simplify API documentation.
Derek R. Price <derek@ximbiot.com>
parents:
5887
diff
changeset
|
231 |
5887
cfb8f3b61b7f
Fix a few glitches in getlogin_r.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5882
diff
changeset
|
232 2005-05-25 Derek Price <derek@ximbiot.com> |
cfb8f3b61b7f
Fix a few glitches in getlogin_r.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5882
diff
changeset
|
233 Paul Eggert <eggert@cs.ucla.edu> |
cfb8f3b61b7f
Fix a few glitches in getlogin_r.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5882
diff
changeset
|
234 |
cfb8f3b61b7f
Fix a few glitches in getlogin_r.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5882
diff
changeset
|
235 * getlogin_r.c, getlogin_r.h: New files. |
cfb8f3b61b7f
Fix a few glitches in getlogin_r.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5882
diff
changeset
|
236 |
5882
4166e2857787
Add autoconf tests for the 'minmax' module.
Bruno Haible <bruno@clisp.org>
parents:
5880
diff
changeset
|
237 2005-05-22 Bruno Haible <bruno@clisp.org> |
4166e2857787
Add autoconf tests for the 'minmax' module.
Bruno Haible <bruno@clisp.org>
parents:
5880
diff
changeset
|
238 |
4166e2857787
Add autoconf tests for the 'minmax' module.
Bruno Haible <bruno@clisp.org>
parents:
5880
diff
changeset
|
239 * minmax.h: Include <limits.h> only when it defines MIN, MAX. |
4166e2857787
Add autoconf tests for the 'minmax' module.
Bruno Haible <bruno@clisp.org>
parents:
5880
diff
changeset
|
240 Also include <sys/param.h> if it defines MIN, MAX. |
4166e2857787
Add autoconf tests for the 'minmax' module.
Bruno Haible <bruno@clisp.org>
parents:
5880
diff
changeset
|
241 Based on a patch by Derek Price <derek@ximbiot.com>. |
4166e2857787
Add autoconf tests for the 'minmax' module.
Bruno Haible <bruno@clisp.org>
parents:
5880
diff
changeset
|
242 |
5878
2b44331388e9
Rename HAVE_SYSTEM_INTTYPES macro.
Bruno Haible <bruno@clisp.org>
parents:
5877
diff
changeset
|
243 2005-05-22 Bruno Haible <bruno@clisp.org> |
2b44331388e9
Rename HAVE_SYSTEM_INTTYPES macro.
Bruno Haible <bruno@clisp.org>
parents:
5877
diff
changeset
|
244 |
5880 | 245 * stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs. |
246 (INT64_MIN): Fix definition. | |
247 Suggested by Paul Eggert <eggert@cs.ucla.edu>. | |
248 | |
5879
dc26ae8b485e
Rename NEED_SIGNED_INT_TYPES macro.
Bruno Haible <bruno@clisp.org>
parents:
5878
diff
changeset
|
249 * stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from |
dc26ae8b485e
Rename NEED_SIGNED_INT_TYPES macro.
Bruno Haible <bruno@clisp.org>
parents:
5878
diff
changeset
|
250 NEED_SIGNED_INT_TYPES. |
dc26ae8b485e
Rename NEED_SIGNED_INT_TYPES macro.
Bruno Haible <bruno@clisp.org>
parents:
5878
diff
changeset
|
251 |
5878
2b44331388e9
Rename HAVE_SYSTEM_INTTYPES macro.
Bruno Haible <bruno@clisp.org>
parents:
5877
diff
changeset
|
252 * stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from |
2b44331388e9
Rename HAVE_SYSTEM_INTTYPES macro.
Bruno Haible <bruno@clisp.org>
parents:
5877
diff
changeset
|
253 HAVE_SYSTEM_INTTYPES. |
2b44331388e9
Rename HAVE_SYSTEM_INTTYPES macro.
Bruno Haible <bruno@clisp.org>
parents:
5877
diff
changeset
|
254 |
5877
aafd5b8ee85f
* fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5872
diff
changeset
|
255 2005-05-22 Paul Eggert <eggert@cs.ucla.edu> |
aafd5b8ee85f
* fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5872
diff
changeset
|
256 |
aafd5b8ee85f
* fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5872
diff
changeset
|
257 * fts.c (fd_safer) [_LGPL_PACKAGE]: New static function, |
aafd5b8ee85f
* fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5872
diff
changeset
|
258 so that unistd-safer.h (GPL'ed code) need not be included. |
aafd5b8ee85f
* fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5872
diff
changeset
|
259 |
5872 | 260 2005-05-20 Paul Eggert <eggert@cs.ucla.edu> |
261 | |
262 New fts module. | |
263 * fts.c: Don't include "cycle-check.h" or "hash.h". | |
264 (setup_dir, free_dir): New functions. | |
265 (enter_dir, leave_dir): Define trivial | |
266 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE. | |
267 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed. | |
268 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir. | |
269 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir): | |
270 Move to fts-cycle.c. | |
271 (fts_open): Use setup_dir. | |
272 (fts_close): Use free_dir. | |
273 (fts_read): Have just one copy of the ENTER_DIR code rather than three. | |
274 This adds a label and some gotos, but the alternatives were messier. | |
275 Check for memory allocation failure when entering a dir. | |
276 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code. | |
277 * fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro. | |
278 (FTS): New member fts_cycle, that is a union that contains the | |
279 old active_dir_ht and cycle_state. All uses changed to mention | |
280 fts_cycle.ht and fts_cycle.state. | |
281 * fts-cycle.c: New file, containing GPL'ed code migrated out of | |
282 fts.c, with the following changes: | |
283 (setup_dir, free_dir): New functions. | |
284 (enter_dir): Now returns bool. Return true if successful, false | |
285 if memory exhausted. All callers changed. | |
286 Do not bother partly cleaning up on | |
287 memory allocation failure; that is free_dir's job. | |
288 However, free ad if hash_insert fails, to avoid memory leak. | |
289 (enter_dir, leave_dir): Accommodate change to FTS by inspecting | |
290 fts->fts_options to see which union member to use. | |
291 | |
292 2005-05-20 Jim Meyering <jim@meyering.net> | |
293 | |
294 * unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]: | |
295 Now a macro, to pacify GCC. | |
296 | |
5871
8b95519c71b9
* lib/chown.c (rpl_chown): Return -1 on failure.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5869
diff
changeset
|
297 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change) |
8b95519c71b9
* lib/chown.c (rpl_chown): Return -1 on failure.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5869
diff
changeset
|
298 |
8b95519c71b9
* lib/chown.c (rpl_chown): Return -1 on failure.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5869
diff
changeset
|
299 * chown.c (rpl_chown): Return -1 on failure. |
8b95519c71b9
* lib/chown.c (rpl_chown): Return -1 on failure.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5869
diff
changeset
|
300 |
5869 | 301 2005-05-18 Paul Eggert <eggert@cs.ucla.edu> |
302 | |
303 * canonicalize.c: Include canonicalize.h first, to test interface. | |
304 Include <stddef.h> unconditionally, since we assume C89 now. | |
305 All uses of PTR_INT_TYPE replaced by ptrdiff_t. | |
306 * fts.c: Include fts_.h first, to check interface. | |
307 Do not include intprops.h; no longer needed. | |
308 Include cycle-check.h and hash.h, since fts_.h no longer does. | |
309 Remove unnecessary casts of closedir to void. | |
310 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to | |
311 decide whether to decrement nlinks. | |
312 * fts_.h: Do not include hash.h or cycle-check.h; no longer needed. | |
313 (FTS): Use struct hash_table * instead of Hash_table, so that | |
314 we no longer need to include hash.h here. | |
315 | |
5858
942c4d17dd7d
New files, from coreutils.
Jim Meyering <jim@meyering.net>
parents:
5855
diff
changeset
|
316 2005-05-17 Jim Meyering <jim@meyering.net> |
942c4d17dd7d
New files, from coreutils.
Jim Meyering <jim@meyering.net>
parents:
5855
diff
changeset
|
317 |
942c4d17dd7d
New files, from coreutils.
Jim Meyering <jim@meyering.net>
parents:
5855
diff
changeset
|
318 * fts.c, fts_.h: New files, from coreutils. |
942c4d17dd7d
New files, from coreutils.
Jim Meyering <jim@meyering.net>
parents:
5855
diff
changeset
|
319 |
5851 | 320 2005-05-14 Paul Eggert <eggert@cs.ucla.edu> |
321 | |
322 Sync from coreutils. | |
5852 | 323 * unlinkdir.c, unlinkdir.h: New files. |
5851 | 324 * gethrxtime.c, gethrxtime.h, getpass.h, mountlist.h, path-concat.c, |
5855
46707c0e2a95
Undo previous change to strtoll.c, so it stays in sync with libc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5852
diff
changeset
|
325 regex.h, unlocked-io.h, xtime.h: |
5851 | 326 White space changes only. |
327 * makepath.c (make_path): Port to hosts where leading "//" is special. | |
328 * yesno.c: Include getline.h, not ctype.h. | |
329 (yesno): Don't remove leading white space; POSIX doesn't allow it. | |
330 Use getline to remove arbitrary restriction on response length. | |
331 | |
5850
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
332 2005-05-13 Bruno Haible <bruno@clisp.org> |
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
333 |
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
334 * stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t, |
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
335 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX, |
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
336 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, |
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
337 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN, |
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
338 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C): |
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
339 Add support for 64-bit integers in the MSVC compiler. |
1b7017c2d9b8
Add support for 64-bit integers in the MSVC compiler.
Bruno Haible <bruno@clisp.org>
parents:
5849
diff
changeset
|
340 |
5848
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
341 2005-05-13 Paul Eggert <eggert@cs.ucla.edu> |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
342 |
5849
55d536714415
Change the initial comment to refer to GPL, not LGPL.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
343 * byteswap_.h, getsubopt.h, iconvme.h, strsep.c, strsep.h: |
55d536714415
Change the initial comment to refer to GPL, not LGPL.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
344 Change the initial comment to refer to GPL, not LGPL. |
55d536714415
Change the initial comment to refer to GPL, not LGPL.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
345 gnulib-tool will change it to LGPL as needed. |
55d536714415
Change the initial comment to refer to GPL, not LGPL.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5848
diff
changeset
|
346 |
5848
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
347 * __fpending.c, acl.c, acl.h, alloca_.h, allocsa.c, allocsa.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
348 argmatch.c, argmatch.h, argp-ba.c, argp-eexst.c, argp-fmtstream.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
349 argp-fmtstream.h, argp-fs-xinl.c, argp-help.c, argp-namefrob.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
350 argp-parse.c, argp-pv.c, argp-pvh.c, argp-xinl.c, argp.h, argz.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
351 argz_.h, asnprintf.c, asprintf.c, atanl.c, backupfile.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
352 backupfile.h, base64.c, base64.h, basename.c, binary-io.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
353 byteswap_.h, c-ctype.c, c-ctype.h, c-stack.c, c-stack.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
354 c-strtod.c, calloc.c, canon-host.c, canonicalize.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
355 canonicalize.h, ceill.c, chdir-long.c, chdir-long.h, chown.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
356 classpath.c, classpath.h, cloexec.c, closeout.c, closeout.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
357 concatpath.c, config.charset, copy-file.c, copy-file.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
358 cycle-check.c, cycle-check.h, diacrit.c, diacrit.h, dirfd.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
359 dirfd.h, dirname.c, dirname.h, dummy.c, dup-safer.c, dup2.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
360 eealloc.h, error.c, error.h, euidaccess.c, exclude.c, exclude.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
361 execute.c, execute.h, exit.h, exitfail.c, exitfail.h, expl.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
362 fatal-signal.c, fatal-signal.h, fd-safer.c, file-type.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
363 file-type.h, fileblocks.c, filemode.c, filemode.h, findprog.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
364 findprog.h, floorl.c, fnmatch.c, fnmatch_.h, fnmatch_loop.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
365 fopen-safer.c, free.c, frexpl.c, fsusage.c, fsusage.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
366 full-read.c, full-read.h, full-write.c, full-write.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
367 fwriteerror.c, fwriteerror.h, gai_strerror.c, gcd.c, gcd.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
368 getaddrinfo.c, getaddrinfo.h, getcwd.c, getcwd.h, getdate.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
369 getdate.y, getdomainname.c, getdomainname.h, getgroups.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
370 gethostname.c, gethrxtime.c, gethrxtime.h, getline.c, getline.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
371 getloadavg.c, getndelim2.c, getndelim2.h, getnline.c, getnline.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
372 getopt.c, getopt1.c, getopt_.h, getopt_int.h, getpagesize.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
373 getpass.c, getpass.h, getsubopt.c, getsubopt.h, gettext.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
374 gettime.c, gettimeofday.c, getugroups.c, getusershell.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
375 group-member.c, group-member.h, hard-locale.c, hard-locale.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
376 hash-pjw.c, hash-pjw.h, hash.c, hash.h, human.c, human.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
377 iconvme.c, iconvme.h, idcache.c, inet_ntop.h, intprops.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
378 inttostr.c, inttostr.h, isdir.c, javacomp.c, javacomp.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
379 javacomp.sh.in, javaexec.c, javaexec.h, javaexec.sh.in, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
380 lbrkprop.h, lchown.c, ldexpl.c, linebreak.c, linebreak.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
381 linebuffer.c, linebuffer.h, localcharset.c, localcharset.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
382 logl.c, long-options.c, long-options.h, lstat.c, makepath.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
383 makepath.h, malloc.c, mathl.h, mbswidth.c, mbswidth.h, md5.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
384 md5.h, memcasecmp.c, memcasecmp.h, memchr.c, memcmp.c, memcoll.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
385 memcoll.h, memcpy.c, memmem.c, memmem.h, mempcpy.c, mempcpy.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
386 memrchr.c, memrchr.h, memset.c, minmax.h, mkdir.c, mkdtemp.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
387 mkdtemp.h, mkstemp.c, mktime.c, modechange.c, modechange.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
388 mountlist.c, mountlist.h, nanosleep.c, obstack.c, obstack.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
389 openat.c, openat.h, pagealign_alloc.c, pagealign_alloc.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
390 path-concat.c, path-concat.h, pathmax.h, pathname.h, physmem.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
391 physmem.h, pipe.c, pipe.h, poll.c, poll_.h, posixtm.c, posixtm.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
392 posixver.c, printf-args.c, printf-args.h, printf-parse.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
393 printf-parse.h, progname.c, progname.h, progreloc.c, putenv.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
394 quote.c, quote.h, quotearg.c, quotearg.h, raise.c, readlink.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
395 readtokens.c, readtokens.h, readtokens0.c, readtokens0.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
396 readutmp.c, readutmp.h, realloc.c, ref-add.sin, ref-del.sin, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
397 regex.c, regex.h, rename.c, rmdir.c, rpmatch.c, safe-read.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
398 safe-read.h, safe-write.c, safe-write.h, same.c, same.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
399 save-cwd.c, save-cwd.h, savedir.c, savedir.h, setenv.c, setenv.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
400 settime.c, sh-quote.c, sh-quote.h, sha1.c, sha1.h, sig2str.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
401 sig2str.h, sincosl.c, snprintf.c, snprintf.h, sqrtl.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
402 stat-macros.h, stat.c, stdbool_.h, stdint_.h, stdio-safer.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
403 stpcpy.c, stpcpy.h, stpncpy.c, stpncpy.h, strcase.h, strcasecmp.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
404 strchrnul.c, strchrnul.h, strcspn.c, strdup.c, strdup.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
405 strerror.c, strftime.c, strftime.h, stripslash.c, strndup.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
406 strndup.h, strnlen.c, strpbrk.c, strpbrk.h, strsep.c, strsep.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
407 strstr.c, strstr.h, strtod.c, strtoimax.c, strtok_r.c, strtok_r.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
408 strtol.c, strtoll.c, strtoul.c, strtoull.c, strverscmp.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
409 strverscmp.h, sysexit_.h, tempname.c, time_r.c, time_r.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
410 timegm.c, timegm.h, timespec.h, trigl.c, trigl.h, ucs4-utf16.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
411 ucs4-utf8.h, unicodeio.c, unicodeio.h, unistd-safer.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
412 unlocked-io.h, unsetenv.c, userspec.c, utf16-ucs4.h, utf8-ucs4.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
413 utime.c, utimecmp.c, utimecmp.h, utimens.c, vasnprintf.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
414 vasnprintf.h, vasprintf.c, vasprintf.h, version-etc-fsf.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
415 version-etc.c, version-etc.h, vsnprintf.c, vsnprintf.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
416 w32spawn.h, wait-process.c, wait-process.h, xalloc-die.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
417 xalloc.h, xallocsa.c, xallocsa.h, xasprintf.c, xgetcwd.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
418 xgetcwd.h, xgetdomainname.c, xgetdomainname.h, xgethostname.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
419 xmalloc.c, xmemcoll.c, xnanosleep.c, xreadlink.c, xreadlink.h, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
420 xsetenv.c, xsetenv.h, xsize.h, xstrndup.c, xstrndup.h, xstrtod.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
421 xstrtod.h, xstrtoimax.c, xstrtol.c, xstrtol.h, xstrtoumax.c, |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
422 xtime.h, xvasprintf.c, xvasprintf.h, yesno.c, yesno.h: |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
423 Update FSF postal mail address. |
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5833
diff
changeset
|
424 |
5833
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
425 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com> |
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
426 |
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
427 * getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are |
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
428 specified in ai_socktype. Fix invalid ai_protocol |
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
429 check. ai_protocol is usually set to 0 or depending on |
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
430 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for |
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
431 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set |
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
432 ai_socktype / ai_protocol in the returned addrinfo structure. |
98c5aa5b3a1f
getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
Simon Josefsson <simon@josefsson.org>
parents:
5825
diff
changeset
|
433 |
5825 | 434 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com> |
5858
942c4d17dd7d
New files, from coreutils.
Jim Meyering <jim@meyering.net>
parents:
5855
diff
changeset
|
435 Bruno Haible <bruno@clisp.org> |
5825 | 436 |
437 * inet_ntop.h: New file. | |
438 * inet_ntop.c: New file, from glibc with modifications. | |
439 | |
5823 | 440 2005-05-08 Jim Meyering <jim@meyering.net> |
441 | |
442 * classpath.c (PATH_SEPARATOR): Remove insignificant trailing blank. | |
443 | |
5813 | 444 2005-05-01 Paul Eggert <eggert@cs.ucla.edu> |
445 | |
446 Merge from coreutils. Among other things, | |
447 add bulletproofing for cases where stdin, stdout, or stderr are closed. | |
448 * fd-safer.c: New file. | |
449 * fcntl-safer.h, open-safer.c: Remove. | |
450 * chdir-long.c: Fix comment "fetish" -> "coreutils". | |
451 * dup-safer.c: Include unistd-safer.h first. | |
452 Don't include errno.h. | |
453 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work. | |
454 * file-type.h: Don't assume invoker included sys/stat.h first. | |
455 * file-type.c: Rely on file-type.h change. | |
456 * getloadavg.c: Include unistd-safer.h. | |
457 (getloadavg): Use safer open. | |
458 * getusershell.c: Include "stdio-safer.h". | |
459 (getusershell): Use safer fopen. | |
460 * long-options.c (long_options): Use NULL rather than 0. | |
461 * modechange.h (mode_free): Remove; all callers changed to invoke | |
462 'free'. | |
463 * modechange.c: Likewise. | |
464 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed. | |
465 (MODE_DONE): New constant. | |
466 (struct mode_change): Remove 'next' member. | |
467 (make_node_op_equals): New function; like the old one of the | |
468 same name, except it allocates an array. | |
469 (mode_compile, mode_create_from_ref): Use it. | |
470 (mode_compile): Allocate result as an array, not a linked list. | |
471 Parse octal string ourself, so that we catch mistakes like "+0". | |
472 (mode_adjust): Arg is an array, not a linked list. | |
473 * modechange.c: Include stat-macros.h, xalloc.h. | |
474 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR): | |
475 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU): | |
476 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS): | |
477 Remove. This is now stat-macros.h's job. | |
478 (talloc): Remove. All callers replaced by xalloc, so that | |
479 our invokers don't have to worry about reporting memory failures. | |
480 (make_node_op_equals): Remove. | |
481 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING): | |
482 New constants. | |
483 (struct mode_change): Moved here from modechange.h. | |
484 (mode_append_entry): Remove. | |
485 (mode_compile): Remove MASKED_OPS arg, since it encouraged | |
486 apps to have incorrect behavior. Use simpler algorithm for head | |
487 and tail. Don't futz with umask; that's now the job of mode_adjust. | |
488 Detect more invalid usages rather than having somewhat-random behavior. | |
489 Don't insert an "a=" action, as that leads to incorrect behavior. | |
490 (mode_compile, mode_create_from_ref): Return NULL on error instead | |
491 of an enum, since now there's only one way to have an error. All | |
492 callers changed. | |
493 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it | |
494 at the correct time. Simplify calculation of "+u" and its ilk. | |
495 Don't mishandle "+X". | |
496 (mode_free): Remove "register" and localize decls. | |
497 * modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING): | |
498 (struct mode_change): Move to modechange.c; callers don't | |
499 need to see this stuff. | |
500 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL): | |
501 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove. | |
502 (mode_change, mode_adjust): Reflect the new signatures noted above. | |
503 * nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros | |
504 that might redefine system include files. | |
505 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro. | |
506 (my_usleep): Use NULL rather than (void *) 0. | |
507 (rpl_nanosleep) [!defined SA_NOCLDSTOP]: | |
508 Use siginterrupt to specify that system calls should be interrupted. | |
509 (rpl_nanosleep): Move initialization of suspended closer to call of | |
510 my_usleep. | |
511 * readutmp.h (read_utmp): New arg OPTIONS. All uses changed. | |
512 * readutmp.c: Likewise. Include signal.h, stdbool.h. | |
513 (desirable_utmp_entry): New function. | |
514 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation | |
515 using x2nrealloc, to simplify logic. | |
516 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in | |
517 size calculation. Do not assume utmp file is a regular file. | |
518 * readutmp.h (UT_PID): Moved here from ../src/who.c. | |
519 (READ_UTMP_CHECK_PIDS): New constant. | |
520 * save-cwd.c: Include unistd-safer.h. | |
521 (save_cwd): Use fd_safer. | |
522 * tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove. | |
523 [!_LIBC] Include "stat-macros.h" instead. | |
524 * unistd-safer.h (fd_safer): New decl. | |
525 | |
5810 | 526 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu> |
527 | |
528 * byteswap_.h: New file. | |
529 | |
5809 | 530 2005-04-25 Albert Chin <china@thewrittenword.com> |
5808
d738e2619e2a
Workaround. From Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
Bruno Haible <bruno@clisp.org>
parents:
5796
diff
changeset
|
531 |
d738e2619e2a
Workaround. From Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
Bruno Haible <bruno@clisp.org>
parents:
5796
diff
changeset
|
532 * regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop |
d738e2619e2a
Workaround. From Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
Bruno Haible <bruno@clisp.org>
parents:
5796
diff
changeset
|
533 Toolkit C bug. |
d738e2619e2a
Workaround. From Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
Bruno Haible <bruno@clisp.org>
parents:
5796
diff
changeset
|
534 |
5796
a19a92973924
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5794
diff
changeset
|
535 2005-04-13 Paul Eggert <eggert@cs.ucla.edu> |
a19a92973924
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5794
diff
changeset
|
536 |
a19a92973924
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5794
diff
changeset
|
537 * getdate.y (zone): Allow relunit_snumber after tZONE, so |
a19a92973924
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5794
diff
changeset
|
538 that "UTC +1 second" continues to work. Problem reported |
a19a92973924
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5794
diff
changeset
|
539 by Dmitry V. Levin. |
a19a92973924
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5794
diff
changeset
|
540 (relunit_snumber): New rule. |
a19a92973924
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5794
diff
changeset
|
541 (relunit): Use it. |
a19a92973924
* getdate.y (zone): Allow relunit_snumber after tZONE.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5794
diff
changeset
|
542 |
5794
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
543 2005-04-12 Paul Eggert <eggert@cs.ucla.edu> |
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
544 |
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
545 * getdate.y (universal_time_zone_table): New constant. |
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
546 (time_zone_table): Remove GMT, UT, UTC entries; they're now in |
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
547 universal_time_zone_table. |
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
548 (lookup_zone): Prefer universal_time_zone_table to |
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
549 local_time_zone_table, so that "GMT" time stamps are allowed in |
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
550 London during the summer. Problem reported by Ian Abbott. |
06cda1ed2c7f
* getdate.y (universal_time_zone_table): New constant.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5792
diff
changeset
|
551 |
5792 | 552 2005-04-12 Jim Meyering <jim@meyering.net> |
553 | |
554 * human.c (humblock): Set *options even when returning due to | |
555 xstrtoumax conversion failure. Thanks to a used-uninitialized | |
556 warning from gcc-4. | |
557 | |
5789 | 558 2005-04-09 Jim Meyering <jim@meyering.net> |
559 | |
560 * posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's | |
561 -Wuninitialized: initialize tm0.tm_year. | |
562 | |
5786
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
563 2005-04-04 Paul Eggert <eggert@cs.ucla.edu> |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
564 |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
565 * getdate.y (parser_control): rels_seen is now a boolean, not a |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
566 count, since there's no maximum. All uses changed. |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
567 Add member dsts_seen. |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
568 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
569 not being INT_MAX. |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
570 (get_date): Initialize dsts_seen, and check that it doesn't go over 1. |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
571 Use pc_rels_seen to decide whther a date is absolute. |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
572 |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
573 * getdate.y (number): Don't overwrite year. |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
574 (get_date): Initialize pc.year.digits to 0, not 4, to enable above |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
575 check. |
3293578b2f71
getdate.y patch for parsing empty string near DST boundaries.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5785
diff
changeset
|
576 |
5785
8cecd2398182
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5780
diff
changeset
|
577 2005-04-02 Simon Josefsson <jas@extundo.com> |
8cecd2398182
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5780
diff
changeset
|
578 |
8cecd2398182
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5780
diff
changeset
|
579 * getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny |
8cecd2398182
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5780
diff
changeset
|
580 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>. |
8cecd2398182
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5780
diff
changeset
|
581 |
5779 | 582 2005-03-27 Jim Meyering <jim@meyering.net> |
583 | |
584 * argmatch.c: Clarify comment: null-terminated -> NULL-terminated. | |
585 | |
5772
cb318fac9b20
* intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
Paul Eggert <eggert@cs.ucla.edu>
parents:
5767
diff
changeset
|
586 2005-03-26 Paul Eggert <eggert@cs.ucla.edu> |
cb318fac9b20
* intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
Paul Eggert <eggert@cs.ucla.edu>
parents:
5767
diff
changeset
|
587 |
cb318fac9b20
* intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
Paul Eggert <eggert@cs.ucla.edu>
parents:
5767
diff
changeset
|
588 * intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): |
5774
082be5ffacd4
one's complement -> ones' complement
Paul Eggert <eggert@cs.ucla.edu>
parents:
5772
diff
changeset
|
589 "one's complement" -> "ones' complement" in comment, as per Knuth. |
5772
cb318fac9b20
* intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
Paul Eggert <eggert@cs.ucla.edu>
parents:
5767
diff
changeset
|
590 "value of type" -> "type or expression" in comment. |
5775
73ab05626d30
Propagate intprops.h comment fixes to mktime.c and strftime.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5774
diff
changeset
|
591 * mktime.c, strftime.c: Propagate intprops.h comment nits. |
5772
cb318fac9b20
* intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
Paul Eggert <eggert@cs.ucla.edu>
parents:
5767
diff
changeset
|
592 |
5767 | 593 2005-03-26 Jim Meyering <jim@meyering.net> |
594 | |
595 Comment nits. | |
596 * intprops.h: Add the apostrophe in `(one|two)'s complement'. | |
597 Correct typos: s/or/of/. | |
598 | |
5753 | 599 2005-03-23 Jim Meyering <jim@meyering.net> |
600 | |
601 * canonicalize.c: Remove duplicate `#include "stat-macros.h"'. | |
602 | |
5723
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
603 2005-03-21 Jim Meyering <jim@meyering.net> |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
604 |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
605 Changes imported from coreutils. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
606 |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
607 * cycle-check.c: Don't include xalloc.h. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
608 |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
609 * path-concat.c: Don't include assert.h. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
610 (path_concat): Remove assertion that would have triggered |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
611 for ABASE starting with more than one slash. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
612 Reported by Andreas Schwab. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
613 |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
614 * path-concat.c (path_concat): Set *BASE_IN_RESULT |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
615 properly when ABASE is an absolute file name. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
616 Correct the description of this function. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
617 Include <assert.h>. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
618 Add an assertion and a test driver. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
619 This fixes a bug introduced on 2004-07-02. |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
620 Andreas Schwab reported the resulting failure of cp --parents: |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
621 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html |
abb9957d8566
Import changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5715
diff
changeset
|
622 |
5715
906acc558e32
* strftime.c (my_strftime): If the underlying strftime returns 0
Paul Eggert <eggert@cs.ucla.edu>
parents:
5713
diff
changeset
|
623 2005-03-18 Paul Eggert <eggert@cs.ucla.edu> |
906acc558e32
* strftime.c (my_strftime): If the underlying strftime returns 0
Paul Eggert <eggert@cs.ucla.edu>
parents:
5713
diff
changeset
|
624 |
906acc558e32
* strftime.c (my_strftime): If the underlying strftime returns 0
Paul Eggert <eggert@cs.ucla.edu>
parents:
5713
diff
changeset
|
625 * strftime.c (my_strftime): If the underlying strftime returns 0 |
906acc558e32
* strftime.c (my_strftime): If the underlying strftime returns 0
Paul Eggert <eggert@cs.ucla.edu>
parents:
5713
diff
changeset
|
626 (which shouldn't happen), generate nothing instead of returning 0 |
906acc558e32
* strftime.c (my_strftime): If the underlying strftime returns 0
Paul Eggert <eggert@cs.ucla.edu>
parents:
5713
diff
changeset
|
627 immediately, so that nstrftime (NULL, ...) doesn't return 0. |
906acc558e32
* strftime.c (my_strftime): If the underlying strftime returns 0
Paul Eggert <eggert@cs.ucla.edu>
parents:
5713
diff
changeset
|
628 |
5713
b91d73b06792
Rename HAVE_LONGLONG_64BIT to HAVE_LONG_LONG_64BIT.
Bruno Haible <bruno@clisp.org>
parents:
5712
diff
changeset
|
629 2005-03-16 Bruno Haible <bruno@clisp.org> |
b91d73b06792
Rename HAVE_LONGLONG_64BIT to HAVE_LONG_LONG_64BIT.
Bruno Haible <bruno@clisp.org>
parents:
5712
diff
changeset
|
630 |
b91d73b06792
Rename HAVE_LONGLONG_64BIT to HAVE_LONG_LONG_64BIT.
Bruno Haible <bruno@clisp.org>
parents:
5712
diff
changeset
|
631 * stdint_.h: Use HAVE_LONG_LONG_64BIT instead of HAVE_LONGLONG_64BIT. |
b91d73b06792
Rename HAVE_LONGLONG_64BIT to HAVE_LONG_LONG_64BIT.
Bruno Haible <bruno@clisp.org>
parents:
5712
diff
changeset
|
632 |
5712
949b55c4668c
* strftime.c (my_strftime): Prepend space to format.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5710
diff
changeset
|
633 2005-03-15 Paul Eggert <eggert@cs.ucla.edu> |
949b55c4668c
* strftime.c (my_strftime): Prepend space to format.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5710
diff
changeset
|
634 |
949b55c4668c
* strftime.c (my_strftime): Prepend space to format.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5710
diff
changeset
|
635 * strftime.c (my_strftime): Prepend space to format so that we can |
949b55c4668c
* strftime.c (my_strftime): Prepend space to format.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5710
diff
changeset
|
636 reliably distinguish strftime failure from empty output on POSIX |
949b55c4668c
* strftime.c (my_strftime): Prepend space to format.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5710
diff
changeset
|
637 hosts. |
949b55c4668c
* strftime.c (my_strftime): Prepend space to format.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5710
diff
changeset
|
638 |
5710 | 639 2005-03-08 Paul Eggert <eggert@cs.ucla.edu> |
640 | |
641 * iconvme.c (SIZE_MAX): New macro, if not already defined. | |
642 (iconv_string): Don't guess a size-zero buffer, as that might cause | |
643 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the | |
644 result would be 'too large', where 'too large' is (heuristically) | |
645 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay | |
646 overflow concerns. This will prevent some unwanted malloc failures | |
647 when the inputs are very large. | |
648 | |
5706
b4e995417c9b
Rename local variable 'not'. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5704
diff
changeset
|
649 2005-03-15 Bruno Haible <bruno@clisp.org> |
b4e995417c9b
Rename local variable 'not'. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5704
diff
changeset
|
650 |
b4e995417c9b
Rename local variable 'not'. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5704
diff
changeset
|
651 * regex.c (byte_re_match_2_internal): Rename local variable 'not' to |
b4e995417c9b
Rename local variable 'not'. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5704
diff
changeset
|
652 'negate'. |
b4e995417c9b
Rename local variable 'not'. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5704
diff
changeset
|
653 |
5707
8cfacae7bbe5
Avoid goto-ing inside the scope of a local variable. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5706
diff
changeset
|
654 * regex.c (byte_re_match_2_internal): Reduce scope of same_str_p |
8cfacae7bbe5
Avoid goto-ing inside the scope of a local variable. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5706
diff
changeset
|
655 variable. |
8cfacae7bbe5
Avoid goto-ing inside the scope of a local variable. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5706
diff
changeset
|
656 |
5708
fe9ee0b5e8c9
Cast the malloc/realloc results. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5707
diff
changeset
|
657 * regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc results. |
fe9ee0b5e8c9
Cast the malloc/realloc results. Needed when CC=g++.
Bruno Haible <bruno@clisp.org>
parents:
5707
diff
changeset
|
658 |
5704
e5769b367399
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5703
diff
changeset
|
659 2005-03-14 Paul Eggert <eggert@cs.ucla.edu> |
e5769b367399
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5703
diff
changeset
|
660 |
e5769b367399
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5703
diff
changeset
|
661 * mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT, |
e5769b367399
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5703
diff
changeset
|
662 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from |
e5769b367399
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5703
diff
changeset
|
663 intprops.h. |
e5769b367399
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5703
diff
changeset
|
664 * strtol.c: Likewise. |
e5769b367399
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5703
diff
changeset
|
665 |
e5769b367399
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5703
diff
changeset
|
666 2005-03-14 Simon Josefsson <jas@extundo.com> |
5703
b1e51243bfb4
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5701
diff
changeset
|
667 |
b1e51243bfb4
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5701
diff
changeset
|
668 * timegm.h: Use proper prototype CPP guards, reported by Dave Love |
b1e51243bfb4
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5701
diff
changeset
|
669 <fx@gnu.org>. |
b1e51243bfb4
*** empty log message ***
Simon Josefsson <simon@josefsson.org>
parents:
5701
diff
changeset
|
670 |
5701
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
671 2005-03-14 Jim Meyering <jim@meyering.net> |
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
672 |
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
673 * strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT |
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
674 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[] |
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
675 to be nonzero so that we (and caller) can detect the difference |
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
676 between a valid zero-length expansion and an error return, even |
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
677 when the underlying strftime fails before writing anything into |
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
678 that location. |
37123bca7528
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert <eggert@cs.ucla.edu>
parents:
5695
diff
changeset
|
679 |
5693 | 680 2005-03-10 Jim Meyering <jim@meyering.net> |
681 | |
682 * save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long | |
683 so that this module works on systems without fchdir. | |
684 | |
5691
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
685 2005-03-09 Paul Eggert <eggert@cs.ucla.edu> |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
686 |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
687 Factor int-properties macros into a single file, except for |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
688 glibc-related files. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
689 * intprops.h: New file. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
690 * getloadavg.c: Include it instead of limits.h. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
691 (INT_STRLEN_BOUND): Remove. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
692 * human.c: Include intprops.h. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
693 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
694 * human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
695 * inttostr.h: Include intprops.h instead of limits.h. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
696 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
697 * mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros, |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
698 for consistency with intprops.h. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
699 (time_t_is_integer, twos_complement_arithmetic): Use them. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
700 * sig2str.h: Include <signal.h>, intprops.h. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
701 (INT_STRLEN_BOUND): Remove. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
702 * strftime.c (TYPE_SIGNED): Remove. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
703 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
704 * strtol.c: Adjust comments to match intprops.h. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
705 * userspec.c: Include intprops.h. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
706 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
707 * utimecmp.c, xnanosleep.c, xstrtol.c: Likewise. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
708 * utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
709 instead of rolling our own expressions. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
710 * xstrtol.c: Include xstrtol.h first, to test interface. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
711 |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
712 * strftime.c: Include <stdbool.h>. Use bool where appropriate, |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
713 instead of int. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
714 (my_strftime): Do not mishandle years close to INT_MAX, by doing |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
715 the right thing even if adding 1900 would overflow. Similarly |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
716 for tm_mon + 1 and tm_yday + 1. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
717 Make %Y always equivalent to %C%y, and similarly for %G and %g. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
718 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
719 (DO_SIGNED_NUMBER): New macro. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
720 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1. |
ec62790f0938
Factor int-properties macros into a single file, except for
Paul Eggert <eggert@cs.ucla.edu>
parents:
5688
diff
changeset
|
721 |
5688
5421c00f20ab
Don't define MAP_FILE and MAP_FAILED before <sys/mman.h> has been included.
Bruno Haible <bruno@clisp.org>
parents:
5673
diff
changeset
|
722 2005-03-07 Bruno Haible <bruno@clisp.org> |
5421c00f20ab
Don't define MAP_FILE and MAP_FAILED before <sys/mman.h> has been included.
Bruno Haible <bruno@clisp.org>
parents:
5673
diff
changeset
|
723 |
5421c00f20ab
Don't define MAP_FILE and MAP_FAILED before <sys/mman.h> has been included.
Bruno Haible <bruno@clisp.org>
parents:
5673
diff
changeset
|
724 * pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks. |
5421c00f20ab
Don't define MAP_FILE and MAP_FAILED before <sys/mman.h> has been included.
Bruno Haible <bruno@clisp.org>
parents:
5673
diff
changeset
|
725 |
5673
dbfd56933568
New module 'pagealign_alloc'.
Bruno Haible <bruno@clisp.org>
parents:
5672
diff
changeset
|
726 2005-03-03 Derek R. Price <derek@ximbiot.com> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
727 Bruno Haible <bruno@clisp.org> |
5673
dbfd56933568
New module 'pagealign_alloc'.
Bruno Haible <bruno@clisp.org>
parents:
5672
diff
changeset
|
728 |
dbfd56933568
New module 'pagealign_alloc'.
Bruno Haible <bruno@clisp.org>
parents:
5672
diff
changeset
|
729 * pagealign_alloc.h: New file. |
dbfd56933568
New module 'pagealign_alloc'.
Bruno Haible <bruno@clisp.org>
parents:
5672
diff
changeset
|
730 * pagealign_alloc.c: New file. |
dbfd56933568
New module 'pagealign_alloc'.
Bruno Haible <bruno@clisp.org>
parents:
5672
diff
changeset
|
731 |
5672 | 732 2005-01-28 Bruno Haible <bruno@clisp.org> |
733 | |
734 * stpncpy.h (stpncpy): Define as a macro without arguments, so that | |
735 stpncpy.c uses it. | |
736 | |
5665
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
737 2005-03-01 Paul Eggert <eggert@cs.ucla.edu> |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
738 |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
739 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts. |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
740 The workaround isn't strictly needed for POSIX conformance, and |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
741 it's too much of a pain to configure and maintain. We'll ask |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
742 people to fix their kernels instead. |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
743 * xnanosleep.c: Don't include gethrxtime.h or xtime.h. |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
744 (NANOSLEEP_BUG_WORKAROUND): Remove. |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
745 (xnanosleep): Remove the workaround. |
ec3cc8a95f16
Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5664
diff
changeset
|
746 |
5664
13311bdb333d
Update from gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5662
diff
changeset
|
747 2005-02-12 Bruno Haible <bruno@clisp.org> |
13311bdb333d
Update from gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5662
diff
changeset
|
748 |
13311bdb333d
Update from gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5662
diff
changeset
|
749 * vasnprintf.c (EOVERFLOW): Define to a fallback if needed. |
13311bdb333d
Update from gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5662
diff
changeset
|
750 |
5662
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
751 2005-02-25 Paul Eggert <eggert@cs.ucla.edu> |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
752 |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
753 * gethrxtime.h, gethrxtime.c, xtime.h: New files. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
754 * timespec.h (gettime): Return void, since it always |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
755 succeeds now. All uses changed. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
756 * gettime.c (gettime) Likewise. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
757 [HAVE_NANOTIME]: Prefer nanotime. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
758 Assume gettimeofday succeeds, as POSIX requires. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
759 Assime time () succeeds, since other code already does. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
760 * xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
761 (timespec_subtract): Remove. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
762 (NANOSLEEP_BUG_WORKAROUND): New constant. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
763 (xnanosleep): Use gethrxtime rather than gettime; this simplifies |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
764 things considerably. Use it only on GNU/Linux hosts, since the |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
765 workaround shouldn't be needed elsewhere. |
42df9db003cc
* modules/gethrxtime: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5659
diff
changeset
|
766 |
5659
be44f23226e0
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5658
diff
changeset
|
767 2005-02-24 Bruno Haible <bruno@clisp.org> |
be44f23226e0
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5658
diff
changeset
|
768 |
be44f23226e0
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5658
diff
changeset
|
769 * gettext.h: Update from GNU gettext 0.14.2. |
be44f23226e0
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5658
diff
changeset
|
770 |
5658
9d475f8488d9
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5652
diff
changeset
|
771 2005-02-24 Bruno Haible <bruno@clisp.org> |
9d475f8488d9
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5652
diff
changeset
|
772 |
9d475f8488d9
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5652
diff
changeset
|
773 * localcharset.c: Update from GNU gettext 0.14.2. |
9d475f8488d9
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5652
diff
changeset
|
774 * config.charset: Update from GNU gettext 0.14.2. |
9d475f8488d9
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
5652
diff
changeset
|
775 |
5652
7c8ed35c4bd7
2005-02-22 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5647
diff
changeset
|
776 2005-02-22 Simon Josefsson <jas@extundo.com> |
7c8ed35c4bd7
2005-02-22 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5647
diff
changeset
|
777 |
7c8ed35c4bd7
2005-02-22 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5647
diff
changeset
|
778 * iconvme.h, iconvme.c: New files, from libc. |
7c8ed35c4bd7
2005-02-22 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
5647
diff
changeset
|
779 |
5647 | 780 2005-02-20 Neil Conway <neilc@samurai.com> |
781 | |
782 * xgethostname.c (xgethostname): Check for ENOMEM, which is | |
783 returned by OSX/Darwin if the specified buffer is not large | |
784 enough for the hostname. | |
785 | |
5637
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5636
diff
changeset
|
786 2005-02-03 Paul Eggert <eggert@cs.ucla.edu> |
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5636
diff
changeset
|
787 |
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5636
diff
changeset
|
788 * memrchr.h: New file. |
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5636
diff
changeset
|
789 * chdir-long.c: Include it. |
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5636
diff
changeset
|
790 * memrchr.c [!defined _LIBC]: Include it rather than <string.h> |
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5636
diff
changeset
|
791 Don't bother including stddef.h. |
2b20ff1c4169
* modules/chdir-long (Depends-on): Add memrchr.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5636
diff
changeset
|
792 |
5636 | 793 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net> |
794 | |
795 * argp-help.c (__argp_help): Create a fake struct argp_state and | |
796 pass it to _help, otherwise the latter coredumps trying to | |
797 dereference state.root_argp. | |
798 | |
5632
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
799 2005-02-01 Paul Eggert <eggert@cs.ucla.edu> |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
800 |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
801 * mountlist.h (MOUNTLIST_H_): New macro, to protect against double |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
802 inclusion. |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
803 Include <sys/types.h>, for dev_t. |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
804 (ME_DUMMY, ME_REMOTE): Move from here.... |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
805 * mountlist.c (ME_DUMMY, ME_REMOTE): To here. |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
806 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
807 Dmitry V. Levin. |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
808 Include mountlist.h first, to test the interface. |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5630
diff
changeset
|
809 |
5630
bff122f8ce16
Fix a link error on MacOS X.
Bruno Haible <bruno@clisp.org>
parents:
5628
diff
changeset
|
810 2005-01-29 Bruno Haible <bruno@clisp.org> |
bff122f8ce16
Fix a link error on MacOS X.
Bruno Haible <bruno@clisp.org>
parents:
5628
diff
changeset
|
811 |
bff122f8ce16
Fix a link error on MacOS X.
Bruno Haible <bruno@clisp.org>
parents:
5628
diff
changeset
|
812 * progname.c (program_name): Initialize. |
bff122f8ce16
Fix a link error on MacOS X.
Bruno Haible <bruno@clisp.org>
parents:
5628
diff
changeset
|
813 Needed when linking statically on MacOS X. |
bff122f8ce16
Fix a link error on MacOS X.
Bruno Haible <bruno@clisp.org>
parents:
5628
diff
changeset
|
814 |
5628 | 815 2005-01-28 Bruno Haible <bruno@clisp.org> |
816 | |
817 * javacomp.sh.in: New file, from GNU gettext. | |
818 * javacomp.h: New file, from GNU gettext. | |
819 * javacomp.c: New file, from GNU gettext. | |
820 | |
5624 | 821 2005-01-26 Bruno Haible <bruno@clisp.org> |
822 | |
823 * javaexec.sh.in: New file, from GNU gettext. | |
824 * javaexec.h: New file, from GNU gettext. | |
825 * javaexec.c: New file, from GNU gettext. | |
826 | |
5623
597e498573cd
gai_strerror.c: Use GPL in header.
Simon Josefsson <simon@josefsson.org>
parents:
5619
diff
changeset
|
827 2005-01-26 Simon Josefsson <jas@extundo.com> |
597e498573cd
gai_strerror.c: Use GPL in header.
Simon Josefsson <simon@josefsson.org>
parents:
5619
diff
changeset
|
828 |
597e498573cd
gai_strerror.c: Use GPL in header.
Simon Josefsson <simon@josefsson.org>
parents:
5619
diff
changeset
|
829 * gai_strerror.c: Use GPL in header. |
597e498573cd
gai_strerror.c: Use GPL in header.
Simon Josefsson <simon@josefsson.org>
parents:
5619
diff
changeset
|
830 |
5617 | 831 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net> |
832 | |
833 * argp-help.c (hol_entry_help): Avoid using non-constant | |
834 initializers for struct pentry_state. | |
5619 | 835 (__argp_error): Check return value of __asprintf |
836 (__argp_failure): Translate error message | |
837 | |
5617 | 838 * argp-parse.c: Removed braces around the expansion of N_() |
839 | |
5610
8500aafc3d81
Fix date in latest changelog entry.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5609
diff
changeset
|
840 2005-01-21 Jim Meyering <jim@meyering.net> |
5609
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
841 |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
842 * openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
843 same value as for Solaris 9. |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
844 |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
845 * chdir-long.c (chdir_long): Rewrite to remove limitation on |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
846 component length. This included changing the parameter to be |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
847 of type `char *' rather than `char const *'. |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
848 * chdir-long.h (chdir_long): Update prototype. |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
849 |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
850 * openat.c (fdopendir, fstatat): New functions. |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
851 * openat.h: Include headers required for use of DIR and struct stat. |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
852 [AT_SYMLINK_NOFOLLOW]: Define. |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
853 (fdopendir, fstatat): Add prototypes. |
84f75cbb306a
* modules/chdir-long (Depends-on): Remove mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5608
diff
changeset
|
854 |
5608 | 855 2005-01-21 Bruno Haible <bruno@clisp.org> |
856 | |
857 * classpath.h: New file, from GNU gettext. | |
858 * classpath.c: New file, from GNU gettext. | |
859 | |
5606
3a8740615faf
* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5605
diff
changeset
|
860 2005-01-20 Simon Josefsson <jas@extundo.com> |
3a8740615faf
* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5605
diff
changeset
|
861 |
3a8740615faf
* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5605
diff
changeset
|
862 * version-etc-fsf.c: New file, with version_etc_copyright. |
3a8740615faf
* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5605
diff
changeset
|
863 * version-etc.c: Remove version_etc_copyright. |
3a8740615faf
* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5605
diff
changeset
|
864 * version-etc.h (version_etc_copyright): Use [] instead of * in |
3a8740615faf
* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5605
diff
changeset
|
865 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>. |
3a8740615faf
* MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5605
diff
changeset
|
866 |
5605
2b5872ebae54
* lib/save-cwd.c (save_cwd): Remove code to support the case
Paul Eggert <eggert@cs.ucla.edu>
parents:
5604
diff
changeset
|
867 2005-01-20 Paul Eggert <eggert@cs.ucla.edu> |
2b5872ebae54
* lib/save-cwd.c (save_cwd): Remove code to support the case
Paul Eggert <eggert@cs.ucla.edu>
parents:
5604
diff
changeset
|
868 |
2b5872ebae54
* lib/save-cwd.c (save_cwd): Remove code to support the case
Paul Eggert <eggert@cs.ucla.edu>
parents:
5604
diff
changeset
|
869 * save-cwd.c (save_cwd): Remove code to support the case |
2b5872ebae54
* lib/save-cwd.c (save_cwd): Remove code to support the case
Paul Eggert <eggert@cs.ucla.edu>
parents:
5604
diff
changeset
|
870 where fchdir is missing or flaky. |
2b5872ebae54
* lib/save-cwd.c (save_cwd): Remove code to support the case
Paul Eggert <eggert@cs.ucla.edu>
parents:
5604
diff
changeset
|
871 |
2b5872ebae54
* lib/save-cwd.c (save_cwd): Remove code to support the case
Paul Eggert <eggert@cs.ucla.edu>
parents:
5604
diff
changeset
|
872 2005-01-20 Simon Josefsson <jas@extundo.com> |
5604
f946018d919e
* base64.h (isbase64): Add.
Simon Josefsson <simon@josefsson.org>
parents:
5598
diff
changeset
|
873 |
f946018d919e
* base64.h (isbase64): Add.
Simon Josefsson <simon@josefsson.org>
parents:
5598
diff
changeset
|
874 * base64.h (isbase64): Add. |
f946018d919e
* base64.h (isbase64): Add.
Simon Josefsson <simon@josefsson.org>
parents:
5598
diff
changeset
|
875 |
f946018d919e
* base64.h (isbase64): Add.
Simon Josefsson <simon@josefsson.org>
parents:
5598
diff
changeset
|
876 * base64.c (isb64): Rename to isbase64, use to_uchar instead of |
f946018d919e
* base64.h (isbase64): Add.
Simon Josefsson <simon@josefsson.org>
parents:
5598
diff
changeset
|
877 using a unsigned prototype, don't inline. |
f946018d919e
* base64.h (isbase64): Add.
Simon Josefsson <simon@josefsson.org>
parents:
5598
diff
changeset
|
878 (base64_decode): Use it. |
f946018d919e
* base64.h (isbase64): Add.
Simon Josefsson <simon@josefsson.org>
parents:
5598
diff
changeset
|
879 |
5598 | 880 2005-01-19 Bruno Haible <bruno@clisp.org> |
881 | |
882 * sh-quote.h: New file, from GNU gettext. | |
883 * sh-quote.c: New file, from GNU gettext. | |
884 | |
5597 | 885 2005-01-18 Paul Eggert <eggert@cs.ucla.edu> |
886 | |
887 Merge changes from coreutils, as described below in several | |
888 changelogs dated today. | |
889 | |
890 * save-cwd.c: Include "save-cwd.h" before other include files. | |
891 (O_DIRECTORY): Remove; not needed here, since "." must be | |
892 a directory. All uses removed. | |
893 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is | |
894 universal on Suns, and we also need to test for IRIX. | |
895 Revamp code to use 'if' rather than '#if'. | |
896 Avoid unnecessary comparison of cwd->desc to 0. | |
897 | |
898 * utimens.c (futimens): Robustify the previous patch, by checking | |
899 for known valid error numbers rather than observed invalid ones. | |
900 | |
901 2005-01-18 Jim Meyering <jim@meyering.net> | |
902 | |
903 * version-etc.c (version_etc_copyright): Update copyright date. | |
904 | |
905 * utimens.c (futimens): Account for the fact that futimes | |
906 can also fail with errno == ENOSYS or errno == ENOENT. | |
907 Patch from Dmitry V. Levin. | |
908 | |
909 Change the name of the robust chdir function from chdir to chdir_long. | |
910 * save-cwd.c: Include chdir-long.h rather than chdir.h. | |
911 (restore_cwd): Use chdir_long, not chdir. | |
912 * chdir-long.c: Renamed from chdir.c. | |
913 * chdir-long.h: Renamed from chdir.h. | |
5641 | 914 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the |
915 Hurd. | |
916 | |
5597 | 917 2005-01-18 Bob Proulx <bob@proulx.com> |
918 | |
919 * obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to simplify | |
920 offsetof() macro construct to avoid compile failure with native HP-UX | |
921 11.0 ANSI C compiler. | |
922 | |
5584
f43f068c9228
Move some conditionals from the .c file to the .m4 file.
Bruno Haible <bruno@clisp.org>
parents:
5583
diff
changeset
|
923 2005-01-06 Bruno Haible <bruno@clisp.org> |
f43f068c9228
Move some conditionals from the .c file to the .m4 file.
Bruno Haible <bruno@clisp.org>
parents:
5583
diff
changeset
|
924 |
f43f068c9228
Move some conditionals from the .c file to the .m4 file.
Bruno Haible <bruno@clisp.org>
parents:
5583
diff
changeset
|
925 * stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming, redundant |
f43f068c9228
Move some conditionals from the .c file to the .m4 file.
Bruno Haible <bruno@clisp.org>
parents:
5583
diff
changeset
|
926 because stpncpy.m4 takes care of it. |
f43f068c9228
Move some conditionals from the .c file to the .m4 file.
Bruno Haible <bruno@clisp.org>
parents:
5583
diff
changeset
|
927 |
5583 | 928 2004-01-24 Bruno Haible <bruno@clisp.org> |
929 | |
930 * progreloc.c (xstrdup): Define as strdup if no xmalloc should be used. | |
931 | |
932 2003-10-09 Bruno Haible <bruno@clisp.org> | |
933 | |
934 * progreloc.c: Include xalloc.h instead of xmalloc.h. | |
935 | |
5581
c8676e66b5da
The fwriteerror() function now needs to fclose() the stream,
Bruno Haible <bruno@clisp.org>
parents:
5580
diff
changeset
|
936 2005-01-06 Bruno Haible <bruno@clisp.org> |
c8676e66b5da
The fwriteerror() function now needs to fclose() the stream,
Bruno Haible <bruno@clisp.org>
parents:
5580
diff
changeset
|
937 |
c8676e66b5da
The fwriteerror() function now needs to fclose() the stream,
Bruno Haible <bruno@clisp.org>
parents:
5580
diff
changeset
|
938 * fwriteerror.h (fwriteerror): Change specification to include fclose. |
c8676e66b5da
The fwriteerror() function now needs to fclose() the stream,
Bruno Haible <bruno@clisp.org>
parents:
5580
diff
changeset
|
939 * fwriteerror.c: Include <stdbool.h>. |
c8676e66b5da
The fwriteerror() function now needs to fclose() the stream,
Bruno Haible <bruno@clisp.org>
parents:
5580
diff
changeset
|
940 (fwriteerror): At the end, close the file stream. Record whether |
c8676e66b5da
The fwriteerror() function now needs to fclose() the stream,
Bruno Haible <bruno@clisp.org>
parents:
5580
diff
changeset
|
941 stdout was already closed. |
c8676e66b5da
The fwriteerror() function now needs to fclose() the stream,
Bruno Haible <bruno@clisp.org>
parents:
5580
diff
changeset
|
942 |
5580
19f7545b3c2b
Declare environ; not all systems declare it.
Bruno Haible <bruno@clisp.org>
parents:
5569
diff
changeset
|
943 2004-05-27 Bruno Haible <bruno@clisp.org> |
19f7545b3c2b
Declare environ; not all systems declare it.
Bruno Haible <bruno@clisp.org>
parents:
5569
diff
changeset
|
944 |
19f7545b3c2b
Declare environ; not all systems declare it.
Bruno Haible <bruno@clisp.org>
parents:
5569
diff
changeset
|
945 * execute.c (environ): Declare if needed. |
19f7545b3c2b
Declare environ; not all systems declare it.
Bruno Haible <bruno@clisp.org>
parents:
5569
diff
changeset
|
946 * pipe.c (environ): Likewise. |
19f7545b3c2b
Declare environ; not all systems declare it.
Bruno Haible <bruno@clisp.org>
parents:
5569
diff
changeset
|
947 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>. |
19f7545b3c2b
Declare environ; not all systems declare it.
Bruno Haible <bruno@clisp.org>
parents:
5569
diff
changeset
|
948 |
5569
5b0578864f09
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
Paul Eggert <eggert@cs.ucla.edu>
parents:
5565
diff
changeset
|
949 2005-01-04 Paul Eggert <eggert@cs.ucla.edu> |
5b0578864f09
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
Paul Eggert <eggert@cs.ucla.edu>
parents:
5565
diff
changeset
|
950 |
5b0578864f09
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
Paul Eggert <eggert@cs.ucla.edu>
parents:
5565
diff
changeset
|
951 * human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional |
5b0578864f09
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
Paul Eggert <eggert@cs.ucla.edu>
parents:
5565
diff
changeset
|
952 definitions to be after all include files, to avoid collisions. |
5b0578864f09
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
Paul Eggert <eggert@cs.ucla.edu>
parents:
5565
diff
changeset
|
953 Problem reported by Bob Proulx. |
5b0578864f09
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
Paul Eggert <eggert@cs.ucla.edu>
parents:
5565
diff
changeset
|
954 |
5565
3dc56d504a02
* error.c: Remove dependency on gettext and libintl.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5557
diff
changeset
|
955 2004-12-28 Paul Eggert <eggert@cs.ucla.edu> |
3dc56d504a02
* error.c: Remove dependency on gettext and libintl.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5557
diff
changeset
|
956 |
3dc56d504a02
* error.c: Remove dependency on gettext and libintl.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5557
diff
changeset
|
957 * error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h"; |
3dc56d504a02
* error.c: Remove dependency on gettext and libintl.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5557
diff
changeset
|
958 not needed. This removes a dependency on the gettext module. |
3dc56d504a02
* error.c: Remove dependency on gettext and libintl.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5557
diff
changeset
|
959 [defined _LIBC]: Do not include <libintl.h>; not needed. |
3dc56d504a02
* error.c: Remove dependency on gettext and libintl.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5557
diff
changeset
|
960 |
5557
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
961 2004-12-24 Paul Eggert <eggert@cs.ucla.edu> |
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
962 |
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
963 * c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
964 HAVE_DECL_STRTOLD. |
5557
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
965 |
5547
8f380d892c23
* getdate.y (YYINITDEPTH): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5545
diff
changeset
|
966 2004-12-23 Paul Eggert <eggert@cs.ucla.edu> |
8f380d892c23
* getdate.y (YYINITDEPTH): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5545
diff
changeset
|
967 |
5557
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
968 * argp-parse.c: Include <stddef.h>. |
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
969 (alignof, alignto): New macros. |
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
970 (parser_init): Don't assume that void * is aligned sufficiently |
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
971 for struct option. |
94babf286465
* c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not HAVE_DECL_STRTOLD.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5549
diff
changeset
|
972 |
5549
2ae78bdbe267
* getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
Paul Eggert <eggert@cs.ucla.edu>
parents:
5547
diff
changeset
|
973 * getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no |
2ae78bdbe267
* getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
Paul Eggert <eggert@cs.ucla.edu>
parents:
5547
diff
changeset
|
974 need to extend the stack. |
2ae78bdbe267
* getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
Paul Eggert <eggert@cs.ucla.edu>
parents:
5547
diff
changeset
|
975 (YYINITDEPTH): New macro, so that the initial stack isn't overly |
2ae78bdbe267
* getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
Paul Eggert <eggert@cs.ucla.edu>
parents:
5547
diff
changeset
|
976 large. |
5547
8f380d892c23
* getdate.y (YYINITDEPTH): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5545
diff
changeset
|
977 |
5545 | 978 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net> |
979 | |
5547
8f380d892c23
* getdate.y (YYINITDEPTH): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5545
diff
changeset
|
980 * argp-parse.c (parser_init): Avoid arithmetics on void pointers. |
5545 | 981 |
5538
87bc9c0d52d4
* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5536
diff
changeset
|
982 2004-12-19 Paul Eggert <eggert@cs.ucla.edu> |
87bc9c0d52d4
* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5536
diff
changeset
|
983 |
87bc9c0d52d4
* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5536
diff
changeset
|
984 * alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H. |
87bc9c0d52d4
* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5536
diff
changeset
|
985 Remove now-obsolete comment about AIX. |
87bc9c0d52d4
* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5536
diff
changeset
|
986 * getdate.y: Include <alloca.h> only if HAVE_ALLOCA. |
87bc9c0d52d4
* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5536
diff
changeset
|
987 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA. |
87bc9c0d52d4
* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5536
diff
changeset
|
988 (YYMAXDEPTH): New macro. |
87bc9c0d52d4
* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5536
diff
changeset
|
989 |
5536
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
990 2004-12-18 Bruno Haible <bruno@clisp.org> |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
991 |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
992 * fatal-signal.c (fatal_signals): Make non-const. |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
993 (init_fatal_signals): New function. |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
994 (uninstall_handlers, install_handlers): Ignore signals that were set to |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
995 SIG_IGN. |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
996 (at_fatal_signal): Call init_fatal_signals. |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
997 (init_fatal_signal_set): Likewise. Ignore signals that were set to |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
998 SIG_IGN. |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
999 Reported by Paul Eggert. |
f64f1da7e350
Signals whose handler is set to SIG_IGN are not fatal.
Bruno Haible <bruno@clisp.org>
parents:
5520
diff
changeset
|
1000 |
5520 | 1001 2004-12-08 Paul Eggert <eggert@cs.ucla.edu> |
1002 | |
1003 * getdate.y (textint): New member "negative". | |
1004 (time_zone_hhmm): New function. | |
1005 Expect 14 shift-reduce conflicts, not 13. | |
1006 (o_colon_minutes): New rule. | |
1007 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM. | |
1008 (yylex): Set the "negative" member of signed numbers. | |
1009 | |
5510
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1010 2004-12-04 Paul Eggert <eggert@cs.ucla.edu> |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1011 |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1012 Changes imported from coreutils. |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1013 * hard-locale.c: Assume <locale.h> exists. |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1014 Include "strdup.h". |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1015 (GLIBC_VERSION): New macro. |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1016 (hard_locale): Assume setlocale exists. |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1017 Rewrite to avoid #ifdef. |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1018 Use strdup rather than malloc + strcpy. |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1019 * human.c: Assume <locale.h> exists. |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1020 (human_readable): Assume localeconv exists. |
fd10cf72c81b
Import chamges from coreutils, so that the code now assumes
Paul Eggert <eggert@cs.ucla.edu>
parents:
5507
diff
changeset
|
1021 |
5507
1c1c9796bf96
* mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5504
diff
changeset
|
1022 2004-12-01 Jakub Jelinek <jakub@redhat.com> |
1c1c9796bf96
* mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5504
diff
changeset
|
1023 |
1c1c9796bf96
* mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5504
diff
changeset
|
1024 * mktime.c (__mktime_internal): If SEC_REQUESTED != SEC, |
1c1c9796bf96
* mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5504
diff
changeset
|
1025 convert T2, not T. (Imported from libc.) |
1c1c9796bf96
* mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5504
diff
changeset
|
1026 |
5504
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1027 2004-11-30 Paul Eggert <eggert@cs.ucla.edu> |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1028 |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1029 * getcwd.c (is_ENAMETOOLONG): New macro. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1030 (__getcwd.c): Don't restore errno; glibc doesn't. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1031 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1032 first, falling back to our code only if its results look suspicious. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1033 Ensure that the resulting buffer is only as large as necessary. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1034 |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1035 * readutmp.c: Include readutmp.h first. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1036 Include <errno.h>, since readutmp.h no longer does that. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1037 * readutmp.h: Don't include <errno.h>, |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1038 <sys/param.h>, <time.h>; not needed to establish interface. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1039 (errno): Remove decl. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1040 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1041 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME, |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1042 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros. |
a21b66ff5325
Import readutmp and getcwd changes from gnulib.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5498
diff
changeset
|
1043 |
5498 | 1044 2004-11-28 Simon Josefsson <jas@extundo.com> |
1045 | |
1046 * base64.h, base64.c: New file. | |
1047 | |
5494
55a502b8ac3a
* getcwd.h: New file, which I forgot to check in on 2004-11-25.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5491
diff
changeset
|
1048 2004-11-27 Paul Eggert <eggert@cs.ucla.edu> |
55a502b8ac3a
* getcwd.h: New file, which I forgot to check in on 2004-11-25.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5491
diff
changeset
|
1049 |
55a502b8ac3a
* getcwd.h: New file, which I forgot to check in on 2004-11-25.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5491
diff
changeset
|
1050 * getcwd.h: New file, which I forgot to check in on 2004-11-25. |
55a502b8ac3a
* getcwd.h: New file, which I forgot to check in on 2004-11-25.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5491
diff
changeset
|
1051 |
5491
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1052 2004-11-25 Paul Eggert <eggert@cs.ucla.edu> |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1053 |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1054 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1055 HP's ANSI C compiler. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1056 * fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1057 Declaring int functions causes warnings on some modern systems and |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1058 shouldn't be needed to compile on ancient ones. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1059 * same.c (MIN) [defined MIN]: Don't define, since it's already |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1060 defined. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1061 |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1062 * getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1063 with the following changes. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1064 (__set_errno): Parenthesize properly. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1065 Include <stdbool.h>. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1066 (MIN, MAX, MATCHING_INO): New macros. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1067 (__getcwd): Define with prototype, not K&R form. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1068 Use heuristics to allocate default buffer on stack if possible. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1069 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2) |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1070 behavior, and to avoid the PATH_MAX limit when computing |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1071 ../../../../... |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1072 Use MATCHING_INO to compare inode number to file. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1073 Check for arithmetic overflow in size calculations. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1074 Fix bug in reallocation of dot array that caused getcwd to fail |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1075 on directories nested deeper than 75. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1076 Be more careful about saving errno on error. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1077 Do not use realloc; use only free+malloc, as this is a bit |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1078 more flexible and avoids a needless copy operation. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1079 Do not inspect st_dev and st_ino for symbolic links; POSIX |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1080 doesn't specify the latter. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1081 Check for closedir errors. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1082 Avoid needless casts. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1083 Use "#ifdef weak_alias" around weak_alias, to be like other |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1084 glibc code. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1085 The following changes to getcwd.c have effect only when used in |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1086 gnulib; they have no effect inside glibc proper. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1087 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove, |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1088 as alloca isn't used. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1089 (alloca, __alloca): Likewise. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1090 [!_LIBC]: Include "getcwd.h", "mempcpy.h". |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1091 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h> |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1092 unconditionally, as gnulib assumes C89 or better. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1093 Do not include <sys/param.h>. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1094 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1095 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1096 better. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1097 (NULL) [!defined NULL]: Remove; we assume C89 or better. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1098 Include <dirent.h> in a way that is compatible with modern Autoconf. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1099 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN): |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1100 New macros, if not already defined. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1101 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1102 Use "_LIBC", not "defined _LIBC", for consistency. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1103 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1104 a mempcpy module. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1105 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1106 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1107 * xgetcwd.c: David MacKenzie's old code was removed, so give |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1108 credit only to Jim Meyering and adjust the copyright dates. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1109 Do not include <limits.h>, <stdio.h>, <sys/types.h>, |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1110 <stdlib.h>, <unistd.h>, "pathmax.h". |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1111 Instead, include "xgetcwd.h" (first) and "getcwd.h". |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1112 (INITIAL_BUFFER_SIZE): Remove. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1113 (xgetcwd): Rely on getcwd, since we now depend on a reliable one. |
b3d5c90efc81
Merge from coreutils for getcwd and HP-UX 11.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5490
diff
changeset
|
1114 |
5490 | 1115 2004-11-23 Jim Meyering <jim@meyering.net> |
1116 | |
1117 * getopt_.h: Remove trailing blanks. | |
1118 | |
5483 | 1119 2004-11-23 Paul Eggert <eggert@cs.ucla.edu> |
1120 | |
1121 * utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros. | |
1122 (futimens): New function, which uses futimes if available. | |
1123 (futimens, utimens): Support timespec==NULL, with same semantics | |
1124 as utime and utimens. | |
1125 * utimens.h (futimens): New decl. | |
1126 | |
1127 2004-11-23 Jim Meyering <jim@meyering.net> | |
1128 | |
1129 * __fpending.c: Add comment. | |
1130 | |
5475 | 1131 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net> |
1132 | |
5547
8f380d892c23
* getdate.y (YYINITDEPTH): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5545
diff
changeset
|
1133 * getopt_.h: Re-addition of __getopt_argv_const caused |
5475 | 1134 redefinition warnings. To avoid them, include the defines |
1135 in `#if !defined __need_getopt ... #endif'. The only place | |
1136 where __getopt_argv_const is used is in definitions | |
1137 of getopt_long and getopt_long_only below, which are as well | |
1138 protected by `#ifndef __need_getopt'. | |
1139 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef | |
1140 __need_getopt after including <stdio.h> and <unistd.h> These | |
1141 headers might have defined it. | |
1142 | |
5472
69793d32608e
* getopt_.h: Use __CONCAT rather than ## directly.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5470
diff
changeset
|
1143 2004-11-20 Paul Eggert <eggert@cs.ucla.edu> |
69793d32608e
* getopt_.h: Use __CONCAT rather than ## directly.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5470
diff
changeset
|
1144 |
5474
c66af36719ab
Update log to match latest getopt checkin.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5472
diff
changeset
|
1145 * getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID): |
c66af36719ab
Update log to match latest getopt checkin.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5472
diff
changeset
|
1146 New macros. |
5472
69793d32608e
* getopt_.h: Use __CONCAT rather than ## directly.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5470
diff
changeset
|
1147 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind, |
5474
c66af36719ab
Update log to match latest getopt checkin.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5472
diff
changeset
|
1148 optopt): Use them instead of invoking ## directly; otherwise, the |
5472
69793d32608e
* getopt_.h: Use __CONCAT rather than ## directly.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5470
diff
changeset
|
1149 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt. |
69793d32608e
* getopt_.h: Use __CONCAT rather than ## directly.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5470
diff
changeset
|
1150 |
5470
f8136ad2eda3
Move comments from strtok_r.c to strtok_r.h.
Bruno Haible <bruno@clisp.org>
parents:
5467
diff
changeset
|
1151 2004-11-19 Bruno Haible <bruno@clisp.org> |
f8136ad2eda3
Move comments from strtok_r.c to strtok_r.h.
Bruno Haible <bruno@clisp.org>
parents:
5467
diff
changeset
|
1152 |
f8136ad2eda3
Move comments from strtok_r.c to strtok_r.h.
Bruno Haible <bruno@clisp.org>
parents:
5467
diff
changeset
|
1153 * strtok_r.c: Move comments from here... |
f8136ad2eda3
Move comments from strtok_r.c to strtok_r.h.
Bruno Haible <bruno@clisp.org>
parents:
5467
diff
changeset
|
1154 * strtok_r.h: ... to here. |
f8136ad2eda3
Move comments from strtok_r.c to strtok_r.h.
Bruno Haible <bruno@clisp.org>
parents:
5467
diff
changeset
|
1155 |
5467
4802c062858b
realloc, calloc portability fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5459
diff
changeset
|
1156 2004-11-17 Paul Eggert <eggert@cs.ucla.edu> |
4802c062858b
realloc, calloc portability fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5459
diff
changeset
|
1157 |
4802c062858b
realloc, calloc portability fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5459
diff
changeset
|
1158 * realloc.c (rpl_realloc): Call 'free' if n==0, since realloc |
4802c062858b
realloc, calloc portability fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5459
diff
changeset
|
1159 might fail. Problem reported by Yoann Vandoorselaere. |
4802c062858b
realloc, calloc portability fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5459
diff
changeset
|
1160 * calloc.c (rpl_calloc): Defend against buggy calloc implementations |
4802c062858b
realloc, calloc portability fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5459
diff
changeset
|
1161 that mishandle size_t overflow. |
4802c062858b
realloc, calloc portability fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5459
diff
changeset
|
1162 |
5450
cdbf151dab54
* getdate.y (tORDINAL): New token.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5446
diff
changeset
|
1163 2004-11-16 Paul Eggert <eggert@cs.ucla.edu> |
cdbf151dab54
* getdate.y (tORDINAL): New token.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5446
diff
changeset
|
1164 |
5458 | 1165 * canon-host.c: Include "strdup.h". |
1166 (canon_host): Use getaddrinfo if available, so that IPv6 works. | |
1167 Use strdup instead of malloc/strcpy to duplicate strings. | |
1168 | |
5459
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1169 * human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit. |
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1170 (human_space_before_unit): New constant. |
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1171 * human.c (human_readable): Support it. |
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1172 |
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1173 * xgetcwd.c: Include <limits.h>, for PATH_MAX. |
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1174 (xgetcwd): Set errno correctly when failing. |
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1175 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though |
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1176 the failure is actually due to a PATH_MAX problem. |
e88a820ff3bb
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5458
diff
changeset
|
1177 |
5457
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1178 Further getopt changes to make it more likely that glibc will |
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1179 buy the changes back. |
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1180 * getopt.c (POSIXLY_CORRECT): New constant. |
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1181 (getopt): Use it, so to preserve glibc semantic |
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1182 * getopt1.c (getopt_long, getopt_long_only): Arg is char * const * |
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1183 when compiling for libc. |
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1184 * getopt_.h (__getopt_argv_const): Bring it back. |
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1185 (getopt_long, getopt_long_only): Use it. |
05fcfdcb38a6
Further getopt changes to make it more acceptable to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5453
diff
changeset
|
1186 |
5453
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1187 * getopt.c (_getopt_initialize, _getopt_internal_r, _getopt_internal): |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1188 New arg POSIXLY_CORRECT. All callers changed. |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1189 (getopt): Argv is now char * const *, as per standard. |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1190 (_getopt_internal_r, _getopt_internal): Argv is now char **, |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1191 not char *__getopt_argv_const *. |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1192 * getopt1.c (getopt_long, _getopt_long_r, getopt_long_only, |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1193 _getopt_long_only_r): Likewise. |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1194 * getopt_.h (getopt, getopt_long, geopt_long_only): Likewise. |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1195 * getopt_int.h (_getopt_internal, _getopt_internal_r, |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1196 _getopt_long_r, _getopt_long_only_r): Likewise. |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1197 * getopt_.h (__getopt_argv_const): Remove. |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1198 (getopt): Argv is now char * const *, as per standard. |
d29dafc60cf3
Merge from coreutils to support a more-standard getopt.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5450
diff
changeset
|
1199 |
5450
cdbf151dab54
* getdate.y (tORDINAL): New token.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5446
diff
changeset
|
1200 * getdate.y (tORDINAL): New token. |
cdbf151dab54
* getdate.y (tORDINAL): New token.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5446
diff
changeset
|
1201 (day, relunit): Allow it for relative times. |
cdbf151dab54
* getdate.y (tORDINAL): New token.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5446
diff
changeset
|
1202 (relative_time_table): Use tORDINAL for ordinals. |
cdbf151dab54
* getdate.y (tORDINAL): New token.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5446
diff
changeset
|
1203 |
5446 | 1204 2004-11-15 Jim Meyering <jim@meyering.net> |
1205 | |
1206 * closeout.c: Include "__fpending.h" once again. | |
1207 Include <stdbool.h>. | |
1208 (close_stdout): Don't fail just because stdout was closed initially, | |
1209 since some programs don't write to stdout in the normal course of | |
1210 operation (other than --version and --help), and we don't want this | |
1211 function to make e.g. `touch file >&-' fail. | |
1212 But do fail if it was closed and someone has tried to write to it. | |
1213 E.g., `printf foo >&-' must fail. | |
1214 | |
5437 | 1215 2004-11-11 Simon Josefsson <jas@extundo.com> |
1216 | |
1217 * strtok_r.h, strtok_r.c: New file. | |
1218 | |
5426
b3866cec09d3
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert <eggert@cs.ucla.edu>
parents:
5422
diff
changeset
|
1219 2004-11-11 Paul Eggert <eggert@cs.ucla.edu> |
b3866cec09d3
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert <eggert@cs.ucla.edu>
parents:
5422
diff
changeset
|
1220 |
5432
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1221 * getopt_.h (__getopt_argv_const): New macro, to be used so that |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1222 we can stop lying to compilers about the constness of argv when we |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1223 are compiled outside glibc. |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1224 (getopt, getopt_long, getopt_long_only): Use it. |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1225 * getopt.c (_getopt_initialize, _getopt_internal_r, _getopt_internal, |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1226 getopt): Likewise. |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1227 * getopt1.c (getopt_long, _getopt_long_r, getopt_long_only, |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1228 _getopt_long_only_r): Likewise. |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1229 * getopt_int.h (_getopt_internal, _getopt_internal_r, _getopt_long_r, |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1230 _getopt_long_only_r): Likewise. |
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1231 |
5426
b3866cec09d3
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert <eggert@cs.ucla.edu>
parents:
5422
diff
changeset
|
1232 * getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]: |
5432
a80fa5f0b3e5
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
5426
diff
changeset
|
1233 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available. |
5426
b3866cec09d3
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert <eggert@cs.ucla.edu>
parents:
5422
diff
changeset
|
1234 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for |
b3866cec09d3
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert <eggert@cs.ucla.edu>
parents:
5422
diff
changeset
|
1235 the other external symbols. |
b3866cec09d3
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert <eggert@cs.ucla.edu>
parents:
5422
diff
changeset
|
1236 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style |
b3866cec09d3
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert <eggert@cs.ucla.edu>
parents:
5422
diff
changeset
|
1237 declaration, since the above renaming now works around collisions. |
b3866cec09d3
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert <eggert@cs.ucla.edu>
parents:
5422
diff
changeset
|
1238 |
5422 | 1239 2004-11-11 Jim Meyering <jim@meyering.net> |
1240 | |
1241 * linebreak.c: Remove trailing blanks. | |
1242 * alloca_.h: Likewise. | |
1243 * acosl.c: Likewise. | |
1244 * euidaccess.c: Likewise. | |
1245 * allocsa.h: Likewise. | |
1246 | |
5410
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1247 2004-11-10 Paul Eggert <eggert@cs.ucla.edu> |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1248 |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1249 * mktime.c (SHR): New macro, which is a portable |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1250 substitute for >> that should work even on Crays. |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1251 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it. |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1252 Problem reported by Mark D. Baushke in |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1253 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>. |
5416
5d5bf053f352
Fix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5410
diff
changeset
|
1254 * getdate.y (SHR): Likewise. |
5d5bf053f352
Fix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5410
diff
changeset
|
1255 (tm_diff): Use it. |
5d5bf053f352
Fix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5410
diff
changeset
|
1256 * strftime.c (SHR): Likewise. |
5d5bf053f352
Fix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5410
diff
changeset
|
1257 (tm_diff): Use it. |
5d5bf053f352
Fix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5410
diff
changeset
|
1258 * quotearg.c (struct quoting_options): Use unsigned int for |
5d5bf053f352
Fix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5410
diff
changeset
|
1259 quote_these_too, so that right shifts are well defined. All uses |
5d5bf053f352
Fix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5410
diff
changeset
|
1260 changed. |
5410
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1261 |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1262 2004-11-10 Simon Josefsson <jas@extundo.com> |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1263 |
6c48295ddf69
* mktime.c (SHR): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5408
diff
changeset
|
1264 * getaddrinfo.h, getaddrinfo.c: New files. |
5408 | 1265 |
5405 | 1266 2004-11-10 Jim Meyering <jim@meyering.net> |
1267 | |
1268 Ensure that no close failure goes unreported. | |
1269 * closeout.c (close_stdout): Always close stdout. I.e., don't | |
1270 return early when it seems there's nothing to flush. | |
1271 Don't include __fpending.h. | |
1272 | |
5403
9fe229171c6d
* strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5396
diff
changeset
|
1273 2004-11-09 Paul Eggert <eggert@cs.ucla.edu> |
9fe229171c6d
* strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5396
diff
changeset
|
1274 |
9fe229171c6d
* strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5396
diff
changeset
|
1275 * strftime.c (DO_MULTIBYTE): Check for wchar.h, too. |
9fe229171c6d
* strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5396
diff
changeset
|
1276 |
5396
d557bf17c020
Make sure size_t is defined.
Bruno Haible <bruno@clisp.org>
parents:
5393
diff
changeset
|
1277 2004-11-05 Bruno Haible <bruno@clisp.org> |
d557bf17c020
Make sure size_t is defined.
Bruno Haible <bruno@clisp.org>
parents:
5393
diff
changeset
|
1278 |
d557bf17c020
Make sure size_t is defined.
Bruno Haible <bruno@clisp.org>
parents:
5393
diff
changeset
|
1279 * readlink.c: Include stddef.h, needed for size_t on Woe32. |
d557bf17c020
Make sure size_t is defined.
Bruno Haible <bruno@clisp.org>
parents:
5393
diff
changeset
|
1280 Reported by Mark D. Baushke <mdb@cvshome.org>. |
d557bf17c020
Make sure size_t is defined.
Bruno Haible <bruno@clisp.org>
parents:
5393
diff
changeset
|
1281 |
5393
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1282 2004-11-04 Bruno Haible <bruno@clisp.org> |
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1283 |
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1284 2004-09-11 Bruno Haible <bruno@clisp.org> |
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1285 * allocsa.valgrind: New file. |
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1286 2004-02-06 Bruno Haible <bruno@clisp.org> |
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1287 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to |
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1288 avoid a bug of this cc on HP-UX 10.20 dealing with enums. |
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1289 Reported by Christopher Seip <chris.seip@hp.com>. |
12b5efa248fc
Upgrade allocsa module from GNU gettext.
Bruno Haible <bruno@clisp.org>
parents:
5388
diff
changeset
|
1290 |
5388
4966ef3f0d28
* xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
Paul Eggert <eggert@cs.ucla.edu>
parents:
5386
diff
changeset
|
1291 2004-11-03 Paul Eggert <eggert@cs.ucla.edu> |
4966ef3f0d28
* xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
Paul Eggert <eggert@cs.ucla.edu>
parents:
5386
diff
changeset
|
1292 |
4966ef3f0d28
* xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
Paul Eggert <eggert@cs.ucla.edu>
parents:
5386
diff
changeset
|
1293 * xreadlink.c (xreadlink): AIX and HP-UX readlink return -1 |
4966ef3f0d28
* xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
Paul Eggert <eggert@cs.ucla.edu>
parents:
5386
diff
changeset
|
1294 with errno == ERANGE if the buffer is too small. |
4966ef3f0d28
* xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
Paul Eggert <eggert@cs.ucla.edu>
parents:
5386
diff
changeset
|
1295 Problem reported by Mark D. Baushke. |
4966ef3f0d28
* xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
Paul Eggert <eggert@cs.ucla.edu>
parents:
5386
diff
changeset
|
1296 |
5386
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1297 2004-11-02 Paul Eggert <eggert@cs.ucla.edu> |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1298 |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1299 * xreadlink.c (MAXSIZE): New macro. |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1300 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1301 size does not exceed MAXSIZE. Avoid cast. |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1302 As suggested by Mark D. Baushke in |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1303 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>, |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1304 if readlink fails with buffer size just under MAXSIZE, try again |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1305 with MAXSIZE. |
c008e99bcbab
xreadlink problems with SSIZE_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5382
diff
changeset
|
1306 |
5382
72833e3704a0
* getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5381
diff
changeset
|
1307 2004-11-02 Derek R. Price <derek@ximbiot.com> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
1308 and Paul Eggert <eggert@cs.ucla.edu> |
5382
72833e3704a0
* getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5381
diff
changeset
|
1309 |
72833e3704a0
* getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5381
diff
changeset
|
1310 * getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now. |
72833e3704a0
* getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5381
diff
changeset
|
1311 (get_date): Overparenthesize to avoid GCC warning. |
72833e3704a0
* getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5381
diff
changeset
|
1312 |
5381
20b173a370ec
Provide a return value for unsetenv() if the system doesn't.
Bruno Haible <bruno@clisp.org>
parents:
5379
diff
changeset
|
1313 2004-11-02 Bruno Haible <bruno@clisp.org> |
20b173a370ec
Provide a return value for unsetenv() if the system doesn't.
Bruno Haible <bruno@clisp.org>
parents:
5379
diff
changeset
|
1314 |
20b173a370ec
Provide a return value for unsetenv() if the system doesn't.
Bruno Haible <bruno@clisp.org>
parents:
5379
diff
changeset
|
1315 * setenv.h (unsetenv): Define as a macro if the system's unsetenv() |
20b173a370ec
Provide a return value for unsetenv() if the system doesn't.
Bruno Haible <bruno@clisp.org>
parents:
5379
diff
changeset
|
1316 function returns void. |
20b173a370ec
Provide a return value for unsetenv() if the system doesn't.
Bruno Haible <bruno@clisp.org>
parents:
5379
diff
changeset
|
1317 |
5379
0f39ce3026e9
(fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5376
diff
changeset
|
1318 2004-11-01 Paul Eggert <eggert@cs.ucla.edu> |
0f39ce3026e9
(fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5376
diff
changeset
|
1319 |
5547
8f380d892c23
* getdate.y (YYINITDEPTH): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5545
diff
changeset
|
1320 * getpass.c (fflush_unlocked, flockfile, funlockfile) |
5379
0f39ce3026e9
(fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5376
diff
changeset
|
1321 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if |
0f39ce3026e9
(fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5376
diff
changeset
|
1322 already declared. |
0f39ce3026e9
(fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5376
diff
changeset
|
1323 |
5376
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1324 2004-10-29 Paul Eggert <eggert@cs.ucla.edu> |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1325 |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1326 * getdate.y: Add support for TZ="foo" within a date string. |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1327 Fix some bugs near time_t boundaries. Reject dates with |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1328 out-of-range components, e.g., "Sept 31". |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1329 Include <stdlib.h>, "setenv.h", "xalloc.h". |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1330 (ISDIGIT_LOCALE): Remove; unused. |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1331 Note that the TZ and time functions used here are not reentrant. |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1332 (mktime_ok, get_tz): New functions. |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1333 (TZBUFSIZE): New constant. |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1334 (get_date): Parse leading TZ="foo". Reject out-of-range components;. |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1335 This requires that we sometimes generate our own TZ="XXX..." setting. |
6c1cc3b6c74d
getdate support for TZ="foo", and documentation.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5372
diff
changeset
|
1336 |
5372
7985d9b0b731
* mktime.c (not_equal_tm): Remove redundant check.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5369
diff
changeset
|
1337 2004-10-27 Derek R. Price <derek@ximbiot.com> |
7985d9b0b731
* mktime.c (not_equal_tm): Remove redundant check.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5369
diff
changeset
|
1338 |
7985d9b0b731
* mktime.c (not_equal_tm): Remove redundant check.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5369
diff
changeset
|
1339 * mktime.c (not_equal_tm): Remove redundant check. |
7985d9b0b731
* mktime.c (not_equal_tm): Remove redundant check.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5369
diff
changeset
|
1340 |
5369
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1341 2004-10-24 Paul Eggert <eggert@cs.ucla.edu> |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1342 |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1343 * getdate.y: Use Bison 1.875 features, and some minor |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1344 code cleanups. This change does not affect semantics. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1345 Don't include <stdlib.h>; no longer needed. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1346 Don't include unlocked-io.h; only the "#if TEST" code uses |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1347 stdio, and performance isn't crucial there. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1348 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1349 Bison 1.875 features as described below. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1350 All uses of "PC." replaced by "pc->". |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1351 (YYSTYPE): Add a forward declaration. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1352 (yylex, yyerror): Use full prototypes in forward decls. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1353 Use "%pure-parser" rather than obsolescent "%pure_parser". |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1354 Use %parse-param and %lex-param instead of obsolescent |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1355 YYPARSE_PARAM and YYLEX_PARAM. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1356 (meridian_table, month_and_day_table, time_units_table, |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1357 relative_time_table, time_zone_table, military_table, |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1358 lookup_zone, lookup_word, get_date): |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1359 Use NULL instead of 0 where appropriate. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1360 (to_hour): Avoid abort (), to avoid a dependency on |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1361 stdlib.h. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1362 (yyerror, yylex): Now accepts parser_control * arg. |
d9cbce4c3ad2
* getdate.y: Use Bison 1.875 features, and some minor code cleanups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5365
diff
changeset
|
1363 (main) [TEST]: Use '\0' rather than 0 for char. |
5403
9fe229171c6d
* strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5396
diff
changeset
|
1364 |
5364
357857397498
* mktime.c (leapyear): Arg is long int, not int.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5362
diff
changeset
|
1365 2004-10-22 Paul Eggert <eggert@cs.ucla.edu> |
357857397498
* mktime.c (leapyear): Arg is long int, not int.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5362
diff
changeset
|
1366 |
5365
192b28b0d8e2
getpagesize module shouldn't assume sys/param.h exists.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5364
diff
changeset
|
1367 * getpagesize.c (getpagesize): Don't assume <sys/param.h> exists. |
192b28b0d8e2
getpagesize module shouldn't assume sys/param.h exists.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5364
diff
changeset
|
1368 It's now the caller's responsibility to handle the case where |
192b28b0d8e2
getpagesize module shouldn't assume sys/param.h exists.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5364
diff
changeset
|
1369 !HAVE_GETPAGESIZE && !defined getpagesize. |
192b28b0d8e2
getpagesize module shouldn't assume sys/param.h exists.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5364
diff
changeset
|
1370 |
5364
357857397498
* mktime.c (leapyear): Arg is long int, not int.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5362
diff
changeset
|
1371 * mktime.c (leapyear): Arg is long int, not int. |
357857397498
* mktime.c (leapyear): Arg is long int, not int.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5362
diff
changeset
|
1372 |
5362 | 1373 2004-10-18 Paul Eggert <eggert@cs.ucla.edu> |
1374 | |
1375 * argp-fs-xinl.c, argp-xinl.c: Update from glibc. | |
1376 | |
5342
91203255b217
* getpass.c (fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5340
diff
changeset
|
1377 2004-10-12 Simon Josefsson <jas@extundo.com> |
91203255b217
* getpass.c (fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5340
diff
changeset
|
1378 |
91203255b217
* getpass.c (fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5340
diff
changeset
|
1379 * getpass.c (fflush_unlocked, flockfile, funlockfile) |
91203255b217
* getpass.c (fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5340
diff
changeset
|
1380 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map |
91203255b217
* getpass.c (fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5340
diff
changeset
|
1381 to real functions. |
91203255b217
* getpass.c (fflush_unlocked, flockfile, funlockfile)
Simon Josefsson <simon@josefsson.org>
parents:
5340
diff
changeset
|
1382 |
5340 | 1383 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org> |
1384 | |
1385 * vsnprintf.h: New file. | |
1386 * vsnprintf.c: New file. | |
1387 | |
5333
f038f3333cc8
Avoid a memory allocation when possible.
Bruno Haible <bruno@clisp.org>
parents:
5331
diff
changeset
|
1388 2004-10-07 Bruno Haible <bruno@clisp.org> |
f038f3333cc8
Avoid a memory allocation when possible.
Bruno Haible <bruno@clisp.org>
parents:
5331
diff
changeset
|
1389 |
f038f3333cc8
Avoid a memory allocation when possible.
Bruno Haible <bruno@clisp.org>
parents:
5331
diff
changeset
|
1390 * snprintf.c (snprintf): Avoid a memory allocation if the result fits |
f038f3333cc8
Avoid a memory allocation when possible.
Bruno Haible <bruno@clisp.org>
parents:
5331
diff
changeset
|
1391 into the provided buffer. |
f038f3333cc8
Avoid a memory allocation when possible.
Bruno Haible <bruno@clisp.org>
parents:
5331
diff
changeset
|
1392 |
5329
8918b74eac82
* atanl.c, logl.c: Add GPL notice, and make the code more similar to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5326
diff
changeset
|
1393 2004-10-06 Paul Eggert <eggert@cs.ucla.edu> |
8918b74eac82
* atanl.c, logl.c: Add GPL notice, and make the code more similar to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5326
diff
changeset
|
1394 |
5331
72896a268e23
* diacrit.c, diacrit.h: Add GPL notice.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5329
diff
changeset
|
1395 * diacrit.c, diacrit.h: Add GPL notice. |
72896a268e23
* diacrit.c, diacrit.h: Add GPL notice.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5329
diff
changeset
|
1396 |
5329
8918b74eac82
* atanl.c, logl.c: Add GPL notice, and make the code more similar to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5326
diff
changeset
|
1397 * atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL notice. |
8918b74eac82
* atanl.c, logl.c: Add GPL notice, and make the code more similar to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5326
diff
changeset
|
1398 * atanl.c (atanl): Keep the code as similar to glibc as possible. |
8918b74eac82
* atanl.c, logl.c: Add GPL notice, and make the code more similar to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5326
diff
changeset
|
1399 * logl.c (logl): Keep the code as similar to glibc as possible. |
8918b74eac82
* atanl.c, logl.c: Add GPL notice, and make the code more similar to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5326
diff
changeset
|
1400 This avoids a potential constant-folding bug. |
8918b74eac82
* atanl.c, logl.c: Add GPL notice, and make the code more similar to glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5326
diff
changeset
|
1401 |
5326
6523edcee696
Don't redeclare strsep if the system already has it.
Bruno Haible <bruno@clisp.org>
parents:
5323
diff
changeset
|
1402 2004-10-05 Bruno Haible <bruno@clisp.org> |
6523edcee696
Don't redeclare strsep if the system already has it.
Bruno Haible <bruno@clisp.org>
parents:
5323
diff
changeset
|
1403 |
6523edcee696
Don't redeclare strsep if the system already has it.
Bruno Haible <bruno@clisp.org>
parents:
5323
diff
changeset
|
1404 * strsep.h: Don't declare strsep() if HAVE_STRSEP. |
6523edcee696
Don't redeclare strsep if the system already has it.
Bruno Haible <bruno@clisp.org>
parents:
5323
diff
changeset
|
1405 |
5320
118ffb4b2093
* regex.c (re_comp): Cast gettext return value to char *,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5319
diff
changeset
|
1406 2004-10-04 Paul Eggert <eggert@cs.ucla.edu> |
118ffb4b2093
* regex.c (re_comp): Cast gettext return value to char *,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5319
diff
changeset
|
1407 |
5323
a906a71f497a
Fix typo in previous log.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5321
diff
changeset
|
1408 * xalloc.h (xmemdup): Renamed from xclone. All uses changed. |
5321
fe390d57473a
Rename xclone to xmemdup. Remove obsolete xalloc macros.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5320
diff
changeset
|
1409 * xmalloc.c (xmemdup): Likewise. |
fe390d57473a
Rename xclone to xmemdup. Remove obsolete xalloc macros.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5320
diff
changeset
|
1410 * xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC, |
fe390d57473a
Rename xclone to xmemdup. Remove obsolete xalloc macros.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5320
diff
changeset
|
1411 XFREE): Remove these long-obsolescent macros. |
fe390d57473a
Rename xclone to xmemdup. Remove obsolete xalloc macros.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5320
diff
changeset
|
1412 * xmalloc.c (xstrdup): Implementation moved here from xstrdup.c |
fe390d57473a
Rename xclone to xmemdup. Remove obsolete xalloc macros.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5320
diff
changeset
|
1413 * xstrdup.c: Remove. |
fe390d57473a
Rename xclone to xmemdup. Remove obsolete xalloc macros.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5320
diff
changeset
|
1414 |
5320
118ffb4b2093
* regex.c (re_comp): Cast gettext return value to char *,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5319
diff
changeset
|
1415 * regex.c (re_comp): Cast gettext return value to char *, |
118ffb4b2093
* regex.c (re_comp): Cast gettext return value to char *,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5319
diff
changeset
|
1416 Problem reported by Martin Neitzel via Mark D. Baushke. |
5362 | 1417 |
5319
61af141e6032
error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
Simon Josefsson <simon@josefsson.org>
parents:
5318
diff
changeset
|
1418 2004-10-04 Simon Josefsson <jas@extundo.com> |
61af141e6032
error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
Simon Josefsson <simon@josefsson.org>
parents:
5318
diff
changeset
|
1419 |
61af141e6032
error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
Simon Josefsson <simon@josefsson.org>
parents:
5318
diff
changeset
|
1420 * error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of |
61af141e6032
error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
Simon Josefsson <simon@josefsson.org>
parents:
5318
diff
changeset
|
1421 '#ifdef USE_UNLOCKED_IO'. |
61af141e6032
error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
Simon Josefsson <simon@josefsson.org>
parents:
5318
diff
changeset
|
1422 |
5318
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1423 2004-10-04 Paul Eggert <eggert@cs.ucla.edu> |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1424 |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1425 * argmatch.c, closeout.c, error.c, exclude.c, getdate.y, |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1426 getndelim2.c, getpass.c, getusershell.c, linebuffer.c, |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1427 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c, |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1428 regex.c, sha1.c, version-etc.c, yesno.c: |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1429 Include "unlocked-io.h" only if USE_UNLOCKED_IO. |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1430 * unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1431 the includer's responsibility. |
5309 | 1432 |
1433 Sync from coreutils. | |
1434 | |
1435 * modechange.c (mode_compile): Don't decrement a pointer that | |
1436 points to the start of a string, as the C Standard says the | |
1437 resulting behavior is undefined. | |
1438 | |
1439 * backupfile.h (enum backuptype): Rename none -> no_backups, | |
1440 simple -> simple_backups, numbered_existing -> | |
1441 numbered_existing_backups, numbered -> numbered_backups | |
1442 to avoid shadowing problems. All uses changed. | |
1443 * argmatch.c (enum backuptype) [defined TEST]: Likewise. | |
1444 * backupfile.c (check_extension, numbered_backup): | |
1445 Rename locals to avoid shadowing 'basename'. | |
1446 * backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than | |
1447 once. | |
1448 | |
1449 * .cppi-disable: Add getopt_.h, getopt_int.h. | |
1450 * .cvsignore: Add getopt.h. | |
1451 | |
5318
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1452 2004-10-04 Simon Josefsson <jas@extundo.com> |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1453 |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1454 * memmem.h: New file. |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1455 * memmem.c: New file, taken from glibc. |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5310
diff
changeset
|
1456 |
5299 | 1457 2004-10-02 Jim Meyering <jim@meyering.net> |
1458 | |
1459 * dirfd.h, getpagesize.h: Add copyright notice. | |
1460 | |
5294
4d09e7debbbb
* snprintf.c: Remove comments as to why each header is needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5292
diff
changeset
|
1461 2004-10-01 Paul Eggert <eggert@cs.ucla.edu> |
4d09e7debbbb
* snprintf.c: Remove comments as to why each header is needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5292
diff
changeset
|
1462 |
4d09e7debbbb
* snprintf.c: Remove comments as to why each header is needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5292
diff
changeset
|
1463 * snprintf.c: Remove comments as to why each header is needed. |
4d09e7debbbb
* snprintf.c: Remove comments as to why each header is needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5292
diff
changeset
|
1464 |
5292 | 1465 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org> |
1466 | |
1467 * strsep.h: New file. | |
1468 * strsep.c: New file. | |
1469 | |
5291 | 1470 2004-10-01 Simon Josefsson <jas@extundo.com> |
1471 | |
1472 * snprintf.c (snprintf): Handle size==0. | |
1473 | |
5290
a32d2a4a925f
Fixes, mostly from Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
5288
diff
changeset
|
1474 2004-10-01 Simon Josefsson <jas@extundo.com> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
1475 Bruno Haible <bruno@clisp.org> |
5290
a32d2a4a925f
Fixes, mostly from Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
5288
diff
changeset
|
1476 |
a32d2a4a925f
Fixes, mostly from Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
5288
diff
changeset
|
1477 * snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>. |
a32d2a4a925f
Fixes, mostly from Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
5288
diff
changeset
|
1478 (snprintf): Declare 'args'. |
5288 | 1479 |
5282
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5280
diff
changeset
|
1480 2004-09-30 Simon Josefsson <jas@extundo.com> |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5280
diff
changeset
|
1481 |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5280
diff
changeset
|
1482 * snprintf.h, snprintf.c: New files. |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5280
diff
changeset
|
1483 |
5280 | 1484 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net> |
1485 | |
1486 * argp-help.c (canon_doc_option): Fixed coredump if *name==NULL | |
1487 (hol_entry_help): Never translate an empty string. | |
1488 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set | |
1489 * argp.h (OPTION_NO_TRANS): New option. | |
1490 | |
5272
533332af517b
Fixing a stupid typo in xvasprintf.c... from Oskar Liljeblad.
Bruno Haible <bruno@clisp.org>
parents:
5266
diff
changeset
|
1491 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu> |
533332af517b
Fixing a stupid typo in xvasprintf.c... from Oskar Liljeblad.
Bruno Haible <bruno@clisp.org>
parents:
5266
diff
changeset
|
1492 |
533332af517b
Fixing a stupid typo in xvasprintf.c... from Oskar Liljeblad.
Bruno Haible <bruno@clisp.org>
parents:
5266
diff
changeset
|
1493 * xvasprintf.c: Include xalloc.h. |
533332af517b
Fixing a stupid typo in xvasprintf.c... from Oskar Liljeblad.
Bruno Haible <bruno@clisp.org>
parents:
5266
diff
changeset
|
1494 (xvasprintf): Use xalloc_die, not xmalloc_die. |
533332af517b
Fixing a stupid typo in xvasprintf.c... from Oskar Liljeblad.
Bruno Haible <bruno@clisp.org>
parents:
5266
diff
changeset
|
1495 |
5266
db5f49232363
dummy.c: Change copyright notice to FSF, and license to GPL.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5230
diff
changeset
|
1496 2004-09-28 Paul Eggert <eggert@cs.ucla.edu> |
db5f49232363
dummy.c: Change copyright notice to FSF, and license to GPL.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5230
diff
changeset
|
1497 |
db5f49232363
dummy.c: Change copyright notice to FSF, and license to GPL.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5230
diff
changeset
|
1498 * dummy.c: Change copyright notice to FSF, and license to GPL. |
db5f49232363
dummy.c: Change copyright notice to FSF, and license to GPL.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5230
diff
changeset
|
1499 |
5230
7e9d57a4775e
* argp-pvh.c (argp_program_version_hook): Provide initial value.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5228
diff
changeset
|
1500 2004-09-13 Paul Eggert <eggert@cs.ucla.edu> |
7e9d57a4775e
* argp-pvh.c (argp_program_version_hook): Provide initial value.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5228
diff
changeset
|
1501 |
7e9d57a4775e
* argp-pvh.c (argp_program_version_hook): Provide initial value.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5228
diff
changeset
|
1502 * argp-pvh.c (argp_program_version_hook): Provide initial value. |
7e9d57a4775e
* argp-pvh.c (argp_program_version_hook): Provide initial value.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5228
diff
changeset
|
1503 Problem reported by Bruno Haible in: |
7e9d57a4775e
* argp-pvh.c (argp_program_version_hook): Provide initial value.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5228
diff
changeset
|
1504 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html |
7e9d57a4775e
* argp-pvh.c (argp_program_version_hook): Provide initial value.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5228
diff
changeset
|
1505 |
5228
dd2bfbde1140
* mempcpy.h: Wrap the entire include file inside #ifndef mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5223
diff
changeset
|
1506 2004-09-11 Paul Eggert <eggert@cs.ucla.edu> |
dd2bfbde1140
* mempcpy.h: Wrap the entire include file inside #ifndef mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5223
diff
changeset
|
1507 |
dd2bfbde1140
* mempcpy.h: Wrap the entire include file inside #ifndef mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5223
diff
changeset
|
1508 * mempcpy.h: Wrap the entire include file inside #ifndef mempcpy, |
dd2bfbde1140
* mempcpy.h: Wrap the entire include file inside #ifndef mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5223
diff
changeset
|
1509 in case some system header has #define'd it. Problem reported by |
dd2bfbde1140
* mempcpy.h: Wrap the entire include file inside #ifndef mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5223
diff
changeset
|
1510 Soeren D. Schulze in |
dd2bfbde1140
* mempcpy.h: Wrap the entire include file inside #ifndef mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5223
diff
changeset
|
1511 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>. |
dd2bfbde1140
* mempcpy.h: Wrap the entire include file inside #ifndef mempcpy.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5223
diff
changeset
|
1512 |
5219 | 1513 2004-09-08 Bruno Haible <bruno@clisp.org> |
1514 | |
1515 * stdint_.h.in: New file, taken from GNU clisp. | |
1516 | |
5218 | 1517 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu> |
1518 | |
1519 * xvasprintf.h: New file. | |
1520 * xvasprintf.c: New file. | |
1521 * xasprintf.c: New file. | |
1522 | |
5217
dfed7854bcf3
Improve handling of the case length > INT_MAX.
Bruno Haible <bruno@clisp.org>
parents:
5209
diff
changeset
|
1523 2004-09-08 Bruno Haible <bruno@clisp.org> |
dfed7854bcf3
Improve handling of the case length > INT_MAX.
Bruno Haible <bruno@clisp.org>
parents:
5209
diff
changeset
|
1524 |
dfed7854bcf3
Improve handling of the case length > INT_MAX.
Bruno Haible <bruno@clisp.org>
parents:
5209
diff
changeset
|
1525 * vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting length |
dfed7854bcf3
Improve handling of the case length > INT_MAX.
Bruno Haible <bruno@clisp.org>
parents:
5209
diff
changeset
|
1526 is > INT_MAX. |
dfed7854bcf3
Improve handling of the case length > INT_MAX.
Bruno Haible <bruno@clisp.org>
parents:
5209
diff
changeset
|
1527 * vasprintf.c (vasprintf): Don't test for length > INT_MAX any more. |
dfed7854bcf3
Improve handling of the case length > INT_MAX.
Bruno Haible <bruno@clisp.org>
parents:
5209
diff
changeset
|
1528 |
5209
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1529 2004-08-19 Paul Eggert <eggert@cs.ucla.edu> |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1530 |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1531 Import from coreutils. |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1532 * userspec.c: Don't use <alloca.h>, so that we don't use alloca on |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1533 strings on unbounded length. alloca's performance benefits aren't |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1534 that important here. |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1535 (V_STRDUP): Remove. |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1536 (parse_with_separator): New function, with most of the internals |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1537 of the old parse_user_spec. Allow user to omit both user and group, |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1538 for compatibility with FreeBSD. |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1539 Clone only the user name, not the entire spec. |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1540 Do not set *uid, *gid unless entirely successful. |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1541 Avoid memory leak in some failing cases. |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1542 Fix regression for USER.GROUP reported by Dmitry V. Levin in |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1543 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html> |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1544 (parse_user_spec): Rewrite to use parse_with_separator. |
ef929daf6639
Import userspec from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5197
diff
changeset
|
1545 |
5197 | 1546 2004-08-12 Paul Eggert <eggert@cs.ucla.edu> |
1547 | |
1548 * argp-help.c, argp-parse.c: Use "gettext.h" instead of | |
1549 its complicated substitute. | |
1550 * argp-help.c: Include <errno.h>, for program_invocation_short_name | |
1551 and program_invocation_name. | |
1552 (__argp_basename) [!_LIBC]: Remove; the only use was | |
1553 replaced by its body. | |
1554 (__argp_short_program_name): Change condition from | |
1555 !defined __argp_short_program_name to | |
1556 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME), | |
1557 to match argp-namefrob.h. | |
1558 (__argp_failure): Don't assume strerror_r returns char *. | |
1559 * argp-parse.c (N_): Define unconditionally. | |
1560 (argp_default_options): Fill out initializers with 0 to avoid | |
1561 gcc warnings. | |
5299 | 1562 |
5197 | 1563 2004-08-12 Simon Josefsson <jas@extundo.com> |
1564 | |
1565 * getopt.c, getopt1.c: Remove ELIDE_CODE hack. | |
1566 * getopt_.h: Renamed from getopt.h. | |
5299 | 1567 |
5186 | 1568 2004-08-11 Paul Eggert <eggert@cs.ucla.edu> |
1569 | |
1570 Merge from coreutils. | |
5299 | 1571 |
5186 | 1572 * fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing |
1573 wmemchr or wmemcpy. Problem reported by Robert Dahlem | |
1574 for Reliant Unix 5.43. | |
1575 | |
1576 * obstack.c: Include <inttypes.h> and <stdint.h> if available. | |
1577 (union fooround): Use uintmax_t, not long int. | |
1578 The rest is a merge from libc: | |
1579 [defined _LIBC]: Include <shlib-compat.h>. | |
1580 (_obstack) [defined _LIBC]: Remove after 2.3.4. | |
1581 | |
1582 * settime.c (settime): Recode to avoid warning with Sun Forte C 6U2. | |
1583 | |
1584 * strverscmp.c: Convert to UTF-8. | |
1585 | |
5175 | 1586 2004-08-09 Paul Eggert <eggert@cs.ucla.edu> |
1587 | |
1588 * obstack.h (obstack_empty_p): | |
1589 Don't assume that chunk->contents is suitably aligned. | |
1590 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk): | |
1591 Likewise. Problem reported by Benno in | |
1592 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>. | |
1593 | |
1594 * chown.c (rpl_chown): Work even if the file is writeable but not | |
1595 readable. This could be improved further but it'd take some work. | |
1596 | |
5169
62a3f9818260
xgethostname simplification
Paul Eggert <eggert@cs.ucla.edu>
parents:
5168
diff
changeset
|
1597 2004-08-08 Simon Josefsson <jas@extundo.com> |
5299 | 1598 |
5169
62a3f9818260
xgethostname simplification
Paul Eggert <eggert@cs.ucla.edu>
parents:
5168
diff
changeset
|
1599 * xgethostname.c: Don't include error.h (not used). |
62a3f9818260
xgethostname simplification
Paul Eggert <eggert@cs.ucla.edu>
parents:
5168
diff
changeset
|
1600 |
5170
17c4badb3864
Add getpass.h, so it's properly declared.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5169
diff
changeset
|
1601 * getpass.h: Add. |
17c4badb3864
Add getpass.h, so it's properly declared.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5169
diff
changeset
|
1602 * getpass.c: Include getpass.h first. |
17c4badb3864
Add getpass.h, so it's properly declared.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5169
diff
changeset
|
1603 |
5166
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1604 2004-08-08 Paul Eggert <eggert@cs.ucla.edu> |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1605 |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1606 * xalloc-die.c: New files. |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1607 * xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove. |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1608 All uses removed. |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1609 * xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted): Likewise. |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1610 Move inclusions of gettext.h, error.h, exitfail.h to xalloc-die.c. |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1611 (_, N_, xalloc_die): Move to xalloc-die.c. |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1612 * userspec.c (parse_user_spaec): Use xstrdup rather than strdup, |
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1613 so that we needn't mess with xalloc_msg_memory_exhausted. |
5165
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1614 |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1615 * sha1.h: Renamed from sha.h. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1616 (SHA1_H): Renamed from _SHA_H. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1617 (sha1_ctx): Renamed from sha_ctx. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1618 (sha1_init_ctx): Renamed from sha_init_ctx. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1619 (sha1_process_block): Renamed from sha_process_block. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1620 (sha1_process_bytes): Renamed from sha_process_bytes. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1621 (sha1_finish_ctx): Renamed from sha_finish_ctx. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1622 (sha1_read_ctx): Renamed from sha_read_ctx. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1623 (sha1_stream): Renamed from sha_stream. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1624 (sha1_buffer): Renamed from sha_buffer. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1625 * sha1.c: Likewise; renamed from sha.c. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1626 Do not include <sys/types.h>. |
9d7fe6ace357
Add uint32_t.m4, uintptr_t.m4, and finish renaming sha->sha1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5164
diff
changeset
|
1627 Include <stddef.h> rather than <stdlib.h>. |
5166
95d4226b62d3
Remove dependency of xalloc in exitfail, error, gettext.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5165
diff
changeset
|
1628 |
5164
773a21466082
Rename FILESYSTEM_PREFIX_LEN.
Bruno Haible <bruno@clisp.org>
parents:
5162
diff
changeset
|
1629 2004-08-08 Bruno Haible <bruno@clisp.org> |
773a21466082
Rename FILESYSTEM_PREFIX_LEN.
Bruno Haible <bruno@clisp.org>
parents:
5162
diff
changeset
|
1630 |
773a21466082
Rename FILESYSTEM_PREFIX_LEN.
Bruno Haible <bruno@clisp.org>
parents:
5162
diff
changeset
|
1631 * pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from |
773a21466082
Rename FILESYSTEM_PREFIX_LEN.
Bruno Haible <bruno@clisp.org>
parents:
5162
diff
changeset
|
1632 FILESYSTEM_PREFIX_LEN. |
773a21466082
Rename FILESYSTEM_PREFIX_LEN.
Bruno Haible <bruno@clisp.org>
parents:
5162
diff
changeset
|
1633 * progreloc.c: Likewise. |
773a21466082
Rename FILESYSTEM_PREFIX_LEN.
Bruno Haible <bruno@clisp.org>
parents:
5162
diff
changeset
|
1634 * concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN. |
773a21466082
Rename FILESYSTEM_PREFIX_LEN.
Bruno Haible <bruno@clisp.org>
parents:
5162
diff
changeset
|
1635 |
5159 | 1636 2004-08-06 Paul Eggert <eggert@cs.ucla.edu> |
1637 | |
5162
a9f2632fa41f
Merge argp-help from tar.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5160
diff
changeset
|
1638 Merge from tar. |
a9f2632fa41f
Merge argp-help from tar.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5160
diff
changeset
|
1639 * argp-help.c (make_hol, hol_append): Don't assume that |
a9f2632fa41f
Merge argp-help from tar.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5160
diff
changeset
|
1640 SIZE_MAX is a valid preprocessor constant. |
a9f2632fa41f
Merge argp-help from tar.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5160
diff
changeset
|
1641 (__argp_basename): Change from "#ifndef _LIBC" |
a9f2632fa41f
Merge argp-help from tar.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5160
diff
changeset
|
1642 to "#ifndef __argp_short_program_name", so that |
a9f2632fa41f
Merge argp-help from tar.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5160
diff
changeset
|
1643 we don't compile these functions for tar. |
a9f2632fa41f
Merge argp-help from tar.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5160
diff
changeset
|
1644 |
5159 | 1645 More merges from coreutils. |
1646 * raise.c, readtokens0.h, readtokens0.c, strftime.h, utimens.h, | |
1647 utimens.c, utimecmp.h, utimecmp.c, xnanosleep.h, xnanosleep.c, | |
1648 yesno.h: New files. | |
1649 * addext.c: Remove; no longer needed. | |
1650 * yesno.c, argmatch.h, argmatch.c, backupfile.h, backupfile.c, | |
1651 euidaccess.c, filemode.c, closeout.c, dup2.c, exclude.c, | |
1652 fileblocks.c, filemode.c, fnmatch.c, fnmtahc_loop.c, | |
1653 fopen-safer.c, fsusage.c, fsusage.h, ftruncate.c, full-write.c, | |
1654 getdate.y, getloadavg.c, getugroups.c, hard-locale.c, hard-locale.h, | |
1655 hash.c, human.c, human.h, lchown.c, lchown.h, makepath.c, makepath.h, | |
1656 md5.c, md5.h, memchr.c, memcoll.c, memrchr.c, modechange.c, | |
1657 modechange.h, mountlist.c, mountlist.h, nanosleep.c, posixtm.c, | |
1658 putenv.c, quotearg.c, quotearg.h, readtokens.c, readutmp.c, | |
1659 readutmp.h, rmdir.c, safe-read.c, save-cwd.c, savedir.c, setenv.c, | |
1660 sig2str.c, stat.c, strtoimax.c, strverscmp.c, userspec.c, utime.c, | |
1661 version-etc.c., xgethostname.c, xmemcoll.c, xreadlink.c, xstrtod.c, | |
1662 xstrtod.h, xstrtoimax.c, xstrtol.c, xstrtol.h, xstrtoumax.c: | |
1663 Import changes from coreutils. | |
1664 | |
5119
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1665 2004-08-05 Paul Eggert <eggert@cs.ucla.edu> |
5137
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1666 |
5119
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1667 Merge from coreutils. |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1668 |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1669 * .gdb-history: Remove; this doesn't belong here. |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1670 |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1671 * c-strtod.c, c-strtod.h, c-strtold.c, cycle-check.c, |
5137
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1672 cycle-check.h, dev-ino.h, canonicalize.h, canonicalize.c, |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1673 fcntl-safer.h, fcntl-safer.c, getcwd.c: New files. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1674 |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1675 * dirname.h: Include <stdbool.h>. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1676 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN, |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1677 for consistency with POSIX terminology. All uses changed. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1678 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1679 (strip_trailing_slashes): Use bool for booleans. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1680 * stripslash.c (strip_trailing_slashes): Likewise. |
5119
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1681 |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1682 * error.c: Work around bug in OpenBSD 3.4 sterror_r: it |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1683 sometimes returns a positive errno value even when it succeeds. |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1684 (print_errno_message) [!LIBC]: Fall back on strerror if |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1685 __strerror_r fails. |
7b7f24e67129
Merge from coreutils (first part).
Paul Eggert <eggert@cs.ucla.edu>
parents:
5111
diff
changeset
|
1686 |
5137
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1687 * path-concat.c (mempcpy): Don't define if a system header defines it. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1688 Don't include stdio.h, stdlib.h, unistd.h, strdup.h. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1689 (longest_relative_suffix): New function. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1690 (path_concat): Use it. Assume first argument is not NULL. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1691 Port to DOS. Omit redundant separators. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1692 Report an error instead of returning NULL. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1693 Use mempcpy instead of memcpy. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1694 (xpath_concat): Remove: not declared or used. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1695 |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1696 * same.h: Include <stdbool.h> |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1697 (same_name): Return bool, not int. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1698 * same.c (same_name): Likewise. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1699 (errno): Don't declare; we assume C89 or better now. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1700 |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1701 * stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros, |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1702 if not already defined. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1703 |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1704 * xgetcwd.c (errno): Don't declare; we assume C89 or better now. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1705 * dup-safer.c (errno): Likewise. |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1706 |
5111 | 1707 2004-08-03 Paul Eggert <eggert@cs.ucla.edu> |
1708 | |
5137
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1709 * fatal.c, fatal.h: Remove as the "fatal" module wasn't used or |
ba885205d891
More merges from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5119
diff
changeset
|
1710 working. |
5111 | 1711 |
5160
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1712 2004-08-03 Simon Josefsson <jas@extundo.com> |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1713 |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1714 * strdup.h: Only use HAVE_DECL_STRDUP if defined. |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1715 * progname.h: Don't include stdbool.h. |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1716 |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1717 2004-08-02 Simon Josefsson <jas@extundo.com> |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1718 |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1719 * getsubopt.h: New file, with comments from Bruno Haible. |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1720 * getsubopt.c: New file, from glibc, but slightly modified based on |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1721 suggestions from Paul Eggert <eggert@cs.ucla.edu>. |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1722 |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1723 2004-08-01 Simon Josefsson <jas@extundo.com> |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1724 |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1725 * xgetdomainname.c: Include stdlib.h, for free(). |
e70798064461
Only declare strdup if it isn't declared by the system.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
1726 |
5106 | 1727 2004-07-16 Simon Josefsson <jas@extundo.com> |
1728 | |
1729 * dummy.c: New file. | |
1730 | |
5104
73f9a98a273f
Allow use in C++ environment.
Bruno Haible <bruno@clisp.org>
parents:
5102
diff
changeset
|
1731 2004-07-16 Bruno Haible <bruno@clisp.org> |
73f9a98a273f
Allow use in C++ environment.
Bruno Haible <bruno@clisp.org>
parents:
5102
diff
changeset
|
1732 |
5105 | 1733 * backupfile.h: Add extern "C" for C++. |
1734 * closeout.h: Likewise. | |
1735 * copy-file.h: Likewise. | |
1736 * findprog.h: Likewise. | |
1737 * full-write.h: Likewise. | |
1738 * pathname.h: Likewise. | |
1739 * progname.h: Likewise. | |
1740 * stpcpy.h: Likewise. | |
1741 * stpncpy.h: Likewise. | |
1742 * strcase.h: Likewise. | |
1743 * strstr.h: Likewise. | |
1744 * xalloc.h: Likewise. | |
1745 | |
5104
73f9a98a273f
Allow use in C++ environment.
Bruno Haible <bruno@clisp.org>
parents:
5102
diff
changeset
|
1746 * mbswidth.h: Add extern "C" for C++. |
73f9a98a273f
Allow use in C++ environment.
Bruno Haible <bruno@clisp.org>
parents:
5102
diff
changeset
|
1747 Reported by Albert Chin-A-Young <china@thewrittenword.com>. |
73f9a98a273f
Allow use in C++ environment.
Bruno Haible <bruno@clisp.org>
parents:
5102
diff
changeset
|
1748 |
5102
d39dc0b72f5b
* getndelim2.c: Include stddef.h, for ptrdiff_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5101
diff
changeset
|
1749 2004-07-09 Simon Josefsson <jas@extundo.com> |
d39dc0b72f5b
* getndelim2.c: Include stddef.h, for ptrdiff_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5101
diff
changeset
|
1750 |
d39dc0b72f5b
* getndelim2.c: Include stddef.h, for ptrdiff_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5101
diff
changeset
|
1751 * getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9 |
d39dc0b72f5b
* getndelim2.c: Include stddef.h, for ptrdiff_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5101
diff
changeset
|
1752 failed without this.) |
d39dc0b72f5b
* getndelim2.c: Include stddef.h, for ptrdiff_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5101
diff
changeset
|
1753 |
5101 | 1754 2004-07-09 Paul Eggert <eggert@cs.ucla.edu> |
1755 | |
1756 * fchown-stub.c: New file. | |
1757 | |
5096
66c1aaac231f
* obstack.h (obstack_base): Cast to (void *), per documentation.
Jim Meyering <jim@meyering.net>
parents:
5092
diff
changeset
|
1758 2004-06-24 Jim Meyering <jim@meyering.net> |
66c1aaac231f
* obstack.h (obstack_base): Cast to (void *), per documentation.
Jim Meyering <jim@meyering.net>
parents:
5092
diff
changeset
|
1759 |
66c1aaac231f
* obstack.h (obstack_base): Cast to (void *), per documentation.
Jim Meyering <jim@meyering.net>
parents:
5092
diff
changeset
|
1760 * obstack.h (obstack_base): Cast to (void *), per documentation. |
66c1aaac231f
* obstack.h (obstack_base): Cast to (void *), per documentation.
Jim Meyering <jim@meyering.net>
parents:
5092
diff
changeset
|
1761 |
5092
524f03b4532e
Add argz module, which is autoupdated from libtool.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5081
diff
changeset
|
1762 2004-06-22 Paul Eggert <eggert@cs.ucla.edu> |
524f03b4532e
Add argz module, which is autoupdated from libtool.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5081
diff
changeset
|
1763 |
524f03b4532e
Add argz module, which is autoupdated from libtool.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5081
diff
changeset
|
1764 * argz.c, argz_.h: New files, which are autoupdated from libtool. |
524f03b4532e
Add argz module, which is autoupdated from libtool.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5081
diff
changeset
|
1765 |
5081
af4fd5060a09
* modules/calloc: New file.
Jim Meyering <jim@meyering.net>
parents:
5080
diff
changeset
|
1766 2004-06-01 Jim Meyering <jim@meyering.net> |
af4fd5060a09
* modules/calloc: New file.
Jim Meyering <jim@meyering.net>
parents:
5080
diff
changeset
|
1767 |
af4fd5060a09
* modules/calloc: New file.
Jim Meyering <jim@meyering.net>
parents:
5080
diff
changeset
|
1768 * calloc.c: New file. |
af4fd5060a09
* modules/calloc: New file.
Jim Meyering <jim@meyering.net>
parents:
5080
diff
changeset
|
1769 |
5080
033d299cab29
* getdate.y (yylex): Allow space between sign and number.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5078
diff
changeset
|
1770 2004-06-06 Paul Eggert <eggert@cs.ucla.edu> |
033d299cab29
* getdate.y (yylex): Allow space between sign and number.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5078
diff
changeset
|
1771 |
033d299cab29
* getdate.y (yylex): Allow space between sign and number.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5078
diff
changeset
|
1772 * getdate.y (yylex): Allow space between sign and number. |
033d299cab29
* getdate.y (yylex): Allow space between sign and number.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5078
diff
changeset
|
1773 Problem reported by Dan Jacobson. |
033d299cab29
* getdate.y (yylex): Allow space between sign and number.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5078
diff
changeset
|
1774 |
5078
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1775 2004-06-01 Paul Eggert <eggert@cs.ucla.edu> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
1776 and Jim Meyering <jim@meyering.net> |
5078
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1777 |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1778 Merge from coreutils CVS. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1779 |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1780 * stat-macros.h: New file, with contents from file-type.h |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1781 and coreutils' system.h. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1782 * file-type.c: Include "stat-macros.h". |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1783 * file-type.h (file_type): Move all macro definitions to new file, |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1784 stat-macros.h. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1785 |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1786 * chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]: |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1787 Wrap old code with this conditional. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1788 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1789 function that does not dereference symlinks. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1790 * lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1791 |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1792 * xreadlink.c: Include xreadlink.h first, to catch .h file |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1793 dependency problems. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1794 (xreadlink): Accept new arg SIZE, for efficiency. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1795 All decls and uses changed. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1796 * xreadlink.h: Include <stddef.h>, for size_t. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1797 |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1798 * .cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h, |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1799 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1800 |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1801 * .cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h, sysexits.h. |
146129232fe0
Merge from coreutils CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5074
diff
changeset
|
1802 |
5074
5f558ceff8fb
Remove dependency of hash and xalloc modules on the malloc and realloc
Paul Eggert <eggert@cs.ucla.edu>
parents:
5071
diff
changeset
|
1803 2004-05-30 Paul Eggert <eggert@cs.ucla.edu> |
5f558ceff8fb
Remove dependency of hash and xalloc modules on the malloc and realloc
Paul Eggert <eggert@cs.ucla.edu>
parents:
5071
diff
changeset
|
1804 |
5f558ceff8fb
Remove dependency of hash and xalloc modules on the malloc and realloc
Paul Eggert <eggert@cs.ucla.edu>
parents:
5071
diff
changeset
|
1805 * xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these |
5f558ceff8fb
Remove dependency of hash and xalloc modules on the malloc and realloc
Paul Eggert <eggert@cs.ucla.edu>
parents:
5071
diff
changeset
|
1806 macros to be defined. |
5f558ceff8fb
Remove dependency of hash and xalloc modules on the malloc and realloc
Paul Eggert <eggert@cs.ucla.edu>
parents:
5071
diff
changeset
|
1807 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if |
5f558ceff8fb
Remove dependency of hash and xalloc modules on the malloc and realloc
Paul Eggert <eggert@cs.ucla.edu>
parents:
5071
diff
changeset
|
1808 the allocator returns NULL because the requested size is zero. |
5f558ceff8fb
Remove dependency of hash and xalloc modules on the malloc and realloc
Paul Eggert <eggert@cs.ucla.edu>
parents:
5071
diff
changeset
|
1809 |
5071
d525afe1916c
* malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this var.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5070
diff
changeset
|
1810 2004-05-20 Paul Eggert <eggert@cs.ucla.edu> |
d525afe1916c
* malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this var.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5070
diff
changeset
|
1811 |
d525afe1916c
* malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this var.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5070
diff
changeset
|
1812 * malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this |
d525afe1916c
* malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this var.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5070
diff
changeset
|
1813 var. Add comment explaining why libc still defines it. This |
d525afe1916c
* malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this var.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5070
diff
changeset
|
1814 merges the following patch from glibc: |
d525afe1916c
* malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this var.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5070
diff
changeset
|
1815 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html |
d525afe1916c
* malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this var.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5070
diff
changeset
|
1816 |
5070
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1817 2004-05-19 Paul Eggert <eggert@cs.ucla.edu> |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1818 |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1819 * obstack.c (_obstack): Remove unused variable. It hasn't been |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1820 present in glibc since revision 1.1 of this file. |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1821 * obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast, |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1822 obstack_alignment_mask, obstack_alloc, obstack_base, |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1823 obstack_blank, obstack_blank_fast, obstack_chunk_size, |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1824 obstack_copy, obstack_copy0, obstack_finish, obstack_grow, |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1825 obstack_grow0, obstack_init, obstack_int_grow, |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1826 obstack_int_grow_fast, obstack_make_room, obstack_memory_used, |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1827 obstack_next_free, obstack_object_size, obstack_ptr_grow, |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1828 obstack_ptr_grow_fast, obstack_room): Remove declarations of |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1829 nonexistent functions. |
57d23334289f
Remove unused vars and decls in obstack.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5067
diff
changeset
|
1830 |
5067
1407b63897fd
Simplify argp by assuming alloca module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5066
diff
changeset
|
1831 2004-05-17 Derek R. Price <derek@ximbiot.com> |
1407b63897fd
Simplify argp by assuming alloca module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5066
diff
changeset
|
1832 Paul Eggert <eggert@cs.ucla.edu> |
1407b63897fd
Simplify argp by assuming alloca module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5066
diff
changeset
|
1833 |
1407b63897fd
Simplify argp by assuming alloca module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5066
diff
changeset
|
1834 * argp-help.c, argp-parse.c: Assume <alloca.h> rather than freecoding. |
1407b63897fd
Simplify argp by assuming alloca module.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5066
diff
changeset
|
1835 |
5066
a2cb70e482fc
Fix for format strings like "%2.f".
Bruno Haible <bruno@clisp.org>
parents:
5065
diff
changeset
|
1836 2004-05-14 Bruno Haible <bruno@clisp.org> |
a2cb70e482fc
Fix for format strings like "%2.f".
Bruno Haible <bruno@clisp.org>
parents:
5065
diff
changeset
|
1837 |
a2cb70e482fc
Fix for format strings like "%2.f".
Bruno Haible <bruno@clisp.org>
parents:
5065
diff
changeset
|
1838 * vasnprintf.c (VASNPRINTF): Correctly handle the case of a precision |
a2cb70e482fc
Fix for format strings like "%2.f".
Bruno Haible <bruno@clisp.org>
parents:
5065
diff
changeset
|
1839 that consists of a '.' followed by an empty digit string. |
a2cb70e482fc
Fix for format strings like "%2.f".
Bruno Haible <bruno@clisp.org>
parents:
5065
diff
changeset
|
1840 Patch by Tor Lillqvist <tml@iki.fi>. |
a2cb70e482fc
Fix for format strings like "%2.f".
Bruno Haible <bruno@clisp.org>
parents:
5065
diff
changeset
|
1841 |
5065
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1842 2004-05-17 Paul Eggert <eggert@cs.ucla.edu> |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1843 |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1844 Port obstack to the AS/400, where pointers are 16 bytes wide and |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1845 you cannot cast an integer to a valid pointer. This patch is |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1846 currently waiting to be integrated into glibc; see |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1847 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1848 |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1849 * obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1850 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1851 (__BPTR_ALIGN, __PTR_ALIGN): New macros. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1852 (struct obstack): temp member is now a union of a pointer and |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1853 an integer, instead of an integer. All integer uses changed. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1854 This does not affect the physical layout of struct obstack, |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1855 except on hosts (like the AS/400) where the size or alignment of |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1856 void * is greater than that of ptrdiff_t. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1857 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ && |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1858 __STDC__)]: Store temporary in pointer member of union, not |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1859 integer member. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1860 * obstack.c: Include <stddef.h>, for offsetof. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1861 (struct fooalign): Remove; it doesn't need a name. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1862 (union fooround): Change double to long double, and add void *. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1863 (DEFAULT_ALIGNMENT): Use offsetof to compute. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1864 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant, |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1865 not a macro. Hence the values are always int; so remove all |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1866 casts-to-int in uses. |
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1867 |
5063
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1868 2004-05-16 Paul Eggert <eggert@cs.ucla.edu> |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1869 Derek Price <derek@ximbiot.com> |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1870 |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1871 * alloca.c: Include <alloca.h>, to get our interface. |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1872 * alloca_.h: Use __alloca on AIX, so that we don't have to |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1873 include <alloca.h> first. Use C89 prototype for alloca; this |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1874 requires including <stddef.h> for size_t. Use extern "C" if C++. |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1875 Use #elif for simplicity, since we can assume C89 now. |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1876 Don't try to source the system alloca.h since it will not be found |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1877 and to prevent recursively including its replacement. |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1878 * fnmatch.c: Include <alloca.h> instead of opencoding. |
5547
8f380d892c23
* getdate.y (YYINITDEPTH): New macro.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5545
diff
changeset
|
1879 * regex.c: Likewise. |
5063
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1880 |
5062
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1881 2004-05-16 Derek Price <derek@ximbiot.com> |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1882 Paul Eggert <eggert@cs.ucla.edu> |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1883 |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1884 getline cleanup. This changes the getndelim2 API: both order of |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1885 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1886 no delimiter). |
5065
4ce8ff7e5f06
Port obstack to the AS/400.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5063
diff
changeset
|
1887 |
5063
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1888 * getline.c: Don't include stddef.h or stdio.h, since our |
5062
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1889 interface does that. |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1890 (getline): Always use getdelim, so that we don't have two |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1891 copies of this code. |
5063
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1892 * getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h> |
5062
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1893 if available. |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1894 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined. |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1895 (GETNDELIM2_MAXIMUM): New macro. |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1896 (getndelim2): Reorder arguments. delim==EOF now means no delimiter, |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1897 instead of the old practice of delim2==0. All callers changed. |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1898 Return -1 on overflow, instead of returning junk. |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1899 Do not set *linesize unless allocation succeeds. |
5063
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1900 * getndelim2.h: Do not include stddef.h; no longer needed, now |
5062
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1901 that we include sys/types.h. |
5063
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1902 * getnline.h: Likewise. |
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1903 * getndelim2.h (GETNLINE_NO_LIMIT): New macro. |
5062
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1904 (getndelim2): Reorder arguments. |
5063
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1905 * getnline.c (getnline, getndelim): |
5062
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1906 Don't discard the NMAX argument. |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1907 (getnline): Invoke getndelim, to avoid code duplication. |
5063
1aecdc8063ba
alloca cleanup: always include <alloca.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5062
diff
changeset
|
1908 * getnline.h (GETNLINE_NO_LIMIT): New macro, used instead |
5062
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1909 of (size_t) -1 by callers of the getnline family. |
aa119e787246
getline cleanup. This changes the getndelim2 API: both order of arguments,
Paul Eggert <eggert@cs.ucla.edu>
parents:
5060
diff
changeset
|
1910 |
5059
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1911 2004-05-13 Paul Eggert <eggert@cs.ucla.edu> |
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1912 |
5060
4e59cddb690f
nanosleep merge from coreutils
Paul Eggert <eggert@cs.ucla.edu>
parents:
5059
diff
changeset
|
1913 * nanosleep.c (suspended): Change its type from int to |
4e59cddb690f
nanosleep merge from coreutils
Paul Eggert <eggert@cs.ucla.edu>
parents:
5059
diff
changeset
|
1914 sig_atomic_t volatile. |
4e59cddb690f
nanosleep merge from coreutils
Paul Eggert <eggert@cs.ucla.edu>
parents:
5059
diff
changeset
|
1915 (first_call): Make it private to rpl_nanosleep, and have it |
4e59cddb690f
nanosleep merge from coreutils
Paul Eggert <eggert@cs.ucla.edu>
parents:
5059
diff
changeset
|
1916 be zero initially as that's a bit faster. |
4e59cddb690f
nanosleep merge from coreutils
Paul Eggert <eggert@cs.ucla.edu>
parents:
5059
diff
changeset
|
1917 (my_usleep): Round up fractional times instead of truncating them, |
4e59cddb690f
nanosleep merge from coreutils
Paul Eggert <eggert@cs.ucla.edu>
parents:
5059
diff
changeset
|
1918 as this is the usual meaning for 'sleep'. |
4e59cddb690f
nanosleep merge from coreutils
Paul Eggert <eggert@cs.ucla.edu>
parents:
5059
diff
changeset
|
1919 |
5059
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1920 * gettime.c (gettime): Fall back on `time' if `gettimeofday' |
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1921 doesn't work. |
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1922 * settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway). |
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1923 (ENOSYS): Define if not defined. |
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1924 (settime): Fall back on stime if it exists and settimeofday fails. |
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1925 But don't bother with fallbacks if a method fails with errno == EPERM. |
eb3efcec6ae2
Don't assume that gettimeofday and settimeofday exist or work.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5058
diff
changeset
|
1926 |
5058
d67c037bd2ab
Prior to this change, the save_cwd caller required read access to the
Jim Meyering <jim@meyering.net>
parents:
5057
diff
changeset
|
1927 2004-05-11 Jim Meyering <jim@meyering.net> |
d67c037bd2ab
Prior to this change, the save_cwd caller required read access to the
Jim Meyering <jim@meyering.net>
parents:
5057
diff
changeset
|
1928 |
d67c037bd2ab
Prior to this change, the save_cwd caller required read access to the
Jim Meyering <jim@meyering.net>
parents:
5057
diff
changeset
|
1929 Prior to this change, the save_cwd caller required read access to the |
d67c037bd2ab
Prior to this change, the save_cwd caller required read access to the
Jim Meyering <jim@meyering.net>
parents:
5057
diff
changeset
|
1930 current directory on most systems (ones with the fchdir function). |
d67c037bd2ab
Prior to this change, the save_cwd caller required read access to the
Jim Meyering <jim@meyering.net>
parents:
5057
diff
changeset
|
1931 |
d67c037bd2ab
Prior to this change, the save_cwd caller required read access to the
Jim Meyering <jim@meyering.net>
parents:
5057
diff
changeset
|
1932 * save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only |
d67c037bd2ab
Prior to this change, the save_cwd caller required read access to the
Jim Meyering <jim@meyering.net>
parents:
5057
diff
changeset
|
1933 fails, try write-only, and finally, resort to using xgetcwd. |
d67c037bd2ab
Prior to this change, the save_cwd caller required read access to the
Jim Meyering <jim@meyering.net>
parents:
5057
diff
changeset
|
1934 |
5057
f4b3a4229349
Import obstack changes from libc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5053
diff
changeset
|
1935 2004-05-06 Paul Eggert <eggert@cs.ucla.edu> |
f4b3a4229349
Import obstack changes from libc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5053
diff
changeset
|
1936 |
f4b3a4229349
Import obstack changes from libc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5053
diff
changeset
|
1937 * obstack.c, obstack.h: Import changes from libc. |
f4b3a4229349
Import obstack changes from libc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5053
diff
changeset
|
1938 |
5053
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1939 2004-04-28 Bruno Haible <bruno@clisp.org> |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1940 |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1941 * findprog.c (find_in_path): Treat Cygwin like Windows, since it also |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1942 implicitly appends .exe to executables. |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1943 * localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1944 accepts Windows pathnames. |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1945 * pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN): Treat |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1946 Cygwin like Windows, since it now accepts Windows pathnames. |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1947 * progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN): Treat |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1948 Cygwin like Windows, since it now accepts Windows pathnames. |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1949 Reported by Derek Robert Price <derek@ximbiot.com>. |
eebff8c51a9b
Treat Cygwin like Windows regarding pathname syntax.
Bruno Haible <bruno@clisp.org>
parents:
5050
diff
changeset
|
1950 |
5050 | 1951 2004-04-20 Jim Meyering <jim@meyering.net> |
1952 | |
1953 * getndelim2.c (getndelim2): Upon realloc failure, don't leak memory. | |
1954 | |
5044
b1006348a448
Avoid memory leak upon realloc failure.
Bruno Haible <bruno@clisp.org>
parents:
5025
diff
changeset
|
1955 2004-04-20 Jim Meyering <jim@meyering.net> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
1956 Bruno Haible <bruno@clisp.org> |
5044
b1006348a448
Avoid memory leak upon realloc failure.
Bruno Haible <bruno@clisp.org>
parents:
5025
diff
changeset
|
1957 |
b1006348a448
Avoid memory leak upon realloc failure.
Bruno Haible <bruno@clisp.org>
parents:
5025
diff
changeset
|
1958 * localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak |
b1006348a448
Avoid memory leak upon realloc failure.
Bruno Haible <bruno@clisp.org>
parents:
5025
diff
changeset
|
1959 memory when realloc fails. |
b1006348a448
Avoid memory leak upon realloc failure.
Bruno Haible <bruno@clisp.org>
parents:
5025
diff
changeset
|
1960 |
5025 | 1961 2004-04-18 Jim Meyering <jim@meyering.net> |
1962 | |
1963 * readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc failure, | |
1964 don't leak memory and do call END_UTMP_ENT. | |
1965 | |
5003
d3dbed4f82b1
* inttostr.h: Assume C89 for <limits.h> and CHAR_BIT.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4996
diff
changeset
|
1966 2004-04-11 Paul Eggert <eggert@twinsun.com> |
d3dbed4f82b1
* inttostr.h: Assume C89 for <limits.h> and CHAR_BIT.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4996
diff
changeset
|
1967 |
d3dbed4f82b1
* inttostr.h: Assume C89 for <limits.h> and CHAR_BIT.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4996
diff
changeset
|
1968 * inttostr.h: Include <limits.h> unconditionally, since we assume C89. |
d3dbed4f82b1
* inttostr.h: Assume C89 for <limits.h> and CHAR_BIT.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4996
diff
changeset
|
1969 (CHAR_BIT): Remove, since we assume C89. |
d3dbed4f82b1
* inttostr.h: Assume C89 for <limits.h> and CHAR_BIT.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4996
diff
changeset
|
1970 Include <stdint.h> if available, as per current Autoconf CVS advice. |
d3dbed4f82b1
* inttostr.h: Assume C89 for <limits.h> and CHAR_BIT.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4996
diff
changeset
|
1971 |
4982
87f0b7b6d498
cloexec returns int not bool, to be more consistent with Unix conventions.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4981
diff
changeset
|
1972 2004-03-30 Paul Eggert <eggert@twinsun.com> |
87f0b7b6d498
cloexec returns int not bool, to be more consistent with Unix conventions.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4981
diff
changeset
|
1973 |
5003
d3dbed4f82b1
* inttostr.h: Assume C89 for <limits.h> and CHAR_BIT.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4996
diff
changeset
|
1974 * cloexec.h, cloexec.c (set_cloexec_flag): Return int |
4982
87f0b7b6d498
cloexec returns int not bool, to be more consistent with Unix conventions.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4981
diff
changeset
|
1975 not bool, to be more consistent with Unix conventions. |
87f0b7b6d498
cloexec returns int not bool, to be more consistent with Unix conventions.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4981
diff
changeset
|
1976 Suggested by Bruno Haible. |
87f0b7b6d498
cloexec returns int not bool, to be more consistent with Unix conventions.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4981
diff
changeset
|
1977 |
4996 | 1978 Merge from coreutils. |
1979 | |
1980 * imaxtostr.c, inttostr.c, inttostr.h, offtostr.c, umaxtostr.c: | |
1981 New files. | |
1982 | |
1983 * getdate.h: Include stdbool.h, and timespec.h instead of | |
1984 the usual <time.h> dance. | |
1985 (get_date): Change signature to support fractional time stamps. | |
1986 All callers changed. | |
1987 * getdate.y: Include "getdate.h" first, as we can now | |
1988 assume C89 and don't need to worry about 'const'. | |
1989 Similarly, include "unlocked-io.h" near start, not in middle. | |
1990 Include <limits.h>. | |
1991 (textint.value): Use long int rather than int. | |
1992 (textint.digits): Use size_t rather than int. | |
1993 (BILLION, LOG10_BILLION): New constants. | |
1994 (parser_control): New member rel_ns. Members day_ordinal, | |
1995 time_zone, month, day, hour, minutes, rel_year, rel_month, | |
1996 rel_day, rel_hour, rel_minutes, rel_seconds | |
1997 are now long int, not int. Member seconds is now struct timespec, | |
1998 not int. New member timespec_seen. Members dates_seen, days_seen, | |
1999 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t, | |
2000 not int. | |
2001 (%union.intval): Now long int, not int. | |
2002 New member timespec. | |
2003 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens. | |
2004 (seconds, signed_seconds, unsigned_seconds): New nonterminals. | |
2005 (spec): Now is a timespec or an item list. | |
2006 (timespec, items): New nonterminals. | |
2007 (time, rel, relunit, number, get_date): | |
2008 Add support for fractional seconds. | |
2009 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax. | |
2010 (gmtime, localtime, mktime): Remove decls; not needed with C89. | |
2011 (to_hour): First arg is now long int, not int. | |
2012 (to_year): Returns long int, not int. | |
2013 Don't treat year -70 like 70. | |
2014 (tm_diff): Returns long int, not int. | |
2015 (lookup_word): Use bool instead of int when appropriate. | |
2016 (yylex): Use size_t for count, not int. | |
2017 Detect overflow when parsing large integer constants. | |
2018 Add support for fractions. | |
2019 (get_date): Make pointers 'const' if possible. | |
2020 Use more-portable code to detect integer overflow. | |
2021 (main) [TEST]: Adjust to above changes. Test for localtime failure. | |
2022 Don't use ctime; it's not reliable if the year has >4 digits. | |
2023 | |
2024 * human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set. | |
2025 This is for compatibility with BSD. | |
2026 | |
2027 * timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define. | |
2028 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise. | |
2029 From coreutils' system.h. | |
2030 | |
2031 * userspec.c: Don't include "posixver.h". | |
2032 (parse_user_spec): Fall back on USER.GROUP parsing, regardless | |
2033 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a | |
2034 compatible extension. Simplify code by removing a boolean int | |
2035 that was always nonzero if a string was nonnull. | |
5025 | 2036 |
4996 | 2037 2004-03-30 Jim Meyering <jim@meyering.net> |
2038 | |
2039 Merge from coreutils. | |
2040 | |
2041 * mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h. | |
2042 | |
2043 * readtokens.c (readtoken): Don't leak 64 bytes when reading | |
2044 an empty input stream. | |
2045 | |
2046 * readtokens.c: Include <stdbool.h>. | |
2047 (readtoken): Use `size_t' rather than int/long. | |
2048 All callers adjusted. | |
2049 Use `bool' rather than `int' where appropriate. | |
2050 Use memset rather than an explicit loop. | |
2051 Use x2nrealloc rather than xrealloc. | |
2052 Allow the use of `\0' as a delimiter. | |
2053 (readtokens): Likewise. | |
2054 * readtokens.h (readtoken, readtokens): Update prototypes. | |
2055 | |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2056 2004-03-30 Bruno Haible <bruno@clisp.org> |
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2057 |
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2058 * getloadavg.c (getloadavg): Don't assume setlocale returns |
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2059 nonnull. |
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2060 |
4979
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2061 2004-03-29 Paul Eggert <eggert@twinsun.com> |
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2062 |
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2063 Merge changes to getloadavg.c from coreutils and Emacs. |
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2064 |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2065 * getloadavg.c [!defined HAVE_SETLOCALE] (setlocale): |
4979
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2066 Define to an expression, not to the empty string. |
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2067 Include cloexec.h and xalloc.h. |
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2068 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily. |
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2069 Use set_cloexec_flag rather than rolling our own. |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2070 * cloexec.c, cloexec.h: New files. |
4979
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2071 |
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2072 2004-03-18 Paul Eggert <eggert@twinsun.com> |
4977
f8d28ac258d6
getopt.h: Sync with libc CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4976
diff
changeset
|
2073 |
f8d28ac258d6
getopt.h: Sync with libc CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4976
diff
changeset
|
2074 * getopt.h: Sync with libc CVS. |
f8d28ac258d6
getopt.h: Sync with libc CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4976
diff
changeset
|
2075 |
4976
4df6aeb9a5c5
Fix portability problem with Tru64 and BSD/OS.
Bruno Haible <bruno@clisp.org>
parents:
4975
diff
changeset
|
2076 2004-03-18 Paul Eggert <eggert@twinsun.com> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
2077 Bruno Haible <bruno@clisp.org> |
4976
4df6aeb9a5c5
Fix portability problem with Tru64 and BSD/OS.
Bruno Haible <bruno@clisp.org>
parents:
4975
diff
changeset
|
2078 |
4df6aeb9a5c5
Fix portability problem with Tru64 and BSD/OS.
Bruno Haible <bruno@clisp.org>
parents:
4975
diff
changeset
|
2079 * mbswidth.h: Include <wchar.h> only if HAVE_DECL_MBSWIDTH_IN_WCHAR_H, |
4df6aeb9a5c5
Fix portability problem with Tru64 and BSD/OS.
Bruno Haible <bruno@clisp.org>
parents:
4975
diff
changeset
|
2080 not on all platforms that have <wchar.h>. |
4df6aeb9a5c5
Fix portability problem with Tru64 and BSD/OS.
Bruno Haible <bruno@clisp.org>
parents:
4975
diff
changeset
|
2081 * mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>. |
4df6aeb9a5c5
Fix portability problem with Tru64 and BSD/OS.
Bruno Haible <bruno@clisp.org>
parents:
4975
diff
changeset
|
2082 |
4979
6b9af4133e6f
Merge changes to getloadavg.c from coreutils and Emacs; this
Paul Eggert <eggert@cs.ucla.edu>
parents:
4977
diff
changeset
|
2083 2004-03-09 Paul Eggert <eggert@twinsun.com> |
4970
595e9138157c
Sync getopt and argp from libc CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4969
diff
changeset
|
2084 |
595e9138157c
Sync getopt and argp from libc CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4969
diff
changeset
|
2085 * argp-parse.c, getopt.c, getopt.h, getopt1.c: |
595e9138157c
Sync getopt and argp from libc CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4969
diff
changeset
|
2086 Sync with libc CVS. |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2087 * getopt_int.h: New file, also synced from libc. |
4970
595e9138157c
Sync getopt and argp from libc CVS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4969
diff
changeset
|
2088 |
4969
0db24850c598
Fix c-stack.c portability bug on IRIX 5.3.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4962
diff
changeset
|
2089 2004-03-07 Paul Eggert <eggert@twinsun.com> |
0db24850c598
Fix c-stack.c portability bug on IRIX 5.3.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4962
diff
changeset
|
2090 |
0db24850c598
Fix c-stack.c portability bug on IRIX 5.3.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4962
diff
changeset
|
2091 * c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long |
4975
46784934e2d8
Fix typo "it it" in changelog entry.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4970
diff
changeset
|
2092 '#if' expressions. Unlike the code it replaces, it does not |
4969
0db24850c598
Fix c-stack.c portability bug on IRIX 5.3.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4962
diff
changeset
|
2093 depend on (defined _SC_PAGESIZE). However, it does depend on |
0db24850c598
Fix c-stack.c portability bug on IRIX 5.3.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4962
diff
changeset
|
2094 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug |
0db24850c598
Fix c-stack.c portability bug on IRIX 5.3.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4962
diff
changeset
|
2095 first reported by Jason Andrade in |
0db24850c598
Fix c-stack.c portability bug on IRIX 5.3.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4962
diff
changeset
|
2096 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>. |
0db24850c598
Fix c-stack.c portability bug on IRIX 5.3.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4962
diff
changeset
|
2097 |
4962
6bec4bfbd56e
Include strdup.h. From Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
4945
diff
changeset
|
2098 2004-01-18 Simon Josefsson <jas@extundo.com> |
6bec4bfbd56e
Include strdup.h. From Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
4945
diff
changeset
|
2099 |
6bec4bfbd56e
Include strdup.h. From Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
4945
diff
changeset
|
2100 * strdup.h: New file. |
6bec4bfbd56e
Include strdup.h. From Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
4945
diff
changeset
|
2101 * strdup.c: Include it. |
6bec4bfbd56e
Include strdup.h. From Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
4945
diff
changeset
|
2102 * path-concat.c: Include strdup.h. Drop strdup declaration. |
6bec4bfbd56e
Include strdup.h. From Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
4945
diff
changeset
|
2103 * userspec.c: Include strdup.h. Drop strdup declaration. |
6bec4bfbd56e
Include strdup.h. From Simon Josefsson.
Bruno Haible <bruno@clisp.org>
parents:
4945
diff
changeset
|
2104 |
4945
07fb9f5d51e6
update from gettext 0.14.1
Karl Berry <karl@freefriends.org>
parents:
4944
diff
changeset
|
2105 2004-02-06 Karl Berry <karl@gnu.org> |
07fb9f5d51e6
update from gettext 0.14.1
Karl Berry <karl@freefriends.org>
parents:
4944
diff
changeset
|
2106 |
07fb9f5d51e6
update from gettext 0.14.1
Karl Berry <karl@freefriends.org>
parents:
4944
diff
changeset
|
2107 * config.charset: update from gettext 0.14.1. |
07fb9f5d51e6
update from gettext 0.14.1
Karl Berry <karl@freefriends.org>
parents:
4944
diff
changeset
|
2108 |
4944
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2109 2004-02-05 Paul Eggert <eggert@twinsun.com> |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2110 |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2111 Add comments and code, prompted by suggestions from Bruno Haible |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2112 for sh-quote. |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2113 * quotearg.h (quotearg_alloc): New decl. Improve the comments |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2114 describing the enum quoting_style values. |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2115 * quotearg.c (quotearg_alloc): New function. |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2116 (quotearg_buffer_restyled): Treat lone { and } as special. |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2117 Treat = as special. Work around bug with older shells |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2118 that "see" a '\' that is really the 2nd byte of a multibyte char. |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2119 Quote empty string with shell_quoting_style. |
fae25d470beb
Move misplaced ChangeLog entry.
Bruno Haible <bruno@clisp.org>
parents:
4940
diff
changeset
|
2120 |
4940 | 2121 2004-02-03 Bruno Haible <bruno@clisp.org> |
2122 | |
2123 * pipe.h: New file, from GNU gettext. | |
2124 * pipe.c: New file, from GNU gettext. | |
2125 | |
4936 | 2126 2004-01-27 Bruno Haible <bruno@clisp.org> |
2127 | |
2128 * execute.h: New file, from GNU gettext. | |
2129 * execute.c: New file, from GNU gettext. | |
2130 * w32spawn.h: New file, from GNU gettext. | |
2131 | |
4934
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2132 2004-01-23 Paul Eggert <eggert@twinsun.com> |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2133 |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2134 Exit-status fix from coreutils. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2135 |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2136 Use exit_failure consistently in place of EXIT_FAILURE, |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2137 so that program exit statuses are consistent on failure. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2138 |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2139 * argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]: |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2140 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2141 * argmatch.h: Comment fix to match the above. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2142 * obstack.c (obstack_exit_failure) [!defined _LIBC]: |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2143 Now a macro referring to exit_failure, instead of a separate |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2144 variable. Include "exitfail.h" to get it. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2145 * xstrtol.h: Include "exitfail.h". |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2146 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2147 |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2148 * long-options.c (parse_long_options): Use prototype |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2149 for usage function arg. Pass it EXIT_SUCCESS rather than 0, |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2150 for clarity. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2151 |
4932 | 2152 2004-01-21 Jim Meyering <jim@meyering.net> |
2153 | |
2154 * mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal | |
2155 so as not to conflict with a different-sized __mktime_internal | |
2156 function in GNU libc. | |
2157 * timegm.c (__mktime_internal) [!_LIBC]: Likewise. | |
2158 Problem building statically-linked `ls' reported by Michael Brunnbauer. | |
2159 | |
4934
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2160 2004-01-18 Paul Eggert <eggert@twinsun.com> |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2161 |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2162 Merge from diffutils. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2163 |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2164 * file-type.c (file_type): Add typed memory objects. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2165 * file-type.h (S_TYPEISTMO): New macro. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2166 |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2167 * c-stack.h (c_stack_action): Remove argv argument. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2168 * c-stack.c (c_stack_action): Likewise. All uses changed. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2169 (die): Don't calculate message unless segv_action returns. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2170 (get_stack_location, min_address_from_argv, max_address_from_argv, |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2171 volatile stack_base, volatile_stack_size): Remove. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2172 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2173 that every segmentation violation is a stack overflow. (Ouch!) |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2174 See Debian bug 136249 (still outstanding) for more info about why |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2175 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels. |
0ffd1692e066
Exit-status fixes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4932
diff
changeset
|
2176 |
4929
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2177 2003-11-30 Bruno Haible <bruno@clisp.org> |
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2178 |
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2179 Safer stack allocation. |
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2180 * setenv.c: Include allocsa.h. |
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2181 (alloca): Remove fallback definition. |
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2182 (freea): Remove macro. |
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2183 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa |
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2184 instead of freea. |
4192ff0fff14
Use allocsa instead of alloca.
Bruno Haible <bruno@clisp.org>
parents:
4928
diff
changeset
|
2185 |
4928
6904dd9a5ccf
Avoid compilation warnings on Cygwin.
Bruno Haible <bruno@clisp.org>
parents:
4927
diff
changeset
|
2186 2003-10-17 Bruno Haible <bruno@clisp.org> |
6904dd9a5ccf
Avoid compilation warnings on Cygwin.
Bruno Haible <bruno@clisp.org>
parents:
4927
diff
changeset
|
2187 |
6904dd9a5ccf
Avoid compilation warnings on Cygwin.
Bruno Haible <bruno@clisp.org>
parents:
4927
diff
changeset
|
2188 * binary-io.h: Avoid warnings on Cygwin. |
6904dd9a5ccf
Avoid compilation warnings on Cygwin.
Bruno Haible <bruno@clisp.org>
parents:
4927
diff
changeset
|
2189 |
4927 | 2190 2003-12-28 Bruno Haible <bruno@clisp.org> |
2191 | |
2192 * wait-process.c (wait_subprocess): Add ignore_sigpipe argument. | |
2193 * wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE specially. | |
2194 | |
2195 2003-11-28 Bruno Haible <bruno@clisp.org> | |
2196 | |
2197 * wait-process.c (cleanup_slaves): Use ANSI C declaration. | |
2198 | |
2199 2003-11-27 Bruno Haible <bruno@clisp.org> | |
2200 | |
2201 * wait-process.c: On Windows, include windows.h. Needed on mingw. | |
2202 | |
2203 2003-11-17 Bruno Haible <bruno@clisp.org> | |
2204 | |
2205 * wait-process.c (wait_process): Disable the 2003-10-31 waitid() patch. | |
2206 | |
4926 | 2207 2003-11-24 Bruno Haible <bruno@clisp.org> |
2208 | |
2209 * xallocsa.h: New file, from GNU gettext. | |
2210 * xallocsa.c: New file, from GNU gettext. | |
2211 | |
4924 | 2212 2003-11-24 Bruno Haible <bruno@clisp.org> |
2213 | |
2214 * allocsa.h: New file, from GNU gettext. | |
2215 * allocsa.c: New file, from GNU gettext. | |
2216 | |
4919 | 2217 2003-11-24 Bruno Haible <bruno@clisp.org> |
2218 | |
2219 * eealloc.h: New file. | |
2220 | |
4910 | 2221 2004-01-15 Jim Meyering <jim@meyering.net> |
2222 | |
2223 Merge from coreutils. | |
2224 | |
2225 * md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These | |
2226 days, gcc-3.x does better all by itself. Patch from Dean Gaudet: | |
2227 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html | |
2228 | |
2229 * posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new, | |
2230 optional configure-time default. | |
2231 | |
2232 * version-etc.c (version_etc_copyright): Update copyright date. | |
2233 | |
2234 * xreadlink.c (xreadlink): Correct outdated comment. | |
2235 | |
2236 2004-01-15 Paul Eggert <eggert@twinsun.com> | |
2237 | |
2238 Merge from coreutils. | |
2239 | |
2240 * posixver.c: Include posixver.h. | |
2241 | |
2242 * same.c: Include <stdbool.h>, <limits.h>. | |
2243 (_POSIX_NAME_MAX): Define if not defined. | |
2244 (MIN): New macro. | |
2245 (same_name): If file names are silently truncated, report | |
2246 that the file names are the same if they are the same after | |
2247 the silent truncation. | |
2248 | |
2249 * xstrtod.h (xstrtod): Accept an extra arg, specifying the | |
2250 conversion function. | |
2251 * xstrtod.c (xstrtod): Likewise. All callers changed to | |
2252 include c-strtod.h and use c_strtod. Don't include stdlib.h; no | |
2253 longer needed. | |
2254 | |
4906
374463b88e34
Merge fnmatch patches from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4897
diff
changeset
|
2255 2004-01-14 Paul Eggert <eggert@twinsun.com> |
374463b88e34
Merge fnmatch patches from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4897
diff
changeset
|
2256 |
4907
14763af928e6
* fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4906
diff
changeset
|
2257 * fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided |
14763af928e6
* fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4906
diff
changeset
|
2258 with like-named macro in fnmatch.c. |
14763af928e6
* fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4906
diff
changeset
|
2259 (EXT): Use an internal constant instead. |
14763af928e6
* fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4906
diff
changeset
|
2260 |
4906
374463b88e34
Merge fnmatch patches from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4897
diff
changeset
|
2261 Merge fnmatch patches from glibc. |
374463b88e34
Merge fnmatch patches from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4897
diff
changeset
|
2262 * fnmatch.c (mbsinit): Remove define. |
374463b88e34
Merge fnmatch patches from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4897
diff
changeset
|
2263 Add libc_hidden_ver (__fnmatch, fnmatch). |
374463b88e34
Merge fnmatch patches from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4897
diff
changeset
|
2264 * fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate. |
374463b88e34
Merge fnmatch patches from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4897
diff
changeset
|
2265 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup. |
374463b88e34
Merge fnmatch patches from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4897
diff
changeset
|
2266 |
4897 | 2267 2003-12-14 Karl Berry <karl@gnu.org> |
2268 | |
2269 * config.charset: update from gettext-runtime. | |
2270 | |
4891
459ebb7c12d8
* getgroups.c (getgroups): xmalloc takes one argument, not two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4888
diff
changeset
|
2271 2003-12-03 Paul Eggert <eggert@twinsun.com> |
459ebb7c12d8
* getgroups.c (getgroups): xmalloc takes one argument, not two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4888
diff
changeset
|
2272 |
459ebb7c12d8
* getgroups.c (getgroups): xmalloc takes one argument, not two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4888
diff
changeset
|
2273 * getgroups.c (getgroups): xmalloc takes one argument, not two. |
459ebb7c12d8
* getgroups.c (getgroups): xmalloc takes one argument, not two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4888
diff
changeset
|
2274 Bug reported by Alfred M. Szmidt. |
459ebb7c12d8
* getgroups.c (getgroups): xmalloc takes one argument, not two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4888
diff
changeset
|
2275 |
4888 | 2276 2003-11-29 Karl Berry <karl@gnu.org> |
2277 | |
2278 * argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc. | |
2279 | |
4886
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2280 2003-11-23 Paul Eggert <eggert@twinsun.com> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
2281 Bruno Haible <bruno@clisp.org> |
4886
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2282 |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2283 * printf-parse.h: Don't include sys/types.h. |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2284 (ARG_NONE): New macro. |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2285 (char_directive): Change type of *arg_index fields to size_t. |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2286 * printf-parse.c: Don't include sys/types.h. |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2287 (SSIZE_MAX): Remove macro. |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2288 (PRINTF_PARSE): Change the type of the arg_index variables to size_t. |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2289 Remove unnecessary overflow check. |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2290 * vasnprintf.c (VASNPRINTF): Update for type change of *arg_index |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2291 fields. |
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2292 |
4884
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2293 2003-11-24 Paul Eggert <eggert@twinsun.com> |
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2294 |
4886
e4317f1f2e2c
Use size_t instead of ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4884
diff
changeset
|
2295 * alloca.c: Remove dependency on xalloc module. |
4884
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2296 (xalloc_die): Remove. |
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2297 (memory_full) [!defined emacs]: New macro. |
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2298 [!defined emacs]: Don't include xalloc.h. |
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2299 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or |
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2300 address arithmetic overflows. Change datatypes a bit to avoid |
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2301 unnecessary casts. |
4d0ebc9d330c
Remove dependency of alloca on xalloc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4882
diff
changeset
|
2302 |
4882 | 2303 2003-11-22 Jim Meyering <jim@meyering.net> |
2304 | |
2305 * xmalloc.c (x2nrealloc_inline): Fix typos in comments: s/size/size_t/. | |
2306 | |
4879
9b96adbed643
Avoid alloca with too large size.
Bruno Haible <bruno@clisp.org>
parents:
4874
diff
changeset
|
2307 2003-11-17 Bruno Haible <bruno@clisp.org> |
9b96adbed643
Avoid alloca with too large size.
Bruno Haible <bruno@clisp.org>
parents:
4874
diff
changeset
|
2308 |
9b96adbed643
Avoid alloca with too large size.
Bruno Haible <bruno@clisp.org>
parents:
4874
diff
changeset
|
2309 * vasnprintf.c (alloca): Remove fallback definition. |
9b96adbed643
Avoid alloca with too large size.
Bruno Haible <bruno@clisp.org>
parents:
4874
diff
changeset
|
2310 (freea): Remove definition. |
9b96adbed643
Avoid alloca with too large size.
Bruno Haible <bruno@clisp.org>
parents:
4874
diff
changeset
|
2311 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes. |
9b96adbed643
Avoid alloca with too large size.
Bruno Haible <bruno@clisp.org>
parents:
4874
diff
changeset
|
2312 Reported by Paul Eggert. |
9b96adbed643
Avoid alloca with too large size.
Bruno Haible <bruno@clisp.org>
parents:
4874
diff
changeset
|
2313 |
4874 | 2314 2003-11-17 Jim Meyering <jim@meyering.net> |
2315 | |
2316 On systems without utime and without a utimes function capable of | |
2317 dealing with a NULL struct utimbuf* argument, this utime replacement | |
2318 could -- in unusual circumstances -- leak a file descriptor. | |
2319 * utime.c: Include <unistd.h> and <errno.h>. | |
2320 (utime_null): Be sure to close `fd' and to preserve errno. | |
2321 Reported by Geoff Collyer via Arnold Robbins. | |
2322 | |
4872
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2323 2003-11-16 Paul Eggert <eggert@twinsun.com> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
2324 Bruno Haible <bruno@clisp.org> |
4872
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2325 |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2326 Protect against address arithmetic overflow. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2327 * printf-args.h: Include stddef.h. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2328 (arguments): Change type of field 'count' to size_t. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2329 * printf-args.c (printf_fetchargs): Use size_t instead of |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2330 'unsigned int' where appropriate. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2331 * printf-parse.h: Include sys/types.h. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2332 (char_directive): Change type of *arg_index fields to ssize_t. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2333 (char_directives): Change type of fields 'count', max_*_length to |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2334 size_t. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2335 * printf-parse.c: Include sys/types.h and xsize.h. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2336 (SSIZE_MAX): Define fallback value. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2337 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2338 instead of 'int' where appropriate. Check a_allocated, d_allocated |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2339 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2340 * vasnprintf.c: Include xsize.h. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2341 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2342 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2343 overflow. Avoid wraparound when converting a width or precision from |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2344 decimal to binary. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2345 |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2346 2003-11-16 Bruno Haible <bruno@clisp.org> |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2347 |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2348 Update from GNU gettext. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2349 * printf-parse.c: Generalize to it can be compiled for wide strings. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2350 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2351 * vasnprintf.c: Generalize to it can be compiled for wide strings. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2352 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF, |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2353 SNPRINTF): New macros. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2354 Don't include <alloca.h> if the file is used inside libintl. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2355 (local_wcslen): New function, for Solaris 2.5.1. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2356 (VASNPRINTF): Use it instead of wcslen. |
c5afc99b8ce5
Use xsize.h to protect against memory size overflows.
Bruno Haible <bruno@clisp.org>
parents:
4870
diff
changeset
|
2357 |
4870 | 2358 2003-11-16 Bruno Haible <bruno@clisp.org> |
2359 | |
2360 * xsize.h (xmax): New function. | |
2361 (xsum, xsum3, xsum4): Declare as "pure" functions. | |
2362 | |
4865
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2363 2003-11-12 Paul Eggert <eggert@twinsun.com> |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2364 |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2365 * xalloc.h: Do not include <limits.h> or <stdint.h>. |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2366 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2367 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2368 heuristic is just as accurate as far as we know, and it removes a |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2369 dependency on size_max.m4 and ptrdiff_max.m4. |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2370 |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2371 2003-11-12 Paul Eggert <eggert@twinsun.com> |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2372 |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2373 * xstrtol.c (__xstrtol): Remove "break" immediately after |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2374 "return", to pacify some unknown compiler. Problem reported |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2375 by Joerg Schilling. |
8690f8e0e0bf
Remove dependency of xalloc.h on SIZE_MAX and PTRDIFF_MAX.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4862
diff
changeset
|
2376 |
4862
1f6c3678919c
Rely on SIZE_MAX and PTRDIFF_MAX as defined by ISO C 99.
Bruno Haible <bruno@clisp.org>
parents:
4859
diff
changeset
|
2377 2003-11-11 Bruno Haible <bruno@clisp.org> |
1f6c3678919c
Rely on SIZE_MAX and PTRDIFF_MAX as defined by ISO C 99.
Bruno Haible <bruno@clisp.org>
parents:
4859
diff
changeset
|
2378 |
1f6c3678919c
Rely on SIZE_MAX and PTRDIFF_MAX as defined by ISO C 99.
Bruno Haible <bruno@clisp.org>
parents:
4859
diff
changeset
|
2379 * xsize.h (SIZE_MAX): Remove fallback definition. |
1f6c3678919c
Rely on SIZE_MAX and PTRDIFF_MAX as defined by ISO C 99.
Bruno Haible <bruno@clisp.org>
parents:
4859
diff
changeset
|
2380 * xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are |
1f6c3678919c
Rely on SIZE_MAX and PTRDIFF_MAX as defined by ISO C 99.
Bruno Haible <bruno@clisp.org>
parents:
4859
diff
changeset
|
2381 defined. |
1f6c3678919c
Rely on SIZE_MAX and PTRDIFF_MAX as defined by ISO C 99.
Bruno Haible <bruno@clisp.org>
parents:
4859
diff
changeset
|
2382 |
4859
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2383 2003-11-10 Paul Eggert <eggert@twinsun.com> |
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2384 |
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2385 * xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX && |
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2386 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have |
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2387 rejected some allocations of exactly SIZE_MAX - 2 bytes. |
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2388 From Bruno Haible. |
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2389 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX, |
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2390 not (size_t) -1, since it's defined here. |
a7a0af3a9e13
Fix off-by-one error in xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4856
diff
changeset
|
2391 |
4856
2759ea168f25
Reject allocations of exactly SIZE_MAX bytes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4855
diff
changeset
|
2392 2003-11-06 Paul Eggert <eggert@twinsun.com> |
2759ea168f25
Reject allocations of exactly SIZE_MAX bytes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4855
diff
changeset
|
2393 |
2759ea168f25
Reject allocations of exactly SIZE_MAX bytes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4855
diff
changeset
|
2394 * xalloc.h [HAVE_STDINT_H]: Include <stdint.h>. |
2759ea168f25
Reject allocations of exactly SIZE_MAX bytes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4855
diff
changeset
|
2395 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]: |
2759ea168f25
Reject allocations of exactly SIZE_MAX bytes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4855
diff
changeset
|
2396 Reject sizes of exactly SIZE_MAX bytes. |
2759ea168f25
Reject allocations of exactly SIZE_MAX bytes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4855
diff
changeset
|
2397 * xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX |
2759ea168f25
Reject allocations of exactly SIZE_MAX bytes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4855
diff
changeset
|
2398 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts. |
4862
1f6c3678919c
Rely on SIZE_MAX and PTRDIFF_MAX as defined by ISO C 99.
Bruno Haible <bruno@clisp.org>
parents:
4859
diff
changeset
|
2399 |
4855
21b00e0426f7
Solaris portability problem.
Bruno Haible <bruno@clisp.org>
parents:
4852
diff
changeset
|
2400 2003-11-05 Bruno Haible <bruno@clisp.org> |
21b00e0426f7
Solaris portability problem.
Bruno Haible <bruno@clisp.org>
parents:
4852
diff
changeset
|
2401 |
21b00e0426f7
Solaris portability problem.
Bruno Haible <bruno@clisp.org>
parents:
4852
diff
changeset
|
2402 * xsize.h: Include limits.h, to avoid a possible collision with |
21b00e0426f7
Solaris portability problem.
Bruno Haible <bruno@clisp.org>
parents:
4852
diff
changeset
|
2403 SIZE_MAX defined in <limits.h> on Solaris. |
21b00e0426f7
Solaris portability problem.
Bruno Haible <bruno@clisp.org>
parents:
4852
diff
changeset
|
2404 |
4852 | 2405 2003-11-04 Bruno Haible <bruno@clisp.org> |
2406 | |
2407 * xsize.h: New file. | |
2408 * linebreak.c: Include xsize.h. | |
2409 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc() | |
2410 argument for overflow. | |
2411 Suggested by Paul Eggert. | |
2412 | |
4847 | 2413 2003-10-31 Bruno Haible <bruno@clisp.org> |
2414 | |
2415 * wait-process.c (wait_process): Use waitid with WNOWAIT if available, | |
2416 to avoid (extremely rare) race condition. | |
2417 Suggested by Paul Eggert. | |
2418 | |
4846 | 2419 2003-11-03 Jim Meyering <jim@meyering.net> |
2420 | |
2421 * userspec.c: Include "userspec.h". | |
2422 * userspec.h: New file. | |
2423 | |
4839
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2424 2003-10-31 Paul Eggert <eggert@twinsun.com> |
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2425 |
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2426 * mountlist.h (struct mount_entry.me_type_malloced): New member. |
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2427 * mountlist.c (SIZE_MAX): Define if not defined already. |
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2428 (read_filesystem_list): Set and use me_type_malloced. |
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2429 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or |
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2430 whatever the type happens to be), for brevity and consistency. |
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2431 Check for size calculation overflow on Alphas running OSF/1. |
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4838
diff
changeset
|
2432 |
4836
c66105a31bc0
* linebuffer.c: Include <string.h> for declaration of memset.
Jim Meyering <jim@meyering.net>
parents:
4833
diff
changeset
|
2433 2003-10-31 Jim Meyering <jim@meyering.net> |
c66105a31bc0
* linebuffer.c: Include <string.h> for declaration of memset.
Jim Meyering <jim@meyering.net>
parents:
4833
diff
changeset
|
2434 |
4838
888c882a8261
*hash.c: Include "xalloc.h" for use of xalloc_oversized.
Jim Meyering <jim@meyering.net>
parents:
4836
diff
changeset
|
2435 * hash.c: Include "xalloc.h" for use of xalloc_oversized. |
888c882a8261
*hash.c: Include "xalloc.h" for use of xalloc_oversized.
Jim Meyering <jim@meyering.net>
parents:
4836
diff
changeset
|
2436 |
4836
c66105a31bc0
* linebuffer.c: Include <string.h> for declaration of memset.
Jim Meyering <jim@meyering.net>
parents:
4833
diff
changeset
|
2437 * linebuffer.c: Include <string.h> for declaration of memset. |
c66105a31bc0
* linebuffer.c: Include <string.h> for declaration of memset.
Jim Meyering <jim@meyering.net>
parents:
4833
diff
changeset
|
2438 |
4833
d12cca839b2d
Check for overflow when converting from size_t to 'int'.
Bruno Haible <bruno@clisp.org>
parents:
4830
diff
changeset
|
2439 2003-10-30 Paul Eggert <eggert@twinsun.com> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
2440 Bruno Haible <bruno@clisp.org> |
4833
d12cca839b2d
Check for overflow when converting from size_t to 'int'.
Bruno Haible <bruno@clisp.org>
parents:
4830
diff
changeset
|
2441 |
d12cca839b2d
Check for overflow when converting from size_t to 'int'.
Bruno Haible <bruno@clisp.org>
parents:
4830
diff
changeset
|
2442 * vasprintf.c: Include <limits.h>, <stdlib.h>. |
d12cca839b2d
Check for overflow when converting from size_t to 'int'.
Bruno Haible <bruno@clisp.org>
parents:
4830
diff
changeset
|
2443 (vasprintf): Fail if the resulting length doesn't fit in an 'int'. |
d12cca839b2d
Check for overflow when converting from size_t to 'int'.
Bruno Haible <bruno@clisp.org>
parents:
4830
diff
changeset
|
2444 |
4826
441582dcfc37
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4821
diff
changeset
|
2445 2003-10-29 Paul Eggert <eggert@twinsun.com> |
441582dcfc37
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4821
diff
changeset
|
2446 |
4830
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2447 * xalloc.h (xalloc_oversized): Now a macro, not a function, |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2448 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>; |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2449 no longer needed. |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2450 * quotearg.c (quotearg_n_options): Use it. |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2451 * group-member.c: Include <stdbool.h>. |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2452 (free_group_info): Arg is now const *; don't free arg. |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2453 (get_group_info): Now returns bool and accepts struct group_info *, |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2454 rather than returning a malloc'ed struct group_info *. |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2455 All uses changed. Check for overflow in internal size calculation. |
410ea3e253b9
Revamp xalloc_oversized so that its count arg need not fit into size_t.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4827
diff
changeset
|
2456 |
4827
a6d03da0fa67
Simplify the code by using new xalloc.h features.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4826
diff
changeset
|
2457 * getusershell.c (readname): Simplify the code by using x2nrealloc |
a6d03da0fa67
Simplify the code by using new xalloc.h features.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4826
diff
changeset
|
2458 rather than xmalloc/xrealloc. |
a6d03da0fa67
Simplify the code by using new xalloc.h features.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4826
diff
changeset
|
2459 * linebuffer.c (initbuffer, readlinebuffer): Simplify the code by |
a6d03da0fa67
Simplify the code by using new xalloc.h features.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4826
diff
changeset
|
2460 using x2realloc rather than xmalloc/xrealloc. Also, fix a C |
a6d03da0fa67
Simplify the code by using new xalloc.h features.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4826
diff
changeset
|
2461 conformance bug: the old code used a pointer after freeing the |
a6d03da0fa67
Simplify the code by using new xalloc.h features.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4826
diff
changeset
|
2462 storage that it addressed. |
a6d03da0fa67
Simplify the code by using new xalloc.h features.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4826
diff
changeset
|
2463 * hash.c (hash_initialize): Simplify the code by using xalloc_oversized |
a6d03da0fa67
Simplify the code by using new xalloc.h features.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4826
diff
changeset
|
2464 rather than doing it by hand. |
4826
441582dcfc37
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4821
diff
changeset
|
2465 * getgroups.c (getgroups): Don't use xrealloc, since we don't need |
441582dcfc37
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4821
diff
changeset
|
2466 the buffer preserved. Use free and xmalloc instead. |
441582dcfc37
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4821
diff
changeset
|
2467 * quotearg.c (quotearg_n_options): Likewise. |
441582dcfc37
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4821
diff
changeset
|
2468 Use a simpler test for size overflow. Don't use xalloc_oversized |
441582dcfc37
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4821
diff
changeset
|
2469 because unsigned int might be wider than size_t (!); this suggests |
441582dcfc37
Log xrealloc -> free+xmalloc changes for getgroups, quotearg.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4821
diff
changeset
|
2470 that we should switch from unsigned int to size_t for slot numbers. |
4836
c66105a31bc0
* linebuffer.c: Include <string.h> for declaration of memset.
Jim Meyering <jim@meyering.net>
parents:
4833
diff
changeset
|
2471 |
4821
d18a19eb848a
Improved support for BeOS: Avoid compilation error if <sys/socket.h>
Bruno Haible <bruno@clisp.org>
parents:
4820
diff
changeset
|
2472 2003-10-27 Bruno Haible <bruno@clisp.org> |
d18a19eb848a
Improved support for BeOS: Avoid compilation error if <sys/socket.h>
Bruno Haible <bruno@clisp.org>
parents:
4820
diff
changeset
|
2473 |
d18a19eb848a
Improved support for BeOS: Avoid compilation error if <sys/socket.h>
Bruno Haible <bruno@clisp.org>
parents:
4820
diff
changeset
|
2474 * stdbool_.h: Better support for BeOS. |
d18a19eb848a
Improved support for BeOS: Avoid compilation error if <sys/socket.h>
Bruno Haible <bruno@clisp.org>
parents:
4820
diff
changeset
|
2475 |
4820
559c5f9c9e45
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4819
diff
changeset
|
2476 2003-10-27 Paul Eggert <eggert@twinsun.com> |
559c5f9c9e45
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4819
diff
changeset
|
2477 |
559c5f9c9e45
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4819
diff
changeset
|
2478 * exclude.c (new_exclude): Use xzalloc rather than xmalloc |
559c5f9c9e45
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4819
diff
changeset
|
2479 to allocate the returned structure. Do not allocate a subarray, |
559c5f9c9e45
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4819
diff
changeset
|
2480 as x2nrealloc will do that. |
559c5f9c9e45
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4819
diff
changeset
|
2481 (add_exclude): Use x2nrealloc to reallocate ex->exclude, |
559c5f9c9e45
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4819
diff
changeset
|
2482 instead of xnrealloc. |
559c5f9c9e45
Modify exclude.c to use new xalloc primitives, for simplicity.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4819
diff
changeset
|
2483 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc. |
4836
c66105a31bc0
* linebuffer.c: Include <string.h> for declaration of memset.
Jim Meyering <jim@meyering.net>
parents:
4833
diff
changeset
|
2484 |
4818
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2485 2003-10-26 Paul Eggert <eggert@twinsun.com> |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2486 |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2487 * xalloc.h (xalloc_oversized): New static inline function, for |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2488 callers that want to do their own size-overflow checking. Include |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2489 <stdbool.h>, since xalloc_oversized returns bool. |
4819
9449e9d024f2
xalloc.h now uses inline, so includers need to configure this.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4818
diff
changeset
|
2490 * xalloc.c (array_size_overflow): Remove. All callers changed |
9449e9d024f2
xalloc.h now uses inline, so includers need to configure this.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4818
diff
changeset
|
2491 to use xalloc_oversized. |
4818
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2492 |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2493 Add two functions x2realloc, x2nrealloc, for programs that grow |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2494 arrays dynamically by doubling their sizes. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2495 * xalloc.h (x2realloc, x2nrealloc): New decls. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2496 * xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc): |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2497 New functions. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2498 |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2499 Port to C99 semantics for 'inline' of external functions. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2500 Bug reported by Bruno Haible. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2501 * xmalloc.c (xnmalloc_inline): New static inline function, |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2502 with the old contents of xnmalloc. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2503 (xnmalloc, xmalloc): Use it. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2504 (xnrealloc_inline): New static inline function, |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2505 with the old contents of xnrealloc. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2506 (xnrealloc, xrealloc): Use it. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2507 |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2508 * alloc.c (alloca): xmalloc cannot return NULL, so don't test for that. |
167a92276385
New function xalloc_oversized.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4813
diff
changeset
|
2509 |
4813
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2510 2003-10-25 Paul Eggert <eggert@twinsun.com> |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2511 |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2512 Fix several address-calculation bugs in the hash modules, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2513 plus some minor code cleanup. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2514 |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2515 * hash.h: Include <stdbool.h>, for bool. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2516 * hash.c: Don't include <stdbool.h>, since hash.h does it now. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2517 * hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2518 hash_get_n_entries, hash_get_max_bucket_length, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2519 hash_get_entries, hash_do_for_each, hash_string, hash_initialize, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2520 hash_rehash): Use size_t rather than unsigned. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2521 * hash.c (struct hash_table, hash_get_n_buckets, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2522 hash_get_n_buckets_used, hash_get_n_entries, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2523 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2524 hash_get_entries, hash_do_for_each, hash_string, is_prime, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2525 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print): |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2526 Likewise. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2527 (SIZE_MAX): Define if not defined. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2528 (hash_get_max_bucket_length, hash_table_ok, hash_lookup, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2529 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each, |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2530 hash_print): |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2531 Use const * when possible. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2532 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2533 (check_tuning): Fix bug: if tuning parameters were very close to |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2534 0 or 1, rounding errors could have caused subscript violations. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2535 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2536 (hash_initialize): Add 'fail:' label |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2537 to free table and return NULL, and use it to simplify code. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2538 Use calloc rather than clearing the storage ourself. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2539 (hash_initialize, hash_rehash): Check for arithmetic overflow in |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2540 buffer size calculations. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2541 * hash-pjw.h (hash_pjw): Use size_t, not unsigned. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2542 Include <stddef.h>, for size_t. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2543 * hash-pjw.c (hash_pjw): Likewise. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2544 Switch to method described by Bruno Haible. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2545 Include <limits.h>, for CHAR_BIT. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2546 (SIZE_BITS): New macro. |
04eb43f18dc7
Fix several address-calculation bugs in the hash modules,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4807
diff
changeset
|
2547 |
4804
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2548 2003-10-21 Paul Eggert <eggert@twinsun.com> |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2549 |
4806
151b8ba4ab1d
(getndelim2): When size calculation overflows,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4805
diff
changeset
|
2550 * getndelim2.c (getndelim2): When size calculation overflows, |
151b8ba4ab1d
(getndelim2): When size calculation overflows,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4805
diff
changeset
|
2551 ceiling the allocation at NMAX bytes rather than silently |
151b8ba4ab1d
(getndelim2): When size calculation overflows,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4805
diff
changeset
|
2552 discarding input bytes before NMAX is reached. This makes |
151b8ba4ab1d
(getndelim2): When size calculation overflows,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4805
diff
changeset
|
2553 a difference only if NMAX exceeds SIZE_MAX / 2. |
151b8ba4ab1d
(getndelim2): When size calculation overflows,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4805
diff
changeset
|
2554 |
4805
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2555 * obstack.c: Merge from glibc. |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2556 [defined _LIBC]: Include <obstack.h>, not "obstack.h". |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2557 Add libc_hidden_def (_obstack_newchunk). |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2558 (_obstack_free) [! defined _LIBC]: Remove. |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2559 [defined _LIBC]: Make a strong alias from obstack_free, rather than |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2560 a clone of the function body. |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2561 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove. |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2562 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>. |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2563 |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2564 * obstack.h: Indenting cleanup, to make it easier to merge with glibc. |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2565 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2566 arg to memcpy. |
8f430f14ff21
Merge changes from glibc obstack; minor cleanups to make it easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4804
diff
changeset
|
2567 |
4804
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2568 * obstack.h (obstack_1grow_fast): Properly parenthesize arg. |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2569 (obstack_ptr_grow_fast, obstack_int_grow_fast): |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2570 Don't use lvalue casts, as GCC plans to remove support for them |
4807 | 2571 in GCC 3.5. Reported by Joseph S. Myers. This bug |
4804
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2572 was also present in the non-GCC version, indicating that this |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2573 code had always been buggy and had never been widely used. |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2574 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank): |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2575 Use the fast variant of each macro, rather than copying the |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2576 definiens of the fast variant; that way, we'll be more likely to |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2577 catch future bugs in the fast variants. |
d0a345595720
Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4802
diff
changeset
|
2578 |
4802 | 2579 2003-10-20 Bruno Haible <bruno@clisp.org> |
2580 | |
2581 * wait-process.h: New file, from GNU gettext. | |
2582 * wait-process.c: New file, from GNU gettext. | |
2583 | |
4801
83746ec4d74a
Portability to HP-UX 10, found by Jim Meyering.
Bruno Haible <bruno@clisp.org>
parents:
4796
diff
changeset
|
2584 2003-10-19 Jim Meyering <jim@meyering.net> |
83746ec4d74a
Portability to HP-UX 10, found by Jim Meyering.
Bruno Haible <bruno@clisp.org>
parents:
4796
diff
changeset
|
2585 |
83746ec4d74a
Portability to HP-UX 10, found by Jim Meyering.
Bruno Haible <bruno@clisp.org>
parents:
4796
diff
changeset
|
2586 * vasnprintf.c (vasnprintf): Work around losing snprintf on HPUX 10.20. |
83746ec4d74a
Portability to HP-UX 10, found by Jim Meyering.
Bruno Haible <bruno@clisp.org>
parents:
4796
diff
changeset
|
2587 |
4796
47a39b145833
getgroups.c: minor fixups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4794
diff
changeset
|
2588 2003-10-16 Paul Eggert <eggert@twinsun.com> |
47a39b145833
getgroups.c: minor fixups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4794
diff
changeset
|
2589 |
47a39b145833
getgroups.c: minor fixups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4794
diff
changeset
|
2590 * getgroups.c: Include <errno.h>, <stdlib.h>. |
47a39b145833
getgroups.c: minor fixups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4794
diff
changeset
|
2591 (getgroups): First arg is int, not size_t. |
47a39b145833
getgroups.c: minor fixups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4794
diff
changeset
|
2592 Don't let 'free' mangle errno. |
47a39b145833
getgroups.c: minor fixups.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4794
diff
changeset
|
2593 |
4794 | 2594 2003-10-16 Jim Meyering <jim@meyering.net> |
2595 | |
2596 * xmalloc.c: Include <string.h>, for declarations of memset and memcpy. | |
2597 | |
4792
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2598 2003-10-15 Paul Eggert <eggert@twinsun.com> |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2599 |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2600 * exclude.c: Do not include <inttypes.h> or <stdint.h>. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2601 (SIZE_MAX): Remove. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2602 (new_exclude, add_exclude_file): Initial size no longer needs to |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2603 be a power of 2. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2604 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2605 our own address arithmetic overflow checking. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2606 |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2607 * fnmatch.c (SIZE_MAX): Define if standard headers don't. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2608 (fnmatch): Do not alloca more than 2000 wide characters; |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2609 instead, use malloc for large buffers. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2610 Check for address arithmetic overflow, and return -1 |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2611 with errno set to ENOMEM in that case. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2612 * fnmatch_loop.c (ALLOCA_LIMIT): New macro. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2613 (NEW_PATTERN): Do not alloca more than 8000 bytes; |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2614 instead, return -1. Check for address arithmetic overflow. |
f5c9bbb6cdc9
Fix address-arithmetic and alloca bugs in fnmatch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4788
diff
changeset
|
2615 |
4788
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2616 2003-10-14 Paul Eggert <eggert@twinsun.com> |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2617 |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2618 Handle invalid suffixes and overflow independently, so that |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2619 callers can treat them independently as needed. Fix some bugs in |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2620 suffix handling, e.g., "100k@" was not diagnosed as an invalid |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2621 suffix for a human-readable blocksize. The major caller-visible |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2622 change is the addition of a new |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2623 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2624 that both overflow and suffix chars were found. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2625 |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2626 * human.c (humblock): Don't check separately for invalid suffix |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2627 char; that is xstrtoumax's job (now that its bug is fixed). |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2628 * xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2629 INTMAX_MAX]: New macros. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2630 * xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM, |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2631 TYPE_MAXIMUM): New macros. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2632 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2633 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2634 if overflow occurs, as it's what __strtol does and it's more useful |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2635 in practice. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2636 (__xstrtol): If __strtol reports some error other than ERANGE, |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2637 reflect it to the caller as LONGINT_INVALID. If it reports |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2638 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2639 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2640 * xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2641 value. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2642 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2643 * xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros. |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2644 * xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) |
33e8f958b651
Handle invalid suffixes and overflow independently, so that
Paul Eggert <eggert@cs.ucla.edu>
parents:
4786
diff
changeset
|
2645 [defined UINTMAX_MAX]: New macros. |
4794 | 2646 |
4786
83d8d561903a
Improved 'fatal-signal' module.
Bruno Haible <bruno@clisp.org>
parents:
4783
diff
changeset
|
2647 2003-10-14 Bruno Haible <bruno@clisp.org> |
83d8d561903a
Improved 'fatal-signal' module.
Bruno Haible <bruno@clisp.org>
parents:
4783
diff
changeset
|
2648 |
83d8d561903a
Improved 'fatal-signal' module.
Bruno Haible <bruno@clisp.org>
parents:
4783
diff
changeset
|
2649 * fatal-signal.h: Improved comments. Suggested by Paul Eggert. |
83d8d561903a
Improved 'fatal-signal' module.
Bruno Haible <bruno@clisp.org>
parents:
4783
diff
changeset
|
2650 * fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert. |
83d8d561903a
Improved 'fatal-signal' module.
Bruno Haible <bruno@clisp.org>
parents:
4783
diff
changeset
|
2651 Also use volatile where needed. |
83d8d561903a
Improved 'fatal-signal' module.
Bruno Haible <bruno@clisp.org>
parents:
4783
diff
changeset
|
2652 |
4783
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2653 2003-10-12 Paul Eggert <eggert@twinsun.com> |
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2654 |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2655 * xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls. |
4783
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2656 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate, |
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2657 and define in terms of the other primitives. |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2658 * xmalloc.c: Include stdbool.h; do not include exit.h. |
4783
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2659 (SIZE_MAX): Define if not already defined. |
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2660 (array_size_overflow): New function. |
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2661 (xalloc_die): Abort instead of exiting if 'error' returns. |
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2662 (xnmalloc, xnrealloc, xzalloc, xclone): New functions. |
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2663 (xmalloc, xrealloc): Use them. |
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2664 (xcalloc): Check for address arithmetic overflow. |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
2665 * xstrdup.c (xstrdup): Use xclone, since memcpy should be |
4783
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2666 a bit faster than strcpy. |
d1dc5d9bf1ba
Revamp xalloc interface so that it can check for address arithmetic overflow.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4778
diff
changeset
|
2667 |
4778
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2668 2003-10-08 Paul Eggert <eggert@twinsun.com> |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2669 |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2670 Merge getpass from libc, plus a few fixes. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2671 |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2672 * getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2673 Include <stdbool.h>. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2674 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2675 __fsetlocking to empty. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2676 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2677 do include <bits/libc-lock.h>. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2678 Do not include <fcntl.h>; not needed. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2679 [_LIBC]: Include <wchar.h>. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2680 (NOTCANCEL_MODE): New macro. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2681 (flockfile, funlockfile) [_LIBC]: New macros. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2682 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr) |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2683 [!_LIBC]: New macros. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2684 (call_fclose): New function. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2685 (getpass): Use it. Save tty stream separately; this simplifies the |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2686 code and makes it more reliable if stdin happens to equal stdout. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2687 Invoke __fsetlocking on tty. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2688 Handle thread cancellation if needed. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2689 Namespace cleanup (use __tcgetattr, __getline). |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2690 Use bool for Booleans. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2691 [USE_IN_LIBIO]: Handle wide streams. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2692 [!_LIBC]: Unconditionally do the fseek, since we don't know what |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2693 stream might go where. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2694 |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2695 * unlocked-io.h: Include <stdio.h>, so that the caller |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2696 doesn't have to include <stdio.h> before us. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2697 (clearerr_unlocked, feof_unlocked, ferror_unlocked, |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2698 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked, |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2699 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked, |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2700 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2701 if not declared, so that we can use getpass.c code from libc without |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2702 rewriting it. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2703 (flockfile, ftrylockfile, funlockfile): New macros. |
d68794da5ecb
Merge getpass from libc, plus a few fixes.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4772
diff
changeset
|
2704 |
4772
733f57f44f09
Remove version-etc-2 module.
Bruno Haible <bruno@clisp.org>
parents:
4771
diff
changeset
|
2705 2003-10-06 Bruno Haible <bruno@clisp.org> |
733f57f44f09
Remove version-etc-2 module.
Bruno Haible <bruno@clisp.org>
parents:
4771
diff
changeset
|
2706 |
733f57f44f09
Remove version-etc-2 module.
Bruno Haible <bruno@clisp.org>
parents:
4771
diff
changeset
|
2707 * version-etc-2.h: Remove file. |
733f57f44f09
Remove version-etc-2 module.
Bruno Haible <bruno@clisp.org>
parents:
4771
diff
changeset
|
2708 * version-etc-2.c: Remove file. |
733f57f44f09
Remove version-etc-2 module.
Bruno Haible <bruno@clisp.org>
parents:
4771
diff
changeset
|
2709 |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2710 2003-09-25 Jim Meyering <jim@meyering.net> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
2711 Bruno Haible <bruno@clisp.org> |
4771
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2712 |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2713 This lets translators provide better translations for the |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2714 "Written by ..." part of --version output. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2715 * version-etc.h: Include stdarg.h. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2716 (version_etc_copyright): Declare as readonly. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2717 (version_etc): Make this function variadic with a NULL-terminated list |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2718 of author name strings. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2719 (version_etc_va): New declaration. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2720 * version-etc.c: Include stdarg.h, stdlib.h. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2721 (version_etc_copyright): Declare as readonly. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2722 (version_etc_va): New function. Provide a different translatable string |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2723 for each possible number of authors < 10. Abbreviate when there are 10 |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2724 authors or more. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2725 (version_etc): Make this function variadic. Call version_etc_va. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2726 Suggestion from Gary V. Vaughan. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2727 |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2728 * long-options.h (parse_long_options): Change prototype: the authors |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2729 string is moved to the end and becomes variadic. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2730 * long-options.c: Include stdarg.h. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2731 (parse_long_options): Make this function variadic, too. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2732 Call version_etc_va, not version_etc. |
ffc6ac581833
Merge version-etc-2 back into version-etc: Better way to internationalize
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
2733 |
4770 | 2734 2003-10-06 Bruno Haible <bruno@clisp.org> |
2735 | |
2736 * fatal-signal.h: New file, from GNU gettext. | |
2737 * fatal-signal.c: New file, from GNU gettext. | |
2738 | |
4767 | 2739 2003-10-04 Karl Berry <karl@gnu.org> |
2740 | |
2741 * argp*: update from libc. | |
2742 | |
4761
feca2e26f367
Don't echo the password on Solaris, HP-UX, AIX, OSF/1.
Bruno Haible <bruno@clisp.org>
parents:
4759
diff
changeset
|
2743 2003-10-01 Larry Jones <lawrence.jones@eds.com> |
feca2e26f367
Don't echo the password on Solaris, HP-UX, AIX, OSF/1.
Bruno Haible <bruno@clisp.org>
parents:
4759
diff
changeset
|
2744 |
feca2e26f367
Don't echo the password on Solaris, HP-UX, AIX, OSF/1.
Bruno Haible <bruno@clisp.org>
parents:
4759
diff
changeset
|
2745 * getpass.c (getpass): Use a no-op fseek when switching from input to |
feca2e26f367
Don't echo the password on Solaris, HP-UX, AIX, OSF/1.
Bruno Haible <bruno@clisp.org>
parents:
4759
diff
changeset
|
2746 output mode on the same stream. |
feca2e26f367
Don't echo the password on Solaris, HP-UX, AIX, OSF/1.
Bruno Haible <bruno@clisp.org>
parents:
4759
diff
changeset
|
2747 |
4759
27c6099e6a9f
* strftime.c (tm_diff) [! HAVE_TM_GMTOFF]: Fix arg typo in previous patch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4758
diff
changeset
|
2748 2003-09-29 Paul Eggert <eggert@twinsun.com> |
27c6099e6a9f
* strftime.c (tm_diff) [! HAVE_TM_GMTOFF]: Fix arg typo in previous patch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4758
diff
changeset
|
2749 |
27c6099e6a9f
* strftime.c (tm_diff) [! HAVE_TM_GMTOFF]: Fix arg typo in previous patch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4758
diff
changeset
|
2750 * strftime.c (tm_diff) [! HAVE_TM_GMTOFF]: |
27c6099e6a9f
* strftime.c (tm_diff) [! HAVE_TM_GMTOFF]: Fix arg typo in previous patch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4758
diff
changeset
|
2751 Fix arg typo in previous patch. |
27c6099e6a9f
* strftime.c (tm_diff) [! HAVE_TM_GMTOFF]: Fix arg typo in previous patch.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4758
diff
changeset
|
2752 |
4758 | 2753 2003-09-28 Jim Meyering <jim@meyering.net> |
2754 | |
2755 * error.c: Correct cpp indentation. | |
2756 | |
4753 | 2757 2003-09-27 Paul Eggert <eggert@twinsun.com> |
2758 | |
4754
c6f70c2457d2
Omit the special code that used __typeof__ for MIN and MAX,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4753
diff
changeset
|
2759 * minmax.h (MIN, MAX) [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]: |
c6f70c2457d2
Omit the special code that used __typeof__ for MIN and MAX,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4753
diff
changeset
|
2760 Omit the special code that used __typeof__, since we worry that |
c6f70c2457d2
Omit the special code that used __typeof__ for MIN and MAX,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4753
diff
changeset
|
2761 it could be more trouble than it's worth. See: |
c6f70c2457d2
Omit the special code that used __typeof__ for MIN and MAX,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4753
diff
changeset
|
2762 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html |
c6f70c2457d2
Omit the special code that used __typeof__ for MIN and MAX,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4753
diff
changeset
|
2763 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html |
c6f70c2457d2
Omit the special code that used __typeof__ for MIN and MAX,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4753
diff
changeset
|
2764 |
4753 | 2765 * free.c: New file. |
2766 | |
4748
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2767 2003-09-26 Jim Meyering <jim@meyering.net> |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2768 |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2769 * error.c (error_tail): Move some declarations |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2770 into inner scope where the local variables are used. |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2771 |
4746
7f0802de0710
Better handling of collision with AIX stpncpy() function.
Bruno Haible <bruno@clisp.org>
parents:
4741
diff
changeset
|
2772 2003-09-26 Bruno Haible <bruno@clisp.org> |
7f0802de0710
Better handling of collision with AIX stpncpy() function.
Bruno Haible <bruno@clisp.org>
parents:
4741
diff
changeset
|
2773 |
7f0802de0710
Better handling of collision with AIX stpncpy() function.
Bruno Haible <bruno@clisp.org>
parents:
4741
diff
changeset
|
2774 * stpncpy.h (gnu_stpncpy): New declaration. |
7f0802de0710
Better handling of collision with AIX stpncpy() function.
Bruno Haible <bruno@clisp.org>
parents:
4741
diff
changeset
|
2775 (stpncpy): Define as alias for gnu_stpncpy. |
7f0802de0710
Better handling of collision with AIX stpncpy() function.
Bruno Haible <bruno@clisp.org>
parents:
4741
diff
changeset
|
2776 * stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy. |
7f0802de0710
Better handling of collision with AIX stpncpy() function.
Bruno Haible <bruno@clisp.org>
parents:
4741
diff
changeset
|
2777 |
4741
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2778 2003-09-26 Paul Eggert <eggert@twinsun.com> |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2779 |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2780 * error.c (SIZE_MAX) [!defined SIZE_MAX]: Define. |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2781 (error_tail): Do not loop, reallocating temporary buffer, since |
4748
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2782 the output cannot contain more wide characters than the input |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2783 contains bytes, the size must be big enough already. This avoids |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2784 one potential size overflow calculation. Check for size overflow |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2785 when calculating temporary buffer size. Free temporary buffer |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2786 when done, if it was allocated with malloc; this plugs a memory |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2787 leak. Remove casts from void * to pointers, that are no longer |
7717bd4078ea
* error.c (error_tail): Move some declarations
Paul Eggert <eggert@cs.ucla.edu>
parents:
4746
diff
changeset
|
2788 needed now that we're assuming C89 or better. |
4741
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2789 |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2790 Merge error changes from glibc. |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2791 |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2792 * error.c, error.h: Update copyright notice header to match glibc. |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2793 * error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>. |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2794 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]: |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2795 Disable cancellation while printing error. |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2796 * error.h: Prepend __ to parameter names. |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2797 |
4736
60f76c3e517a
updates from libc,automake
Karl Berry <karl@freefriends.org>
parents:
4735
diff
changeset
|
2798 2003-09-25 Karl Berry <karl@gnu.org> |
60f76c3e517a
updates from libc,automake
Karl Berry <karl@freefriends.org>
parents:
4735
diff
changeset
|
2799 |
60f76c3e517a
updates from libc,automake
Karl Berry <karl@freefriends.org>
parents:
4735
diff
changeset
|
2800 * argp-fmtstream.c, argp-help.c: update from libc. |
60f76c3e517a
updates from libc,automake
Karl Berry <karl@freefriends.org>
parents:
4735
diff
changeset
|
2801 |
4735
f92ded1bb871
New module 'version-etc-2'.
Bruno Haible <bruno@clisp.org>
parents:
4731
diff
changeset
|
2802 2003-09-25 Bruno Haible <bruno@clisp.org> |
f92ded1bb871
New module 'version-etc-2'.
Bruno Haible <bruno@clisp.org>
parents:
4731
diff
changeset
|
2803 |
f92ded1bb871
New module 'version-etc-2'.
Bruno Haible <bruno@clisp.org>
parents:
4731
diff
changeset
|
2804 * 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
|
2805 * 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
|
2806 |
4731
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
2807 2003-09-25 Simon Josefsson <jas@extundo.com> |
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
2808 |
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
2809 * xgetdomainname.h: New file. |
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
2810 * xgetdomainname.c: New file. |
d160b0c1905e
New modules 'xgetdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4730
diff
changeset
|
2811 |
4730
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
2812 2003-09-25 Simon Josefsson <jas@extundo.com> |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
2813 Bruno Haible <bruno@clisp.org> |
4730
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
2814 |
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
2815 * getdomainname.h: New file. |
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
2816 * getdomainname.c: New file. |
64e0a1bfa9bb
New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
4722
diff
changeset
|
2817 |
4741
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2818 2003-09-24 Paul Eggert <eggert@twinsun.com> |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2819 |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2820 * linebuffer.c (freebuffer): Don't free the argument, just |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2821 the buffer associated with the argument. Bug reported by |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2822 Simon Josefsson. |
09375b319a6a
Document recent checkins.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4736
diff
changeset
|
2823 |
4722 | 2824 2003-09-19 Karl Berry <karl@gnu.org> |
2825 | |
2826 * argp.h: update from libc. | |
2827 | |
4713
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
2828 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
|
2829 |
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
2830 * 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
|
2831 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
|
2832 (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
|
2833 |
4711
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
2834 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
|
2835 |
4713
c3e2b42bdca3
linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4711
diff
changeset
|
2836 * 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
|
2837 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
|
2838 |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
2839 * readutmp.c (read_utmp): Likewise. |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
2840 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
|
2841 when failing. |
37bbd4e80866
Don't trash errno when a read fails.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4709
diff
changeset
|
2842 |
4709 | 2843 2003-09-14 Bruno Haible <bruno@clisp.org> |
2844 | |
2845 * fwriteerror.h: New file. | |
2846 * fwriteerror.c: New file. | |
2847 | |
4705 | 2848 2003-09-14 Jim Meyering <jim@meyering.net> |
2849 | |
2850 * getloadavg.c: Correct cpp indentation. | |
2851 * strdup.c: Likewise. | |
4706 | 2852 * vasnprintf.c: Likewise. |
4705 | 2853 |
4701
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2854 2003-09-12 Paul Eggert <eggert@twinsun.com> |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2855 |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2856 * 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
|
2857 * obstack.c [!defined _LIBC]: Likewise. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2858 * 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
|
2859 * 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
|
2860 * 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
|
2861 |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2862 More changes to assume C89 or better. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2863 |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2864 * error.c (error_tail): Assume vprintf. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2865 |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2866 * argmatch.c (getenv): Remove decl. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2867 * 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
|
2868 * setenv.c (clearenv): Likewise. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2869 * 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
|
2870 needed. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2871 * strdup.c: Include <stdlib.h>, <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2872 (malloc, memcpy): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2873 * 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
|
2874 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2875 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
|
2876 (memcpy): Remove macro. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2877 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2878 (__P): Remove. All uses removed. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2879 (PTR): Remove. All uses changed to void *. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2880 (CHAR_BIT, NULL): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2881 (spaces, zeros, memset_space, memset_zero) |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2882 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]: |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2883 Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2884 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2885 (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
|
2886 Define with prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2887 Remove now-unnecessary prototype decl. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2888 (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
|
2889 (extra_args_spec_iso): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2890 (my_strftime, emacs_strftimeu): Define via prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2891 * 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
|
2892 unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2893 (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
|
2894 * strtoimax.c: Include <stdlib.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2895 (strtoul, strtol): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2896 * 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
|
2897 LONG_MAX): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2898 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
|
2899 (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
|
2900 (LOCALE_PARAM_PROTO): New macro. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2901 (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
|
2902 (INTERNAL (strtol), strtol): Define with a prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2903 (PARAMS): Remove. All uses removed. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2904 * tempname.c: Include <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2905 * userspec.c: Include <stdlib.h>, <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2906 * xgethostname.c (main): Define with a prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2907 * 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
|
2908 Include <stdlib.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2909 (calloc, malloc, realloc, free): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2910 * 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
|
2911 Include <stdlib.h> unconditionally. Sort include file names. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2912 (strtod): Remove. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2913 (xstrtod): Define with a prototype. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2914 * xstrtol.c: Include <stdlib.h>, <string.h> unconditionally. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2915 (strtol, strtoul): Remove decls. |
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2916 |
4688 | 2917 2003-09-11 Paul Eggert <eggert@twinsun.com> |
2918 | |
2919 * strndup.c: Don't include <stdio.h>, <sys/types.h>. | |
2920 Include <stdlib.h>, <string.h> unconditionally. | |
2921 Remove now-unnecessary cast to char *. | |
2922 * strnlen.c: Include <string.h> unconditionally. | |
4689 | 2923 * yesno.c (yesno): Define with a prototype. |
4701
1065f1b8e8ec
More changes, mostly C89 related.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4689
diff
changeset
|
2924 |
4683
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
2925 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
|
2926 |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
2927 * strcspn.c: Include <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
2928 * strpbrk.c: Include <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
2929 * strstr.c: Include <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
2930 * unicodeio.c: Include <string.h> unconditionally. |
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
2931 * 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
|
2932 * unsetenv.c: Likewise. |
4684 | 2933 * xreadlink.c: Include <stdlib.h> unconditionally. |
2934 * yesno.c: Include <stdlib.h> unconditionally. | |
2935 (rpmatch): Add prototype. | |
4683
4452e4c45cc4
Assume ANSI C <string.h>, <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
4681
diff
changeset
|
2936 |
4681 | 2937 2003-09-10 Jim Meyering <jim@meyering.net> |
2938 | |
2939 * error.c: Correct indentation of cpp directives. | |
2940 | |
4670 | 2941 2003-09-09 Paul Eggert <eggert@twinsun.com> |
2942 | |
2943 More K&R removal. | |
2944 | |
2945 * acosl.c (main): Use a prototype. | |
2946 * asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c, | |
2947 tanl.c: Likewise. | |
2948 | |
2949 * getloadavg.c (getloadavg, main): Define via prototypes. | |
2950 | |
2951 * getopt.h (struct option.name): Assume C89, and use 'const'. | |
2952 (getopt, etopt_long, getopt_long_only, _getopt_internal) | |
2953 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare | |
2954 with a prototype. | |
2955 * getopt.c (const): Remove macro. | |
2956 Include <string.h> unconditionally. | |
2957 (my_index): Remove; all uses changed to strchr. | |
2958 (strlen): Remove decl. | |
2959 (exchange): Remove forward decl; no longer needed. | |
2960 (exchange, _getopt_initialize, _getopt_internal, getopt, main): | |
2961 Define with prototype. | |
2962 * getopt1.c (const): Remove macro. | |
2963 (getopt_long, getopt_long_only, main): Define with prototype. | |
2964 | |
2965 * getugroups.c: Include <string.h> unconditionally. | |
2966 | |
2967 * getusershell.c: Include <stdlib.h> unconditionally. | |
2968 (getusershell, setusershell, endusershell, readname, main): | |
2969 Define with prototypes. | |
2970 | |
2971 * group-member.c: Include group-member.h first. | |
2972 Include <stdlib.h> unconditionally. | |
2973 | |
2974 * hard-locale.c: Include hard-locale.h first. | |
2975 Include <stdlib.h>, <string.h> unconditionally. | |
2976 | |
2977 * hash.c (free, malloc): Remove decls. | |
2978 Include <stdlib.h> unconditionally. | |
2979 | |
2980 * human.c: Include <stdlib.h>, <string.h> unconditionally. | |
2981 (getenv): Do not declare. | |
2982 | |
2983 * idcache.c: Include <string.h> unconditionally. | |
2984 | |
2985 * long-options.c: Include long-options.h first, to test interface. | |
2986 Include <stdlib.h> unconditionally. | |
2987 | |
2988 * makepath.c: Include makepath.h first, to test interface. | |
2989 Include <stdlib.h> and <string.h> unconditionally. | |
2990 | |
2991 * linebuffer.c: Include <stdlib.h>. | |
2992 (free): Remove decl. | |
2993 | |
2994 * malloc.c: Include <stdlib.h>, for malloc; don't bother with stddef.h. | |
2995 rpl_malloc returns void *, not char *. | |
2996 * realloc.c (rpl_realloc): Likewise. Also, define with a prototype. | |
2997 | |
2998 * md5.h: Include <limits.h> unconditionally. | |
2999 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case. | |
3000 (__P): Remove; all uses removed. | |
3001 * md5.c: Include "md5.h" first. | |
3002 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream, | |
3003 md5_buffer, md5_process_bytes, md5_process_block): | |
3004 Define with prototypes. | |
3005 * sha.h (__P): Remove all uses. (It wasn't defined??) | |
3006 * sha.c: Include "sha.h" first. | |
3007 Include <stdlib.h>, <string.h> unconditionally. | |
3008 | |
3009 * memchr.c (__ptr_t): Remove; all uses changed to void *. | |
3010 * memcmp.c (__ptr_t): Likewise. | |
3011 * memrchr.c (__ptr_t): Likewise. | |
3012 * memchr.c, memcmp.c, memcoll.c, memrchr.c: | |
3013 Include <string.h> unconditionally. | |
3014 * memchr.c, memrchr.c: Include <limits.h> unconditionally. | |
3015 * memchr.c: Include <stdlib.h> unconditionally. | |
3016 * memchr.c (LONG_MAX): Remove. | |
3017 * memrchr.c (LONG_MAX): Likewise. | |
3018 * memchr.c (__memchr): Define via a prototype. | |
3019 * memrchr.c (__memrchr): Likewise. | |
3020 * memcmp.c (__P): Remove, and remove all uses. | |
3021 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment): | |
3022 Remove forward decls; no longer needed. | |
3023 * memcpy.c, memmove.c, memset.c: Include <stddef.h>. | |
3024 Use types required by C89 in prototype. | |
3025 | |
3026 * mkdir.c: Include <stdlib.h>, <string.h> unconditionally. | |
3027 * savedir.c: Likewise. | |
3028 * mkdir.c (free): Remove decl. | |
3029 * rmdir.c (rmdir): Define with a prototype. | |
3030 * savedir.c: Include savedir.h first, to test interface. | |
3031 | |
3032 * mktime.c (STDC_HEADERS): Remove. | |
3033 Include <stdlib.h>, <string.h> unconditionally. | |
3034 | |
3035 * modechange.c: Include <stdlib.h> unconditionally. | |
3036 (malloc): Remove decl. | |
3037 | |
3038 * mountlist.c: Include <stdlib.h>, <string.h> unconditionally. | |
3039 (free): Remove decl. | |
3040 | |
3041 * obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]: | |
3042 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H. | |
3043 (This type really should be intptr_t, but that's a C99ism.) | |
3044 (_obstack_memcpy): Remove: all uses changed to memcpy. | |
3045 Include <string.h> unconditionally. | |
3046 (struct obstack): Assume __STDC__ for types of members | |
3047 chunkfun, freefun, extra_arg. | |
3048 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1, | |
3049 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init, | |
3050 obstack_begin, obstack_specify_allocation, | |
3051 obstack_specify_allocation_with_arg, obstack_chunkfun, | |
3052 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]: | |
3053 Remove unprototyped decls and the macros that use them. | |
3054 * obstack.c (POINTER): Remove. All uses changed to void *. | |
3055 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN, | |
3056 _obstack_begin, _obstack_begin_1, _obstack_allocated_p) | |
3057 (defined __STDC__ && __STDC__)]: | |
3058 Remove nonprototyped code. | |
3059 Include <stdlib.h> unconditionally. | |
3060 (_obstack_begin, _obstack_begin_1, _obstack_newchunk, | |
3061 _obstack_allocated_p, _obstack_free, obstack_free, | |
3062 _obstack_memory_used, print_and_abort): | |
3063 Define using prototypes. | |
3064 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base, | |
3065 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0, | |
3066 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room, | |
3067 obstack_next_free, obstack_object_size, obstack_room) [0]: | |
3068 Remove unused, unprototyped code. | |
3069 | |
3070 * path-concat.c: Include <stdlib.h>, <string.h> unconditionally. | |
3071 | |
3072 * physmem.c (physmem_total, physmem_available, main): Define | |
3073 with prototypes. | |
3074 | |
4677
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3075 * 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
|
3076 (main): Define with a prototype. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3077 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3078 * posixver.c (getenv): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3079 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3080 * putenv.c (malloc): Returns void *, not char *. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3081 Include <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3082 (strchr, memcpy, NULL): Do not define. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3083 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3084 * 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
|
3085 Include <stdlib.h>, <string.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3086 (init_tokenbuffer): Define with a prototype. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3087 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3088 * regex.c (PARAMS): Remove. All uses removed. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3089 All uses of _RE_ARGS removed, too. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3090 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
|
3091 unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3092 (bzero): Assume memset exists. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3093 (memcmp, memcpy, NULL): Remove. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3094 (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
|
3095 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
|
3096 (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
|
3097 PREFIX(print_partial_compiled_pattern), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3098 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
|
3099 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
|
3100 PREFIX(regex_grow_registers), PREFIX(regex_compile), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3101 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
|
3102 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
|
3103 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
|
3104 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
|
3105 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
|
3106 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
|
3107 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
|
3108 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
|
3109 PREFIX(alt_match_null_string_p), |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3110 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
|
3111 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
|
3112 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
|
3113 now-unnecessary declaration, if any. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3114 (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
|
3115 regcomp, regexec): |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3116 Remove now-unnecessary casts among pointer types. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3117 * 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
|
3118 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3119 * 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
|
3120 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3121 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3122 * rpmatch.c: Include <stdlib.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3123 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3124 * 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
|
3125 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3126 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3127 * save-cwd.c: Include <stdlib.h> unconditionally. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3128 * xgetcwd.c: Likewise. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3129 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3130 * 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
|
3131 (free): Remove decl. |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3132 |
b95345dafad0
Remove K&R cruft, day two.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4670
diff
changeset
|
3133 * strchrnul.c (strchrnul): Define with a prototype. |
4678
27f3f6c02580
unsigned char -> char in strchrnul
Paul Eggert <eggert@cs.ucla.edu>
parents:
4677
diff
changeset
|
3134 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
|
3135 |
4670 | 3136 The following changes are not K&R related: |
3137 | |
3138 * group-member.h: Include <sys/types.h>, so that this file is | |
3139 self-contained. | |
3140 * makepath.h: Likewise. | |
3141 | |
3142 * getusershell.c (readname, default_index, line_size, readname): | |
3143 Use size_t, not int, for sizes. | |
3144 (readname): If the size overflows, report an error instead of | |
3145 looping forever. | |
3146 | |
3147 2003-09-09 Derek Robert Price <derek@ximbiot.com> | |
3148 | |
3149 * getndelim2.c: Assume stdlib.h per the C89 spec. | |
3150 | |
4647
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3151 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
|
3152 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3153 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
|
3154 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
|
3155 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
|
3156 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3157 * 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
|
3158 * 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
|
3159 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
|
3160 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3161 * 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
|
3162 (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
|
3163 (NULL): Remove. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3164 (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
|
3165 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3166 * 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
|
3167 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3168 * 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
|
3169 Include <string.h> unconditionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3170 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3171 * bcopy.c: Include <stddef.h>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3172 (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
|
3173 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3174 * 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
|
3175 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3176 * 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
|
3177 [! (defined (__STDC__) && __STDC__)]: Remove decls. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3178 * 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
|
3179 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
|
3180 (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
|
3181 (exit, strerror): Remove decls. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3182 (error_print_progname): Prototype uncondionally. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3183 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
|
3184 (private_strerror): Remove. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3185 (error_tail): Always define. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3186 (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
|
3187 * 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
|
3188 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
|
3189 (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
|
3190 [! (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
|
3191 this case. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3192 (exit): Remove decl. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3193 (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
|
3194 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
|
3195 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3196 * 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
|
3197 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3198 * 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
|
3199 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3200 * 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
|
3201 |
4681 | 3202 * 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
|
3203 prototypes. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3204 * 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
|
3205 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
|
3206 (getenv): Remove decl. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3207 (fnmatch): Define using a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3208 * 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
|
3209 (FCT): Define using a prototype. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3210 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3211 * 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
|
3212 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3213 * gethostname.c: Include <stddef.h>. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3214 (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
|
3215 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3216 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
|
3217 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3218 * 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
|
3219 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
|
3220 preserved. |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3221 |
b88ec9fe0334
Assume C89 or better; remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4623
diff
changeset
|
3222 * 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
|
3223 (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
|
3224 |
4623
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
3225 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
|
3226 |
13cc36518e0b
* modules/time_r: Depend on 'restrict'.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4621
diff
changeset
|
3227 * 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
|
3228 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
|
3229 <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
|
3230 |
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
|
3231 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
|
3232 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
3233 * 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
|
3234 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
3235 * 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
|
3236 __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
|
3237 (__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
|
3238 (__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
|
3239 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
3240 * 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
|
3241 __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
|
3242 (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
|
3243 (__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
|
3244 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
|
3245 |
3d28ad4e18e2
Add time_r module. Change timegm, mktime, and strftime to use localtime_r
Paul Eggert <eggert@cs.ucla.edu>
parents:
4620
diff
changeset
|
3246 * 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
|
3247 [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
|
3248 [!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
|
3249 (__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
|
3250 (__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
|
3251 (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
|
3252 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
|
3253 * 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
|
3254 (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
|
3255 |
4619
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
3256 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
|
3257 |
4620
b0acbb185a60
(human_readable): Fix bug that rounded 10501 to 10k.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4619
diff
changeset
|
3258 * 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
|
3259 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
|
3260 <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
|
3261 |
4619
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
3262 * 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
|
3263 "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
|
3264 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
|
3265 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
|
3266 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
|
3267 coreutils merge?). |
5529b72adfa2
* getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
Paul Eggert <eggert@cs.ucla.edu>
parents:
4616
diff
changeset
|
3268 |
4616 | 3269 2003-08-31 Simon Josefsson <jas@extundo.com> |
3270 | |
3271 * timegm.h: New file. | |
3272 * timegm.c: New file. Based on wget-1.8.2/src/http.c:mktime_from_utc. | |
3273 | |
4613 | 3274 2003-08-31 Karl Berry <karl@gnu.org> |
3275 | |
3276 * argp.h: update from libc. | |
3277 | |
4611 | 3278 2003-08-28 Bruno Haible <bruno@clisp.org> |
3279 | |
3280 * binary-io.h: Undefine O_BINARY before defining it. This avoids a | |
3281 warning on QNX, which defines O_BINARY to 000000. | |
3282 | |
4608 | 3283 2003-08-24 Bruno Haible <bruno@clisp.org> |
3284 | |
3285 * binary-io.h: Include <stdio.h>, to avoid a compilation error when | |
3286 MSVC7 <stdio.h> is included later. | |
3287 | |
4603 | 3288 2003-08-20 Bruno Haible <bruno@clisp.org> |
3289 | |
4607
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
3290 * progname.h: New file, from GNU gettext. |
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
3291 * progname.c: New file, from GNU gettext. |
e534e6ffb140
progname in gettext has changed.
Bruno Haible <bruno@clisp.org>
parents:
4603
diff
changeset
|
3292 * progreloc.c: New file, from GNU gettext. |
4603 | 3293 |
4598 | 3294 2003-08-19 Bruno Haible <bruno@clisp.org> |
3295 | |
3296 * xstrdup.c: Assume <string.h> exists. | |
3297 | |
4590 | 3298 2003-08-18 Jim Meyering <jim@meyering.net> |
3299 | |
4592 | 3300 * setenv.h: Indent nested cpp directive. |
4590 | 3301 * vasnprintf.c: Remove trailing blanks. |
3302 | |
4587
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
3303 2003-08-17 Simon Josefsson <jas@extundo.com> |
4590 | 3304 Bruno Haible <bruno@clisp.org> |
4587
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
3305 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
3306 * xstrndup.h: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
3307 * xstrndup.c: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
3308 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
3309 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
|
3310 |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
3311 * strndup.h: New file. |
db90c263cc55
Add an include file to module 'strndup'.
Bruno Haible <bruno@clisp.org>
parents:
4582
diff
changeset
|
3312 |
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
|
3313 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
|
3314 |
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
|
3315 * 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
|
3316 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
|
3317 <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
|
3318 |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3319 2003-08-16 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3320 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3321 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3322 * xstrtoimax.c: #else #if -> #elif. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3323 * xstrtoumax.c: Likewise. |
4590 | 3324 |
4554
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
3325 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
|
3326 |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
3327 * 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
|
3328 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
|
3329 Suggested by Bruno Haible. |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4549
diff
changeset
|
3330 |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3331 2003-08-15 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3332 and Paul Eggert <eggert@twinsun.com> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3333 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3334 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3335 * 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
|
3336 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
|
3337 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3338 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3339 2003-08-15 Jim Meyering <jim@meyering.net> |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3340 |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3341 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3342 * xgethostname.c: Include <stdlib.h>. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3343 (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
|
3344 failure; just return NULL. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3345 * userspec.c: Include "posixver.h". |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3346 (parse_user_spec): Accept `.' as a separator only |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3347 in pre-POSIX-200112 mode. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3348 * strtoimax.c: Use #elif rather than #else #if. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3349 * strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]: |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3350 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
|
3351 [!_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
|
3352 [!defined _NL_CURRENT && HAVE_STRFTIME]: |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3353 Use underlying_strftime for %r. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3354 * 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
|
3355 * 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
|
3356 Ensure that it is a multiple of 64. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3357 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
|
3358 additional fread after encountering an error or EOF. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3359 * realloc.c: Update copyright date. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3360 |
4549 | 3361 2003-08-14 Jim Meyering <jim@meyering.net> |
3362 | |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3363 Merge from coreutils. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3364 * obstack.h: Whitespace changes. |
4549 | 3365 * mountlist.c: Remove anachronistic casts of xmalloc, xrealloc, |
3366 and xcalloc return values. | |
3367 (read_filesystem_list) [MOUNTED_GETFSSTAT]: | |
3368 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could | |
3369 hang on OSF/1 5.1 for DIR on both local and remote file systems. | |
3370 Reported by (and fix confirmed by) Nelson H. F. Beebe. | |
3371 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any | |
3372 error from mntctl. | |
3373 Use mntctl's return value to drive the entry-processing loop, since | |
3374 we can't rely on the value of the vmt_length member in the last | |
3375 entry. On some systems doing so could result in exhausting | |
3376 virtual memory. Based in part on a patch from Mike Jetzer. | |
3377 | |
3378 2003-08-14 Jim Meyering <jim@meyering.net> | |
4590 | 3379 and Paul Eggert <eggert@twinsun.com> |
4549 | 3380 |
3381 Merges from coreutils, plus other fixes. | |
4574
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3382 * physmem.c: Merge in portability changes from gcc/libiberty |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3383 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
|
3384 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
|
3385 to keep these files in sync. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3386 (ARRAY_SIZE): Define it. |
e374460ac6ae
Merge from coreutils, etc.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4554
diff
changeset
|
3387 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi. |
4549 | 3388 * memcasecmp.c: Remove unnecessary parentheses after 'defined'. |
3389 (memcasecmp): Don't assume size_t fits in unsigned int. | |
3390 Remove casts and duplicate code. | |
3391 * md5.c: Include <string.h> and <stdlib.h> unconditionally. | |
3392 (memcpy): Remove definition. | |
3393 Merge in some clean-up and optimization changes from glibc. | |
3394 [BLOCKSIZE]: Move definition to top of file. | |
3395 Ensure that it is a multiple of 64. | |
3396 Rearrange loop exit tests so as to avoid performing an | |
3397 additional fread after encountering an error or EOF. | |
3398 * md5.h (md5_uintptr): Define. | |
3399 * makepath.c (CLEANUP_CWD): Report an error if we failed to | |
3400 return to the initial working directory. Preserve errno | |
3401 for caller. | |
3402 * idcache.c: Include "xalloc.h". | |
3403 (xmalloc, xrealloc): Remove decls. | |
3404 (getuser): Remove casts no longer required in C89. | |
3405 * human.c: Include stdio.h, for sprintf. | |
3406 * group-member.c: Include "xalloc.h". | |
3407 (xmalloc, xrealloc): Remove decls. | |
3408 (get_group_info): Remove casts no longer required in C89. | |
3409 * getusershell.c (readname): Remove casts no longer required in C89. | |
3410 * gettimeofday.c (rpl_gmtime, rpl_tzset): New functions. | |
3411 * getline.c: Whitespace fix, from coreutils. | |
3412 | |
4536
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
3413 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
|
3414 |
4537
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
3415 * exclude.c: Include <ctype.h> |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
3416 (IN_CTYPE_DOMAIN): New macro. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
3417 (is_space): New fn. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
3418 (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
|
3419 and empty lines. |
940fdf291f5b
Ignore trailing white space and empty lines
Paul Eggert <eggert@cs.ucla.edu>
parents:
4536
diff
changeset
|
3420 |
4536
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
3421 * 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
|
3422 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
|
3423 |
4531
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
3424 2003-08-12 Paul Eggert <eggert@twinsun.com> |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
3425 |
4533
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4531
diff
changeset
|
3426 * 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
|
3427 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
|
3428 * 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
|
3429 notice, as per ../config/srclist-update. |
4590 | 3430 |
4531
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
3431 Merge from coreutils. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
3432 * euidaccess.h: New file. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
3433 * euidaccess.c: Include it. |
67c56a27d86c
Merge euidaccess etc. from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4523
diff
changeset
|
3434 * .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
|
3435 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
|
3436 * regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space. |
4590 | 3437 |
4523
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
3438 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
|
3439 |
6cc4874a100b
Work around the lack of wcslen() on Solaris 2.5.1.
Bruno Haible <bruno@clisp.org>
parents:
4522
diff
changeset
|
3440 * 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
|
3441 (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
|
3442 |
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
|
3443 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
|
3444 |
b2da55c5313c
Use a trick to ensure that _Bool can remain an enum and still promote
Bruno Haible <bruno@clisp.org>
parents:
4521
diff
changeset
|
3445 * 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
|
3446 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
|
3447 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
|
3448 |
4521
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
3449 2003-08-10 Karl Berry <karl@gnu.org> |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
3450 |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
3451 * regex.h: update from libc (whitespace fix). |
35feeb2d4811
update regex.h from libc
Karl Berry <karl@freefriends.org>
parents:
4517
diff
changeset
|
3452 |
4517 | 3453 2003-08-09 Paul Eggert <eggert@twinsun.com> |
3454 | |
3455 Merge some files from coreutils. These changes were | |
3456 originally made by Jim Meyering. | |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
3457 * acl.c: Include <sys/types.h> before <sys/stat.h>; |
4517 | 3458 many older Unixes require this. |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
3459 * alloca.c (alloca): Remove cast to argument of free; |
4517 | 3460 no longer needed in C89. |
4981
9b063b4d1dae
(getloadavg): Don't assume setlocale returns nonnull.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4979
diff
changeset
|
3461 * alloca_.h, regex.h: Fix white space to match |
4517 | 3462 what GNU indent does. |
3463 | |
4506 | 3464 2003-08-05 Paul Eggert <eggert@twinsun.com> |
3465 | |
3466 * bumpalloc.h: Remove. | |
3467 | |
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
|
3468 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
|
3469 |
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
|
3470 * 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
|
3471 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
|
3472 |
4507
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
3473 Merge from coreutils. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
3474 * 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
|
3475 From glibc. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
3476 * 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
|
3477 from Karl Berry, implemented by Jim Meyering. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
3478 * 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
|
3479 from Dmitry V. Levin. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
3480 Remove anachronistic cast of xrealloc. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
3481 * fnmatch_.h (__const): Remove. Use 'const'. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
3482 * 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
|
3483 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
|
3484 ymp-cray-unicos9.0.2.X. |
5723a1070053
Log yesterday's merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4506
diff
changeset
|
3485 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
|
3486 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
|
3487 |
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
|
3488 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
|
3489 |
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
|
3490 [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
|
3491 |
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
|
3492 * 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
|
3493 #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
|
3494 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
|
3495 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
|
3496 [__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
|
3497 [!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
|
3498 |
4494
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
3499 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
|
3500 |
38c505a6d194
* stdbool_.h (_Bool): Make it signed char, instead of an enum type.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4488
diff
changeset
|
3501 * 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
|
3502 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
|
3503 <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
|
3504 |
4488
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
3505 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
|
3506 |
732c51f6278f
* strerror.c: Include config.h, limits.h. Declare sprintf.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4483
diff
changeset
|
3507 * 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
|
3508 (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
|
3509 |
4483
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
3510 2003-07-24 Derek Robert Price <derek@ximbiot.com> |
4590 | 3511 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
|
3512 |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
3513 * 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
|
3514 * getline.c (getline, getdelim): Likewise. |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
3515 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
|
3516 m4/getline.m4. |
1fc15cae781b
Change getline and getdelim return type to ssize_t.
Bruno Haible <bruno@clisp.org>
parents:
4474
diff
changeset
|
3517 |
4473
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
3518 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
|
3519 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
3520 * 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
|
3521 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
|
3522 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
3523 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
|
3524 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
3525 * 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
|
3526 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
|
3527 |
fd6696a97000
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4470
diff
changeset
|
3528 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
|
3529 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
|
3530 * 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
|
3531 * 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
|
3532 (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
|
3533 * 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
|
3534 * 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
|
3535 (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
|
3536 |
4470 | 3537 2003-07-18 Paul Eggert <eggert@twinsun.com> |
3538 | |
3539 * closeout.h (close_stdout_set_status, close_stdout_status): Remove. | |
3540 * closeout.c: Likewise. Include "closeout.h" right after config.h, | |
3541 to test that it can stand by itself. Include "exitfail.h". | |
3542 Clients should set exit_failure instead. | |
3543 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>. | |
3544 | |
4465
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
3545 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
|
3546 |
f7497a67f47b
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4463
diff
changeset
|
3547 * 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
|
3548 |
4463 | 3549 2003-07-18 Bruno Haible <bruno@clisp.org> |
3550 | |
3551 * getndelim2.h: New file. | |
3552 * getndelim2.c: Make into a module of its own. Include config.h, | |
3553 getndelim2.h. | |
3554 (getndelim2): Make non-static. Change return type to ssize_t. | |
3555 * getline.h: Change argument names. | |
3556 * getline.c: Include getndelim2.h instead of getndelim2.c. | |
3557 * getnline.c: Include getndelim2.h. | |
3558 | |
4461 | 3559 2003-07-17 Bruno Haible <bruno@clisp.org> |
3560 | |
3561 * Makefile.am: Remove file. | |
3562 * Makefile.in: Remove file. | |
3563 | |
4460 | 3564 2003-07-17 Bruno Haible <bruno@clisp.org> |
3565 | |
3566 * getnline.h: New file. | |
3567 * getnline.c: New file. | |
3568 * getndelim2.c: New file, extracted from getline.c. | |
3569 (getndelim2): Renamed from getdelim2, with added nmax argument. | |
3570 * getline.c: Include getndelim2.c. | |
3571 (getdelim2): Moved out to getndelim2.c. | |
3572 (getline, getdelim): Update. | |
3573 | |
4444
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
3574 2003-07-15 <karl@gnu.org> |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
3575 |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
3576 * vasnprintf.c: update from gettext. |
989c518b5eec
karl srclist envvars, vasnprintf
Karl Berry <karl@freefriends.org>
parents:
4442
diff
changeset
|
3577 |
4442 | 3578 2003-07-15 Jim Meyering <jim@meyering.net> |
3579 | |
3580 * makepath.c (make_path): Enclose diagnostic in _(...). | |
3581 | |
4440
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
3582 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
|
3583 |
e58a1c05a6ba
Update gettext source files from gettext automatically, using srclist-update.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4439
diff
changeset
|
3584 * 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
|
3585 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
|
3586 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
|
3587 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
|
3588 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
|
3589 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
|
3590 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
|
3591 |
4439 | 3592 2003-07-14 Jim Meyering <jim@meyering.net> |
3593 | |
3594 Don't emit diagnostics. Let callers do that. | |
3595 * save-cwd.c: Don't include "error.h". | |
3596 (save_cwd): Don't call error. Ensure that errno is valid | |
3597 when returning nonzero. | |
3598 | |
3599 * save-cwd.h (restore_cwd): Update prototype. | |
3600 * save-cwd.c (restore_cwd): Remove two parameters. | |
3601 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
|
3602 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4 |
4439 | 3603 when auditing is enabled. But don't bother updating the #if. |
3604 | |
4436 | 3605 2003-07-14 Simon Josefsson <jas@extundo.com> |
3606 | |
3607 * mempcpy.h: New file. | |
3608 * mempcpy.c: New file. | |
3609 | |
4435 | 3610 2003-07-14 Paul Eggert <eggert@twinsun.com> |
3611 | |
3612 * ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h, | |
3613 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c, | |
3614 unicodeio.c, unicodeio.h, unlocked-io.h: | |
3615 Switch from LGPL to GPL. | |
3616 | |
4433
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
3617 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
|
3618 |
79f8a2afb5f3
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert <eggert@cs.ucla.edu>
parents:
4429
diff
changeset
|
3619 * 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
|
3620 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
|
3621 [!__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
|
3622 |
4429 | 3623 2003-07-10 Jim Meyering <jim@meyering.net> |
3624 | |
3625 * vasnprintf.c: Remove trailing blanks. | |
3626 Make cpp indentation consistent. | |
3627 | |
4423
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
3628 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
|
3629 |
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
3630 * 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
|
3631 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
|
3632 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
|
3633 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3634 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
|
3635 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3636 * 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
|
3637 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3638 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
|
3639 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
|
3640 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
|
3641 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
|
3642 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3643 (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
|
3644 (__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
|
3645 (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
|
3646 (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
|
3647 (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
|
3648 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
|
3649 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
|
3650 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
|
3651 (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
|
3652 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
|
3653 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
|
3654 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
|
3655 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3656 (__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
|
3657 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
|
3658 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
|
3659 (localtime_offset): Likewise. |
4421 | 3660 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3661 (__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
|
3662 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
|
3663 (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
|
3664 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
|
3665 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3666 (__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
|
3667 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
|
3668 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
|
3669 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
|
3670 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
|
3671 (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
|
3672 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
|
3673 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
|
3674 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
|
3675 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
|
3676 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
|
3677 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
|
3678 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
|
3679 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
|
3680 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
|
3681 |
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3682 (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
|
3683 "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
|
3684 (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
|
3685 (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
|
3686 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
|
3687 Allow a negative step in the iteration. |
4421 | 3688 |
4413
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
3689 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
|
3690 |
232d849d4565
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert <eggert@cs.ucla.edu>
parents:
4405
diff
changeset
|
3691 * 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
|
3692 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
|
3693 |
4405 | 3694 2003-06-25 Bruno Haible <bruno@clisp.org> |
3695 | |
3696 * readlink.c: New file. | |
3697 | |
4401 | 3698 2003-06-20 Bruno Haible <bruno@clisp.org> |
3699 | |
3700 Assume C89, so PARAMS isn't needed. | |
3701 * unicodeio.h (PARAMS): Remove. | |
3702 * unicodeio.c: Don't use PARAMS. | |
3703 | |
4399 | 3704 2003-06-18 Jim Meyering <jim@meyering.net> |
3705 | |
3706 Merge changes from coreutils. | |
3707 * readutmp.c: Include <string.h> and <stdlib.h> unconditionally. | |
3708 Remove explicit declarations of xmalloc and realloc. | |
3709 Include xalloc.h. | |
3710 (read_utmp): Remove anachronistic cast of xmalloc. | |
3711 | |
4397
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
3712 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
|
3713 |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
3714 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
|
3715 * 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
|
3716 * 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
|
3717 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
|
3718 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
|
3719 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
|
3720 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
|
3721 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
|
3722 xstrtol.h: Likewise. |
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4392
diff
changeset
|
3723 * 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
|
3724 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
|
3725 Anyway, config.h should always be included before any other file. |
4399 | 3726 |
4392 | 3727 2003-06-11 Simon Josefsson <jas@extundo.com> |
3728 | |
3729 * sysexit_.h: New file. | |
3730 | |
4391 | 3731 2003-05-20 Derek Price <derek@ximbiot.com> |
3732 | |
3733 * stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is necessary. | |
3734 | |
4387 | 3735 2003-06-10 Simon Josefsson <jas@extundo.com> |
3736 | |
3737 * strchrnul.h: New file. | |
3738 * strchrnul.c: New file. | |
3739 | |
4423
39f94004ae8e
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4421
diff
changeset
|
3740 2003-06-10 Simon Josefsson <jas@extundo.com> |
4385
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3741 |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3742 * argp.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3743 * argp-ba.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3744 * argp-eexst.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3745 * argp-fmtstream.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3746 * argp-fmtstream.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3747 * argp-fs-xinl.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3748 * argp-help.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3749 * argp-namefrob.h: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3750 * argp-parse.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3751 * argp-pv.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3752 * argp-pvh.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3753 * argp-xinl.c: New file, from glibc. |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
4381
diff
changeset
|
3754 |
4373 | 3755 2003-06-07 Jim Meyering <jim@meyering.net> |
3756 | |
4381 | 3757 * readtokens.h: Put `Free Software Foundation, Inc.' |
3758 in place of my name in the copyright comment. | |
3759 Remove definition and uses of __P. | |
3760 | |
4373 | 3761 From coreutils. |
4379 | 3762 * stat.c: Don't declare xmalloc explicitly. |
3763 Instead, include "xalloc.h". | |
4377 | 3764 * readtokens.c (readtokens): Remove anachronistic casts of xmalloc, |
3765 xrealloc, and xcalloc return values. | |
4373 | 3766 * xgetcwd.c (xgetcwd): Include "xgetcwd.h". |
3767 Improve comment. | |
4375 | 3768 * xgetcwd.h: Remove definition/uses of PARAMS. |
4373 | 3769 |
4366
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
3770 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
|
3771 |
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
3772 * 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
|
3773 |
4357 | 3774 2003-06-06 Jim Meyering <jim@meyering.net> |
3775 | |
4365 | 3776 Merge from coreutils. |
4368 | 3777 * same.c: (same_name): Declare *_basename locals to be `const'. |
3778 Consolidate declarations and initializations of *_base* locals. | |
3779 | |
3780 Merge from coreutils. | |
4365 | 3781 This avoids a core dump on systems without GNU putenv, |
3782 when running `env -u SOME_ALREADY_UNSET_VARIABLE'. | |
3783 * putenv.c (__set_errno, LOCK, UNLOCK): Define. | |
3784 (unsetenv): New static function, from GNU libc. | |
3785 (rpl_putenv): Use it. | |
3786 | |
4361 | 3787 * modechange.c: Remove trailing blanks. |
3788 | |
4359 | 3789 Merge from coreutils. |
3790 * fsusage.c: Remove declaration of statfs. | |
3791 It conflicted with one from OSF/1 5.1 in <sys/mount.h>. | |
3792 | |
4357 | 3793 * posixtm.c: Include <stdbool.h> unconditionally. |
3794 | |
4355
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
3795 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
|
3796 |
4418
f281691fdb0b
* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4413
diff
changeset
|
3797 * 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
|
3798 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
|
3799 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
|
3800 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
|
3801 |
4355
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
3802 * 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
|
3803 (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
|
3804 (__P): Remove; not used. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
3805 (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
|
3806 (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
|
3807 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
|
3808 (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
|
3809 (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
|
3810 |
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
|
3811 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
|
3812 |
4353
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
3813 * mktime.c: Fix Debian bug 177940 |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
3814 <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
|
3815 (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
|
3816 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
|
3817 (__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
|
3818 don't add it. |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
3819 |
4351
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3820 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
|
3821 locale-specific notations like thousands separators. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3822 * human.c: Simplify authorship notice. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3823 Include human.h immediately after config.h. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3824 <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
|
3825 <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
|
3826 (SIZE_MAX, UINTMAX_MAX): New macros. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3827 <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
|
3828 <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
|
3829 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3830 (power_letter): Renamed from suffixes. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3831 (generate_suffix_backwards): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3832 (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
|
3833 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
|
3834 (group_number): New function. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3835 (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
|
3836 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
|
3837 Support all the new options. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3838 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
|
3839 use inttostr.h instead. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3840 (human_readable, default_block_size, humblock): |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3841 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
|
3842 (human_readable_inexact, block_size_types): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3843 (block_size_opts): New constant. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3844 (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
|
3845 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
|
3846 * human.h: Add copyright and authorship notice. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3847 Include <limits.h> and <stdbool.h> unconditionally. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3848 (PARAMS): Remove. All uses removed. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3849 (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
|
3850 (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
|
3851 (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
|
3852 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
|
3853 (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
|
3854 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
|
3855 (human_readable_inexact, human_block_size): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3856 (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
|
3857 (human_options): New decl. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
3858 |
4349
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
3859 * 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
|
3860 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
|
3861 imported from coreutils. |
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
3862 |
4348
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
3863 * 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
|
3864 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
|
3865 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
|
3866 |
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
|
3867 .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
|
3868 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
|
3869 |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
3870 * __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
|
3871 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
|
3872 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
|
3873 * 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
|
3874 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
|
3875 * 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
|
3876 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
|
3877 * 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
|
3878 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
|
3879 * 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
|
3880 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
|
3881 |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
3882 2003-06-02 Paul Eggert <eggert@twinsun.com> |
4344 | 3883 |
3884 [from coreutils] | |
3885 Fix some minor time-related bugs with POSIX time arguments. | |
3886 Some valid time stamps were being rejected (notably -1, and | |
3887 time stamps before 1900 on 64-bit hosts). And some invalid | |
3888 time stamps were being accepted, e.g. September 31. | |
3889 | |
3890 * posixtm.h (posixtime): Return bool instead of time_t, so | |
3891 that we can return (time_t) -1 successfully. | |
3892 * posixtm.c: Likewise. | |
3893 [HAVE_STDBOOL_H]: Include <stdbool.h>. | |
3894 (bool, false, true) [!HAVE_STDBOOL_H]: New type. | |
3895 (t): Remove static var. | |
3896 (year, posix_time_parse): Now takes struct tm * arg to modify, instead | |
3897 of static var. All uses changed. | |
3898 (year): Do not reject years before 1900; they can occur with | |
3899 64-bit time_t. | |
3900 (posix_time_parse): Do not check for out-of-range components; | |
3901 that is now the caller's responsibility, since our checks were | |
3902 only approximations. | |
3903 (posixtime): Use mktime to check for out-of-range components, | |
3904 since it knows them exactly. | |
3905 If mktime returns (time_t) -1, check whether an error actually occurred | |
3906 by invoking localtime on -1. | |
3907 (main) [TEST_POSIXTIME]: Check for input data errors, and report | |
3908 posixtime failures better. | |
3909 Improve the test data (in comments only). | |
3910 | |
4339 | 3911 2003-05-30 <karl@gnu.org> |
3912 | |
3913 * mktime.c: update from libc. | |
3914 | |
4337 | 3915 2003-05-30 Bruno Haible <bruno@clisp.org> |
3916 | |
3917 * config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1. | |
3918 * localcharset.h: Likewise. | |
3919 * localcharset.c: Likewise. | |
3920 | |
4330
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
3921 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
|
3922 |
4333 | 3923 Assume the headers required for C89 freestanding compilers. |
3924 * addext.c, backupfile.c, fsusage.c, human.c, pathmax.h, | |
3925 rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h> | |
3926 without checking for HAVE_LIMITS_H. | |
3927 * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c, | |
3928 xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed | |
3929 to do that. | |
3930 * fatal.c: Include <stdarg.h> without checking for __STDC__. | |
3931 * exclude.c: Include <stdbool.h> unconditionally. | |
3932 * tempname.c: Include <stddef.h> unconditionally. | |
3933 * hash.c: Include <limits.h>, since we no longer define CHAR_BIT. | |
3934 * modechange.c, rpmatch.c (NULL): Don't define, since | |
3935 <stddef.h> does that. | |
3936 * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed. | |
3937 * safe-read.c (INT_MAX): Don't define, since <limits.h> does that. | |
3938 * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed. | |
3939 * xstrtol.c: Likewise. | |
3940 * safe-read.c: Remove TYPE_SIGNED; no longer needed. | |
3941 * savedir.c: Include <stddef.h> instead of defining NULL. | |
3942 | |
4332
b459be4ef089
* addext.c (addext): Use assignment rather than cast, to avoid
Paul Eggert <eggert@cs.ucla.edu>
parents:
4330
diff
changeset
|
3943 * 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
|
3944 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
|
3945 |
4330
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
3946 * 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
|
3947 arbitrarily. |
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
3948 |
4320
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
3949 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
|
3950 |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
3951 * 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
|
3952 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
|
3953 |
4319 | 3954 2003-05-12 Jim Meyering <jim@meyering.net> |
3955 | |
3956 * strftime.c (my_strftime): Let the `-' (no-pad) flag affect | |
3957 the space-padded-by-default conversion specifiers, %e, %k, %l. | |
3958 | |
4314
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
3959 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
|
3960 |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
3961 Upgrade to Unicode-4.0. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
3962 * 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
|
3963 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
|
3964 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
|
3965 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
|
3966 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
|
3967 (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
|
3968 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
|
3969 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
|
3970 |
4310
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
3971 2003-04-25 Bruno Haible <bruno@clisp.org> |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
3972 |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
3973 * 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
|
3974 |
4309 | 3975 2003-04-25 Jim Meyering <jim@meyering.net> |
3976 | |
3977 * copy-file.c (copy_file_preserving): Declare buf_size to be | |
3978 of type size_t, not int. | |
3979 | |
4299 | 3980 2003-04-11 Jim Meyering <jim@meyering.net> |
3981 | |
4302 | 3982 Merge changes from Coreutils. |
3983 | |
4301 | 3984 2003-03-22 Jim Meyering <jim@meyering.net> |
3985 | |
3986 * strftime.c (widen): Cast alloca return value to proper type. | |
3987 | |
4299 | 3988 2003-01-19 Ulrich Drepper <drepper@redhat.com> |
3989 | |
3990 From GNU libc. | |
3991 * strftime.c (my_strftime): Handle very large width | |
3992 specifications for numeric values correctly. Improve checks for | |
3993 overflow. | |
3994 | |
3995 2003-01-19 Jim Meyering <jim@meyering.net> | |
3996 | |
3997 * strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical definitions. | |
3998 (nl_get_alt_digit) [! defined my_strftime]: Define. | |
3999 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of | |
4000 _nl_get_alt_digit and _nl_get_walt_digit. | |
4001 | |
4002 * strftime.c (my_strftime): Merge in locale-related changes from libc. | |
4003 These changes have no effect outside of _LIBC. | |
4004 | |
4294 | 4005 2003-04-10 Bruno Haible <bruno@clisp.org> |
4006 | |
4007 * findprog.h: New file, from GNU gettext. | |
4008 * findprog.c: New file, from GNU gettext. | |
4009 | |
4288 | 4010 2003-04-05 Jim Meyering <jim@meyering.net> |
4011 | |
4290 | 4012 Merge changes from Coreutils. |
4013 | |
4299 | 4014 * exclude.h (PARAMS): Remove definition and uses. |
4015 * exclude.c: Remove uses of `PARAMS'. | |
4016 | |
4290 | 4017 * dirname.c [TEST_DIRNAME]: Update build instructions for test. |
4018 Add test-cases for DOS filenames. Declare program_name. | |
4019 (main): Set up program_name. Patch by Rich Dawe. | |
4020 | |
4288 | 4021 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any |
4022 error from mntctl. | |
4023 Use mntctl's return value to drive the entry-processing loop, since | |
4024 we can't rely on the value of the vmt_length member in the last | |
4025 entry. On some systems doing so could result in exhausting | |
4026 virtual memory. Based in part on a patch from Mike Jetzer. | |
4027 | |
4286 | 4028 2003-04-04 Bruno Haible <bruno@clisp.org> |
4029 | |
4030 * linebreak.h: New file, from GNU gettext. | |
4031 * linebreak.c: New file, from GNU gettext with slight modifications. | |
4032 * lbrkprop.h: New file, from GNU gettext. | |
4033 | |
4275
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
4034 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
|
4035 |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
4036 * 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
|
4037 * 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
|
4038 * 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
|
4039 * 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
|
4040 |
4273 | 4041 2003-04-02 Bruno Haible <bruno@clisp.org> |
4042 | |
4043 * binary-io.h: New file, from GNU gettext. | |
4044 | |
4271 | 4045 2003-04-01 Bruno Haible <bruno@clisp.org> |
4046 | |
4047 * pathname.h: New file, from GNU gettext. | |
4048 * concatpath.c: New file, from GNU gettext. | |
4049 | |
4268 | 4050 2003-03-30 Bruno Haible <bruno@clisp.org> |
4051 | |
4052 * copy-file.c (copy_file_preserving): Don't set owner if the function | |
4053 chown() doesn't exist. | |
4054 | |
4266 | 4055 2003-03-28 Bruno Haible <bruno@clisp.org> |
4056 | |
4057 * copy-file.h: New file, from GNU gettext. | |
4058 * copy-file.c: New file, from GNU gettext. | |
4059 | |
4261 | 4060 2003-03-18 Jim Meyering <jim@meyering.net> |
4061 | |
4062 * quote.c (quote_n): Fix typo in comment. | |
4063 | |
4256
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
4064 2003-03-14 Jim Meyering <jim@meyering.net> |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
4065 |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
4066 Merge changes from Coreutils. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
4067 * obstack.h (obstack_object_size): Declare temporary, __o, |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
4068 to be const, in order to avoid warnings. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
4069 (obstack_room): Likewise. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
4070 (obstack_empty_p): Likewise. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
4071 |
4252
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
4072 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
|
4073 |
4255
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
4074 Merge changes from Bison. |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
4075 * obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
4076 (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
|
4077 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
|
4078 (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
|
4079 * hash.c: Include <stdbool.h> unconditionally. |
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
4080 |
4249
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
4081 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
|
4082 |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
4083 * 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
|
4084 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
|
4085 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
|
4086 |
4246 | 4087 2003-03-03 Paul Eggert <eggert@twinsun.com> |
4590 | 4088 Bruno Haible <bruno@clisp.org> |
4246 | 4089 |
4090 * mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1. | |
4091 Reported by John Hughes, see | |
4092 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html | |
4093 | |
4242
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
4094 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
|
4095 |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
4096 * poll_.h: New file. |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
4097 * poll.c: New file. |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
4098 |
4239
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4099 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
|
4100 |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4101 * mathl.h: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4102 * acosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4103 * asinl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4104 * atanl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4105 * ceill.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4106 * cosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4107 * expl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4108 * floorl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4109 * frexpl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4110 * ldexpl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4111 * logl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4112 * sincosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4113 * sinl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4114 * sqrtl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4115 * tanl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4116 * trigl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4117 * trigl.h: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
4118 |
4237
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
4119 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
|
4120 |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
4121 * mkdtemp.h: New file, from GNU gettext. |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
4122 * mkdtemp.c: New file, from GNU gettext. |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
4123 |
4229
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
4124 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
|
4125 |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
4126 * 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
|
4127 * 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
|
4128 |
4224
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4129 2003-01-30 Bruno Haible <bruno@clisp.org> |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4130 |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4131 * printf-args.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4132 * printf-args.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4133 * printf-parse.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4134 * printf-parse.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4135 * vasnprintf.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4136 * vasnprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4137 * asnprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4138 * vasprintf.h: New file, from GNU gettext with modifications. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4139 * vasprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4140 * asprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
4141 |
4221 | 4142 2003-01-29 Bruno Haible <bruno@clisp.org> |
4143 | |
4144 * stpncpy.h: New file, from GNU gettext with modifications. | |
4145 * stpncpy.c: New file, from GNU gettext with modifications. | |
4146 | |
4218 | 4147 2003-01-28 Bruno Haible <bruno@clisp.org> |
4148 | |
4149 * c-ctype.h: New file, from GNU gettext, with changes suggested by | |
4150 Paul Eggert. | |
4151 * c-ctype.c: New file, from GNU gettext, with changes suggested by | |
4152 Paul Eggert. | |
4153 | |
4215 | 4154 2003-01-27 Bruno Haible <bruno@clisp.org> |
4155 | |
4156 * xsetenv.h: New file, from GNU gettext. | |
4157 * xsetenv.c: New file, from GNU gettext. | |
4158 | |
4207 | 4159 2003-01-23 Bruno Haible <bruno@clisp.org> |
4160 | |
4161 * minmax.h: New file, from GNU gettext, with comments from Paul Eggert. | |
4162 | |
4201 | 4163 2003-01-22 Bruno Haible <bruno@clisp.org> |
4164 | |
4165 * exit.h: New file, from GNU gettext. | |
4166 | |
4183
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
4167 2003-01-11 Bruno Haible <bruno@clisp.org> |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
4168 |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
4169 * stpcpy.h (stpcpy): Use ANSI C function declarations. |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
4170 * strcase.h (strcasecmp, strncasecmp): Likewise. |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
4171 |
4182 | 4172 2003-01-14 Jim Meyering <jim@meyering.net> |
4173 | |
4174 * same.c (same_name): Tweak a comment. | |
4175 | |
4179
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
4176 2003-01-11 Bruno Haible <bruno@clisp.org> |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
4177 |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
4178 * 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
|
4179 when a string comparison is sufficient. |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
4180 |
4178
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
4181 2003-01-11 Bruno Haible <bruno@clisp.org> |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
4182 |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
4183 * 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
|
4184 'unsigned int'. |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
4185 |
4177
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
4186 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
|
4187 |
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
4188 * 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
|
4189 |
4170
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4190 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
|
4191 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4192 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
|
4193 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
|
4194 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4195 * 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
|
4196 * getstr.h, getstr.c: Remove. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4197 * 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
|
4198 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
|
4199 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
|
4200 (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
|
4201 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4202 * linebuffer.c (readlinebuffer): Renamed from readline. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4203 All uses changed. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4204 * linebuffer.h: Likewise. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4205 (readline): Remove backward-compatibility macro. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
4206 |
4160 | 4207 2003-01-12 Jim Meyering <jim@meyering.net> |
4208 | |
4209 * makepath.c: Don't test HAVE_ERRNO_H. It's not necessary. | |
4210 | |
4156
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
4211 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
|
4212 |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
4213 * alloca_.h: New file. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
4214 * 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
|
4215 * makepath.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
4216 * setenv.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
4217 * userspec.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
4218 |
4151
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
4219 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
|
4220 |
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
4221 * 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
|
4222 |
4144
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
4223 2003-01-08 Bruno Haible <bruno@clisp.org> |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
4224 |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
4225 * safe-read.c: Include specification header first, to ensure its |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
4226 selfcontainedness. |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
4227 * full-write.c: Likewise. |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
4228 |
4143 | 4229 2003-01-08 Jim Meyering <jim@meyering.net> |
4230 | |
4231 * full-write.c: Undefine and define-away `const' after inclusion | |
4232 of errno.h, not before. Suggestion from Bruno Haible. | |
4233 | |
4141 | 4234 2003-01-07 Jim Meyering <jim@meyering.net> |
4235 | |
4236 * full-write.c: Rework so that it may serve to define full_read, too. | |
4237 * full-read.c: Simply #define FULL_READ and include full-write.c. | |
4238 | |
4134 | 4239 2003-01-06 Jim Meyering <jim@meyering.net> |
4240 | |
4241 * version-etc.c: Update year in translatable copyright string. | |
4242 | |
4135
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
4243 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
|
4244 |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
4245 * 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
|
4246 * xstrtol.h: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
4247 * xstrtoimax.c: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
4248 * xstrtoumax.c: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
4249 * human.h: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
4250 |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
4251 * 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
|
4252 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
|
4253 |
4123
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
4254 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
|
4255 |
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
4256 * 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
|
4257 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
|
4258 |
4106 | 4259 2002-12-23 Bruno Haible <bruno@clisp.org> |
4260 | |
4261 * localcharset.h: New file. | |
4262 * localcharset.c: Include it. | |
4263 * unicodeio.c: Likewise. | |
4264 | |
4105
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
4265 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
|
4266 |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
4267 * 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
|
4268 nonempty. |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
4269 |
4104
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
4270 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
|
4271 |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
4272 * memcoll.c (STRCOLL): New macro. |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
4273 (memcoll): Use it. |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
4274 |
4103
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
4275 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
|
4276 |
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
4277 * 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
|
4278 * 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
|
4279 |
4102
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
4280 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
|
4281 |
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
4282 * 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
|
4283 |
4101
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
4284 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
|
4285 |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
4286 * 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
|
4287 |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
4288 * 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
|
4289 * 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
|
4290 |
4089 | 4291 2002-12-17 Bruno Haible <bruno@clisp.org> |
4292 | |
4293 * canon-host.c (strdup): Remove unused declaration. | |
4294 | |
4295 * fsusage.c: Include full_read.h. | |
4296 (get_fs_usage): Use full_read instead of safe_read. | |
4297 | |
4298 * utime.c (utime_null): Use SAFE_READ_ERROR. | |
4299 | |
4080 | 4300 2002-12-11 Bruno Haible <bruno@clisp.org> |
4301 | |
4302 * setenv.h: Rewritten to cope with systems that have setenv() but not | |
4303 unsetenv(). | |
4304 * setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following | |
4305 modifications: | |
4306 | |
4307 2002-12-11 Bruno Haible <bruno@clisp.org> | |
4308 | |
4309 * setenv.c (alloca): Fall back to malloc. | |
4310 (freea): New macro. | |
4311 (setenv): Use freea() to free memory allocated with alloca(). | |
4312 | |
4313 2002-11-13 Bruno Haible <bruno@clisp.org> | |
4314 | |
4315 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C | |
4316 function declarations. | |
4317 * unsetenv.c (unsetenv): Likewise. | |
4318 | |
4319 2002-03-04 Bruno Haible <bruno@clisp.org> | |
4320 | |
4321 Portability to AIX 4.3.3. | |
4322 * unsetenv.c: New file, extracted from setenv.c. | |
4323 * setenv.c: Move the unsetenv() function to unsetenv.c. | |
4324 | |
4325 2001-12-20 Bruno Haible <bruno@clisp.org> | |
4326 | |
4327 * 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
|
4328 use malloc instead. For SunOS 4. |
4080 | 4329 |
4330 2001-12-11 Bruno Haible <bruno@clisp.org> | |
4331 | |
4332 * setenv.c: Declare alloca. | |
4333 (compar_fn_t): New typedef. | |
4334 (KNOWN_VALUE, STORE_VALUE): Use it. | |
4335 | |
4081 | 4336 * Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c, |
4337 setenv.h. | |
4338 | |
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
|
4339 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
|
4340 |
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
|
4341 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
|
4342 * 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
|
4343 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
|
4344 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
|
4345 * 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
|
4346 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
|
4347 (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
|
4348 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
|
4349 |
4071 | 4350 2002-12-06 Jim Meyering <jim@meyering.net> |
4351 | |
4073 | 4352 * error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'. |
4353 | |
4071 | 4354 Merge in changes from libc's misc/error.c, in preparation |
4355 for the merge of gnulib's changes back into libc. | |
4356 | |
4357 * error.c (_): Define only if not already defined. | |
4358 Move definition to follow all #include directives. | |
4359 Include unlocked-io.h only if !_LIBC. | |
4360 [_LIBC]: Include <libio/libioP.h>. | |
4361 [USE_IN_LIBIO]: Include <libio/iolibio.h> | |
4362 (fflush): Tweak definition to use INTUSE. | |
4363 (putc): Define. | |
4364 | |
4069
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
4365 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
|
4366 |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
4367 * 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
|
4368 (xalloc_die) [defined emacs]: New macro. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
4369 (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
|
4370 [! defined emacs]: Include <xalloc.h>. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
4371 (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
|
4372 (pointer): Typedef to POINTER_TYPE *. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
4373 (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
|
4374 (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
|
4375 Check for arithmetic overflow when computing combined size. |
4071 | 4376 |
4067
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
4377 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
|
4378 |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
4379 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
|
4380 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
|
4381 |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
4382 * 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
|
4383 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
|
4384 * 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
|
4385 * 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
|
4386 (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
|
4387 (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
|
4388 (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
|
4389 (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
|
4390 (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
|
4391 |
4058 | 4392 2002-12-04 Jim Meyering <jim@meyering.net> |
4393 | |
4063 | 4394 Reflect the fact that stat.c and lstat.c are no longer generated. |
4395 * Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c. | |
4396 (DISTCLEANFILES): Likewise. | |
4397 (EXTRA_DIST): Likewise. | |
4398 (all_local): Don't depend on stat.c or lstat.c. | |
4399 (stat.c, lstat.c): Remove rules. | |
4400 (EXTRA_DIST): Remove xstat.in. | |
4401 | |
4402 * xstat.in: Remove file. Contents moved into stat.c. | |
4403 * stat.c: New file. Contents mostly from xstat.in. | |
4404 * stat.c: Rework so that it may serve to define rpl_lstat, too. | |
4405 * lstat.c: New file. Simply #define LSTAT and include stat.c. | |
4406 | |
4058 | 4407 * safe-read.c: Rework so that it may serve to define safe_write, too. |
4408 * safe-write.c: Simply #define SAFE_WRITE and include safe-read.c. | |
4409 | |
4051
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
4410 2002-12-03 Jim Meyering <jim@meyering.net> |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
4411 |
4053 | 4412 * safe-read.c, safe-write.c: Change variable names and comments, but |
4413 not semantics, to minimize the differences between these two files. | |
4058 | 4414 (safe_read): Change comment to mention SAFE_READ_ERROR. |
4053 | 4415 |
4051
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
4416 * safe-read.c (IS_EINTR): Define. |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
4417 (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
|
4418 |
4049
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4419 2002-12-02 Bruno Haible <bruno@clisp.org> |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4420 |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4421 * 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
|
4422 Define, taken from safe-read.c. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4423 (INT_MAX): Provide fallback. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4424 (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
|
4425 * safe-write.h (SAFE_WRITE_ERROR): Define. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4426 |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4427 * safe-read.c (EINTR): Remove definition. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4428 (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
|
4429 |
4046
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
4430 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
|
4431 |
4048
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
4432 * safe-read.c (EINTR): Define. |
4049
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
4433 (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
|
4434 (INT_MAX): Provide fallback. |
4048
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
4435 (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
|
4436 |
4046
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
4437 * safe-read.h (SAFE_READ_ERROR): Define. |
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
4438 |
4044
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
4439 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
|
4440 |
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
4441 * 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
|
4442 (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
|
4443 |
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
|
4444 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
|
4445 |
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
4446 * 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
|
4447 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
|
4448 `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
|
4449 |
4039
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
4450 2002-11-26 <karl@gnu.org> |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
4451 |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
4452 * 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
|
4453 * .cppi-disable: re-add strdup.c |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
4454 |
4030 | 4455 2002-11-25 <karl@gnu.org> |
4456 | |
4457 * strtoll.c: copy from libc, meaning we now #include <strtol.c> | |
4458 instead of "strtol.c". | |
4459 | |
4027 | 4460 2002-11-25 Jim Meyering <jim@meyering.net> |
4461 | |
4462 * mktime.c: Sync from libc, now that it has the latest fix. | |
4463 | |
4028 | 4464 2002-11-24 <karl@gnu.org> |
4465 | |
4466 * error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c, | |
4467 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl. | |
4468 | |
4017 | 4469 2002-11-24 Jim Meyering <jim@meyering.net> |
4470 | |
4471 Update from coreutils: | |
4472 | |
4019 | 4473 * mktime.c: Merge in changes from libc. |
4474 | |
4017 | 4475 Avoid a link-time failure on some Linux systems. |
4476 * mktime.c (STATIC): Define to be empty (_LIBC) or `static' (otherwise). | |
4477 (__mon_yday): Declare with the STATIC attribute. | |
4478 (__mktime_internal): Likewise. | |
4479 Based on a report from Greg Schafer. | |
4480 | |
4011 | 4481 2002-11-23 Jim Meyering <jim@meyering.net> |
4482 | |
4015 | 4483 * sig2str.c (str2signum, sig2str): Avoid a warning from gcc: |
4484 Use `unsigned', not `int', as type of index. | |
4485 | |
4013 | 4486 * xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>. |
4487 | |
4011 | 4488 * fsusage.c: Remove unneeded parentheses around operands of `defined'. |
4489 | |
4007
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
4490 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
|
4491 |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
4492 * 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
|
4493 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
|
4494 (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
|
4495 (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
|
4496 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
|
4497 |
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
|
4498 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
|
4499 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
4500 * 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
|
4501 "#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
|
4502 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
|
4503 (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
|
4504 * 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
|
4505 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
|
4506 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
|
4507 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
|
4508 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
|
4509 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
|
4510 (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
|
4511 (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
|
4512 (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
|
4513 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
4514 (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
|
4515 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
|
4516 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
4517 (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
|
4518 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
|
4519 (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
|
4520 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
4521 (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
|
4522 |
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
4523 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
|
4524 |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
4525 * 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
|
4526 (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
|
4527 * 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
|
4528 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
|
4529 * 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
|
4530 * 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
|
4531 * 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
|
4532 * 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
|
4533 * 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
|
4534 * 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
|
4535 (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
|
4536 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
|
4537 |
4000 | 4538 2002-11-21 Bruno Haible <bruno@clisp.org> |
4539 | |
4001
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4540 Remove case insensitive option matching. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4541 * argmatch.h (argcasematch): Remove declaration. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4542 (ARGCASEMATCH): Remove macro. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4543 (__xargmatch_internal): Remove case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4544 (XARGMATCH): Update. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4545 (XARGCASEMATCH): Remove macro. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4546 * argmatch.c (argmatch): Renamed from __argmatch_internal. Remove |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4547 case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4548 (argcasematch): Remove function. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4549 (__xargmatch_internal): Remove case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4550 (main): Use XARGMATCH instead of XARGCASEMATCH. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
4551 |
4000 | 4552 * xmalloc.c: Change compile-time error message. Add comment about |
4553 required autoconf version. | |
4554 | |
3984 | 4555 2002-11-21 Jim Meyering <jim@meyering.net> |
4556 | |
3998 | 4557 * strdup.c (strdup): Tweak comment and initial #if/#include. |
4558 | |
3984 | 4559 Merge in changes from the coreutils. |
4560 | |
3995 | 4561 2002-09-25 Paul Eggert <eggert@twinsun.com> |
4562 * fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>. | |
4563 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro. | |
4564 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than | |
4565 int. Work more efficiently if X is the same width as uintmax_t. | |
4566 Do not compare X to -1, to avoid bogus compiler warning. | |
4567 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast. | |
4568 Don't assume that f_frsize and f_bsize are the same type. | |
4569 | |
3992 | 4570 * mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning |
4571 on FreeBSD. | |
4572 | |
3988 | 4573 * makepath.c (make_path): Restore umask *before* creating the final |
4574 component. | |
3990 | 4575 (make_path): Minor reformatting. |
3988 | 4576 |
3986 | 4577 * xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC |
4578 and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC. | |
4579 | |
3984 | 4580 * mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy |
4581 ones. At least on GNU/Linux systems, `auto' means something else. | |
4582 From Michael Stone. | |
4583 | |
3982
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4584 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
|
4585 |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4586 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
|
4587 |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4588 * 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
|
4589 Include stdlib.h, for EXIT_FAILURE. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4590 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
|
4591 (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
|
4592 * 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
|
4593 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
|
4594 (PARAMS): Remove. All uses removed. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4595 (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
|
4596 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg, |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4597 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4598 Remove unnecessary parentheses. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4599 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4600 Insert necessary parentheses. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4601 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4602 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
4603 |
3977 | 4604 2002-11-19 Bruno Haible <bruno@clisp.org> |
4605 | |
3979
7627246c7a83
Standard specification idiom. Make mbswidth.h self contained.
Bruno Haible <bruno@clisp.org>
parents:
3978
diff
changeset
|
4606 * 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
|
4607 * 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
|
4608 |
3978 | 4609 * mbswidth.h (PARAMS): Remove macro. |
4610 (mbswidth, mbsnwidth): Use ANSI C function declarations. | |
4611 * mbswidth.c (mbswidth, mbsnwidth): Likewise. | |
4612 | |
3977 | 4613 * gcd.h (PARAMS): Remove macro. |
4614 (gcd): Use ANSI C function declarations. | |
4615 * gcd.c (gcd): Likewise. | |
4616 | |
3975
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4617 2002-11-15 Bruno Haible <bruno@clisp.org> |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4618 |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4619 * strcspn.c: Include <stddef.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4620 (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
|
4621 size_t. Use NULL. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4622 * strpbrk.c: Minimize diffs to glibc. Include <stddef.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4623 (strpbrk): Use NULL. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4624 * strpbrk.h (PARAMS): Remove macro. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4625 (strpbrk): Use ANSI C function declaration. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4626 * strstr.c: Don't include <sys/types.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4627 * strstr.h (PARAMS): Remove macro. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4628 (strstr): Use ANSI C function declarations. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
4629 |
3968
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
4630 2002-11-06 Bruno Haible <bruno@clisp.org> |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
4631 |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
4632 * 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
|
4633 * gcd.c (gcd): Likewise. |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
4634 |
3967 | 4635 2002-11-05 Bruno Haible <bruno@clisp.org> |
4636 | |
4637 * gcd.h: New file, from gettext-0.11.5. | |
4638 * gcd.c: New file, from gettext-0.11.5. | |
4639 | |
3966
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
4640 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
|
4641 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
4642 * 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
|
4643 * 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
|
4644 * 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
|
4645 * 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
|
4646 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
4647 * 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
|
4648 * 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
|
4649 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
4650 * 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
|
4651 * 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
|
4652 * 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
|
4653 * 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
|
4654 * 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
|
4655 * 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
|
4656 * 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
|
4657 * 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
|
4658 (textdomain): Remove definition. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
4659 * 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
|
4660 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
4661 * 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
|
4662 * 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
|
4663 |
3964 | 4664 2002-11-04 Bruno Haible <bruno@clisp.org> |
4665 | |
4666 * stpcpy.h: New file, from GNU gettext-0.11.5. | |
4667 * strcase.h: New file, from GNU gettext-0.11.5. | |
4668 * strpbrk.h: New file, from GNU gettext-0.11.5. | |
4669 * strstr.h: New file, from GNU gettext-0.11.5. | |
4670 * xgetcwd.h: New file, from GNU gettext-0.11.5. | |
4671 | |
3963
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4672 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
|
4673 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4674 * 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
|
4675 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
|
4676 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4677 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
|
4678 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4679 * 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
|
4680 aliases. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4681 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4682 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
|
4683 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4684 * 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
|
4685 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4686 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
|
4687 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4688 * 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
|
4689 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4690 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
|
4691 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4692 * 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
|
4693 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4694 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
|
4695 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4696 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
|
4697 * 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
|
4698 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4699 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
|
4700 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4701 * 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
|
4702 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4703 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
|
4704 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
4705 * 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
|
4706 |
3944 | 4707 2002-09-25 <karl@gnu.org> |
4708 | |
4709 * strdup.c: copy from libc/string (via ../config/srclist*). | |
4710 * getopt*: copy from libc/posix. | |
3947
765d3b9a6126
update gettext.h from gettext.h
Karl Berry <karl@freefriends.org>
parents:
3944
diff
changeset
|
4711 * gettext.h: copy from gettext. |
765d3b9a6126
update gettext.h from gettext.h
Karl Berry <karl@freefriends.org>
parents:
3944
diff
changeset
|
4712 * .cppi-disable: add strdup.c, gettext.h. |
3944 | 4713 |
3922 | 4714 2002-07-01 Jim Meyering <meyering@lucent.com> |
4715 | |
4716 * c-stack.c: Include sys/time.h. | |
4717 From Volker Borchert. | |
4718 | |
3919 | 4719 2002-06-11 Paul Eggert <eggert@twinsun.com> |
4720 | |
4721 * fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT): | |
4722 New macro. Use it uniformly instead of | |
4723 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H). | |
4724 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1 | |
4725 reported by Vin Shelton. | |
4726 | |
3913 | 4727 2002-06-22 Jim Meyering <meyering@lucent.com> |
4728 | |
4729 * 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
|
4730 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h. |
3913 | 4731 |
3911 | 4732 2002-06-22 Paul Eggert <eggert@twinsun.com> |
4733 | |
4734 * c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]: | |
4735 Do not assume SA_SIGINFO behavior. | |
4736 Bug reported by Jim Meyering on NetBSD 1.5.2. | |
4737 | |
3904 | 4738 2002-06-22 Jim Meyering <meyering@lucent.com> |
4739 | |
4740 * c-stack.c, c-stack.h: New files, from diffutils-2.8.2. | |
3911 | 4741 |
3909 | 4742 * exitfail.c, exitfail.h: Likewise. |
4743 * Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h. | |
3904 | 4744 |
4745 * Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place | |
4746 of fnmatch.h. | |
4747 (EXTRA_DIST): Add fnmatch_loop.c. | |
4748 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h. | |
4749 | |
4750 * fnmatch_loop.c: New file, from diffutils-2.8.2. | |
4751 * fnmatch.c: Update from diffutils-2.8.2. | |
4752 * fnmatch_.h: New file. From diffutils-2.8.2. | |
4753 * fnmatch.h: Remove file. | |
4754 | |
3878 | 4755 2002-06-18 Paul Eggert <eggert@twinsun.com> |
4756 | |
4757 * file-type.h: Report an error if neither S_ISREG nor | |
4758 S_IFREG is defined, instead of using a test specific to glibc | |
4759 2.2. This should be safe, since POSIX requires S_ISREG and | |
4760 Unix Version 7 had S_IFREG. We don't need to check for | |
4761 <sys/types.h> since we don't use any symbols that it defines. | |
4762 | |
3869 | 4763 2002-06-15 Jim Meyering <meyering@lucent.com> |
4764 | |
3873 | 4765 * file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef. |
4766 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h> | |
4767 have been included before this file. | |
4768 | |
4769 2002-06-13 Richard Dawe <richdawe@bigfoot.com> | |
4770 | |
4771 * Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t, | |
4772 so that each temporary file name is unique and valid in the first | |
4773 8 characters, for operation under DOS. | |
4774 | |
4775 2002-06-15 Jim Meyering <meyering@lucent.com> | |
4776 | |
4777 Work even with DJGPP 2.03, which lacks support for symlinks. | |
4778 From Richard Dawe. | |
3869 | 4779 * xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK |
4780 is defined. | |
4781 * lchown.c (S_ISLNK): Likewise. | |
4782 | |
3867 | 4783 2002-06-14 Jim Meyering <meyering@lucent.com> |
4784 | |
4785 * file-type.h: Use the version from diffutils-2.8.2. | |
4786 * file-type.c: Likewise. | |
4787 | |
3855 | 4788 2002-05-27 Jim Meyering <meyering@lucent.com> |
4789 | |
4790 Fix a problem seen only on nonconforming systems whereby ls.c's | |
4791 use of localtime, and then of gettimeofday would cause trouble: | |
4792 the localtime call used to initialize rpl_gettimeofday's save | |
4793 mechanism would clobber ls's current local time information so | |
4794 that in any long listing the first file would always be listed | |
4795 with date 1970-01-01. Analysis by Volker Borchert. | |
4796 | |
4797 * gettimeofday.c (localtime): Undefine. | |
4798 (rpl_localtime): New function. | |
4799 | |
3843 | 4800 2002-05-22 Jim Meyering <meyering@lucent.com> |
4801 | |
3847 | 4802 * Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h. |
3843 | 4803 * file-type.h: New file. |
4804 * file-type.c (file_type): New file/function. Extracted from diffutils. | |
4805 | |
3836 | 4806 2002-04-29 Paul Eggert <eggert@twinsun.com> |
4807 | |
4808 * hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1. | |
4809 | |
3834 | 4810 2002-04-28 Paul Eggert <eggert@twinsun.com> |
4811 | |
4812 * sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid | |
4813 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead | |
4814 of 127, since 64 is the largest conceivable number for ancient | |
4815 nonstandard hosts. | |
4816 * sig2str.c: Do not include <sys/wait.h>; no longer needed. | |
4817 | |
3823 | 4818 2002-04-28 Jim Meyering <meyering@lucent.com> |
4819 | |
4820 * sig2str.c (WTERMSIG): Remove definition (unused). | |
4821 | |
3818 | 4822 2002-04-28 Paul Eggert <eggert@twinsun.com> |
4823 | |
4824 * sig2str.h, sig2str.c: New files. | |
3820 | 4825 * Makefile.am (libfetish_a_SOURCES): Add sig2str.h. |
3818 | 4826 |
3812 | 4827 2002-04-24 Jim Meyering <meyering@lucent.com> |
4828 | |
3818 | 4829 * gettext.h: New file, from Gettext. |
3812 | 4830 * Makefile.am (INCLUDES): Remove -I../intl. |
4831 (libfetish_a_SOURCES): Add gettext.h. | |
4832 | |
3808 | 4833 2002-04-16 Jim Meyering <meyering@lucent.com> |
4834 | |
4835 * readutmp.h (UT_TYPE): Remove definition (now in who.c). | |
4836 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define. | |
4837 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define. | |
4838 | |
3805 | 4839 2002-04-12 Jim Meyering <meyering@lucent.com> |
4840 | |
4841 * dirfd.h (dirfd): Elide prototype if dirfd is a macro. | |
4842 | |
3787 | 4843 2002-03-10 Jim Meyering <meyering@lucent.com> |
4844 | |
4845 * makepath.c (make_path): Remove a comma from a diagnostic. | |
4846 Suggestion from Santiago Vila. | |
4847 | |
3783 | 4848 2002-03-08 Jim Meyering <meyering@lucent.com> |
4849 | |
4850 * rename.c: Mention that this wrapper is needed also on | |
4851 mips-dec-ultrix4.4 systems. | |
4852 | |
3775 | 4853 2002-03-02 Jim Meyering <meyering@lucent.com> |
4854 | |
4855 * gettime.c (gettime): Test HAVE_CLOCK_GETTIME, | |
4856 not HAVE_CLOCK_SETTIME. | |
4857 | |
3771 | 4858 2002-02-27 Paul Eggert <eggert@twinsun.com> |
4859 | |
4860 * nanosleep.h: Rename to.... | |
4861 * timespec.h: New name for nanosleep.h. All uses changed. | |
4862 | |
4863 * gettime.c: New file. | |
4864 * settime.c: New file. | |
4865 * stime.c: Remove. | |
4866 | |
4867 * Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c, | |
4868 timespec.h. Remove nanosleep.h. | |
4869 | |
3757 | 4870 2002-02-25 Paul Eggert <eggert@twinsun.com> |
4871 | |
3763 | 4872 * acl.c, acl.h: New files. |
3757 | 4873 * Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c. |
4874 | |
4875 2002-02-24 Jim Meyering <meyering@lucent.com> | |
4876 | |
3777 | 4877 * strnlen.c (strnlen): Define-away/undef so that an inconsistent |
4878 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't | |
4879 cause trouble. Reported by Nelson Beebe. | |
3757 | 4880 |
3753 | 4881 2002-02-23 Paul Eggert <eggert@twinsun.com> |
4882 | |
4883 * path-concat.c (xpath_concat): Reorder code to pacify | |
4884 compilers that don't know that xalloc_die never returns. | |
4885 | |
3751 | 4886 2002-02-20 Jim Meyering <meyering@lucent.com> |
4887 | |
4888 * getdate.c: Regenerate using bison-1.33. | |
4889 | |
3733 | 4890 2002-02-15 Paul Eggert <eggert@twinsun.com> |
4891 | |
4892 * posixver.c, posixver.h: New files. | |
4893 * Makefile.am (libfetish_a_SOURCES): Add them. | |
4894 | |
3728 | 4895 2002-02-02 Paul Eggert <eggert@twinsun.com> |
4896 Bruno Haible <bruno@clisp.org> | |
4897 | |
4898 * unicodeio.h (print_unicode_char): Add exit_on_error argument. | |
4899 (fwrite_success_callback): New declaration. | |
4900 * unicodeio.c (unicode_to_mb): New function, extracted from | |
4901 print_unicode_char. Call failure callback instead of error. | |
4902 (fwrite_success_callback): New function. | |
4903 (exit_failure_callback): New function. | |
4904 (fallback_failure_callback): New function. | |
4905 (print_unicode_char): Call unicode_to_mb. | |
4906 | |
3723 | 4907 2002-01-26 Jim Meyering <meyering@lucent.com> |
4908 | |
4909 * Makefile.am (getdate$U.o): Depend on unlocked-io.h. | |
4910 | |
3720 | 4911 2002-01-22 Jim Meyering <meyering@lucent.com> |
4912 | |
4913 * Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES). | |
4914 Otherwise, some versions of automake would omit the rule that makes | |
4915 Makefile from Makefile.in. | |
4916 | |
3711 | 4917 2001-01-21 Paul Eggert <eggert@twinsun.com> |
4918 | |
4919 * xmemcoll.h, xmemcoll.c: New files. | |
4920 * Makefile.am (libfetish_a_SOURCES): Add them. | |
4921 * memcoll.c: Include errno.h, and declare errno if not defined. | |
4922 (memcoll): Set errno to zero if there is no error. | |
4923 | |
4924 * quotearg.c (quotearg_buffer_restyled): | |
4925 Fix bug with quoting buffers containing NUL when backslashing escapes. | |
4926 This bug was exposed by the other changes in this patch. | |
4927 (quotearg_n_options): New arg ARGSIZE. | |
4928 All callers changed. | |
4929 (quoting_options_from_style): New function. | |
4930 (quotearg_n_style): Use it. | |
4931 (quotearg_n_style_mem): New function. | |
4932 | |
4933 * quotearg.h (quotearg_n_style_mem): New function. | |
4934 | |
3698 | 4935 2002-01-16 Jim Meyering <meyering@lucent.com> |
4936 | |
4937 * getdate.y: Add three semicolons, each just before a closing brace. | |
4938 Bison (as of version 1.31) no longer papers over that mistake. | |
4939 | |
3703 | 4940 2002-02-14 Paul Eggert <eggert@twinsun.com> |
4941 | |
4942 * backupfile.c (ISDIGIT): Comment fix. | |
4943 * getdate.y (ISDIGIT): Likewise. | |
4944 * posixtm.c (ISDIGIT, year): Likewise. | |
4945 * strverscmp.c (ISDIGIT): Likewise. | |
4946 * userspec.c (ISDIGIT): Likewise. | |
4947 | |
3693 | 4948 2002-01-05 Jim Meyering <meyering@lucent.com> |
4949 | |
4950 * version-etc.c (version_etc_copyright): Update copyright year. | |
4951 | |
3691 | 4952 2001-01-19 Paul Eggert <eggert@twinsun.com> |
4953 | |
4954 * closeout.c (close_stdout_status): If ferror (stdout), do | |
4955 not silently exit merely because the output buffer happens to | |
4956 have nothing pending. | |
4957 | |
3689 | 4958 2001-12-18 Paul Eggert <eggert@twinsun.com> |
4959 | |
4960 See the big note in ../ChangeLog. | |
4961 * human.c (suffixes): Prefer K to k for 1024. | |
4962 (generate_suffix_backwards): New function. | |
4963 (human_readable_inexact): Use it. | |
3691 | 4964 * xstrtol.c (__xstrtol): If there is no number but there |
4965 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary. | |
4966 Accept 'K' as well as 'k'. | |
3689 | 4967 |
3683 | 4968 2001-12-15 Jim Meyering <meyering@lucent.com> |
4969 | |
3686 | 4970 * regex.h (__restrict_arr): Update from libc. |
4971 | |
3683 | 4972 * mountlist.h (ME_REMOTE): Recognize file systems of type smbfs |
4973 as `remote' if the name starts with `//'. Suggested by Michael Stone. | |
3686 | 4974 (STREQ): Define. |
3683 | 4975 |
3679 | 4976 2001-12-10 Jim Meyering <meyering@lucent.com> |
4977 | |
4978 * linebuffer.c: Remove explicit declarations of xmalloc and xrealloc, | |
4979 Instead, include "xalloc.h". | |
4980 (initbuffer): Don't cast xmalloc return value to char*. | |
4981 (readline): Reword comment. | |
4982 Don't cast xrealloc return value to char* | |
4983 Return NULL, not 0. | |
4984 | |
3669 | 4985 2001-12-09 Jim Meyering <meyering@lucent.com> |
4986 | |
3677 | 4987 * modechange.c (mode_compile): Add cast to avoid pedantic warning about |
3676 | 4988 `signed and unsigned type in conditional expression'. |
4989 * posixtm.c (posix_time_parse): Likewise. | |
4990 | |
3677 | 4991 * xreadlink.c (xreadlink): Add cast to avoid a pedantic warning. |
3676 | 4992 |
4993 * readtokens.c (readtoken): Declare an index to be of type unsigned | |
4994 to avoid a pedantic warning. | |
4995 | |
4996 * getstr.c: Don't include assert.h. | |
4997 (getstr): Remove warning-evoking assertions. | |
4998 Return -1 if offset parameter is out of bounds. | |
4999 Change the type of a local from int to size_t. | |
5000 | |
5001 * strftime.c (my_strftime_localtime_r): Include this function | |
5002 definition in the `#if ! HAVE_TM_GMTOFF' block. | |
5003 | |
3669 | 5004 * xgethostname.c: Remove declarations of xmalloc and xrealloc. |
5005 Include xalloc.h instead. | |
5006 | |
3664 | 5007 2001-12-02 Jim Meyering <meyering@lucent.com> |
5008 | |
3666 | 5009 * tempname.c: Don't declare getenv, thus reverting the change of |
5010 2001-11-18. It's no longer necessary, now that stdlib.h is always | |
5011 included. | |
5012 | |
3664 | 5013 * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded, |
4590 | 5014 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld. |
3664 | 5015 |
3662 | 5016 2001-11-30 Akim Demaille <akim@epita.fr> |
5017 | |
5018 * xstrdup.c: Include xalloc.h, so that xstrdup is declared | |
5019 before being defined. | |
5020 | |
3659 | 5021 2001-11-27 Paul Eggert <eggert@twinsun.com> |
5022 | |
5023 * quotearg.h (quotearg_n, quotearg_n_style): | |
5024 First arg is int, not unsigned. | |
5025 * quotearg.c (quotearg_n, quotearg_n_style): Likewise. | |
5026 (SIZE_MAX, UINT_MAX): New macros. | |
5027 (quotearg_n_options): Abort if N is negative. | |
5028 Avoid overflow check on hosts where size_t is 64 bits and int | |
5029 is 32 bits, as overflow is impossible there. | |
5030 Fix off-by-one typo that caused unnecessary reallocation. | |
5031 | |
3655 | 5032 2001-11-27 Jim Meyering <meyering@lucent.com> |
5033 | |
5034 * tempname.c: Merge with version from libc. | |
3659 | 5035 * regex.c: Likewise. |
3655 | 5036 |
5037 * tempname.c: Include stdlib.h unconditionally. On some old systems | |
5038 for which STDC_HEADERS is 0, it was not included, resulting in a | |
5039 warning about an integer-to-pointer conversion problem with getenv. | |
5040 Reported by Volker Borchert. | |
5041 | |
3651 | 5042 2001-11-26 Jim Meyering <meyering@lucent.com> |
5043 | |
5044 * gtod.h: Remove file. | |
3659 | 5045 * Makefile.am (libfetish_a_SOURCES): Remove gtod.h. |
3651 | 5046 * gettimeofday.c: Don't include gtod.h. |
5047 (GTOD_init): Remove function. | |
5048 (rpl_gettimeofday): Do its job here instead, rather than aborting. | |
5049 Suggestion from Volker Borchert. | |
5050 | |
3647 | 5051 2001-11-23 Jim Meyering <meyering@lucent.com> |
5052 | |
5053 * hash.h (struct hash_table): Don't define here. Merely declare it. | |
5054 * hash.c (struct hash_table): Define it here instead. | |
5055 | |
3644 | 5056 2001-11-22 Jim Meyering <meyering@lucent.com> |
5057 | |
5058 * hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif. | |
5059 | |
3636 | 5060 2001-11-18 Paul Eggert <eggert@twinsun.com> |
5061 | |
5062 * tempname.c (TMP_MAX): Remove; no longer needed. | |
5063 (TEMPORARIES): New macro. | |
5064 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This | |
5065 removes an artificial limitation (e.g. HP-UX 10.20, where | |
5066 TMP_MAX is 17576). | |
5067 | |
3627 | 5068 2001-11-18 Jim Meyering <meyering@lucent.com> |
5069 | |
5070 * 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
|
5071 on SunOS 4. |
3627 | 5072 |
3628 | 5073 * Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those |
5074 files will be created before anything else. | |
3627 | 5075 |
3615 | 5076 2001-11-17 Jim Meyering <meyering@lucent.com> |
5077 | |
3638 | 5078 * modechange.c (mode_adjust): Fix error introduced on 1999-04-26 |
5079 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable | |
5080 rather than group writable. Patch by Juan F. Codagnone. | |
5081 | |
3623 | 5082 * readtokens.c: Remove explicit declarations of xmalloc and xrealloc, |
5083 Instead, include "xalloc.h". | |
5084 | |
5085 * mountlist.c: Include unlocked-io.h after all system headers. | |
5086 Remove explicit declarations of xmalloc, xrealloc, | |
5087 and xstrdup. Instead, include "xalloc.h". | |
5088 | |
3619 | 5089 * argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h. |
5090 * fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise. | |
5091 * mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise. | |
3623 | 5092 |
3619 | 5093 * regex.c, sha.c, version-etc.c, yesno.c: Likewise. |
3620 | 5094 Reported by Padraig Brady. |
3619 | 5095 |
3615 | 5096 * mkstemp.c: #undef mkstemp. |
5097 Include config.h. | |
5098 (rpl_mkstemp): Rename from mkstemp. | |
5099 Protoize. | |
5100 | |
3608 | 5101 2001-11-16 Jim Meyering <meyering@lucent.com> |
5102 | |
5103 * physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>. | |
5104 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to | |
5105 determine the amount of total physical memory, use pstat_getstatic. | |
5106 HPUX-11 doesn't define _SC_PHYS_PAGES. | |
5107 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]: | |
5108 If sysconf couldn't be used to determine the amount of available | |
5109 physical memory, use both pstat_getstatic and pstat_getdynamic. | |
5110 Based on a patch from Bob Proulx. | |
5111 | |
3597 | 5112 2001-11-05 Jim Meyering <meyering@lucent.com> |
5113 | |
5114 * xstat.in (slash_aware_lstat): Correct a misleading comment. | |
5115 | |
3583 | 5116 2001-11-03 Jim Meyering <meyering@lucent.com> |
5117 | |
3591 | 5118 * argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args |
5119 in argmatch_to_argument call. | |
5120 | |
3586 | 5121 * dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an |
5122 argument. | |
5123 | |
3583 | 5124 * hash.c (hash_clear): Fix a bug that could lead to an infloop or |
5125 e.g., a fault due to an attempt to free a NULL pointer. | |
5126 | |
3565 | 5127 2001-11-01 Jim Meyering <meyering@lucent.com> |
5128 | |
3576 | 5129 * dirfd.c, dirfd.h: New files. |
3573 | 5130 * Makefile.am (libfetish_a_SOURCES): Add dirfd.h. |
5131 | |
3565 | 5132 * hash.c (hash_print) [TESTING]: Clean up. |
5133 | |
3562 | 5134 2001-10-22 Paul Eggert <eggert@twinsun.com> |
5135 | |
5136 * hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__, | |
5137 to avoid a warning if -Wall. | |
5138 | |
3560 | 5139 2001-10-21 Paul Eggert <eggert@twinsun.com> |
5140 | |
3562 | 5141 * regex.c (uintptr_t): Remove macro and decl; it's config.h's job. |
3560 | 5142 |
3553 | 5143 2001-10-21 Jim Meyering <meyering@lucent.com> |
5144 | |
5145 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, | |
5146 this code would end up calling gettext even in packages built | |
5147 with --disable-nls. | |
3555 | 5148 * getopt.c (_): Likewise. |
3557 | 5149 * regex.c (_): Likewise. |
3553 | 5150 |
3551 | 5151 2001-10-20 Paul Eggert <eggert@twinsun.com> |
5152 | |
5153 * error.c (strerror_r): Do not declare unless !_LIBC. | |
5154 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P. | |
5155 Use strerror_r that is only a macro, even if it is not a function. | |
5156 (strerror): Check for HAVE_DECL_STRERROR before declaring. | |
5157 (private_strerror): Use prototypes, not old-style function definition. | |
5158 (print_errno_message): New function. | |
5159 Support the POSIX 'int'-flavored strerror_r, as well as the traditional | |
5160 char*-flavored one. | |
5161 (error_tail, error, error_at_line): Use it. | |
5162 | |
3546 | 5163 2001-10-11 Jim Meyering <meyering@lucent.com> |
5164 | |
5165 * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ... | |
5166 and quote_n (1, ... to avoid clobbering a buffer. | |
5167 | |
3543 | 5168 2001-10-05 Jim Meyering <meyering@lucent.com> |
5169 | |
5170 * Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h. | |
5171 * hash-pjw.c: New file (factored out of fileutils' remove.c). | |
5172 * hash-pjw.h: New file. | |
5173 | |
3538 | 5174 2001-09-30 Jim Meyering <meyering@lucent.com> |
5175 | |
5176 * mountlist.c [MOUNTED_GETFSSTAT]: | |
5177 Include <sys/ucred.h>, for Apple Darwin. | |
5178 Include sys/mount.h and sys/fs_types.h only if available. | |
5179 (FS_TYPE): Define. | |
5180 (read_filesystem_list): Use FS_TYPE. | |
5181 | |
3536 | 5182 2001-09-29 Paul Eggert <eggert@twinsun.com> |
5183 | |
3562 | 5184 * exclude.c (excluded_filename): 0 -> false, since it's |
3536 | 5185 a boolean context. |
5186 | |
3526 | 5187 2001-09-28 Paul Eggert <eggert@twinsun.com> |
5188 | |
5189 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which | |
5190 #defines strtoimax. Also treat the other strto* functions | |
5191 like strtoimax. | |
5192 | |
5193 * xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL. | |
5194 (strtoul): Do not declare if HAVE_DECL_STRTOUL. | |
5195 (strtoimax, strtoumax): Do not declare if already defined as a macro. | |
5196 | |
3521 | 5197 2001-09-26 Jim Meyering <meyering@lucent.com> |
5198 | |
5199 Most macros in unlocked-io.h had the wrong number of arguments. | |
5200 * gen-uio: New script. | |
3524 | 5201 (USE_UNLOCKED_IO): Define to 1 if not already defined. |
3521 | 5202 * unlocked-io.hin: Remove file. |
5203 * Makefile.am (unlocked-io.h): Rewrite to use a separate script, | |
5204 rather than trying to embed it here. | |
5205 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin | |
5206 Reported by Padraig Brady. | |
5207 | |
3512 | 5208 2001-09-25 Volker Borchert <bt@teknon.de> |
5209 | |
5210 * gettimeofday.c (rpl_gettimeofday): Declare local variable `result'. | |
5211 | |
3503 | 5212 2001-09-23 Jim Meyering <meyering@lucent.com> |
5213 | |
5214 * mountlist.c: Remove useless parentheses in #if directives. | |
5215 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when | |
5216 the deprecated MOUNTED symbol is no longer defined in mntent.h. | |
5217 | |
3495 | 5218 2001-09-22 Jim Meyering <meyering@lucent.com> |
5219 | |
5220 * localcharset.c: Update from latest gettext. | |
5221 * config.charset: Likewise. | |
5222 | |
3493 | 5223 2001-09-20 Jim Meyering <meyering@lucent.com> |
5224 | |
5225 * xstrtol.c (strtoimax): Guard declaration with | |
5226 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'. | |
5227 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0) | |
5228 have their own, conflicting declaration of strtoimax in sys/inttypes.h. | |
5229 (strtoumax): Likewise, for completeness (it wasn't necessary). | |
5230 | |
3482 | 5231 2001-09-06 Paul Eggert <eggert@twinsun.com> |
5232 | |
5233 * strtoimax.c (HAVE_LONG_LONG): | |
5234 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned. | |
5235 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base), | |
5236 to work around bug in IBM C compiler. | |
5237 | |
3479 | 5238 2001-09-16 Jim Meyering <meyering@lucent.com> |
5239 | |
5240 * mkdir.c: New file. | |
5241 | |
3467 | 5242 2001-09-04 Paul Eggert <eggert@twinsun.com> |
5243 | |
5244 * xgetcwd.c: Revert some of the previous change; intead, | |
5245 fix the HAVE_GETCWD_NULL code to behave more like the | |
5246 !HAVE_GETCWD_NULL code used to. | |
5247 | |
5248 Include "xalloc.h". | |
5249 (xgetcwd): Do not return NULL when memory is exhausted; instead, | |
5250 invoke xalloc_die. | |
5251 | |
3465 | 5252 2001-09-04 Paul Eggert <eggert@twinsun.com> |
5253 | |
5254 * xreadlink.c (xreadlink): Omit size_t* arg. All uses changed. | |
5255 Use ssize_t, not int, to store result of readlink. | |
5256 Check for ssize_t overflow as well as size_t overflow, | |
5257 as POSIX says the result of readlink is implementation-defined | |
5258 when ssize_t overflows. | |
5259 Remove unnecessary cast to char*. | |
5260 Use free+malloc instead of realloc, as the storage doesn't need | |
5261 to be preserved and it's clearer and can be more efficient that way. | |
5262 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare. | |
5263 * xreadlink.h (xreadlink): Update prototype. | |
5264 | |
3460 | 5265 2001-09-03 Paul Eggert <eggert@twinsun.com> |
5266 | |
5267 * exclude.c (fnmatch_no_wildcards): Fix confusion between | |
5268 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was | |
5269 spotted by Jim Meyering. | |
5270 | |
3456 | 5271 2001-09-03 Jim Meyering <meyering@lucent.com> |
5272 | |
5273 * xreadlink.c (xreadlink): Preserve errno around `free' during failure. | |
5274 | |
5275 2001-09-03 Paul Eggert <eggert@twinsun.com> | |
5276 | |
5277 * xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more | |
5278 like the HAVE_GETCWD_NULL code. | |
5279 Include pathmax.h if not HAVE_GETCWD. | |
5280 Do not include xalloc.h. | |
5281 (INITIAL_BUFFER_SIZE): New symbol. | |
5282 Do not use xmalloc / xrealloc, since the caller is responsible for | |
5283 handling errors. Preserve errno around `free' during failure. | |
5284 Do not overrun buffer when using getwd. | |
5285 | |
3449 | 5286 2001-09-03 Paul Eggert <eggert@twinsun.com> |
5287 | |
5288 * xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined | |
5289 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0). | |
5290 | |
3447 | 5291 2001-09-02 Jim Meyering <meyering@lucent.com> |
5292 | |
5293 * error.c: Update from GNU libc. | |
5294 | |
3437 | 5295 2001-09-01 Jim Meyering <meyering@lucent.com> |
5296 | |
3442 | 5297 * xreadlink.c: New file. |
5298 * xreadlink.h: New file. | |
5299 * Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h. | |
5300 | |
3439 | 5301 * 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
|
5302 doesn't conflict with sparc Solaris 7's definition in |
3439 | 5303 /usr/include/sys/int_types.h. |
5304 | |
3437 | 5305 * exclude.c: Use `""', not `<>' to #include non-system header files. |
5306 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp | |
5307 and strncasecmp as r-values. Unixware didn't have declarations. | |
5308 | |
3434 | 5309 2001-08-31 Jim Meyering <meyering@lucent.com> |
5310 | |
5311 * xgetcwd.c (xgetcwd): Reorganize to avoid some duplication. | |
5312 Use an initial, malloc'd, buffer of length 128 rather than | |
5313 a statically allocated one of length 1024. | |
5314 | |
3432 | 5315 2001-08-30 Paul Eggert <eggert@twinsun.com> |
5316 | |
3562 | 5317 * xgetcwd.c: Don't include pathmax.h. |
3432 | 5318 Include stdlib.h and unistd.h if available. |
5319 Include xalloc.h. | |
5320 (xmalloc, xstrdup, free): Remove decls. | |
5321 (xgetcwd): Don't assume sizes fit in unsigned. | |
5322 Check for overflow when computing sizes. | |
5323 Simplify reallocation code. | |
5324 | |
3422 | 5325 2001-08-28 Paul Eggert <eggert@twinsun.com> |
5326 | |
5327 * Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c. | |
5328 | |
5329 * strtoimax.c: Renamed from strtoxmax.c, removing the | |
5330 old strtoimax.c. | |
5331 | |
5332 Also, make the following further changes to make this file's | |
5333 configuration more similar to that of strtol.c: | |
5334 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed. | |
5335 (strtoumax, uintmax_t, strtoull, strtol): Remove. | |
5336 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED. | |
5337 (strtoimax): Renamed from strtoumax. All uses of unsigned values | |
5338 changed to signed values. | |
5339 | |
5340 And make the following changes as well: | |
5341 Fix copyright notice, as 1999 was missing. | |
5342 (verify): New macro. | |
5343 (strtoimax): Check sizes at compile-time, not run-time. | |
5344 Prefer strtol to strtoll if both work. | |
5345 (main): Remove; it was not that useful and was a pain to maintain. | |
5346 | |
5347 * strtoumax.c: Include strtoimax.c, not strtouxmax.c. | |
5348 | |
3415 | 5349 2001-08-30 Paul Eggert <eggert@twinsun.com> |
5350 | |
3422 | 5351 * savedir.c (savedir): Remove size parameter, as POSIX says that |
5352 a directory's st_size can have an arbitrary value, so the old | |
5353 usage could waste an arbitrary amount of memory. All uses | |
5354 changed. | |
5355 * savedir.h: Update prototype. | |
5356 | |
5357 2001-08-30 Paul Eggert <eggert@twinsun.com> | |
5358 | |
5359 * xstrtol.c (strtoimax): New decl. | |
3415 | 5360 |
3413 | 5361 2001-08-28 Paul Eggert <eggert@twinsun.com> |
5362 | |
3422 | 5363 * xstrtol.h: Add copyright notice. |
3413 | 5364 (_DECLARE_XSTRTOL): Improve quality of diagnostic for |
5365 LONGINT_INVALID_SUFFIX_CHAR. | |
5366 | |
3411 | 5367 2001-08-30 Paul Eggert <eggert@twinsun.com> |
5368 | |
5369 * quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct | |
5370 tm to be declared. | |
5371 | |
3409 | 5372 2001-08-30 Paul Eggert <eggert@twinsun.com> |
5373 | |
5374 * hash.c: Remove '2001' from copyright notice. | |
5375 | |
3405 | 5376 2001-08-30 Paul Eggert <eggert@twinsun.com> |
5377 | |
5378 * full-write.h: New file. | |
5379 * Makefile.am (libfetish_a_SOURCES): Add full-write.h. | |
5380 * full-write.c: Correct credits, as cccp.c no longer | |
5381 exists and anyway it was so heavily changed from the old cccp | |
5382 code as to be unrecognizable. Include full-write.h. | |
5383 (full_write) Return size_t, with short writes meaning failure. | |
5384 All callers changed. This fixes a bug with large buffers | |
5385 on 64-bit hosts. | |
5386 * utime.c: Include full-write.h. | |
5387 | |
3397 | 5388 2001-08-30 Paul Eggert <eggert@twinsun.com> |
5389 | |
3400 | 5390 Merge 'exclude' changes from tar 1.13.22. |
5391 This fixes one or two unlikely storage allocation overflow bugs, | |
5392 but doesn't change user-visible behavior otherwise. | |
5393 | |
3405 | 5394 2001-08-30 Paul Eggert <eggert@twinsun.com> |
5395 | |
3400 | 5396 * exclude.c (bool): Declare, perhaps by including stdbool.h. |
5397 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H. | |
5398 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>): | |
5399 Include if available. | |
5400 (<xalloc.h>): Include | |
5401 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't. | |
5402 (verify): New macro. Use it to verify that EXCLUDE macros do not | |
5403 collide with FNM macros. | |
5404 (struct patopts): New struct. | |
5405 (struct exclude): Use it, as exclude patterns now come with options. | |
5406 (new_exclude): Support above changes. | |
5407 (new_exclude, add_exclude_file): | |
5408 Initial size must now be a power of two to simplify overflow checking. | |
5409 (free_exclude, fnmatch_no_wildcards): New function. | |
5410 (excluded_filename): No longer requires options arg, as the options | |
5411 are determined by add_exclude. Now returns bool, not int. | |
5412 (excluded_filename, add_exclude): | |
5413 Add support for the fancy new exclusion options. | |
5414 (add_exclude, add_exclude_file): Now takes int options arg. | |
5415 Check for arithmetic overflow when computing sizes. | |
5416 (add_exclude_file): xrealloc might modify errno, so don't | |
5417 realloc until after errno might be used. | |
5418 | |
5419 * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): | |
5420 New macros. | |
5421 (free_exclude): New decl. | |
5422 (add_exclude, add_exclude_file): Now takes int options arg. | |
5423 (excluded_filename): No longer requires options arg, as the options | |
5424 are determined by add_exclude. Now returns bool, not int. | |
5425 | |
3405 | 5426 2001-08-30 Paul Eggert <eggert@twinsun.com> |
5427 | |
5428 * alloca.c (alloca): Arg is of type size_t, not unsigned. | |
3397 | 5429 |
3387 | 5430 2001-08-27 Jim Meyering <meyering@lucent.com> |
5431 | |
3391 | 5432 * Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c |
5433 | |
5434 * version-etc.c (N_): Remove definition. | |
5435 Revert most of last change. | |
5436 Instead, simply don't mark the `Copyright...' string for translation. | |
5437 Based on advice from Paul Eggert. | |
5438 | |
3387 | 5439 * strtoxmax.c: Tweak comment. |
5440 | |
3368 | 5441 2001-08-26 Jim Meyering <meyering@lucent.com> |
5442 | |
3387 | 5443 * version-etc.c (version_etc_copyright_fmt): Replace literal year |
5444 of copyright with `%s' so translators don't get an untranslated | |
5445 message in 2002. | |
5446 (COPYRIGHT_YEAR): Define. | |
5447 (version_etc): Use fprintf rather than fputs. | |
5448 Suggestion from Ulrich Drepper. | |
5449 | |
3378 | 5450 * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c. |
5451 | |
3375 | 5452 * strtoll.c: New file, from GNU libc. |
3368 | 5453 * xstrtoimax.c: New file. |
5454 | |
3380 | 5455 * xstrtol.h: Add xstrtoimax. |
3368 | 5456 * strtoumax.c: New file. Simply include "strtoumax.c". |
5457 * strtoimax.c: New file. Likewise, but first define STRTOUXMAX_SIGNED. | |
5458 | |
5459 * strtoumax.c: Factor to work both for unsigned and signed types, ... | |
3387 | 5460 * strtoxmax.c: ... then renamed to this. |
3368 | 5461 |
3348 | 5462 2001-08-13 Paul Eggert <eggert@twinsun.com> |
5463 | |
5464 * Makefile.am (unlocked-io.h): Do not append "_unlocked" twice. | |
5465 Port to Solaris 8, where 'sed' requires a space after the 'r' | |
5466 command, and where sh dislikes "$/". Clean up the spacing a bit. | |
5467 Redirect output to $tmp just once. | |
5468 | |
3346 | 5469 2001-08-12 Paul Eggert <eggert@sic.twinsun.com> |
5470 | |
3411 | 5471 * addext.c (<errno.h>): Include. |
3346 | 5472 (errno): Declare if not defined. |
5473 (addext): Work correctly when pathconf returns -1 and leaves | |
5474 errno alone because there is no limit. Also, work even if | |
5475 pathconf returns a value greater than SIZE_MAX. | |
5476 | |
3344 | 5477 2001-08-12 Jim Meyering <meyering@lucent.com> |
5478 | |
5479 * xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]: | |
5480 Simply `return getcwd (NULL, 0);'. | |
5481 [! (defined __GLIBC__ && __GLIBC__ >= 2)]: | |
5482 Use 1300 as initial value for length, not PATH_MAX. | |
5483 | |
5484 * pathmax.h: Clean up cpp syntax. | |
5485 | |
3334 | 5486 2001-08-12 Jim Meyering <meyering@lucent.com> |
5487 | |
5488 * gettimeofday.c: New file. | |
5489 * gtod.h: New file. | |
5490 * Makefile.am (libfetish_a_SOURCES): Add gtod.h. | |
5491 | |
3329 | 5492 2001-08-04 Jim Meyering <meyering@lucent.com> |
5493 | |
5494 * error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt, | |
5495 to get in sync with glibc. | |
5496 | |
3327 | 5497 2001-08-03 Paul Eggert <eggert@twinsun.com> |
5498 | |
5499 The following changes are from gettext 0.10.39 as maintained by | |
5500 Bruno Haible. | |
5501 | |
5502 * mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID): | |
5503 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID | |
5504 with inverted sense. All uses changed. | |
5505 | |
5506 * mbswidth.c: Don't include <limits.h>. | |
5507 Include <stdlib.h> and <string.h> unconditionally. | |
5508 (iswcntrl, mbsinit, ISCNTRL): New macros. | |
5509 (mbsnwidth): Use K&R style function declarations. | |
5510 Don't bother checking for MB_LEN_MAX == 1, since the compiler | |
5511 can optimize it when MB_CUR_MAX == 1. | |
5512 The width of control characters is zero, not 1. | |
5513 | |
3300 | 5514 2001-07-15 Jim Meyering <meyering@lucent.com> |
5515 | |
3301 | 5516 * Makefile.am (EXTRA_DIST): Add unlocked-io.hin. |
5517 (BUILT_SOURCES): Add unlocked-io.h. | |
5518 (io_functions): Define. | |
5519 (unlocked-io.h): New rule. | |
3304 | 5520 (DISTCLEANFILES): Add unlocked-io.h. |
3306 | 5521 (all-local): Depend on unlocked-io.h, to ensure it is created. |
3304 | 5522 |
3301 | 5523 * unlocked-io.hin: New file |
5524 | |
3300 | 5525 * regex.c: Update from glibc. |
5526 | |
3290 | 5527 2001-07-05 Jim Meyering <meyering@lucent.com> |
5528 | |
5529 * Makefile.am (noinst_HEADERS): Remove definition, per new automake | |
5530 recommendation. | |
5531 (libfetish_a_SOURCES): Put all .h files here instead. | |
5532 Remove a thus-exposed (better checks in automake) duplicate and | |
5533 two unnecessary .h files. | |
5534 | |
3279 | 5535 2001-06-11 Jim Meyering <meyering@lucent.com> |
5536 | |
5537 * regex.c: Update from GNU libc. | |
5538 | |
3277 | 5539 2001-05-27 Jim Meyering <meyering@lucent.com> |
5540 | |
5541 * readutmp.h (UT_TYPE): Define. | |
5542 | |
3273 | 5543 2001-05-24 Jim Meyering <meyering@lucent.com> |
5544 | |
5545 * argmatch.c: Include "quote.h". | |
5546 (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
|
5547 quote function. Reported by Göran Uddeborg. |
3273 | 5548 |
3264 | 5549 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr> |
5550 | |
5551 * dirname.c (dir_name): Compute append_dot using path, not newpath | |
5552 which is not yet declared. | |
5553 | |
5554 2001-05-11 Paul Eggert <eggert@twinsun.com> | |
5555 | |
3411 | 5556 * Makefile.am (libfetish_a_SOURCES): |
3264 | 5557 Add strftime.c, since we now compile it on all hosts. |
5558 | |
3411 | 5559 * strftime.c (my_strftime): |
3264 | 5560 Define to nstrftime if emacs, but only if my_strftime is not defined. |
5561 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from | |
5562 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively. | |
5563 Add one more extra argument: a nanoseconds value. | |
5564 All uses changed. | |
5565 (ns): New macro. | |
5566 (my_strftime function): Add %N format. | |
5567 (emacs_strftimeu): Renamed from emacs_strftime, | |
5568 with extra ut argument. | |
5569 | |
3249 | 5570 2001-05-11 Paul Eggert <eggert@twinsun.com> |
5571 | |
5572 dirname code cleanup. base_name now behaves more compatibly | |
5573 with POSIX basename when given file names that have trailing | |
5574 slashes, and similarly for dir_name. Add new primitives | |
5575 base_len and dir_len. Put the directory-name-related decls | |
5576 into dirname.h. | |
5577 | |
5578 * addext.c (ISSLASH, base_name): Remove; now in dirname.h. | |
5579 * backupfile.c (base_name): Likewise. | |
5580 * basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise. | |
5581 * dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise. | |
5582 * makepath.c (strip_trailing_slashes): Likewise. | |
5583 * path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): | |
5584 Likewise. | |
5585 * rename.c (strip_trailing_slashes): Likewise. | |
5586 * same.c (base_name): Likewise. | |
5587 * stripslash.c (ISSLASH): Likewise. | |
5588 | |
5589 * addext.c: Include <dirname.h> after size_t is defined. | |
5590 * backupfile.c: Likewise. | |
5591 | |
5592 * addext.c (addext): Use base_len to trim redundant | |
5593 trailing slashes instead of doing it ourselves. | |
5594 But do not trim the last slash if it is not redundant. | |
5595 | |
5596 * backupfile.c (find_backup_file_name, | |
5597 max_backup_version): Use base_len instead of rolling it ourselves. | |
5598 Handle the case of "" and (on DOS) "C:" correctly. | |
5599 | |
5600 * basename.c: Do not include <stdio.h>, <assert.h>; no longer needed. | |
5601 Include <string.h>, <dirname.h>. | |
5602 (base_name): Allow file names ending in slashes, other than names | |
5603 that are all slashes. In this case, return the basename followed | |
5604 by the slashes. This is more general, and can be used in places | |
5605 where the original base_name purposely had an assertion failure. | |
5606 (base_len): New function. | |
5607 | |
5608 * dirname.c: Include <string.h> instead of <stdlib.h>. | |
5609 Do not include <assert.h>; no longer needed. | |
5610 Include xalloc.h. | |
5611 (memrchr): Remove decl. | |
5612 (dir_name_r): Remove. | |
5613 (dir_len): Renamed from dirlen. All callers changed. | |
5614 Rewrite in terms of base_name, for simplicity and consistency. | |
5615 (dir_name): Never return NULL. All callers changed. | |
5616 Do not include <stdlib.h> in test program; no longer needed. | |
5617 return 0; is fine for test program. | |
5618 | |
5619 * dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): | |
5620 New macros. | |
5621 (base_name, base_len, dir_len, strip_trailing_slashes): New decls. | |
5622 | |
5623 * path-concat.c (path_concat): Use base_len to compute | |
5624 base length, not strlen; this means we cannot rely on memcpy | |
5625 to null-terminate. | |
5626 | |
5627 * same.c (STREQ): Remove. | |
5628 (same_name): Handle the case where the basename ends in trailing '/'. | |
5629 | |
5630 * stripslash.c (strip_trailing_slashes): Return nonzero if | |
5631 a slash was stripped. Do not strip the last slash after a | |
5632 file system prefix. | |
5633 | |
3229 | 5634 2001-04-08 Jim Meyering <meyering@lucent.com> |
5635 | |
5636 * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is | |
5637 recomputed; that's necessary when the offset spans a DST transition. | |
5638 Patch by David J. MacKenzie. Reported by Hon-Yin Kok. | |
5639 | |
3226 | 5640 2001-04-02 Jim Meyering <meyering@lucent.com> |
5641 | |
5642 * regex.h, regex.c: Update from GNU libc. | |
5643 | |
3221 | 5644 2001-03-19 Paul Eggert <eggert@twinsun.com> |
5645 | |
3249 | 5646 * version-etc.c (version_etc_copyright): Update to 2001. |
3221 | 5647 |
3213 | 5648 2001-03-16 Paul Eggert <eggert@twinsun.com> |
5649 | |
5650 * tempname.c (uint64_t): Define to uintmax_t if | |
5651 not defined, and if UINT64_MAX is not defined. | |
5652 Required at least for Vax Ultrix4.3, which doesn't define uint64_t. | |
5653 Reported by John David Anglin. | |
5654 | |
3211 | 5655 2001-03-10 Bruno Haible <haible@clisp.cons.org> |
5656 | |
5657 * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve | |
5658 alias if codeset is empty. | |
5659 * config.charset (BeOS): Use wildcard syntax. | |
5660 | |
3208 | 5661 2001-03-13 Jim Meyering <meyering@lucent.com> |
5662 | |
5663 * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: | |
5664 Don't insert a backslash when concatenating e.g., `C:' and `foo'. | |
5665 From Bruno Haible. | |
5666 | |
3204 | 5667 2001-03-06 Bruno Haible <haible@clisp.cons.org> |
5668 | |
5669 * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL). | |
5670 Don't return NULL. | |
5671 * unicodeio.c (print_unicode_char): Simplify accordingly. | |
5672 | |
3201 | 5673 2001-03-06 Bruno Haible <haible@clisp.cons.org> |
5674 | |
5675 * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add | |
5676 support for DOS/DJGPP. | |
5677 | |
3197 | 5678 2001-02-28 Paul Eggert <eggert@twinsun.com> |
5679 | |
5680 * Makefile.am (libfetish_a_SOURCES): | |
5681 Add dup-safer.c, fopen-safer.c. | |
5682 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h. | |
5683 | |
3411 | 5684 * dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files. |
3197 | 5685 |
3195 | 5686 2001-02-25 Paul Eggert <eggert@twinsun.com> |
5687 | |
5688 The mkstemp replacement is taken from glibc 2.2.2, with some | |
5689 portability fixes for use outside glibc, as follows: | |
5690 | |
5691 * tempname.c (struct_stat64): New macro. | |
5692 (direxists, __gen_tempname): Use it. | |
5693 This avoids a portability problem with Solaris 8. | |
5694 | |
5695 * tempname.c (<config.h>): Include if HAVE_CONFIG_H. | |
5696 (<stddef.h>, <stdint.h>, <string.h>): | |
5697 Include only if STDC_HEADERS || _LIBC. | |
5698 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC. | |
5699 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC. | |
5700 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC. | |
5701 (__set_errno): Define this macro if <errno.h> doesn't. | |
5702 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE): | |
5703 Define these macros if <stdio.h> doesn't. | |
5704 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR): | |
5705 Define these macros if <sys/stat.h> | |
5706 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN. | |
5707 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64, | |
5708 __xstat64): Define if not _LIBC. | |
5709 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC). | |
5710 (__gen_tempname): Invoke gettimeofday only if | |
5711 HAVE_GETTIMEOFDAY || _LIBC; | |
5712 otherwise, fall back on plain "time". | |
5713 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600. | |
5714 | |
5715 * mkstemp.c (__GT_FILE): Define to zero if not defined. | |
5716 | |
5717 * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2. | |
5718 | |
3182 | 5719 2001-02-17 Jim Meyering <meyering@lucent.com> |
5720 | |
3186 | 5721 * strtoul.c: Sync from GNU libc. Use double quotes, not <...> |
5722 around included file name. | |
5723 | |
3184 | 5724 * strnlen.c (__strnlen): Merge in a change from GNU libc. |
5725 | |
5726 * strftime.c: Update from GNU libc (the only changes were to comments). | |
3182 | 5727 |
3177 | 5728 2001-02-13 Bruno Haible <haible@clisp.cons.org> |
5729 | |
5730 * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash. | |
5731 | |
3173 | 5732 2001-02-17 Paul Eggert <eggert@twinsun.com> |
5733 | |
5734 * mbswidth.c, quotearg.c (mbrtowc, mbsinit): | |
5735 Remove workaround macros for hosts that have mbrtowc but not | |
5736 mbstate_t, as we now insist on proper declarations for both | |
5737 before using mbrtowc. | |
5738 | |
3166 | 5739 2001-02-17 Jim Meyering <meyering@lucent.com> |
5740 | |
5741 * regex.c: Update from libc. | |
5742 | |
3163 | 5743 2001-02-16 Paul Eggert <eggert@twinsun.com> |
5744 | |
3195 | 5745 * alloca.c (malloc): Undef before defining, since stdlib.h |
3164 | 5746 may have defined it. Needed for Encore Umax-3.0.9.16b systems. |
5747 Reported by Mark Hounschell via Paul Eggert. | |
3163 | 5748 |
3149 | 5749 2001-01-30 Bruno Haible <haible@clisp.cons.org> |
5750 | |
5751 * config.charset: Update for FreeBSD 4.2. | |
5752 | |
3131 | 5753 2001-01-26 Jim Meyering <meyering@lucent.com> |
5754 | |
3133 | 5755 * quotearg.c: Include stddef.h. |
5756 * quote.c: Include stddef.h. | |
5757 Reported by Axel Kittenberger. | |
5758 | |
3131 | 5759 * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking |
5760 line in double quotes so that it evokes a better diagnostic. | |
5761 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise. | |
5762 Reported by Axel Kittenberger. | |
5763 | |
3124 | 5764 2001-01-15 Bruno Haible <haible@clisp.cons.org> |
5765 | |
5766 * unicodeio.c (print_unicode_char): Cast the second iconv() arg, | |
5767 to avoid a warning. Add back 'const' to inptr. | |
5768 | |
3108 | 5769 2001-01-16 Jim Meyering <meyering@lucent.com> |
5770 | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
5771 * basename.c: Include <stdio.h>, needed by assert on SunOS 4. |
3108 | 5772 From Bruno Haible. |
5773 | |
3103 | 5774 2001-01-14 Jim Meyering <meyering@lucent.com> |
5775 | |
5776 * rename.c: New file. From Volker Borchert. | |
5777 Include stdlib.h, string.h or strings.h, and xalloc.h. | |
5778 Use strip_trailing_slashes rather than open-coding it. | |
5779 | |
3095 | 5780 2001-01-03 Paul Eggert <eggert@twinsun.com> |
5781 | |
3195 | 5782 * strftime.c: Sync with glibc time/strftime.c 1.81. |
3095 | 5783 |
3091 | 5784 2001-01-03 Jim Meyering <meyering@lucent.com> |
5785 | |
5786 * unicodeio.c (print_unicode_char): Remove `const' from declaration of | |
5787 local `inptr' to avoid warning with some system declarations of iconv. | |
5788 | |
3082 | 5789 2000-12-29 Paul Eggert <eggert@twinsun.com> |
5790 | |
3195 | 5791 * modechange.c: Do not assume that mode_t uses the |
3082 | 5792 traditional octal encoding. E.g. "chmod 1 FOO" should set |
5793 the other-execute bit of FOO even if S_IXOTH != 1. | |
5794 | |
5795 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH, | |
5796 WOTH, XOTH, ALLM): New macros. | |
5797 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, | |
5798 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): | |
5799 Use them. | |
5800 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID. | |
5801 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above. | |
5802 (mode_compile): | |
5803 No need to use uintmax_t; unsigned long is long enough. | |
5804 Don't bother to get suffix since we don't use it. | |
5805 | |
3074 | 5806 2000-12-24 Jim Meyering <meyering@lucent.com> |
5807 | |
5808 * hash.c (is_prime): Return explicit boolean values. | |
5809 (hash_get_first): Return NULL to appease Irix5.6's 89. | |
3075 | 5810 Reported by Nelson Beebe. |
3074 | 5811 |
3063 | 5812 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
5813 | |
5814 * localcharset.c (locale_charset): Add support for Win32. | |
5815 | |
5816 2000-12-18 Paul Eggert <eggert@twinsun.com> | |
5817 | |
3067 | 5818 * physmem.h, physmem.c: New files. |
3063 | 5819 |
3067 | 5820 * Makefile.am (libfetish_a_SOURCES): Add physmem.c. |
3063 | 5821 (noinst_HEADERS): Add physmem.h. |
5822 | |
3067 | 5823 * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and |
3063 | 5824 't' for compatibility with Solaris 8 sort. |
5825 | |
3061 | 5826 2000-12-18 Bruno Haible <haible@clisp.cons.org> |
5827 | |
5828 * config.charset: Add support for BeOS. | |
5829 | |
3053 | 5830 2000-12-16 Jim Meyering <meyering@lucent.com> |
5831 | |
5832 * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define | |
5833 SHELLS_FILE to a file name that's useful on djgpp systems. | |
5834 Include stdlib.h. | |
5835 (ADDITIONAL_DEFAULT_SHELLS): Define. | |
5836 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS. | |
5837 Based mostly on a patch from Prashant TR. | |
5838 | |
3051 | 5839 2000-12-16 Jim Meyering <meyering@lucent.com> |
5840 | |
5841 This bug had a serious impact on chown: `chown N:M FILE' (for integer | |
5842 N and M) would have treated it like `chown N:N FILE'. | |
5843 | |
5844 * userspec.c (parse_user_spec): Fix typo: s/u/g/. | |
5845 | |
3054 | 5846 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
5847 | |
5848 * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII, | |
5849 CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257 | |
5850 to the list of canonical encodings. Rename EUC-CN to GB2312. | |
5851 | |
3044 | 5852 2000-12-08 Andreas Schwab <schwab@suse.de> |
5853 | |
5854 * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an | |
5855 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set. | |
5856 | |
3039 | 5857 2000-12-07 Jim Meyering <meyering@lucent.com> |
5858 | |
3042 | 5859 * stripslash.c (ISSLASH): Define. |
5860 (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'. | |
5861 From Prashant TR. | |
5862 | |
3039 | 5863 * dirname.c (FILESYSTEM_PREFIX_LEN): Define. |
5864 (dir_name_r): Declare this function as static. | |
5865 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd | |
5866 manifest itself on a name containing a mix of slashes and | |
5867 backslashes. | |
5868 Make this function work with names starting with a DOS-style | |
5869 drive letter and colon prefix. | |
5870 (dir_name): Append `.' if necessary. | |
5871 Based mostly on patches from Prashant TR and Eli Zaretskii. | |
5872 | |
5873 * dirname.h (dir_name_r): Remove prototype. | |
5874 | |
3028 | 5875 2000-12-05 Jim Meyering <meyering@lucent.com> |
5876 | |
5877 * dirname.c (dir_name_r): Add `const' in a few local declarations. | |
5878 | |
3023 | 5879 2000-12-04 Jim Meyering <meyering@lucent.com> |
5880 | |
5881 * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc. | |
3025 | 5882 Also include memory.h, stdlib.h, unistd.h if appropriate. |
3026 | 5883 Reported by Andreas Jaeger (conflicting declaration of malloc). |
3023 | 5884 |
3020 | 5885 2000-12-02 Jim Meyering <meyering@lucent.com> |
5886 | |
5887 * closeout.h: Make idempotent, to avoid some obscure warnings. | |
5888 | |
3010 | 5889 2000-12-01 Paul Eggert <eggert@twinsun.com> |
5890 | |
3195 | 5891 * memrchr.c: Include <config.h> before any system include file. |
3010 | 5892 |
3005 | 5893 2000-11-29 Paul Eggert <eggert@twinsun.com> |
5894 | |
3195 | 5895 * dirname.c (dir_name_r): Fix typo: int -> size_t. |
3005 | 5896 |
2998 | 5897 2000-11-26 Jim Meyering <meyering@lucent.com> |
5898 | |
5899 * memcoll.c: Include sys/types.h. From Werner Almesberger. | |
5900 | |
2994 | 5901 2000-11-22 Paul Eggert <eggert@twinsun.com> |
5902 | |
3195 | 5903 * strftime.c (my_strftime): Do not invoke mbrlen with a |
2994 | 5904 size of (size_t) -1; it's not portable. |
5905 | |
2992 | 5906 2000-11-17 Akim Demaille <akim@epita.fr> |
5907 | |
3195 | 5908 * obstack.h: Formatting changes. |
2992 | 5909 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would |
5910 prevent type checking. | |
5911 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't | |
5912 cast the value to (void *): assigning a `foo *' to a `void *' | |
5913 variable is valid. | |
5914 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int. | |
5915 | |
2989 | 5916 2000-11-17 Jim Meyering <meyering@lucent.com> |
5917 | |
5918 * strstr.c: Update from GNU libc. | |
5919 | |
2987 | 5920 2000-11-16 Jim Meyering <meyering@lucent.com> |
5921 | |
5922 * strverscmp.c: Incorporate weak-alias-related changes from glibc. | |
5923 | |
5924 2000-11-11 Jim Meyering <meyering@lucent.com> | |
5925 | |
5926 * error.c: Add a couple #includes, merging from GNU libc version. | |
5927 | |
2980 | 5928 2000-11-10 Jim Meyering <meyering@lucent.com> |
5929 | |
5930 * obstack.h: Update from GNU libc. | |
5931 * obstack.c: Likewise. | |
5932 | |
2967 | 5933 2000-11-06 Paul Eggert <eggert@twinsun.com> |
5934 | |
2981 | 5935 * getusershell.c (setusershell): Use rewind rather than |
2967 | 5936 fseek/fseeko, to avoid configuration hassles with fseeko. |
5937 Don't bother opening SHELLS_FILE if shellstream is NULL; | |
5938 it's not necessary. | |
5939 | |
2965 | 5940 2000-11-05 Jim Meyering <meyering@lucent.com> |
5941 | |
5942 * makepath.h (make_dir): Declare. | |
5943 * makepath.c (make_dir): Remove `static' attribute. | |
5944 Tweak a comment. | |
5945 | |
2957 | 5946 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr> |
5947 | |
5948 * hash.c (hash_get_next): Fix a thinko: when ENTRY is the | |
5949 last one in a bucket, advance to the next bucket. | |
5950 | |
2955 | 5951 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg> |
5952 | |
2981 | 5953 * fnmatch.c: Do not comment out all the code if we are using |
2955 | 5954 the GNU C library, because in some cases we are replacing buggy |
5955 code in the GNU C library itself. | |
5956 | |
2952 | 5957 2000-10-30 Paul Eggert <eggert@twinsun.com> |
5958 | |
2981 | 5959 * error.h, getline.h, modechange.h: |
2952 | 5960 Remove "2000" from Copyright line, as the file hasn't been |
5961 changed this year other than in the copyright notice. | |
5962 | |
2981 | 5963 * xalloc.h: Add "2000" to Copyright line, as this file |
2952 | 5964 was changed this year. |
5965 | |
2949 | 5966 2000-10-30 Paul Eggert <eggert@twinsun.com> |
5967 | |
2981 | 5968 * fnmatch.c (FOLD): Do not assume that characters are unsigned. |
2949 | 5969 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs, |
5970 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero. | |
5971 | |
2941 | 5972 2000-10-29 Greg Louis <glouis@dynamicro.on.ca> |
5973 | |
5974 * regex.h (__restrict_arr): Move definition out of #ifndef block. | |
5975 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but | |
5976 doesn't define __restrict_arr. | |
5977 | |
2939 | 5978 2000-10-29 Jim Meyering <meyering@lucent.com> |
5979 | |
5980 * xstat.in: Fix grammar in comment. | |
5981 | |
2929 | 5982 2000-10-28 Jim Meyering <meyering@lucent.com> |
5983 | |
2933 | 5984 * memchr.c: Update from libc. |
5985 Adjust for portability: | |
5986 [HAVE_STDLIB_H]: Include stdlib.h. | |
5987 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h. | |
5988 Undef __memchr, too. | |
5989 [!weak_alias]: Define __memchr to memchr. | |
5990 | |
2931 | 5991 * regex.c: Update from libc. |
5992 * regex.h: Likewise. | |
5993 * getopt1.c: Likewise. | |
2935 | 5994 * memcmp.c: Likewise. |
2931 | 5995 |
2942
c5e4ce044bd7
fix typo: s/fseek0/fseeko/
Jim Meyering <jim@meyering.net>
parents:
2941
diff
changeset
|
5996 * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko. |
2967 | 5997 Avoid using fseek, when possible -- it's broken by design. |
2929 | 5998 Patch by Ulrich Drepper. |
5999 | |
2924 | 6000 2000-10-26 Jim Meyering <meyering@lucent.com> |
6001 | |
6002 * strftime.c: Update from libc. | |
6003 | |
2918 | 6004 2000-10-25 Jim Meyering <meyering@lucent.com> |
6005 | |
6006 * obstack.c: Update from libc. | |
6007 | |
2911 | 6008 2000-10-23 Jim Meyering <meyering@lucent.com> |
6009 | |
6010 * hard-locale.c (hard_locale): Revert last change -- it was simply | |
6011 wrong. That set_locale call must not have any side effects. | |
6012 From Paul Eggert. | |
6013 | |
2904 | 6014 2000-10-22 Jim Meyering <meyering@lucent.com> |
6015 | |
2907 | 6016 * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC. |
6017 [CYCLIC]: Remove now-unused definition. | |
6018 | |
2904 | 6019 * save-cwd.c (O_DIRECTORY): Define, if needed. |
6020 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".". | |
6021 Suggestion from Ulrich Drepper. | |
6022 | |
2893 | 6023 2000-10-21 Jim Meyering <meyering@lucent.com> |
6024 | |
2920 | 6025 * dirname.c (dir_name_r): New function, factored out of dir_name. |
6026 (dir_name): Use dir_name_r. | |
6027 * dirname.h (dir_name_r): Declare it. | |
6028 | |
6029 2000-10-21 Jim Meyering <meyering@lucent.com> | |
6030 | |
2898 | 6031 * dirname.c (memrchr): Declare if necessary. |
6032 (dir_name): Remove the restriction that there be no | |
6033 trailing slashes. Now, this code skips past them, effectively | |
6034 ignoring them. | |
6035 [TEST_DIRNAME] (main): New unit tests. | |
6036 | |
2893 | 6037 * memrchr.c: New file from GNU libc. |
6038 Undef __memrchr, too. | |
6039 [!weak_alias]: Define __memrchr to memrchr. | |
6040 Guard weak_alias use with `#ifdef weak_alias'. | |
6041 | |
2886 | 6042 2000-10-17 Jim Meyering <meyering@lucent.com> |
6043 | |
2891 | 6044 * quote.h (PARAMS): Define and use. |
2890 | 6045 Reported by Akim Demaille. |
2889 | 6046 |
2886 | 6047 * getopt.c: Update from libc. |
6048 | |
2884 | 6049 2000-10-16 Jim Meyering <meyering@lucent.com> |
6050 | |
6051 * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale. | |
6052 From Jan Fedak. | |
6053 | |
2880 | 6054 2000-09-25 Jim Meyering <meyering@lucent.com> |
6055 | |
6056 * md5.h (rol): Define (from GnuPG). | |
6057 | |
6058 * sha.c: Give credit (GnuPG) where due. | |
6059 (M): Use rol rather than open-coding it. | |
6060 Add a FIXME comment. | |
6061 | |
2876 | 6062 2000-09-21 Jim Meyering <meyering@lucent.com> |
6063 | |
6064 * userspec.c (parse_user_spec): Remove debugging printf I'd added. | |
2877 | 6065 Reported by Michael Stone. |
2876 | 6066 |
2874 | 6067 2000-09-20 Jim Meyering <meyering@lucent.com> |
6068 | |
6069 * Makefile.am (libfetish_a_SOURCES): Add sha.c. | |
6070 (noinst_HEADERS): Add sha.h. | |
6071 Based on code from Scott G. Miller and from GnuPG. | |
6072 | |
2861 | 6073 2000-09-15 Jim Meyering <meyering@lucent.com> |
6074 | |
6075 * regex.c: Update from libc. | |
6076 | |
2859 | 6077 2000-09-10 Jim Meyering <meyering@lucent.com> |
6078 | |
6079 * getopt.c (_getopt_internal): Update from glibc. | |
6080 | |
2855 | 6081 2000-09-09 Jim Meyering <meyering@lucent.com> |
6082 | |
2857 | 6083 * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't |
6084 think it should be used as a general replacement for isascii. | |
6085 * fnmatch.c: Likewise. | |
6086 * mbswidth.c: Likewise | |
6087 * regex.c: Likewise. | |
6088 | |
2855 | 6089 Don't use atoi. |
6090 * userspec.c: Include sys/param.h and limits.h. | |
6091 Include xstrtol.h. | |
6092 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define. | |
6093 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define. | |
6094 (parse_user_spec): Use xstrtoul, not atoi when converting numeric | |
6095 UID, GID. Check range. | |
6096 | |
2853 | 6097 2000-09-06 Jim Meyering <meyering@lucent.com> |
6098 | |
6099 * getopt.c (_getopt_internal): Update from glibc. | |
6100 | |
2846 | 6101 2000-08-30 Jim Meyering <meyering@lucent.com> |
6102 | |
6103 * strftime.c: Merge in changes from GNU libc. | |
6104 | |
2837 | 6105 2000-08-26 Jim Meyering <meyering@lucent.com> |
6106 | |
2839 | 6107 * closeout.c: Include "__fpending.h". |
6108 (close_stdout_status): Return right away if there's nothing to flush. | |
6109 | |
2837 | 6110 * Makefile.am (noinst_HEADERS): Add __fpending.h. |
6111 * __fpending.c: New file. | |
6112 * __fpending.h: New file. | |
6113 | |
2815 | 6114 2000-08-07 Paul Eggert <eggert@twinsun.com> |
6115 | |
6116 Standardize on "memory exhausted" instead of "Memory exhausted" | |
6117 or "virtual memory exhausted". | |
6118 * obstack.c (print_and_abort): Use "memory exhausted", not | |
6119 "virtual memory exhausted". | |
6120 * same.c (same_name): Invoke xalloc_die instead of printing | |
6121 our own message. | |
6122 * userspec.c (parse_user_spec): Likewise. | |
6123 * bumpalloc.h: comment fix | |
6124 * same.c, userspec.c: Include xalloc.h. | |
6125 | |
6126 * xalloc.h (xalloc_msg_memory_exhausted): Now char const[], | |
6127 not char *const and pointing to a constant array. | |
6128 * xmalloc.c (xalloc_msg_memory_exhausted): Likewise. | |
6129 (xrealloc): Comment fix. | |
6130 | |
6131 * userspec.c (parse_user_spec): | |
6132 Don't translate a message until just before returning, | |
6133 to avoid unnecessary translation. | |
6134 | |
2808 | 6135 2000-08-07 Jim Meyering <meyering@lucent.com> |
6136 | |
6137 * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h, | |
6138 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c, | |
6139 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h, | |
6140 getgroups.c, gethostname.c, getopt.h, group-member.c, | |
6141 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c, | |
6142 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c, | |
6143 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h, | |
6144 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c, | |
6145 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c, | |
6146 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c, | |
6147 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c, | |
6148 yesno.c: Back out Copyright date changes for each file with no change | |
6149 this year. This eases coordination with other programs using the same | |
6150 source code modules. From Paul Eggert. | |
6151 | |
2804 | 6152 2000-08-03 Greg McGary <greg@mcgary.org> |
6153 | |
6154 * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, | |
6155 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros. | |
6156 (EXTEND_BUFFER): Use them. | |
6157 | |
2802 | 6158 2000-08-01 Jim Meyering <meyering@lucent.com> |
6159 | |
6160 * dirname.c (ISSLASH): Define. | |
6161 (BACKSLASH_IS_PATH_SEPARATOR): Define. | |
6162 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which | |
6163 both `\' and `/' may be use as path separators. | |
6164 Based on a patch from Prashant TR. | |
6165 | |
2800 | 6166 2000-07-31 Paul Eggert <eggert@twinsun.com> |
6167 | |
2815 | 6168 * quotearg.c (quotearg_n_options): Don't make the initial |
2800 | 6169 slot vector a constant, since it might get modified. |
6170 | |
2794 | 6171 2000-07-31 Jim Meyering <meyering@lucent.com> |
6172 | |
6173 * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'. | |
6174 * obstack.c (print_and_abort): Likewise. | |
6175 | |
2796 | 6176 2000-07-30 Paul Eggert <eggert@twinsun.com> |
6177 | |
6178 * quotearg.c (quotearg_n_options): Preallocate a slot 0 | |
6179 buffer, so that the caller can always quote one small | |
6180 component of a "memory exhausted" message in slot 0. | |
6181 From a suggestion by Jim Meyering. | |
6182 | |
2791 | 6183 2000-07-30 Jim Meyering <meyering@lucent.com> |
6184 | |
6185 * makepath.c (make_path): Quote the other instance, too. | |
6186 | |
6187 * quotearg.c (N_STATIC_SLOTVECS): Define. | |
6188 (STATIC_BUF_SIZE): Define. | |
6189 (quotearg_n_options): Use only statically allocated storage when | |
6190 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller | |
6191 than STATIC_BUF_SIZE. | |
6192 | |
2782 | 6193 2000-07-29 Jim Meyering <meyering@lucent.com> |
6194 | |
2788 | 6195 * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS. |
6196 * dirname.c (dir_name): Likewise. | |
6197 | |
6198 * basename.c (base_name): Use ISSLASH rather than comparing against `/'. | |
6199 | |
2782 | 6200 * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const. |
2785 | 6201 (dir_name): Assert that there are no trailing slashes. |
2782 | 6202 |
2780 | 6203 2000-07-18 Bruno Haible <haible@clisp.cons.org> |
6204 | |
6205 * mbswidth.h (mbswidth): Add a flags argument. | |
6206 (mbswidth): New declaration. | |
6207 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros. | |
6208 * mbswidth.c (mbswidth): Add a flags argument. | |
6209 (mbsnwidth): New function. | |
6210 | |
2776 | 6211 2000-07-24 Jim Meyering <meyering@lucent.com> |
6212 | |
6213 * mbswidth.c: Remove useless #else. From Bruno Haible. | |
6214 | |
2773 | 6215 2000-07-23 Paul Eggert <eggert@twinsun.com> |
6216 | |
6217 * mbswidth.c (_XOPEN_SOURCE): | |
6218 Don't define; this causes problems on Solaris 7. | |
6219 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare. | |
6220 | |
2771 | 6221 2000-07-23 Paul Eggert <eggert@twinsun.com> |
6222 | |
2815 | 6223 * quotearg.c: |
2771 | 6224 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), |
6225 so that mbstate_t is always defined. | |
6226 | |
6227 Do not inspect MB_LEN_MAX, since it's incorrectly defined to | |
6228 be 1 in at least one GCC installation, and this configuration | |
6229 error is likely to be common. Ignoring MB_LEN_MAX hurts | |
6230 performance on hosts that have mbrtowc but have only unibyte | |
6231 locales, but I assume these hosts are rare. | |
6232 | |
2769 | 6233 2000-07-23 Paul Eggert <eggert@twinsun.com> |
6234 | |
2815 | 6235 * quotearg.c: Streamline by invoking multibyte code only if needed. |
2769 | 6236 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX. |
6237 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX). | |
6238 (quotearg_buffer_restyled): If a unibyte locale, don't bother to | |
6239 invoke multibyte primitives. | |
6240 | |
2764 | 6241 2000-07-23 Jim Meyering <meyering@lucent.com> |
6242 | |
6243 * basename.c (base_name): Add an assertion. | |
6244 | |
2762 | 6245 2000-07-15 Bruno Haible <clisp.cons.org> |
6246 | |
6247 * quotearg.c: When the system forces us to redefine mbstate_t, | |
6248 shadow its mbsinit function. | |
6249 | |
2755 | 6250 2000-07-16 Bruno Haible <haible@clisp.cons.org> |
6251 | |
6252 * mbswidth.h: New file. | |
6253 * mbswidth.c: New file. | |
2759 | 6254 * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c. |
2769 | 6255 (noinst_HEADERS): Add mbswidth.h. |
2755 | 6256 |
2754 | 6257 2000-07-17 Bruno Haible <haible@clisp.cons.org> |
6258 | |
6259 * config.charset: Add support for FreeBSD. Improve support for HP-UX | |
6260 and IRIX 6. | |
6261 | |
2747 | 6262 2000-07-15 Jim Meyering <meyering@lucent.com> |
6263 | |
2751 | 6264 * makepath.c: Include quote.h. |
6265 (make_path): Convert "`%s'" in format strings to "%s", and wrap each | |
6266 corresponding argument in a `quote (...)' call. | |
6267 Give better diagnostics. | |
6268 | |
2749 | 6269 * Makefile.am (libfetish_a_SOURCES): Add quote.c. |
6270 (noinst_HEADERS): Add quote.h. | |
6271 | |
2747 | 6272 * quote.c (quote, quote_n): New file. Two functions taken verbatim |
6273 from tar's src/misc.c. | |
6274 * quote.h: New file. Prototypes for same. | |
6275 | |
2740 | 6276 2000-07-10 Paul Eggert <eggert@twinsun.com> |
6277 | |
6278 From a suggestion by Bruno Haible. | |
6279 * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition. | |
6280 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT, | |
6281 to decide whether to define the BeOS workaround macro; | |
6282 this adjusts to the change to AC_MBSTATE_T. | |
6283 | |
2738 | 6284 2000-07-13 Paul Eggert <eggert@twinsun.com> |
6285 | |
6286 * quotearg.h (enum quoting style): New enum clocale_quoting_style. | |
6287 | |
3206 | 6288 * quotearg.c (quoting_style_args, quoting_style_vals, |
2738 | 6289 quotearg_buffer_restyled): Add support for |
6290 clocale_quoting_style. Undo previous change to | |
6291 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}" | |
6292 and "{RIGHT QUOTATION MARK}" msgids. | |
6293 | |
2723 | 6294 2000-07-05 Paul Eggert <eggert@twinsun.com> |
6295 | |
6296 The old behavior of quoting `like this' doesn't look good with | |
6297 newer, ISO-style fonts. See: | |
6298 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |
6299 | |
6300 Instead, quote "like this" by default. Let the translator | |
6301 tailor the locale-specific quoting behavior by providing | |
6302 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}. | |
6303 | |
6304 * quotearg.c (N_): New macro. | |
6305 (gettext_default): New function. | |
6306 (quotearg_buffer_restyled): Use | |
6307 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and | |
6308 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote. | |
6309 | |
2719 | 6310 2000-07-09 Jim Meyering <meyering@lucent.com> |
6311 | |
6312 * Most files: Update copyright dates to include 2000. | |
6313 | |
2721 | 6314 2000-07-08 Jim Meyering <meyering@lucent.com> |
6315 | |
6316 * xgethostname.c (ENAMETOOLONG): Define to an unlikely value | |
6317 if not defined. | |
6318 (xgethostname): Remove now-unnecessary #ifdef. | |
6319 Move declaration of `err' into loop where it's used. | |
6320 | |
6321 2000-07-05 Bruno Haible <haible@clisp.cons.org> | |
6322 | |
4474
f1650b772bb6
Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4473
diff
changeset
|
6323 * xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug |
2721 | 6324 by allocating a larger buffer. Test the gethostname return value for |
6325 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname | |
6326 returns an error and ENAMETOOLONG isn't defined. | |
6327 | |
2710 | 6328 2000-07-05 Paul Eggert <eggert@twinsun.com> |
6329 and Bruno Haible <haible@clisp.cons.org> | |
6330 | |
6331 * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't. | |
6332 | |
2708 | 6333 2000-07-05 Bruno Haible <haible@clisp.cons.org> |
6334 | |
6335 * quotearg.c (struct quoting_options): Simplify quote_these_too | |
6336 dimension. | |
6337 | |
2706 | 6338 2000-07-03 Jim Meyering <meyering@lucent.com> |
6339 | |
6340 * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen. | |
6341 Reported by Bruno Haible. | |
6342 | |
2704 | 6343 2000-07-04 Jim Meyering <meyering@lucent.com> |
6344 | |
6345 * quotearg.c: Make inclusion of <wchar.h> independent of whether | |
6346 HAVE_MBRTOWC is set. Required at least for irix-5.6, which | |
6347 lacks mbrtowc. | |
6348 | |
2693 | 6349 2000-07-03 Paul Eggert <eggert@twinsun.com> |
6350 and Bruno Haible <haible@clisp.cons.org> | |
6351 | |
2815 | 6352 * quotearg.c (mbrtowc): |
2693 | 6353 Assign to *pwc, and return 1 only if result is nonzero. |
6354 (iswprint): Use ISPRINT when substituting our own mbrtowc. | |
6355 | |
2697 | 6356 2000-07-03 Jim Meyering <meyering@lucent.com> |
6357 | |
6358 * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H. | |
6359 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20. | |
6360 From Bob Proulx. | |
6361 | |
2691 | 6362 2000-07-02 Jim Meyering <meyering@lucent.com> |
6363 | |
6364 * quotearg.c (mbstate_t): Don't define here. | |
6365 | |
2688 | 6366 2000-07-02 Jim Meyering <meyering@lucent.com> |
6367 | |
6368 * nanosleep.c (SIGCONT): Define if not already defined. | |
6369 | |
2678 | 6370 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
6371 | |
6372 * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV, | |
6373 per change in ../m4/ls-mntd-fs.m4. | |
6374 (read_filesystem_list): Ignore symbolic links. | |
6375 | |
2668 | 6376 2000-06-29 Jim Meyering <meyering@lucent.com> |
6377 | |
2672 | 6378 * same.c: Include <string.h> or <strings.h>, as appropriate, |
6379 for declaration of strcmp. | |
6380 | |
2670 | 6381 * long-options.c: Include <stdlib.h>, for declaration of exit. |
6382 | |
2668 | 6383 * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: |
6384 Avoid warning by casting result to `char *' to remove `const'. | |
6385 | |
2662 | 6386 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
6387 | |
6388 * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c. | |
6389 | |
2659 | 6390 2000-06-26 Paul Eggert <eggert@twinsun.com> |
6391 | |
6392 savedir now sets errno on failure and invokes xmalloc to get memory. | |
6393 Fix a couple of other minor bugs while we're at it. | |
6394 | |
6395 * savedir.c (<unistd.h>): Do not include; there's no need. | |
6396 (NAMLEN): Remove macro. | |
6397 (malloc, realloc): Remove decls. | |
6398 (stpcpy): Likewise. | |
6399 ("xalloc.h"): Include. | |
6400 (NAME_SIZE_DEFAULT): New macro. | |
6401 (savedir): Use xmalloc / xrealloc to allocate memory. | |
6402 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero. | |
6403 Skip "" directory entries. | |
6404 Use strlen to calculate directory entry length, since the old method | |
6405 is rarely used these days and isn't worth supporting. | |
6406 Don't use a pointer after freeing it. | |
6407 Check for integer overflow when calculating allocation size. | |
6408 Use memcpy to copy entries, instead of stpcpy. | |
6409 Set errno properly when returning NULL. | |
6410 Check for readdir error. | |
6411 | |
2657 | 6412 2000-06-26 Jim Meyering <meyering@lucent.com> |
6413 | |
6414 * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort. | |
6415 | |
2655 | 6416 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
6417 | |
6418 * getusershell.c (xmalloc, xrealloc): Remove functions. | |
6419 Include xalloc.h. | |
6420 Don't include <stdlib.h>. Don't declare malloc, realloc. | |
6421 | |
2651 | 6422 2000-06-23 Bruno Haible <haible@clisp.cons.org> |
6423 | |
6424 * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency. | |
6425 | |
2644 | 6426 2000-06-24 Jim Meyering <meyering@lucent.com> |
6427 | |
6428 * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r. | |
6429 | |
2636 | 6430 2000-06-21 Jim Meyering <meyering@lucent.com> |
6431 | |
6432 * getpass.c: New file, from Bruno Haible. Required for BeOS. | |
6433 | |
2640 | 6434 2000-06-19 Paul Eggert <eggert@twinsun.com> |
6435 | |
6436 * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5. | |
6437 (mbrtowc, mbstate_t): Define substitutes if | |
6438 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT. | |
6439 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT, | |
6440 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H). | |
6441 | |
2628 | 6442 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
6443 | |
6444 * xgetcwd.c (xgetcwd): If the required pathname length is smaller | |
6445 than 1024, return a memory chunk of least possible size, instead | |
6446 of size PATH_MAX + 2. In the loop, increment the size proportionally. | |
6447 Use free/xmalloc instead of xrealloc to avoid copying for very long | |
6448 paths. | |
6449 | |
2626 | 6450 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
6451 | |
6452 * canon-host.c (canon_host): Use malloc and memcpy to copy an | |
6453 address, not strdup. Include <stdlib.h> and don't declare free(). | |
6454 | |
2624 | 6455 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
6456 | |
6457 * path-concat.c (path_concat): Don't access dir[-1] if dir is | |
6458 the empty string. | |
6459 | |
2621 | 6460 2000-06-21 Jim Meyering <meyering@lucent.com> |
6461 | |
6462 * Makefile.am (libfetish_a_SOURCES): Add getstr.c. | |
6463 (noinst_HEADERS): Add getstr.h. | |
6464 | |
6465 * getline.c (getstr): Move into a separate file. | |
6466 * getstr.c (getstr): New file, extracted from getline.c, with | |
6467 the following changes: new parameter, delim2; both delim[12] | |
6468 parameters have type `int', not `char'. The latter would lose | |
6469 with 8-bit delimiters. | |
6470 * getstr.h: New file. | |
6471 | |
2611 | 6472 2000-06-19 Jim Meyering <meyering@lucent.com> |
6473 | |
6474 * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define. | |
6475 | |
2602 | 6476 2000-06-18 Jim Meyering <meyering@lucent.com> |
6477 | |
2608 | 6478 * mkdir.c: Remove file, due mainly to copyright incompatibility. |
6479 Besides, these days every porting target provides a mkdir function. | |
6480 | |
2606 | 6481 * strnlen.c: Include memory.h, string.h, and/or strings.h as needed. |
6482 (this snippet comes from src/system.h). | |
6483 | |
2594 | 6484 2000-06-15 Paul Eggert <eggert@twinsun.com> |
6485 | |
2640 | 6486 * human.c (adjust_value): New function. |
2594 | 6487 (human_readable_inexact): Apply rounding style even when |
6488 printing approximate values. | |
6489 | |
2591 | 6490 2000-06-14 Paul Eggert <eggert@twinsun.com> |
6491 | |
2640 | 6492 * human.c (human_readable_inexact): Allow an input block |
2591 | 6493 size that is not a multiple of the output block size, and vice versa. |
2592 | 6494 Reported by Piergiorgio Sartor. |
2591 | 6495 |
2589 | 6496 2000-06-14 Paul Eggert <eggert@twinsun.com> |
6497 | |
2640 | 6498 * getdate.y (get_date): Apply relative times after time |
2589 | 6499 zone indicator, not before. Reported by Todd A. Jacobs. |
6500 | |
2585 | 6501 2000-06-13 Jim Meyering <meyering@lucent.com> |
6502 | |
2591 | 6503 * Makefile.am (all-local): Depend on lstat.c and stat.c. |
6504 | |
2585 | 6505 * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c. |
6506 | |
2583 | 6507 2000-06-12 Paul Eggert <eggert@twinsun.com> |
6508 | |
6509 * xstat.in: Include <stdlib.h> in lstat, to declare "free". | |
6510 | |
2575 | 6511 2000-06-04 Paul Eggert <eggert@twinsun.com> |
6512 | |
2583 | 6513 * strnlen.c: Include <config.h> if HAVE_CONFIG_H. |
2575 | 6514 |
2573 | 6515 2000-06-04 Jim Meyering <meyering@lucent.com> |
6516 | |
6517 * 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
|
6518 SunOS 4.1.4 for which gid_t is an unsigned type. |
2573 | 6519 |
2569 | 6520 2000-06-03 Jim Meyering <meyering@lucent.com> |
6521 | |
6522 * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr. | |
6523 | |
2559 | 6524 2000-05-26 Bruno Haible <haible@clisp.cons.org> |
6525 | |
6526 * Makefile.am (install-exec-local): On systems with glibc-2.1 or | |
6527 newer, don't install charset.alias. | |
6528 * config.charset: Change the Linux/glibc rules so they become empty | |
6529 on glibc-2.1 or newer. | |
6530 | |
2554 | 6531 2000-06-02 Jim Meyering <meyering@lucent.com> |
6532 | |
6533 * mountlist.c: Back out last change. Instead, do this... | |
6534 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy | |
6535 member using the same `ignore'-testing code. | |
6536 * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored | |
6537 fs_type strings. | |
6538 From Mark D. Roth. | |
6539 | |
2549 | 6540 2000-05-29 Jim Meyering <meyering@lucent.com> |
6541 | |
6542 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts | |
6543 with the `ignore' attribute. Based on a patch from Mark D. Roth. | |
6544 | |
2548 | 6545 2000-05-22 Jim Meyering <meyering@lucent.com> |
6546 | |
6547 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block. | |
6548 | |
2525 | 6549 2000-05-18 Jim Meyering <meyering@lucent.com> |
6550 | |
6551 * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list | |
6552 back, too, since it may have been modified by allocate_entry. | |
6553 (hash_delete): Rewrite to use neither the assignment operator | |
6554 nor the comma operator in an if-expression. | |
6555 | |
2523 | 6556 2000-05-15 Paul Eggert <eggert@twinsun.com> |
6557 | |
2583 | 6558 * closeout.c: |
2523 | 6559 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO): |
6560 Remove; no longer needed. | |
6561 "quotearg.h": Add include. | |
6562 (file_name): Do not bother to explicitly initialize to NULL; it's less | |
6563 efficient on some hosts. | |
6564 (close_stdout_status): Remove test as to whether stdout was already | |
6565 closed; it breaks for the case "echo x | sort >&-". | |
6566 Quote file name colons. | |
6567 Do not assume that _("write error") lacks format strings. | |
6568 | |
2518 | 6569 2000-05-15 Jim Meyering <meyering@lucent.com> |
6570 | |
6571 * version-etc.c (version_etc_copyright): Update the copyright string | |
6572 used in all --version output. | |
6573 | |
2521 | 6574 2000-05-14 Jim Meyering <meyering@lucent.com> |
6575 | |
6576 * closeout.c (close_stdout_set_file_name): New function. | |
6577 (close_stdout_status): Use new file-scoped global. | |
6578 Return right away if fstat says the stdout file descriptor is invalid. | |
6579 * closeout.h (close_stdout_set_file_name): Declare. | |
6580 | |
2515 | 6581 2000-05-10 Jim Meyering <meyering@lucent.com> |
6582 | |
6583 * closeout.c [default_exit_status]: New file-scoped variable. | |
6584 (close_stdout_set_status): New function. | |
6585 * closeout.h (close_stdout_set_status): Declare. | |
6586 | |
2508 | 6587 2000-05-08 Jim Meyering <meyering@lucent.com> |
6588 | |
6589 * long-options.c: Don't include closeout.h. | |
6590 (parse_long_options): Don't call close_stdout for --version. | |
6591 | |
2499 | 6592 2000-05-06 Jim Meyering <meyering@lucent.com> |
6593 | |
2504 | 6594 * strnlen.c: Undefine __strnlen and strnlen. |
6595 [!weak_alias]: Define __strnlen to strnlen. | |
6596 | |
2499 | 6597 * atexit.c: New file, from libiberty. |
6598 | |
6599 2000-05-06 Jim Meyering <meyering@lucent.com> | |
6600 | |
6601 * closeout.c (close_stdout_status): Also check for errors on the | |
6602 stderr stream. | |
6603 | |
2488 | 6604 2000-05-05 Bruno Haible <haible@clisp.cons.org> |
6605 | |
6606 * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy | |
6607 instead of xmalloc, xrealloc, path_concat. | |
6608 (locale_charset): Treat empty environment variables as absent. | |
6609 (DIRECTORY_SEPARATOR, ISSLASH): New macros. | |
6610 | |
2467 | 6611 2000-05-04 Jim Meyering <meyering@lucent.com> |
6612 | |
6613 * getopt.c: Update from glibc. | |
2478 | 6614 * obstack.c: Likewise. |
6615 * obstack.h: Likewise. | |
2473 | 6616 * regex.c: Likewise. NB: K&R compiler support is dropped for this file |
6617 | |
6618 * regex.h: Likewise. | |
2470 | 6619 * strndup.c: Likewise. |
6620 * strnlen.c: New file, from glibc. | |
2467 | 6621 |
2461 | 6622 2000-05-01 Jim Meyering <meyering@lucent.com> |
6623 | |
6624 * full-write.c (full_write): Remove `FIXME' part of comment. | |
6625 | |
2447 | 6626 2000-04-29 Jim Meyering <meyering@lucent.com> |
6627 | |
6628 * path-concat.c: Declare strdup only if it's not defined. | |
6629 * canon-host.c: Likewise. | |
6630 | |
2445 | 6631 2000-04-28 Jim Meyering <meyering@lucent.com> |
6632 | |
6633 * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid | |
6634 redefinition warning on some systems (HPUX). Otherwise, regex.h is | |
6635 included first, then limits.h is included by locale.h by libintl.h. | |
6636 From John David Anglin. | |
6637 | |
2440 | 6638 2000-04-25 Jim Meyering <meyering@lucent.com> |
6639 | |
6640 * makepath.c (S_IRWXUGO): Define. | |
6641 (make_path): Always perform explicit chmod if MODE specifies any | |
2442 | 6642 of the `special' permission bits. Prompted by a bug report against |
6643 install from Mate Wierdl and Joost van Baal. | |
2440 | 6644 |
2435 | 6645 2000-04-18 Jim Meyering <meyering@lucent.com> |
6646 | |
2440 | 6647 * README: New file. |
6648 | |
2435 | 6649 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define |
6650 getpagesize. For BeOS. Based on a patch from Bruno Haible. | |
6651 | |
2431 | 6652 2000-04-17 Jim Meyering <meyering@lucent.com> |
6653 | |
6654 * strftime.c (my_strftime) [strftime]: Declare strftime here, since | |
6655 the definition of it to rpl_strftime also defined-away the system's | |
6656 declaration. | |
6657 | |
2427 | 6658 2000-04-15 Jim Meyering <meyering@lucent.com> |
6659 | |
6660 Use `C' to denote so-called `contiguous' files, the same way | |
6661 that tar does. | |
6662 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. | |
6663 (ftypelet): Use S_ISCTG. | |
6664 From Michael Deutschmann. | |
6665 | |
6666 2000-04-14 Jim Meyering <meyering@lucent.com> | |
6667 | |
6668 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime. | |
6669 | |
2416 | 6670 2000-04-08 Jim Meyering <meyering@lucent.com> |
6671 | |
6672 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3 | |
6673 names don't conflict. Reported by Eli Zaretskii. | |
6674 | |
2413 | 6675 2000-03-28 Bruno Haible <haible@clisp.cons.org> |
6676 | |
6677 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv | |
2431 | 6678 bug. Deal with the different error behavior of Irix iconv. |
2413 | 6679 |
6680 2000-04-07 Jim Meyering <meyering@lucent.com> | |
6681 | |
6682 * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h, | |
6683 to work around system header problems on AIX 3.2.5. From Bruno Haible. | |
6684 | |
2406 | 6685 2000-04-05 Jim Meyering <meyering@lucent.com> |
6686 | |
6687 Portability tweaks required for ultrix4.3. | |
6688 * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent. | |
6689 * readutmp.c: Include sys/types.h before sys/stat.h. | |
6690 * canon-host.c: Declare strdup. | |
6691 * path-concat.c: Likewise. | |
6692 From John David Anglin. | |
6693 | |
2397 | 6694 2000-04-04 Jim Meyering <meyering@lucent.com> |
6695 | |
6696 Be more DOS 8.3-friendly. | |
6697 * ref-add.sin: Renamed from ref-add.sed.in. | |
6698 * ref-del.sin: Renamed from ref-del.sed.in. | |
6699 * Makefile.am: Reflect renaming. | |
6700 Reported by Eli Zaretskii. | |
6701 | |
6702 Use a temporary file name that won't clash with `charset.alias' | |
6703 in the DOS 8.3 name space. | |
6704 * Makefile.am (charset_tmp): Define. | |
6705 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t. | |
6706 (uninstall-local): Likewise. | |
6707 Reported by Eli Zaretskii. | |
6708 | |
2379 | 6709 2000-03-29 Paul Eggert <eggert@twinsun.com> |
6710 | |
6711 * time/strftime.c (my_strftime): Make sure we call the system | |
6712 strftime, not ourselves, when invoking the underlying strftime. | |
6713 | |
2364 | 6714 2000-03-24 Jim Meyering <meyering@lucent.com> |
6715 | |
6716 * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in. | |
6717 (charset_alias): Define. | |
6718 (install-exec-local): Factor out common code. | |
6719 (uninstall-local): Split lines longer than 80. | |
6720 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead) | |
6721 (SUFFIXES): Define. | |
6722 (.sed.in.sed): New rule. Don't redirect directly to $@. | |
6723 (CLEANFILES): Add ref-add.sed and ref-del.sed. | |
6724 | |
6725 2000-03-19 Bruno Haible <haible@clisp.cons.org> | |
6726 | |
6727 * config.charset: Output a line containing "Packages using this file". | |
6728 * ref-add.sed.in, ref-del.sed.in: New files. | |
6729 * Makefile.am (install-exec-local, uninstall-local, ref-add.sed, | |
6730 ref-del.sed): New rules. | |
6731 | |
2353 | 6732 2000-03-17 Jim Meyering <meyering@lucent.com> |
6733 | |
6734 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H. | |
6735 Otherwise, include <strings.h> | |
6736 | |
6737 2000-03-17 Bruno Haible <haible@clisp.cons.org> | |
6738 | |
6739 * unicodeio.c (utf8_wctomb): New function. | |
6740 (print_unicode_char): Pass the Unicode character to iconv in UTF-8 | |
6741 format instead of in UCS-4 with platform dependent endianness. | |
6742 | |
2343 | 6743 2000-03-07 Paul Eggert <eggert@twinsun.com> |
6744 | |
2583 | 6745 * savedir.c (savedir): Work even if directory size is |
2343 | 6746 negative; this can happen with some screwy NFS configurations. |
6747 | |
2348 | 6748 2000-03-06 Jim Meyering <meyering@lucent.com> |
6749 | |
6750 * localcharset.c (get_charset_aliases): Don't try to free file_name | |
6751 if it's NULL (because we ran out of memory). From Bruno Haible. | |
6752 | |
2337 | 6753 2000-03-05 Jim Meyering <meyering@lucent.com> |
6754 | |
2339 | 6755 * localcharset.c ("path-concat.h"): Include. |
6756 (get_charset_aliases): Use path_concat instead of ANSI string | |
6757 concatenation. | |
6758 | |
2337 | 6759 * unicodeio.h (PARAMS): Define. |
6760 Use it to guard prototype. | |
6761 | |
2330 | 6762 2000-03-04 Jim Meyering <meyering@lucent.com> |
6763 | |
2332 | 6764 * Makefile.am (install-exec-local): Create $(libdir) before installing |
6765 into it. | |
2334 | 6766 (uninstall-local): Uncomment this rule so `make distcheck' works |
6767 once again. | |
2332 | 6768 |
2330 | 6769 * unicodeio.c (<errno.h>): Include it. |
6770 (errno): Declare if not defined. | |
6771 | |
6772 * localcharset.c: Add Bruno's comment justifying use of volatile. | |
6773 | |
6774 * config.charset: New version, incorporating remarks from a linux | |
6775 i18n mailing list. From Bruno Haible. | |
6776 | |
6777 2000-03-02 Jim Meyering <meyering@lucent.com> | |
6778 | |
6779 * Makefile.am (EXTRA_DIST): Add config.charset. | |
6780 | |
2309 | 6781 2000-03-01 Jim Meyering <meyering@lucent.com> |
6782 | |
6783 * localcharset.c: Guard some #includes with `#if HAVE_...'. | |
6784 * unicodeio.c: Likewise. | |
6785 | |
6786 2000-02-02 Bruno Haible <haible@clisp.cons.org> | |
6787 | |
6788 * config.charset: New file. | |
6789 * localcharset.c: New file. | |
6790 * unicodeio.h, unicodeio.c: New files. | |
6791 * Makefile.am (DEFS): Add -DLIBDIR=... | |
6792 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c. | |
6793 (noinst_HEADERS): Add unicodeio.h. | |
6794 (all-local, install-exec-local, charset.alias): New targets. | |
6795 | |
2300 | 6796 2000-02-28 Paul Eggert <eggert@twinsun.com> |
6797 | |
2583 | 6798 * quotearg.c (ALERT_CHAR): New macro. |
2300 | 6799 (quotearg_buffer_restyled): Use it. |
6800 | |
2285 | 6801 2000-02-27 Jim Meyering <meyering@lucent.com> |
6802 | |
2298 | 6803 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/. |
6804 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'. | |
6805 | |
2295 | 6806 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H', |
6807 not `#if STDC_HEADERS'. | |
6808 Declare malloc if needed. | |
6809 | |
2290 | 6810 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..' |
6811 now that autoconf always defines the HAVE_DECL_ symbols. | |
6812 * human.c: Likewise. | |
6813 * same.c: Likewise. | |
6814 * strtoumax.c: Likewise. | |
6815 | |
6816 * backupfile.c: Arrange for cpp to fail if the configure-time | |
6817 declaration check was not run. | |
6818 * hash.c: Likewise. | |
6819 * human.c: Likewise. | |
6820 * same.c: Likewise. | |
6821 * strtoumax.c: Likewise. | |
6822 | |
2285 | 6823 * userspec.c (parse_user_spec): If there is no `:' but there is a `.', |
6824 then first look up the entire `.'-containing string as a login name. | |
6825 | |
2286 | 6826 2000-02-18 Paul Eggert <eggert@twinsun.com> |
6827 | |
2583 | 6828 * getdate.y: Handle two-digit years with leading zeros correctly. |
2286 | 6829 (textint): New typedef. |
6830 (parser_control): Member year changed from int to textint. | |
6831 All uses changed. | |
6832 (YYSTYPE): Removed; replaced by %union with int and textint members. | |
6833 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN, | |
6834 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER, | |
6835 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>. | |
6836 (tSNUMBER, tUNUMBER): Now of type <textintval>. | |
6837 (date, number, to_year): Use width of number in digits, not its value, | |
6838 to determine whether it's a 2-digit year, or a 2-digit time. | |
6839 (yylex): Store number of digits of numeric tokens. | |
6840 Reported by John Kendall. | |
6841 | |
6842 (parser_control): Changed from struct parser_control to typedef (for | |
6843 consistency). All uses changed. | |
6844 | |
6845 (tID): Removed; not used. | |
6846 (yylex): Return '?' for unknown identifiers, rather than (unused) tID. | |
6847 | |
2278 | 6848 2000-02-14 Paul Eggert <eggert@twinsun.com> |
6849 | |
2583 | 6850 * getpagesize.h (getpagesize): Port to VMS for Alpha; |
2279 | 6851 adapted from changes to grep getpagesize.h by Martin P.J. Zinser. |
2278 | 6852 |
2274 | 6853 2000-02-12 Jim Meyering <meyering@lucent.com> |
6854 | |
6855 * userspec.c (ISDIGIT): Define it. | |
6856 (isdigit): Remove definition. | |
6857 (is_number): Use ISDIGIT, not isdigit. | |
6858 <libintl.h>: Include. | |
6859 (_ and N_): Define. | |
6860 (parse_user_spec): Mark translatable strings. | |
6861 | |
2268 | 6862 2000-02-10 Jim Meyering <meyering@lucent.com> |
6863 | |
6864 With these changes, nanosleep.[ch] are finally enough like the other | |
6865 lib/* replacement files to compile on a few more losing systems. | |
6866 | |
6867 * nanosleep.h: Don't include config.h. | |
6868 Remove prototype from declaration of nanosleep. | |
6869 (PARAMS): Remove now-unneeded definition. | |
6870 * nanosleep.c: #undef nanosleep. | |
6871 (rpl_nanosleep): Rename from nanosleep. | |
6872 | |
2245 | 6873 2000-02-03 Jim Meyering <meyering@lucent.com> |
6874 | |
6875 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION', | |
6876 rather than with `#if HAVE_UTMPNAME'. | |
6877 | |
6878 2000-02-01 Jim Meyering <meyering@lucent.com> | |
6879 | |
6880 * readutmp.h (UT_USER): Add parens. From Andreas Schwab. | |
6881 | |
2235 | 6882 2000-01-31 Jim Meyering <meyering@lucent.com> |
6883 | |
2240 | 6884 * nanosleep.h (nanosleep): Guard declaration with |
6885 `#if ! HAVE_DECL_NANOSLEEP'. | |
2275 | 6886 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to |
2240 | 6887 the declaration in that vendor's sys/timers.h. |
6888 Reported by Christian Krackowizer. | |
6889 | |
2235 | 6890 * 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
|
6891 inclusion of wctype.h to work around Solaris 2.6 namespace pollution. |
2235 | 6892 (ISPRINT): Likewise. |
2236 | 6893 Reported by Tom Tromey. |
2235 | 6894 |
2228 | 6895 2000-01-30 Jim Meyering <meyering@lucent.com> |
6896 | |
6897 * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding | |
6898 uses of ->ut_name. The latter doesn't work with new Linux header files | |
6899 where only utmpx.ut_user is declared. | |
6900 | |
6901 * readutmp.h (UT_USER): Define. | |
6902 | |
2193 | 6903 2000-01-23 Jim Meyering <meyering@lucent.com> |
6904 | |
6905 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of | |
6906 obstack.c. | |
6907 | |
2163 | 6908 2000-01-22 Jim Meyering <meyering@lucent.com> |
2188 | 6909 |
6910 * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul. | |
6911 [! HAVE_DECL_STRTOULL]: Declare strtoull. | |
6912 Required for some AIX systems. Reported by Christian Krackowizer. | |
6913 [TESTING] (main): New function. | |
6914 | |
2172 | 6915 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il> |
6916 * dirname.c (dir_name): Support for DOS-style file names with drive | |
6917 letters. | |
2163 | 6918 |
2185 | 6919 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint. |
2184 | 6920 |
2163 | 6921 * strverscmp.c (ISDIGIT): Define. |
6922 (strverscmp): Use ISDIGIT, not isdigit. | |
6923 | |
2152 | 6924 2000-01-17 Paul Eggert <eggert@twinsun.com> |
6925 | |
6926 * nanosleep.c (nanosleep): | |
6927 Don't use SA_INTERRUPT to decide whether to call sigaction, as | |
6928 POSIX.1 doesn't require SA_INTERRUPT and some systems | |
6929 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; | |
6930 it's been part of POSIX.1 since day 1 (in 1988). | |
6931 | |
2150 | 6932 2000-01-17 Jim Meyering <meyering@lucent.com> |
6933 | |
4366
4f2163710712
Rename stdbool.h.in to stdbool_.h, for DOS and VMS's sake.
Bruno Haible <bruno@clisp.org>
parents:
4365
diff
changeset
|
6934 * interlock: Remove unused file. Reported by François Pinard. |
2150 | 6935 |
2144 | 6936 2000-01-16 Paul Eggert <eggert@twinsun.com> |
6937 | |
2583 | 6938 * quotearg.c (quotearg_buffer_restyled): Do not quote |
2144 | 6939 alert, backslash, formfeed, and vertical tab unnecessarily in |
6940 shell quoting style. | |
2190 | 6941 |
5168 | 6942 |
5569
5b0578864f09
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
Paul Eggert <eggert@cs.ucla.edu>
parents:
5565
diff
changeset
|
6943 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
5695
12941808cd17
replace leading spaces with TABs
Jim Meyering <jim@meyering.net>
parents:
5693
diff
changeset
|
6944 Free Software Foundation, Inc. |
5168 | 6945 Copying and distribution of this file, with or without modification, |
6946 are permitted provided the copyright notice and this notice are preserved. |