Mercurial > hg > octave-kai > gnulib-hg
annotate lib/ChangeLog @ 4359:3abffb51a661
*** empty log message ***
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 06 Jun 2003 19:46:10 +0000 |
parents | ad845a583ee8 |
children | 7b5840cab424 |
rev | line source |
---|---|
4357 | 1 2003-06-06 Jim Meyering <jim@meyering.net> |
2 | |
4359 | 3 Merge from coreutils. |
4 * fsusage.c: Remove declaration of statfs. | |
5 It conflicted with one from OSF/1 5.1 in <sys/mount.h>. | |
6 | |
4357 | 7 * posixtm.c: Include <stdbool.h> unconditionally. |
8 | |
4355
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
9 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
|
10 |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
11 * 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
|
12 (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
|
13 (__P): Remove; not used. |
8d02630aa92d
mktime.c: Assume freestanding C89 or better.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4353
diff
changeset
|
14 (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
|
15 (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
|
16 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
|
17 (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
|
18 (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
|
19 |
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
|
20 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
|
21 |
4353
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
22 * mktime.c: Fix Debian bug 177940 |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
23 <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
|
24 (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
|
25 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
|
26 (__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
|
27 don't add it. |
e296c333fb89
mktime.c: Fix Debian bug 177940.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4351
diff
changeset
|
28 |
4351
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
29 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
|
30 locale-specific notations like thousands separators. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
31 * human.c: Simplify authorship notice. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
32 Include human.h immediately after config.h. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
33 <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
|
34 <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
|
35 (SIZE_MAX, UINTMAX_MAX): New macros. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
36 <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
|
37 <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
|
38 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
39 (power_letter): Renamed from suffixes. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
40 (generate_suffix_backwards): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
41 (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
|
42 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
|
43 (group_number): New function. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
44 (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
|
45 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
|
46 Support all the new options. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
47 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
|
48 use inttostr.h instead. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
49 (human_readable, default_block_size, humblock): |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
50 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
|
51 (human_readable_inexact, block_size_types): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
52 (block_size_opts): New constant. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
53 (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
|
54 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
|
55 * human.h: Add copyright and authorship notice. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
56 Include <limits.h> and <stdbool.h> unconditionally. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
57 (PARAMS): Remove. All uses removed. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
58 (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
|
59 (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
|
60 (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
|
61 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
|
62 (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
|
63 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
|
64 (human_readable_inexact, human_block_size): Remove. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
65 (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
|
66 (human_options): New decl. |
d0d257fdad20
Merge human.c changes from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4349
diff
changeset
|
67 |
4349
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
68 * 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
|
69 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
|
70 imported from coreutils. |
87fceea6040d
* exclude.c: (new_exclude, add_exclude): Remove casts that are
Paul Eggert <eggert@cs.ucla.edu>
parents:
4348
diff
changeset
|
71 |
4348
fc8667232bcc
Ensure we use gnulib mktime rather than glibc's mktime, on hosts
Paul Eggert <eggert@cs.ucla.edu>
parents:
4347
diff
changeset
|
72 * 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
|
73 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
|
74 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
|
75 |
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
|
76 .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
|
77 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
|
78 |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
79 * __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
|
80 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
|
81 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
|
82 * 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
|
83 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
|
84 * 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
|
85 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
|
86 * 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
|
87 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
|
88 * 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
|
89 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
|
90 |
df44e79ce676
.h files should stand alone, but we shouldn't include <sys/types.h>
Paul Eggert <eggert@cs.ucla.edu>
parents:
4344
diff
changeset
|
91 2003-06-02 Paul Eggert <eggert@twinsun.com> |
4344 | 92 |
93 [from coreutils] | |
94 Fix some minor time-related bugs with POSIX time arguments. | |
95 Some valid time stamps were being rejected (notably -1, and | |
96 time stamps before 1900 on 64-bit hosts). And some invalid | |
97 time stamps were being accepted, e.g. September 31. | |
98 | |
99 * posixtm.h (posixtime): Return bool instead of time_t, so | |
100 that we can return (time_t) -1 successfully. | |
101 * posixtm.c: Likewise. | |
102 [HAVE_STDBOOL_H]: Include <stdbool.h>. | |
103 (bool, false, true) [!HAVE_STDBOOL_H]: New type. | |
104 (t): Remove static var. | |
105 (year, posix_time_parse): Now takes struct tm * arg to modify, instead | |
106 of static var. All uses changed. | |
107 (year): Do not reject years before 1900; they can occur with | |
108 64-bit time_t. | |
109 (posix_time_parse): Do not check for out-of-range components; | |
110 that is now the caller's responsibility, since our checks were | |
111 only approximations. | |
112 (posixtime): Use mktime to check for out-of-range components, | |
113 since it knows them exactly. | |
114 If mktime returns (time_t) -1, check whether an error actually occurred | |
115 by invoking localtime on -1. | |
116 (main) [TEST_POSIXTIME]: Check for input data errors, and report | |
117 posixtime failures better. | |
118 Improve the test data (in comments only). | |
119 | |
120 2003-06-02 Jim Meyering <jim@meyering.net> | |
121 | |
122 * stdbool.h.in: Rename to stdbool.hin. | |
123 | |
4339 | 124 2003-05-30 <karl@gnu.org> |
125 | |
126 * mktime.c: update from libc. | |
127 | |
4337 | 128 2003-05-30 Bruno Haible <bruno@clisp.org> |
129 | |
130 * config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1. | |
131 * localcharset.h: Likewise. | |
132 * localcharset.c: Likewise. | |
133 | |
4330
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
134 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
|
135 |
4333 | 136 Assume the headers required for C89 freestanding compilers. |
137 * addext.c, backupfile.c, fsusage.c, human.c, pathmax.h, | |
138 rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h> | |
139 without checking for HAVE_LIMITS_H. | |
140 * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c, | |
141 xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed | |
142 to do that. | |
143 * fatal.c: Include <stdarg.h> without checking for __STDC__. | |
144 * exclude.c: Include <stdbool.h> unconditionally. | |
145 * tempname.c: Include <stddef.h> unconditionally. | |
146 * hash.c: Include <limits.h>, since we no longer define CHAR_BIT. | |
147 * modechange.c, rpmatch.c (NULL): Don't define, since | |
148 <stddef.h> does that. | |
149 * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed. | |
150 * safe-read.c (INT_MAX): Don't define, since <limits.h> does that. | |
151 * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed. | |
152 * xstrtol.c: Likewise. | |
153 * safe-read.c: Remove TYPE_SIGNED; no longer needed. | |
154 * savedir.c: Include <stddef.h> instead of defining NULL. | |
155 | |
4332
b459be4ef089
* addext.c (addext): Use assignment rather than cast, to avoid
Paul Eggert <eggert@cs.ucla.edu>
parents:
4330
diff
changeset
|
156 * 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
|
157 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
|
158 |
4330
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
159 * 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
|
160 arbitrarily. |
3cfdb8b2e8fb
* mktime.c (__mktime_internal): Do not reject negative timestamps
Paul Eggert <eggert@cs.ucla.edu>
parents:
4320
diff
changeset
|
161 |
4320
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
162 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
|
163 |
ad1a5733db16
Avoid a failure on strings longer than 4 KB.
Bruno Haible <bruno@clisp.org>
parents:
4319
diff
changeset
|
164 * 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
|
165 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
|
166 |
4319 | 167 2003-05-12 Jim Meyering <jim@meyering.net> |
168 | |
169 * strftime.c (my_strftime): Let the `-' (no-pad) flag affect | |
170 the space-padded-by-default conversion specifiers, %e, %k, %l. | |
171 | |
4314
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
172 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
|
173 |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
174 Upgrade to Unicode-4.0. |
bc3a7b27a426
Upgrade the width function to Unicode 4.0.
Bruno Haible <bruno@clisp.org>
parents:
4310
diff
changeset
|
175 * 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
|
176 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
|
177 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
|
178 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
|
179 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
|
180 (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
|
181 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
|
182 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
|
183 |
4310
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
184 2003-04-25 Bruno Haible <bruno@clisp.org> |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
185 |
17ce7ef2789c
Include <stddef.h>, for size_t.
Bruno Haible <bruno@clisp.org>
parents:
4309
diff
changeset
|
186 * 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
|
187 |
4309 | 188 2003-04-25 Jim Meyering <jim@meyering.net> |
189 | |
190 * copy-file.c (copy_file_preserving): Declare buf_size to be | |
191 of type size_t, not int. | |
192 | |
4299 | 193 2003-04-11 Jim Meyering <jim@meyering.net> |
194 | |
4302 | 195 Merge changes from Coreutils. |
196 | |
4301 | 197 2003-03-22 Jim Meyering <jim@meyering.net> |
198 | |
199 * strftime.c (widen): Cast alloca return value to proper type. | |
200 | |
4299 | 201 2003-01-19 Ulrich Drepper <drepper@redhat.com> |
202 | |
203 From GNU libc. | |
204 * strftime.c (my_strftime): Handle very large width | |
205 specifications for numeric values correctly. Improve checks for | |
206 overflow. | |
207 | |
208 2003-01-19 Jim Meyering <jim@meyering.net> | |
209 | |
210 * strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical definitions. | |
211 (nl_get_alt_digit) [! defined my_strftime]: Define. | |
212 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of | |
213 _nl_get_alt_digit and _nl_get_walt_digit. | |
214 | |
215 * strftime.c (my_strftime): Merge in locale-related changes from libc. | |
216 These changes have no effect outside of _LIBC. | |
217 | |
4294 | 218 2003-04-10 Bruno Haible <bruno@clisp.org> |
219 | |
220 * findprog.h: New file, from GNU gettext. | |
221 * findprog.c: New file, from GNU gettext. | |
222 | |
4288 | 223 2003-04-05 Jim Meyering <jim@meyering.net> |
224 | |
4290 | 225 Merge changes from Coreutils. |
226 | |
4299 | 227 * exclude.h (PARAMS): Remove definition and uses. |
228 * exclude.c: Remove uses of `PARAMS'. | |
229 | |
4290 | 230 * dirname.c [TEST_DIRNAME]: Update build instructions for test. |
231 Add test-cases for DOS filenames. Declare program_name. | |
232 (main): Set up program_name. Patch by Rich Dawe. | |
233 | |
4288 | 234 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any |
235 error from mntctl. | |
236 Use mntctl's return value to drive the entry-processing loop, since | |
237 we can't rely on the value of the vmt_length member in the last | |
238 entry. On some systems doing so could result in exhausting | |
239 virtual memory. Based in part on a patch from Mike Jetzer. | |
240 | |
4286 | 241 2003-04-04 Bruno Haible <bruno@clisp.org> |
242 | |
243 * linebreak.h: New file, from GNU gettext. | |
244 * linebreak.c: New file, from GNU gettext with slight modifications. | |
245 * lbrkprop.h: New file, from GNU gettext. | |
246 | |
4275
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
247 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
|
248 |
e272bc901785
New modules: utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
Bruno Haible <bruno@clisp.org>
parents:
4273
diff
changeset
|
249 * 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
|
250 * 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
|
251 * 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
|
252 * 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
|
253 |
4273 | 254 2003-04-02 Bruno Haible <bruno@clisp.org> |
255 | |
256 * binary-io.h: New file, from GNU gettext. | |
257 | |
4271 | 258 2003-04-01 Bruno Haible <bruno@clisp.org> |
259 | |
260 * pathname.h: New file, from GNU gettext. | |
261 * concatpath.c: New file, from GNU gettext. | |
262 | |
4268 | 263 2003-03-30 Bruno Haible <bruno@clisp.org> |
264 | |
265 * copy-file.c (copy_file_preserving): Don't set owner if the function | |
266 chown() doesn't exist. | |
267 | |
4266 | 268 2003-03-28 Bruno Haible <bruno@clisp.org> |
269 | |
270 * copy-file.h: New file, from GNU gettext. | |
271 * copy-file.c: New file, from GNU gettext. | |
272 | |
4261 | 273 2003-03-18 Jim Meyering <jim@meyering.net> |
274 | |
275 * quote.c (quote_n): Fix typo in comment. | |
276 | |
4256
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
277 2003-03-14 Jim Meyering <jim@meyering.net> |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
278 |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
279 Merge changes from Coreutils. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
280 * obstack.h (obstack_object_size): Declare temporary, __o, |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
281 to be const, in order to avoid warnings. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
282 (obstack_room): Likewise. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
283 (obstack_empty_p): Likewise. |
8985ae624e3d
Merge changes from Coreutils.
Jim Meyering <jim@meyering.net>
parents:
4255
diff
changeset
|
284 |
4252
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
285 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
|
286 |
4255
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
287 Merge changes from Bison. |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
288 * obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to |
fe0f8778e46d
Merge changes from Bison.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4252
diff
changeset
|
289 (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
|
290 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
|
291 (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
|
292 * hash.c: Include <stdbool.h> unconditionally. |
7bcd3280502a
* hash.c: Include <stdbool.h> unconditionally.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4249
diff
changeset
|
293 |
4249
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
294 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
|
295 |
b35160ecbc71
* argmatch.c (EXIT_FAILURE): Define if the system doesn't.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4246
diff
changeset
|
296 * 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
|
297 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
|
298 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
|
299 |
4246 | 300 2003-03-03 Paul Eggert <eggert@twinsun.com> |
301 Bruno Haible <bruno@clisp.org> | |
302 | |
303 * mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1. | |
304 Reported by John Hughes, see | |
305 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html | |
306 | |
4242
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
307 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
|
308 |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
309 * poll_.h: New file. |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
310 * poll.c: New file. |
eec6ba9ed532
New module poll, from Paolo Bonzini <bonzini@gnu.org>.
Bruno Haible <bruno@clisp.org>
parents:
4239
diff
changeset
|
311 |
4239
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
312 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
|
313 |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
314 * mathl.h: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
315 * acosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
316 * asinl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
317 * atanl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
318 * ceill.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
319 * cosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
320 * expl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
321 * floorl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
322 * frexpl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
323 * ldexpl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
324 * logl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
325 * sincosl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
326 * sinl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
327 * sqrtl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
328 * tanl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
329 * trigl.c: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
330 * trigl.h: New file. |
b33b8603715c
Transcendental functions for 'long double', from Paolo Bonzini.
Bruno Haible <bruno@clisp.org>
parents:
4237
diff
changeset
|
331 |
4237
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
332 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
|
333 |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
334 * mkdtemp.h: New file, from GNU gettext. |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
335 * mkdtemp.c: New file, from GNU gettext. |
723deab1223e
mkdtemp() function: create a private temporary directory.
Bruno Haible <bruno@clisp.org>
parents:
4229
diff
changeset
|
336 |
4229
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
337 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
|
338 |
c7ddde35beec
Make this module usable in shared libraries.
Bruno Haible <bruno@clisp.org>
parents:
4224
diff
changeset
|
339 * 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
|
340 * 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
|
341 |
4224
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
342 2003-01-30 Bruno Haible <bruno@clisp.org> |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
343 |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
344 * printf-args.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
345 * printf-args.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
346 * printf-parse.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
347 * printf-parse.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
348 * vasnprintf.h: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
349 * vasnprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
350 * asnprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
351 * vasprintf.h: New file, from GNU gettext with modifications. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
352 * vasprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
353 * asprintf.c: New file, from GNU gettext. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
4221
diff
changeset
|
354 |
4221 | 355 2003-01-29 Bruno Haible <bruno@clisp.org> |
356 | |
357 * stpncpy.h: New file, from GNU gettext with modifications. | |
358 * stpncpy.c: New file, from GNU gettext with modifications. | |
359 | |
4218 | 360 2003-01-28 Bruno Haible <bruno@clisp.org> |
361 | |
362 * c-ctype.h: New file, from GNU gettext, with changes suggested by | |
363 Paul Eggert. | |
364 * c-ctype.c: New file, from GNU gettext, with changes suggested by | |
365 Paul Eggert. | |
366 | |
4215 | 367 2003-01-27 Bruno Haible <bruno@clisp.org> |
368 | |
369 * xsetenv.h: New file, from GNU gettext. | |
370 * xsetenv.c: New file, from GNU gettext. | |
371 | |
4207 | 372 2003-01-23 Bruno Haible <bruno@clisp.org> |
373 | |
374 * minmax.h: New file, from GNU gettext, with comments from Paul Eggert. | |
375 | |
4201 | 376 2003-01-22 Bruno Haible <bruno@clisp.org> |
377 | |
378 * exit.h: New file, from GNU gettext. | |
379 | |
4183
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
380 2003-01-11 Bruno Haible <bruno@clisp.org> |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
381 |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
382 * stpcpy.h (stpcpy): Use ANSI C function declarations. |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
383 * strcase.h (strcasecmp, strncasecmp): Likewise. |
476e05a407da
Use ANSI C function declarations.
Bruno Haible <bruno@clisp.org>
parents:
4182
diff
changeset
|
384 |
4182 | 385 2003-01-14 Jim Meyering <jim@meyering.net> |
386 | |
387 * same.c (same_name): Tweak a comment. | |
388 | |
4179
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
389 2003-01-11 Bruno Haible <bruno@clisp.org> |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
390 |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
391 * 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
|
392 when a string comparison is sufficient. |
7dd6887fa0db
Optimization: Avoid unnecessary stat() calls.
Bruno Haible <bruno@clisp.org>
parents:
4178
diff
changeset
|
393 |
4178
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
394 2003-01-11 Bruno Haible <bruno@clisp.org> |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
395 |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
396 * 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
|
397 'unsigned int'. |
d600a57046b9
Avoid bug with non-ASCII characters.
Bruno Haible <bruno@clisp.org>
parents:
4177
diff
changeset
|
398 |
4177
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
399 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
|
400 |
6a34d03dc4e3
Add comment about low quality of this function.
Bruno Haible <bruno@clisp.org>
parents:
4170
diff
changeset
|
401 * 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
|
402 |
4170
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
403 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
|
404 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
405 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
|
406 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
|
407 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
408 * 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
|
409 * getstr.h, getstr.c: Remove. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
410 * 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
|
411 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
|
412 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
|
413 (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
|
414 |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
415 * linebuffer.c (readlinebuffer): Renamed from readline. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
416 All uses changed. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
417 * linebuffer.h: Likewise. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
418 (readline): Remove backward-compatibility macro. |
733dc39fdf11
Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4160
diff
changeset
|
419 |
4160 | 420 2003-01-12 Jim Meyering <jim@meyering.net> |
421 | |
422 * makepath.c: Don't test HAVE_ERRNO_H. It's not necessary. | |
423 | |
4156
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
424 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
|
425 |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
426 * alloca_.h: New file. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
427 * 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
|
428 * makepath.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
429 * setenv.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
430 * userspec.c: Likewise. |
99ea86c79f44
Make it possibly to simply write: #include <alloca.h>.
Bruno Haible <bruno@clisp.org>
parents:
4151
diff
changeset
|
431 |
4151
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
432 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
|
433 |
3a0c83552f0e
Make it possible to #include <stdbool.h> without any #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
4144
diff
changeset
|
434 * 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
|
435 |
4144
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
436 2003-01-08 Bruno Haible <bruno@clisp.org> |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
437 |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
438 * safe-read.c: Include specification header first, to ensure its |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
439 selfcontainedness. |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
440 * full-write.c: Likewise. |
96e52fc820a5
Include specification first.
Bruno Haible <bruno@clisp.org>
parents:
4143
diff
changeset
|
441 |
4143 | 442 2003-01-08 Jim Meyering <jim@meyering.net> |
443 | |
444 * full-write.c: Undefine and define-away `const' after inclusion | |
445 of errno.h, not before. Suggestion from Bruno Haible. | |
446 | |
4141 | 447 2003-01-07 Jim Meyering <jim@meyering.net> |
448 | |
449 * full-write.c: Rework so that it may serve to define full_read, too. | |
450 * full-read.c: Simply #define FULL_READ and include full-write.c. | |
451 | |
4134 | 452 2003-01-06 Jim Meyering <jim@meyering.net> |
453 | |
454 * version-etc.c: Update year in translatable copyright string. | |
455 | |
4135
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
456 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
|
457 |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
458 * 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
|
459 * xstrtol.h: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
460 * xstrtoimax.c: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
461 * xstrtoumax.c: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
462 * human.h: Likewise. |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
463 |
170410216f79
More consistent inttypes.h / stdint.h handling.
Bruno Haible <bruno@clisp.org>
parents:
4134
diff
changeset
|
464 * 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
|
465 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
|
466 |
4123
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
467 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
|
468 |
799ab609f603
* memcoll.c (memcoll): Fall back on a simple algorithm using
Paul Eggert <eggert@cs.ucla.edu>
parents:
4106
diff
changeset
|
469 * 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
|
470 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
|
471 |
4106 | 472 2002-12-23 Bruno Haible <bruno@clisp.org> |
473 | |
474 * localcharset.h: New file. | |
475 * localcharset.c: Include it. | |
476 * unicodeio.c: Likewise. | |
477 | |
4105
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
478 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
|
479 |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
480 * 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
|
481 nonempty. |
7f998811f2f0
Don't call ftruncate() when it's not needed.
Bruno Haible <bruno@clisp.org>
parents:
4104
diff
changeset
|
482 |
4104
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
483 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
|
484 |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
485 * memcoll.c (STRCOLL): New macro. |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
486 (memcoll): Use it. |
f16f0fbf6ce2
Don't use strcoll if it is broken.
Bruno Haible <bruno@clisp.org>
parents:
4103
diff
changeset
|
487 |
4103
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
488 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
|
489 |
a615f32b9998
Avoid function names used in standard libraries.
Bruno Haible <bruno@clisp.org>
parents:
4102
diff
changeset
|
490 * 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
|
491 * 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
|
492 |
4102
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
493 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
|
494 |
1804d7137fc9
Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Bruno Haible <bruno@clisp.org>
parents:
4101
diff
changeset
|
495 * 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
|
496 |
4101
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
497 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
|
498 |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
499 * 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
|
500 |
cf248975b9d3
Make getline.h and unicodeio.h self-contained.
Bruno Haible <bruno@clisp.org>
parents:
4089
diff
changeset
|
501 * 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
|
502 * 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
|
503 |
4089 | 504 2002-12-17 Bruno Haible <bruno@clisp.org> |
505 | |
506 * canon-host.c (strdup): Remove unused declaration. | |
507 | |
508 * fsusage.c: Include full_read.h. | |
509 (get_fs_usage): Use full_read instead of safe_read. | |
510 | |
511 * utime.c (utime_null): Use SAFE_READ_ERROR. | |
512 | |
4080 | 513 2002-12-11 Bruno Haible <bruno@clisp.org> |
514 | |
515 * setenv.h: Rewritten to cope with systems that have setenv() but not | |
516 unsetenv(). | |
517 * setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following | |
518 modifications: | |
519 | |
520 2002-12-11 Bruno Haible <bruno@clisp.org> | |
521 | |
522 * setenv.c (alloca): Fall back to malloc. | |
523 (freea): New macro. | |
524 (setenv): Use freea() to free memory allocated with alloca(). | |
525 | |
526 2002-11-13 Bruno Haible <bruno@clisp.org> | |
527 | |
528 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C | |
529 function declarations. | |
530 * unsetenv.c (unsetenv): Likewise. | |
531 | |
532 2002-03-04 Bruno Haible <bruno@clisp.org> | |
533 | |
534 Portability to AIX 4.3.3. | |
535 * unsetenv.c: New file, extracted from setenv.c. | |
536 * setenv.c: Move the unsetenv() function to unsetenv.c. | |
537 | |
538 2001-12-20 Bruno Haible <bruno@clisp.org> | |
539 | |
540 * setenv.c (__add_to_environ): Don't call realloc(NULL,...), | |
541 use malloc instead. For SunOS4. | |
542 | |
543 2001-12-11 Bruno Haible <bruno@clisp.org> | |
544 | |
545 * setenv.c: Declare alloca. | |
546 (compar_fn_t): New typedef. | |
547 (KNOWN_VALUE, STORE_VALUE): Use it. | |
548 | |
4081 | 549 * Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c, |
550 setenv.h. | |
551 | |
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
|
552 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
|
553 |
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
|
554 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
|
555 * 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
|
556 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
|
557 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
|
558 * 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
|
559 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
|
560 (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
|
561 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
|
562 |
4071 | 563 2002-12-06 Jim Meyering <jim@meyering.net> |
564 | |
4073 | 565 * error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'. |
566 | |
4071 | 567 Merge in changes from libc's misc/error.c, in preparation |
568 for the merge of gnulib's changes back into libc. | |
569 | |
570 * error.c (_): Define only if not already defined. | |
571 Move definition to follow all #include directives. | |
572 Include unlocked-io.h only if !_LIBC. | |
573 [_LIBC]: Include <libio/libioP.h>. | |
574 [USE_IN_LIBIO]: Include <libio/iolibio.h> | |
575 (fflush): Tweak definition to use INTUSE. | |
576 (putc): Define. | |
577 | |
4069
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
578 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
|
579 |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
580 * 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
|
581 (xalloc_die) [defined emacs]: New macro. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
582 (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
|
583 [! defined emacs]: Include <xalloc.h>. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
584 (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
|
585 (pointer): Typedef to POINTER_TYPE *. |
335a257b54d7
Merge some alloca.c changes from Emacs.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4067
diff
changeset
|
586 (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
|
587 (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
|
588 Check for arithmetic overflow when computing combined size. |
4071 | 589 |
4067
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
590 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
|
591 |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
592 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
|
593 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
|
594 |
34d2047f0470
Do not generate unlocked-io.h automatically, since it's easier to
Paul Eggert <eggert@cs.ucla.edu>
parents:
4063
diff
changeset
|
595 * 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
|
596 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
|
597 * 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
|
598 * 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
|
599 (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
|
600 (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
|
601 (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
|
602 (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
|
603 (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
|
604 |
4058 | 605 2002-12-04 Jim Meyering <jim@meyering.net> |
606 | |
4063 | 607 Reflect the fact that stat.c and lstat.c are no longer generated. |
608 * Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c. | |
609 (DISTCLEANFILES): Likewise. | |
610 (EXTRA_DIST): Likewise. | |
611 (all_local): Don't depend on stat.c or lstat.c. | |
612 (stat.c, lstat.c): Remove rules. | |
613 (EXTRA_DIST): Remove xstat.in. | |
614 | |
615 * xstat.in: Remove file. Contents moved into stat.c. | |
616 * stat.c: New file. Contents mostly from xstat.in. | |
617 * stat.c: Rework so that it may serve to define rpl_lstat, too. | |
618 * lstat.c: New file. Simply #define LSTAT and include stat.c. | |
619 | |
4058 | 620 * safe-read.c: Rework so that it may serve to define safe_write, too. |
621 * safe-write.c: Simply #define SAFE_WRITE and include safe-read.c. | |
622 | |
4051
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
623 2002-12-03 Jim Meyering <jim@meyering.net> |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
624 |
4053 | 625 * safe-read.c, safe-write.c: Change variable names and comments, but |
626 not semantics, to minimize the differences between these two files. | |
4058 | 627 (safe_read): Change comment to mention SAFE_READ_ERROR. |
4053 | 628 |
4051
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
629 * safe-read.c (IS_EINTR): Define. |
90298dc3fd6c
* safe-read.c (IS_EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4049
diff
changeset
|
630 (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
|
631 |
4049
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
632 2002-12-02 Bruno Haible <bruno@clisp.org> |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
633 |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
634 * 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
|
635 Define, taken from safe-read.c. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
636 (INT_MAX): Provide fallback. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
637 (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
|
638 * safe-write.h (SAFE_WRITE_ERROR): Define. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
639 |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
640 * safe-read.c (EINTR): Remove definition. |
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
641 (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
|
642 |
4046
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
643 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
|
644 |
4048
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
645 * safe-read.c (EINTR): Define. |
4049
6a1238f585b1
Synchronize safe-write with safe-read.
Bruno Haible <bruno@clisp.org>
parents:
4048
diff
changeset
|
646 (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
|
647 (INT_MAX): Provide fallback. |
4048
983c7437c09f
* safe-read.c (EINTR): Define.
Jim Meyering <jim@meyering.net>
parents:
4046
diff
changeset
|
648 (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
|
649 |
4046
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
650 * safe-read.h (SAFE_READ_ERROR): Define. |
c66afe793700
* safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering <jim@meyering.net>
parents:
4044
diff
changeset
|
651 |
4044
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
652 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
|
653 |
c5aa8e0dbf7b
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering <jim@meyering.net>
parents:
4041
diff
changeset
|
654 * 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
|
655 (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
|
656 |
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
|
657 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
|
658 |
8c8f0566f03c
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert <eggert@cs.ucla.edu>
parents:
4039
diff
changeset
|
659 * 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
|
660 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
|
661 `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
|
662 |
4039
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
663 2002-11-26 <karl@gnu.org> |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
664 |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
665 * 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
|
666 * .cppi-disable: re-add strdup.c |
7c15210f0e35
copy strdup.c from libc again.
Karl Berry <karl@freefriends.org>
parents:
4030
diff
changeset
|
667 |
4030 | 668 2002-11-25 <karl@gnu.org> |
669 | |
670 * strtoll.c: copy from libc, meaning we now #include <strtol.c> | |
671 instead of "strtol.c". | |
672 | |
4027 | 673 2002-11-25 Jim Meyering <jim@meyering.net> |
674 | |
675 * mktime.c: Sync from libc, now that it has the latest fix. | |
676 | |
4028 | 677 2002-11-24 <karl@gnu.org> |
678 | |
679 * error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c, | |
680 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl. | |
681 | |
4017 | 682 2002-11-24 Jim Meyering <jim@meyering.net> |
683 | |
684 Update from coreutils: | |
685 | |
4019 | 686 * mktime.c: Merge in changes from libc. |
687 | |
4017 | 688 Avoid a link-time failure on some Linux systems. |
689 * mktime.c (STATIC): Define to be empty (_LIBC) or `static' (otherwise). | |
690 (__mon_yday): Declare with the STATIC attribute. | |
691 (__mktime_internal): Likewise. | |
692 Based on a report from Greg Schafer. | |
693 | |
4011 | 694 2002-11-23 Jim Meyering <jim@meyering.net> |
695 | |
4015 | 696 * sig2str.c (str2signum, sig2str): Avoid a warning from gcc: |
697 Use `unsigned', not `int', as type of index. | |
698 | |
4013 | 699 * xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>. |
700 | |
4011 | 701 * fsusage.c: Remove unneeded parentheses around operands of `defined'. |
702 | |
4007
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
703 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
|
704 |
0943112001d6
hash.c: Avoid use of <assert.h>.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4005
diff
changeset
|
705 * 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
|
706 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
|
707 (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
|
708 (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
|
709 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
|
710 |
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
|
711 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
|
712 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
713 * 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
|
714 "#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
|
715 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
|
716 (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
|
717 * 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
|
718 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
|
719 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
|
720 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
|
721 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
|
722 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
|
723 (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
|
724 (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
|
725 (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
|
726 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
727 (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
|
728 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
|
729 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
730 (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
|
731 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
|
732 (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
|
733 |
28205b2d0e61
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert <eggert@cs.ucla.edu>
parents:
4002
diff
changeset
|
734 (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
|
735 |
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
736 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
|
737 |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
4001
diff
changeset
|
738 * 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
|
739 (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
|
740 * 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
|
741 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
|
742 * 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
|
743 * 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
|
744 * 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
|
745 * 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
|
746 * 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
|
747 * 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
|
748 (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
|
749 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
|
750 |
4000 | 751 2002-11-21 Bruno Haible <bruno@clisp.org> |
752 | |
4001
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
753 Remove case insensitive option matching. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
754 * argmatch.h (argcasematch): Remove declaration. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
755 (ARGCASEMATCH): Remove macro. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
756 (__xargmatch_internal): Remove case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
757 (XARGMATCH): Update. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
758 (XARGCASEMATCH): Remove macro. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
759 * argmatch.c (argmatch): Renamed from __argmatch_internal. Remove |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
760 case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
761 (argcasematch): Remove function. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
762 (__xargmatch_internal): Remove case_sensitive argument. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
763 (main): Use XARGMATCH instead of XARGCASEMATCH. |
53129a4ff530
Remove case insensitive option matching.
Bruno Haible <bruno@clisp.org>
parents:
4000
diff
changeset
|
764 |
4000 | 765 * xmalloc.c: Change compile-time error message. Add comment about |
766 required autoconf version. | |
767 | |
3984 | 768 2002-11-21 Jim Meyering <jim@meyering.net> |
769 | |
3998 | 770 * strdup.c (strdup): Tweak comment and initial #if/#include. |
771 | |
3984 | 772 Merge in changes from the coreutils. |
773 | |
3995 | 774 2002-09-25 Paul Eggert <eggert@twinsun.com> |
775 * fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>. | |
776 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro. | |
777 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than | |
778 int. Work more efficiently if X is the same width as uintmax_t. | |
779 Do not compare X to -1, to avoid bogus compiler warning. | |
780 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast. | |
781 Don't assume that f_frsize and f_bsize are the same type. | |
782 | |
3992 | 783 * mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning |
784 on FreeBSD. | |
785 | |
3988 | 786 * makepath.c (make_path): Restore umask *before* creating the final |
787 component. | |
3990 | 788 (make_path): Minor reformatting. |
3988 | 789 |
3986 | 790 * xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC |
791 and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC. | |
792 | |
3984 | 793 * mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy |
794 ones. At least on GNU/Linux systems, `auto' means something else. | |
795 From Michael Stone. | |
796 | |
3982
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
797 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
|
798 |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
799 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
|
800 |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
801 * 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
|
802 Include stdlib.h, for EXIT_FAILURE. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
803 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
|
804 (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
|
805 * 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
|
806 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
|
807 (PARAMS): Remove. All uses removed. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
808 (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
|
809 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg, |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
810 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
811 Remove unnecessary parentheses. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
812 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
813 Insert necessary parentheses. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
814 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
815 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT. |
53966f578090
Merge argmatch cleanups from Bison. Assume C89.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3979
diff
changeset
|
816 |
3977 | 817 2002-11-19 Bruno Haible <bruno@clisp.org> |
818 | |
3979
7627246c7a83
Standard specification idiom. Make mbswidth.h self contained.
Bruno Haible <bruno@clisp.org>
parents:
3978
diff
changeset
|
819 * 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
|
820 * 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
|
821 |
3978 | 822 * mbswidth.h (PARAMS): Remove macro. |
823 (mbswidth, mbsnwidth): Use ANSI C function declarations. | |
824 * mbswidth.c (mbswidth, mbsnwidth): Likewise. | |
825 | |
3977 | 826 * gcd.h (PARAMS): Remove macro. |
827 (gcd): Use ANSI C function declarations. | |
828 * gcd.c (gcd): Likewise. | |
829 | |
3975
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
830 2002-11-15 Bruno Haible <bruno@clisp.org> |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
831 |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
832 * strcspn.c: Include <stddef.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
833 (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
|
834 size_t. Use NULL. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
835 * strpbrk.c: Minimize diffs to glibc. Include <stddef.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
836 (strpbrk): Use NULL. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
837 * strpbrk.h (PARAMS): Remove macro. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
838 (strpbrk): Use ANSI C function declaration. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
839 * strstr.c: Don't include <sys/types.h>. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
840 * strstr.h (PARAMS): Remove macro. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
841 (strstr): Use ANSI C function declarations. |
e34e6bd35c66
Minimize diffs to glibc. Modernize.
Bruno Haible <bruno@clisp.org>
parents:
3968
diff
changeset
|
842 |
3968
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
843 2002-11-06 Bruno Haible <bruno@clisp.org> |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
844 |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
845 * 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
|
846 * gcd.c (gcd): Likewise. |
fd036b5fd367
Change argument type to 'unsigned long'.
Bruno Haible <bruno@clisp.org>
parents:
3967
diff
changeset
|
847 |
3967 | 848 2002-11-05 Bruno Haible <bruno@clisp.org> |
849 | |
850 * gcd.h: New file, from gettext-0.11.5. | |
851 * gcd.c: New file, from gettext-0.11.5. | |
852 | |
3966
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
853 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
|
854 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
855 * 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
|
856 * 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
|
857 * 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
|
858 * 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
|
859 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
860 * 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
|
861 * 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
|
862 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
863 * 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
|
864 * 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
|
865 * 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
|
866 * 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
|
867 * 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
|
868 * 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
|
869 * 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
|
870 * 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
|
871 (textdomain): Remove definition. |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
872 * 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
|
873 |
22d3032f0239
Include gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible <bruno@clisp.org>
parents:
3964
diff
changeset
|
874 * 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
|
875 * 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
|
876 |
3964 | 877 2002-11-04 Bruno Haible <bruno@clisp.org> |
878 | |
879 * stpcpy.h: New file, from GNU gettext-0.11.5. | |
880 * strcase.h: New file, from GNU gettext-0.11.5. | |
881 * strpbrk.h: New file, from GNU gettext-0.11.5. | |
882 * strstr.h: New file, from GNU gettext-0.11.5. | |
883 * xgetcwd.h: New file, from GNU gettext-0.11.5. | |
884 | |
3963
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
885 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
|
886 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
887 * 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
|
888 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
|
889 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
890 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
|
891 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
892 * 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
|
893 aliases. |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
894 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
895 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
|
896 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
897 * 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
|
898 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
899 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
|
900 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
901 * 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
|
902 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
903 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
|
904 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
905 * 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
|
906 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
907 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
|
908 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
909 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
|
910 * 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
|
911 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
912 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
|
913 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
914 * 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
|
915 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
916 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
|
917 |
ed9b8c0441b5
Update config.charset and localcharset.c to current gettext version.
Bruno Haible <bruno@clisp.org>
parents:
3947
diff
changeset
|
918 * 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
|
919 |
3944 | 920 2002-09-25 <karl@gnu.org> |
921 | |
922 * strdup.c: copy from libc/string (via ../config/srclist*). | |
923 * getopt*: copy from libc/posix. | |
3947
765d3b9a6126
update gettext.h from gettext.h
Karl Berry <karl@freefriends.org>
parents:
3944
diff
changeset
|
924 * gettext.h: copy from gettext. |
765d3b9a6126
update gettext.h from gettext.h
Karl Berry <karl@freefriends.org>
parents:
3944
diff
changeset
|
925 * .cppi-disable: add strdup.c, gettext.h. |
3944 | 926 |
3922 | 927 2002-07-01 Jim Meyering <meyering@lucent.com> |
928 | |
929 * c-stack.c: Include sys/time.h. | |
930 From Volker Borchert. | |
931 | |
3919 | 932 2002-06-11 Paul Eggert <eggert@twinsun.com> |
933 | |
934 * fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT): | |
935 New macro. Use it uniformly instead of | |
936 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H). | |
937 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1 | |
938 reported by Vin Shelton. | |
939 | |
3913 | 940 2002-06-22 Jim Meyering <meyering@lucent.com> |
941 | |
942 * fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about | |
943 redefinition due to Solaris5.6's definition in /usr/include/sys/euc.h. | |
944 | |
3911 | 945 2002-06-22 Paul Eggert <eggert@twinsun.com> |
946 | |
947 * c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]: | |
948 Do not assume SA_SIGINFO behavior. | |
949 Bug reported by Jim Meyering on NetBSD 1.5.2. | |
950 | |
3904 | 951 2002-06-22 Jim Meyering <meyering@lucent.com> |
952 | |
953 * c-stack.c, c-stack.h: New files, from diffutils-2.8.2. | |
3911 | 954 |
3909 | 955 * exitfail.c, exitfail.h: Likewise. |
956 * Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h. | |
3904 | 957 |
958 * Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place | |
959 of fnmatch.h. | |
960 (EXTRA_DIST): Add fnmatch_loop.c. | |
961 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h. | |
962 | |
963 * fnmatch_loop.c: New file, from diffutils-2.8.2. | |
964 * fnmatch.c: Update from diffutils-2.8.2. | |
965 * fnmatch_.h: New file. From diffutils-2.8.2. | |
966 * fnmatch.h: Remove file. | |
967 | |
3878 | 968 2002-06-18 Paul Eggert <eggert@twinsun.com> |
969 | |
970 * file-type.h: Report an error if neither S_ISREG nor | |
971 S_IFREG is defined, instead of using a test specific to glibc | |
972 2.2. This should be safe, since POSIX requires S_ISREG and | |
973 Unix Version 7 had S_IFREG. We don't need to check for | |
974 <sys/types.h> since we don't use any symbols that it defines. | |
975 | |
3869 | 976 2002-06-15 Jim Meyering <meyering@lucent.com> |
977 | |
3873 | 978 * file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef. |
979 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h> | |
980 have been included before this file. | |
981 | |
982 2002-06-13 Richard Dawe <richdawe@bigfoot.com> | |
983 | |
984 * Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t, | |
985 so that each temporary file name is unique and valid in the first | |
986 8 characters, for operation under DOS. | |
987 | |
988 2002-06-15 Jim Meyering <meyering@lucent.com> | |
989 | |
990 Work even with DJGPP 2.03, which lacks support for symlinks. | |
991 From Richard Dawe. | |
3869 | 992 * xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK |
993 is defined. | |
994 * lchown.c (S_ISLNK): Likewise. | |
995 | |
3867 | 996 2002-06-14 Jim Meyering <meyering@lucent.com> |
997 | |
998 * file-type.h: Use the version from diffutils-2.8.2. | |
999 * file-type.c: Likewise. | |
1000 | |
3855 | 1001 2002-05-27 Jim Meyering <meyering@lucent.com> |
1002 | |
1003 Fix a problem seen only on nonconforming systems whereby ls.c's | |
1004 use of localtime, and then of gettimeofday would cause trouble: | |
1005 the localtime call used to initialize rpl_gettimeofday's save | |
1006 mechanism would clobber ls's current local time information so | |
1007 that in any long listing the first file would always be listed | |
1008 with date 1970-01-01. Analysis by Volker Borchert. | |
1009 | |
1010 * gettimeofday.c (localtime): Undefine. | |
1011 (rpl_localtime): New function. | |
1012 | |
3843 | 1013 2002-05-22 Jim Meyering <meyering@lucent.com> |
1014 | |
3847 | 1015 * Makefile.am (libfetish_a_SOURCES): Add file-type.c and file-type.h. |
3843 | 1016 * file-type.h: New file. |
1017 * file-type.c (file_type): New file/function. Extracted from diffutils. | |
1018 | |
3836 | 1019 2002-04-29 Paul Eggert <eggert@twinsun.com> |
1020 | |
1021 * hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1. | |
1022 | |
3834 | 1023 2002-04-28 Paul Eggert <eggert@twinsun.com> |
1024 | |
1025 * sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid | |
1026 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead | |
1027 of 127, since 64 is the largest conceivable number for ancient | |
1028 nonstandard hosts. | |
1029 * sig2str.c: Do not include <sys/wait.h>; no longer needed. | |
1030 | |
3823 | 1031 2002-04-28 Jim Meyering <meyering@lucent.com> |
1032 | |
1033 * sig2str.c (WTERMSIG): Remove definition (unused). | |
1034 | |
3818 | 1035 2002-04-28 Paul Eggert <eggert@twinsun.com> |
1036 | |
1037 * sig2str.h, sig2str.c: New files. | |
3820 | 1038 * Makefile.am (libfetish_a_SOURCES): Add sig2str.h. |
3818 | 1039 |
3812 | 1040 2002-04-24 Jim Meyering <meyering@lucent.com> |
1041 | |
3818 | 1042 * gettext.h: New file, from Gettext. |
3812 | 1043 * Makefile.am (INCLUDES): Remove -I../intl. |
1044 (libfetish_a_SOURCES): Add gettext.h. | |
1045 | |
3808 | 1046 2002-04-16 Jim Meyering <meyering@lucent.com> |
1047 | |
1048 * readutmp.h (UT_TYPE): Remove definition (now in who.c). | |
1049 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define. | |
1050 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define. | |
1051 | |
3805 | 1052 2002-04-12 Jim Meyering <meyering@lucent.com> |
1053 | |
1054 * dirfd.h (dirfd): Elide prototype if dirfd is a macro. | |
1055 | |
3787 | 1056 2002-03-10 Jim Meyering <meyering@lucent.com> |
1057 | |
1058 * makepath.c (make_path): Remove a comma from a diagnostic. | |
1059 Suggestion from Santiago Vila. | |
1060 | |
3783 | 1061 2002-03-08 Jim Meyering <meyering@lucent.com> |
1062 | |
1063 * rename.c: Mention that this wrapper is needed also on | |
1064 mips-dec-ultrix4.4 systems. | |
1065 | |
3775 | 1066 2002-03-02 Jim Meyering <meyering@lucent.com> |
1067 | |
1068 * gettime.c (gettime): Test HAVE_CLOCK_GETTIME, | |
1069 not HAVE_CLOCK_SETTIME. | |
1070 | |
3771 | 1071 2002-02-27 Paul Eggert <eggert@twinsun.com> |
1072 | |
1073 * nanosleep.h: Rename to.... | |
1074 * timespec.h: New name for nanosleep.h. All uses changed. | |
1075 | |
1076 * gettime.c: New file. | |
1077 * settime.c: New file. | |
1078 * stime.c: Remove. | |
1079 | |
1080 * Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c, | |
1081 timespec.h. Remove nanosleep.h. | |
1082 | |
3757 | 1083 2002-02-25 Paul Eggert <eggert@twinsun.com> |
1084 | |
3763 | 1085 * acl.c, acl.h: New files. |
3757 | 1086 * Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c. |
1087 | |
1088 2002-02-24 Jim Meyering <meyering@lucent.com> | |
1089 | |
3777 | 1090 * strnlen.c (strnlen): Define-away/undef so that an inconsistent |
1091 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't | |
1092 cause trouble. Reported by Nelson Beebe. | |
3757 | 1093 |
3753 | 1094 2002-02-23 Paul Eggert <eggert@twinsun.com> |
1095 | |
1096 * path-concat.c (xpath_concat): Reorder code to pacify | |
1097 compilers that don't know that xalloc_die never returns. | |
1098 | |
3751 | 1099 2002-02-20 Jim Meyering <meyering@lucent.com> |
1100 | |
1101 * getdate.c: Regenerate using bison-1.33. | |
1102 | |
3733 | 1103 2002-02-15 Paul Eggert <eggert@twinsun.com> |
1104 | |
1105 * posixver.c, posixver.h: New files. | |
1106 * Makefile.am (libfetish_a_SOURCES): Add them. | |
1107 | |
3728 | 1108 2002-02-02 Paul Eggert <eggert@twinsun.com> |
1109 Bruno Haible <bruno@clisp.org> | |
1110 | |
1111 * unicodeio.h (print_unicode_char): Add exit_on_error argument. | |
1112 (fwrite_success_callback): New declaration. | |
1113 * unicodeio.c (unicode_to_mb): New function, extracted from | |
1114 print_unicode_char. Call failure callback instead of error. | |
1115 (fwrite_success_callback): New function. | |
1116 (exit_failure_callback): New function. | |
1117 (fallback_failure_callback): New function. | |
1118 (print_unicode_char): Call unicode_to_mb. | |
1119 | |
3723 | 1120 2002-01-26 Jim Meyering <meyering@lucent.com> |
1121 | |
1122 * Makefile.am (getdate$U.o): Depend on unlocked-io.h. | |
1123 | |
3720 | 1124 2002-01-22 Jim Meyering <meyering@lucent.com> |
1125 | |
1126 * Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES). | |
1127 Otherwise, some versions of automake would omit the rule that makes | |
1128 Makefile from Makefile.in. | |
1129 | |
3711 | 1130 2001-01-21 Paul Eggert <eggert@twinsun.com> |
1131 | |
1132 * xmemcoll.h, xmemcoll.c: New files. | |
1133 * Makefile.am (libfetish_a_SOURCES): Add them. | |
1134 * memcoll.c: Include errno.h, and declare errno if not defined. | |
1135 (memcoll): Set errno to zero if there is no error. | |
1136 | |
1137 * quotearg.c (quotearg_buffer_restyled): | |
1138 Fix bug with quoting buffers containing NUL when backslashing escapes. | |
1139 This bug was exposed by the other changes in this patch. | |
1140 (quotearg_n_options): New arg ARGSIZE. | |
1141 All callers changed. | |
1142 (quoting_options_from_style): New function. | |
1143 (quotearg_n_style): Use it. | |
1144 (quotearg_n_style_mem): New function. | |
1145 | |
1146 * quotearg.h (quotearg_n_style_mem): New function. | |
1147 | |
3698 | 1148 2002-01-16 Jim Meyering <meyering@lucent.com> |
1149 | |
1150 * getdate.y: Add three semicolons, each just before a closing brace. | |
1151 Bison (as of version 1.31) no longer papers over that mistake. | |
1152 | |
3703 | 1153 2002-02-14 Paul Eggert <eggert@twinsun.com> |
1154 | |
1155 * backupfile.c (ISDIGIT): Comment fix. | |
1156 * getdate.y (ISDIGIT): Likewise. | |
1157 * posixtm.c (ISDIGIT, year): Likewise. | |
1158 * strverscmp.c (ISDIGIT): Likewise. | |
1159 * userspec.c (ISDIGIT): Likewise. | |
1160 | |
3693 | 1161 2002-01-05 Jim Meyering <meyering@lucent.com> |
1162 | |
1163 * version-etc.c (version_etc_copyright): Update copyright year. | |
1164 | |
3691 | 1165 2001-01-19 Paul Eggert <eggert@twinsun.com> |
1166 | |
1167 * closeout.c (close_stdout_status): If ferror (stdout), do | |
1168 not silently exit merely because the output buffer happens to | |
1169 have nothing pending. | |
1170 | |
3689 | 1171 2001-12-18 Paul Eggert <eggert@twinsun.com> |
1172 | |
1173 See the big note in ../ChangeLog. | |
1174 * human.c (suffixes): Prefer K to k for 1024. | |
1175 (generate_suffix_backwards): New function. | |
1176 (human_readable_inexact): Use it. | |
3691 | 1177 * xstrtol.c (__xstrtol): If there is no number but there |
1178 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary. | |
1179 Accept 'K' as well as 'k'. | |
3689 | 1180 |
3683 | 1181 2001-12-15 Jim Meyering <meyering@lucent.com> |
1182 | |
3686 | 1183 * regex.h (__restrict_arr): Update from libc. |
1184 | |
3683 | 1185 * mountlist.h (ME_REMOTE): Recognize file systems of type smbfs |
1186 as `remote' if the name starts with `//'. Suggested by Michael Stone. | |
3686 | 1187 (STREQ): Define. |
3683 | 1188 |
3679 | 1189 2001-12-10 Jim Meyering <meyering@lucent.com> |
1190 | |
1191 * linebuffer.c: Remove explicit declarations of xmalloc and xrealloc, | |
1192 Instead, include "xalloc.h". | |
1193 (initbuffer): Don't cast xmalloc return value to char*. | |
1194 (readline): Reword comment. | |
1195 Don't cast xrealloc return value to char* | |
1196 Return NULL, not 0. | |
1197 | |
3669 | 1198 2001-12-09 Jim Meyering <meyering@lucent.com> |
1199 | |
3677 | 1200 * modechange.c (mode_compile): Add cast to avoid pedantic warning about |
3676 | 1201 `signed and unsigned type in conditional expression'. |
1202 * posixtm.c (posix_time_parse): Likewise. | |
1203 | |
3677 | 1204 * xreadlink.c (xreadlink): Add cast to avoid a pedantic warning. |
3676 | 1205 |
1206 * readtokens.c (readtoken): Declare an index to be of type unsigned | |
1207 to avoid a pedantic warning. | |
1208 | |
1209 * getstr.c: Don't include assert.h. | |
1210 (getstr): Remove warning-evoking assertions. | |
1211 Return -1 if offset parameter is out of bounds. | |
1212 Change the type of a local from int to size_t. | |
1213 | |
1214 * strftime.c (my_strftime_localtime_r): Include this function | |
1215 definition in the `#if ! HAVE_TM_GMTOFF' block. | |
1216 | |
3669 | 1217 * xgethostname.c: Remove declarations of xmalloc and xrealloc. |
1218 Include xalloc.h instead. | |
1219 | |
3664 | 1220 2001-12-02 Jim Meyering <meyering@lucent.com> |
1221 | |
3666 | 1222 * tempname.c: Don't declare getenv, thus reverting the change of |
1223 2001-11-18. It's no longer necessary, now that stdlib.h is always | |
1224 included. | |
1225 | |
3664 | 1226 * regex.c [!__BOUNDED_POINTERS__]: Define away __bounded, |
1227 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld. | |
1228 | |
3662 | 1229 2001-11-30 Akim Demaille <akim@epita.fr> |
1230 | |
1231 * xstrdup.c: Include xalloc.h, so that xstrdup is declared | |
1232 before being defined. | |
1233 | |
3659 | 1234 2001-11-27 Paul Eggert <eggert@twinsun.com> |
1235 | |
1236 * quotearg.h (quotearg_n, quotearg_n_style): | |
1237 First arg is int, not unsigned. | |
1238 * quotearg.c (quotearg_n, quotearg_n_style): Likewise. | |
1239 (SIZE_MAX, UINT_MAX): New macros. | |
1240 (quotearg_n_options): Abort if N is negative. | |
1241 Avoid overflow check on hosts where size_t is 64 bits and int | |
1242 is 32 bits, as overflow is impossible there. | |
1243 Fix off-by-one typo that caused unnecessary reallocation. | |
1244 | |
3655 | 1245 2001-11-27 Jim Meyering <meyering@lucent.com> |
1246 | |
1247 * tempname.c: Merge with version from libc. | |
3659 | 1248 * regex.c: Likewise. |
3655 | 1249 |
1250 * tempname.c: Include stdlib.h unconditionally. On some old systems | |
1251 for which STDC_HEADERS is 0, it was not included, resulting in a | |
1252 warning about an integer-to-pointer conversion problem with getenv. | |
1253 Reported by Volker Borchert. | |
1254 | |
3651 | 1255 2001-11-26 Jim Meyering <meyering@lucent.com> |
1256 | |
1257 * gtod.h: Remove file. | |
3659 | 1258 * Makefile.am (libfetish_a_SOURCES): Remove gtod.h. |
3651 | 1259 * gettimeofday.c: Don't include gtod.h. |
1260 (GTOD_init): Remove function. | |
1261 (rpl_gettimeofday): Do its job here instead, rather than aborting. | |
1262 Suggestion from Volker Borchert. | |
1263 | |
3647 | 1264 2001-11-23 Jim Meyering <meyering@lucent.com> |
1265 | |
1266 * hash.h (struct hash_table): Don't define here. Merely declare it. | |
1267 * hash.c (struct hash_table): Define it here instead. | |
1268 | |
3644 | 1269 2001-11-22 Jim Meyering <meyering@lucent.com> |
1270 | |
1271 * hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif. | |
1272 | |
3636 | 1273 2001-11-18 Paul Eggert <eggert@twinsun.com> |
1274 | |
1275 * tempname.c (TMP_MAX): Remove; no longer needed. | |
1276 (TEMPORARIES): New macro. | |
1277 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This | |
1278 removes an artificial limitation (e.g. HP-UX 10.20, where | |
1279 TMP_MAX is 17576). | |
1280 | |
3627 | 1281 2001-11-18 Jim Meyering <meyering@lucent.com> |
1282 | |
1283 * tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning | |
1284 on SunOS4. | |
1285 | |
3628 | 1286 * Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those |
1287 files will be created before anything else. | |
3627 | 1288 |
3615 | 1289 2001-11-17 Jim Meyering <meyering@lucent.com> |
1290 | |
3638 | 1291 * modechange.c (mode_adjust): Fix error introduced on 1999-04-26 |
1292 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable | |
1293 rather than group writable. Patch by Juan F. Codagnone. | |
1294 | |
3623 | 1295 * readtokens.c: Remove explicit declarations of xmalloc and xrealloc, |
1296 Instead, include "xalloc.h". | |
1297 | |
1298 * mountlist.c: Include unlocked-io.h after all system headers. | |
1299 Remove explicit declarations of xmalloc, xrealloc, | |
1300 and xstrdup. Instead, include "xalloc.h". | |
1301 | |
3619 | 1302 * argmatch.c, closeout.c, error.c, exclude.c: Include unlocked-io.h. |
1303 * fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c: Likewise. | |
1304 * mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise. | |
3623 | 1305 |
3619 | 1306 * regex.c, sha.c, version-etc.c, yesno.c: Likewise. |
3620 | 1307 Reported by Padraig Brady. |
3619 | 1308 |
3615 | 1309 * mkstemp.c: #undef mkstemp. |
1310 Include config.h. | |
1311 (rpl_mkstemp): Rename from mkstemp. | |
1312 Protoize. | |
1313 | |
3608 | 1314 2001-11-16 Jim Meyering <meyering@lucent.com> |
1315 | |
1316 * physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>. | |
1317 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to | |
1318 determine the amount of total physical memory, use pstat_getstatic. | |
1319 HPUX-11 doesn't define _SC_PHYS_PAGES. | |
1320 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]: | |
1321 If sysconf couldn't be used to determine the amount of available | |
1322 physical memory, use both pstat_getstatic and pstat_getdynamic. | |
1323 Based on a patch from Bob Proulx. | |
1324 | |
3597 | 1325 2001-11-05 Jim Meyering <meyering@lucent.com> |
1326 | |
1327 * xstat.in (slash_aware_lstat): Correct a misleading comment. | |
1328 | |
3583 | 1329 2001-11-03 Jim Meyering <meyering@lucent.com> |
1330 | |
3591 | 1331 * argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args |
1332 in argmatch_to_argument call. | |
1333 | |
3586 | 1334 * dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an |
1335 argument. | |
1336 | |
3583 | 1337 * hash.c (hash_clear): Fix a bug that could lead to an infloop or |
1338 e.g., a fault due to an attempt to free a NULL pointer. | |
1339 | |
3565 | 1340 2001-11-01 Jim Meyering <meyering@lucent.com> |
1341 | |
3576 | 1342 * dirfd.c, dirfd.h: New files. |
3573 | 1343 * Makefile.am (libfetish_a_SOURCES): Add dirfd.h. |
1344 | |
3565 | 1345 * hash.c (hash_print) [TESTING]: Clean up. |
1346 | |
3562 | 1347 2001-10-22 Paul Eggert <eggert@twinsun.com> |
1348 | |
1349 * hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__, | |
1350 to avoid a warning if -Wall. | |
1351 | |
3560 | 1352 2001-10-21 Paul Eggert <eggert@twinsun.com> |
1353 | |
3562 | 1354 * regex.c (uintptr_t): Remove macro and decl; it's config.h's job. |
3560 | 1355 |
3553 | 1356 2001-10-21 Jim Meyering <meyering@lucent.com> |
1357 | |
1358 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, | |
1359 this code would end up calling gettext even in packages built | |
1360 with --disable-nls. | |
3555 | 1361 * getopt.c (_): Likewise. |
3557 | 1362 * regex.c (_): Likewise. |
3553 | 1363 |
3551 | 1364 2001-10-20 Paul Eggert <eggert@twinsun.com> |
1365 | |
1366 * error.c (strerror_r): Do not declare unless !_LIBC. | |
1367 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P. | |
1368 Use strerror_r that is only a macro, even if it is not a function. | |
1369 (strerror): Check for HAVE_DECL_STRERROR before declaring. | |
1370 (private_strerror): Use prototypes, not old-style function definition. | |
1371 (print_errno_message): New function. | |
1372 Support the POSIX 'int'-flavored strerror_r, as well as the traditional | |
1373 char*-flavored one. | |
1374 (error_tail, error, error_at_line): Use it. | |
1375 | |
3546 | 1376 2001-10-11 Jim Meyering <meyering@lucent.com> |
1377 | |
1378 * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ... | |
1379 and quote_n (1, ... to avoid clobbering a buffer. | |
1380 | |
3543 | 1381 2001-10-05 Jim Meyering <meyering@lucent.com> |
1382 | |
1383 * Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h. | |
1384 * hash-pjw.c: New file (factored out of fileutils' remove.c). | |
1385 * hash-pjw.h: New file. | |
1386 | |
3538 | 1387 2001-09-30 Jim Meyering <meyering@lucent.com> |
1388 | |
1389 * mountlist.c [MOUNTED_GETFSSTAT]: | |
1390 Include <sys/ucred.h>, for Apple Darwin. | |
1391 Include sys/mount.h and sys/fs_types.h only if available. | |
1392 (FS_TYPE): Define. | |
1393 (read_filesystem_list): Use FS_TYPE. | |
1394 | |
3536 | 1395 2001-09-29 Paul Eggert <eggert@twinsun.com> |
1396 | |
3562 | 1397 * exclude.c (excluded_filename): 0 -> false, since it's |
3536 | 1398 a boolean context. |
1399 | |
3526 | 1400 2001-09-28 Paul Eggert <eggert@twinsun.com> |
1401 | |
1402 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which | |
1403 #defines strtoimax. Also treat the other strto* functions | |
1404 like strtoimax. | |
1405 | |
1406 * xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL. | |
1407 (strtoul): Do not declare if HAVE_DECL_STRTOUL. | |
1408 (strtoimax, strtoumax): Do not declare if already defined as a macro. | |
1409 | |
3521 | 1410 2001-09-26 Jim Meyering <meyering@lucent.com> |
1411 | |
1412 Most macros in unlocked-io.h had the wrong number of arguments. | |
1413 * gen-uio: New script. | |
3524 | 1414 (USE_UNLOCKED_IO): Define to 1 if not already defined. |
3521 | 1415 * unlocked-io.hin: Remove file. |
1416 * Makefile.am (unlocked-io.h): Rewrite to use a separate script, | |
1417 rather than trying to embed it here. | |
1418 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin | |
1419 Reported by Padraig Brady. | |
1420 | |
3512 | 1421 2001-09-25 Volker Borchert <bt@teknon.de> |
1422 | |
1423 * gettimeofday.c (rpl_gettimeofday): Declare local variable `result'. | |
1424 | |
3503 | 1425 2001-09-23 Jim Meyering <meyering@lucent.com> |
1426 | |
1427 * mountlist.c: Remove useless parentheses in #if directives. | |
1428 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when | |
1429 the deprecated MOUNTED symbol is no longer defined in mntent.h. | |
1430 | |
3495 | 1431 2001-09-22 Jim Meyering <meyering@lucent.com> |
1432 | |
1433 * localcharset.c: Update from latest gettext. | |
1434 * config.charset: Likewise. | |
1435 | |
3493 | 1436 2001-09-20 Jim Meyering <meyering@lucent.com> |
1437 | |
1438 * xstrtol.c (strtoimax): Guard declaration with | |
1439 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'. | |
1440 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0) | |
1441 have their own, conflicting declaration of strtoimax in sys/inttypes.h. | |
1442 (strtoumax): Likewise, for completeness (it wasn't necessary). | |
1443 | |
3482 | 1444 2001-09-06 Paul Eggert <eggert@twinsun.com> |
1445 | |
1446 * strtoimax.c (HAVE_LONG_LONG): | |
1447 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned. | |
1448 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base), | |
1449 to work around bug in IBM C compiler. | |
1450 | |
3479 | 1451 2001-09-16 Jim Meyering <meyering@lucent.com> |
1452 | |
1453 * mkdir.c: New file. | |
1454 | |
3467 | 1455 2001-09-04 Paul Eggert <eggert@twinsun.com> |
1456 | |
1457 * xgetcwd.c: Revert some of the previous change; intead, | |
1458 fix the HAVE_GETCWD_NULL code to behave more like the | |
1459 !HAVE_GETCWD_NULL code used to. | |
1460 | |
1461 Include "xalloc.h". | |
1462 (xgetcwd): Do not return NULL when memory is exhausted; instead, | |
1463 invoke xalloc_die. | |
1464 | |
3465 | 1465 2001-09-04 Paul Eggert <eggert@twinsun.com> |
1466 | |
1467 * xreadlink.c (xreadlink): Omit size_t* arg. All uses changed. | |
1468 Use ssize_t, not int, to store result of readlink. | |
1469 Check for ssize_t overflow as well as size_t overflow, | |
1470 as POSIX says the result of readlink is implementation-defined | |
1471 when ssize_t overflows. | |
1472 Remove unnecessary cast to char*. | |
1473 Use free+malloc instead of realloc, as the storage doesn't need | |
1474 to be preserved and it's clearer and can be more efficient that way. | |
1475 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare. | |
1476 * xreadlink.h (xreadlink): Update prototype. | |
1477 | |
3460 | 1478 2001-09-03 Paul Eggert <eggert@twinsun.com> |
1479 | |
1480 * exclude.c (fnmatch_no_wildcards): Fix confusion between | |
1481 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was | |
1482 spotted by Jim Meyering. | |
1483 | |
3456 | 1484 2001-09-03 Jim Meyering <meyering@lucent.com> |
1485 | |
1486 * xreadlink.c (xreadlink): Preserve errno around `free' during failure. | |
1487 | |
1488 2001-09-03 Paul Eggert <eggert@twinsun.com> | |
1489 | |
1490 * xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more | |
1491 like the HAVE_GETCWD_NULL code. | |
1492 Include pathmax.h if not HAVE_GETCWD. | |
1493 Do not include xalloc.h. | |
1494 (INITIAL_BUFFER_SIZE): New symbol. | |
1495 Do not use xmalloc / xrealloc, since the caller is responsible for | |
1496 handling errors. Preserve errno around `free' during failure. | |
1497 Do not overrun buffer when using getwd. | |
1498 | |
3449 | 1499 2001-09-03 Paul Eggert <eggert@twinsun.com> |
1500 | |
1501 * xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined | |
1502 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0). | |
1503 | |
3447 | 1504 2001-09-02 Jim Meyering <meyering@lucent.com> |
1505 | |
1506 * error.c: Update from GNU libc. | |
1507 | |
3437 | 1508 2001-09-01 Jim Meyering <meyering@lucent.com> |
1509 | |
3442 | 1510 * xreadlink.c: New file. |
1511 * xreadlink.h: New file. | |
1512 * Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h. | |
1513 | |
3439 | 1514 * regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it |
1515 doesn't conflict with sparc-sun-solaris2.7's definition in | |
1516 /usr/include/sys/int_types.h. | |
1517 | |
3437 | 1518 * exclude.c: Use `""', not `<>' to #include non-system header files. |
1519 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp | |
1520 and strncasecmp as r-values. Unixware didn't have declarations. | |
1521 | |
3434 | 1522 2001-08-31 Jim Meyering <meyering@lucent.com> |
1523 | |
1524 * xgetcwd.c (xgetcwd): Reorganize to avoid some duplication. | |
1525 Use an initial, malloc'd, buffer of length 128 rather than | |
1526 a statically allocated one of length 1024. | |
1527 | |
3432 | 1528 2001-08-30 Paul Eggert <eggert@twinsun.com> |
1529 | |
3562 | 1530 * xgetcwd.c: Don't include pathmax.h. |
3432 | 1531 Include stdlib.h and unistd.h if available. |
1532 Include xalloc.h. | |
1533 (xmalloc, xstrdup, free): Remove decls. | |
1534 (xgetcwd): Don't assume sizes fit in unsigned. | |
1535 Check for overflow when computing sizes. | |
1536 Simplify reallocation code. | |
1537 | |
3422 | 1538 2001-08-28 Paul Eggert <eggert@twinsun.com> |
1539 | |
1540 * Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c. | |
1541 | |
1542 * strtoimax.c: Renamed from strtoxmax.c, removing the | |
1543 old strtoimax.c. | |
1544 | |
1545 Also, make the following further changes to make this file's | |
1546 configuration more similar to that of strtol.c: | |
1547 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed. | |
1548 (strtoumax, uintmax_t, strtoull, strtol): Remove. | |
1549 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED. | |
1550 (strtoimax): Renamed from strtoumax. All uses of unsigned values | |
1551 changed to signed values. | |
1552 | |
1553 And make the following changes as well: | |
1554 Fix copyright notice, as 1999 was missing. | |
1555 (verify): New macro. | |
1556 (strtoimax): Check sizes at compile-time, not run-time. | |
1557 Prefer strtol to strtoll if both work. | |
1558 (main): Remove; it was not that useful and was a pain to maintain. | |
1559 | |
1560 * strtoumax.c: Include strtoimax.c, not strtouxmax.c. | |
1561 | |
3415 | 1562 2001-08-30 Paul Eggert <eggert@twinsun.com> |
1563 | |
3422 | 1564 * savedir.c (savedir): Remove size parameter, as POSIX says that |
1565 a directory's st_size can have an arbitrary value, so the old | |
1566 usage could waste an arbitrary amount of memory. All uses | |
1567 changed. | |
1568 * savedir.h: Update prototype. | |
1569 | |
1570 2001-08-30 Paul Eggert <eggert@twinsun.com> | |
1571 | |
1572 * xstrtol.c (strtoimax): New decl. | |
3415 | 1573 |
3413 | 1574 2001-08-28 Paul Eggert <eggert@twinsun.com> |
1575 | |
3422 | 1576 * xstrtol.h: Add copyright notice. |
3413 | 1577 (_DECLARE_XSTRTOL): Improve quality of diagnostic for |
1578 LONGINT_INVALID_SUFFIX_CHAR. | |
1579 | |
3411 | 1580 2001-08-30 Paul Eggert <eggert@twinsun.com> |
1581 | |
1582 * quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct | |
1583 tm to be declared. | |
1584 | |
3409 | 1585 2001-08-30 Paul Eggert <eggert@twinsun.com> |
1586 | |
1587 * hash.c: Remove '2001' from copyright notice. | |
1588 | |
3405 | 1589 2001-08-30 Paul Eggert <eggert@twinsun.com> |
1590 | |
1591 * full-write.h: New file. | |
1592 * Makefile.am (libfetish_a_SOURCES): Add full-write.h. | |
1593 * full-write.c: Correct credits, as cccp.c no longer | |
1594 exists and anyway it was so heavily changed from the old cccp | |
1595 code as to be unrecognizable. Include full-write.h. | |
1596 (full_write) Return size_t, with short writes meaning failure. | |
1597 All callers changed. This fixes a bug with large buffers | |
1598 on 64-bit hosts. | |
1599 * utime.c: Include full-write.h. | |
1600 | |
3397 | 1601 2001-08-30 Paul Eggert <eggert@twinsun.com> |
1602 | |
3400 | 1603 Merge 'exclude' changes from tar 1.13.22. |
1604 This fixes one or two unlikely storage allocation overflow bugs, | |
1605 but doesn't change user-visible behavior otherwise. | |
1606 | |
3405 | 1607 2001-08-30 Paul Eggert <eggert@twinsun.com> |
1608 | |
3400 | 1609 * exclude.c (bool): Declare, perhaps by including stdbool.h. |
1610 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H. | |
1611 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>): | |
1612 Include if available. | |
1613 (<xalloc.h>): Include | |
1614 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't. | |
1615 (verify): New macro. Use it to verify that EXCLUDE macros do not | |
1616 collide with FNM macros. | |
1617 (struct patopts): New struct. | |
1618 (struct exclude): Use it, as exclude patterns now come with options. | |
1619 (new_exclude): Support above changes. | |
1620 (new_exclude, add_exclude_file): | |
1621 Initial size must now be a power of two to simplify overflow checking. | |
1622 (free_exclude, fnmatch_no_wildcards): New function. | |
1623 (excluded_filename): No longer requires options arg, as the options | |
1624 are determined by add_exclude. Now returns bool, not int. | |
1625 (excluded_filename, add_exclude): | |
1626 Add support for the fancy new exclusion options. | |
1627 (add_exclude, add_exclude_file): Now takes int options arg. | |
1628 Check for arithmetic overflow when computing sizes. | |
1629 (add_exclude_file): xrealloc might modify errno, so don't | |
1630 realloc until after errno might be used. | |
1631 | |
1632 * exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): | |
1633 New macros. | |
1634 (free_exclude): New decl. | |
1635 (add_exclude, add_exclude_file): Now takes int options arg. | |
1636 (excluded_filename): No longer requires options arg, as the options | |
1637 are determined by add_exclude. Now returns bool, not int. | |
1638 | |
3405 | 1639 2001-08-30 Paul Eggert <eggert@twinsun.com> |
1640 | |
1641 * alloca.c (alloca): Arg is of type size_t, not unsigned. | |
3397 | 1642 |
3387 | 1643 2001-08-27 Jim Meyering <meyering@lucent.com> |
1644 | |
3391 | 1645 * Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c |
1646 | |
1647 * version-etc.c (N_): Remove definition. | |
1648 Revert most of last change. | |
1649 Instead, simply don't mark the `Copyright...' string for translation. | |
1650 Based on advice from Paul Eggert. | |
1651 | |
3387 | 1652 * strtoxmax.c: Tweak comment. |
1653 | |
3368 | 1654 2001-08-26 Jim Meyering <meyering@lucent.com> |
1655 | |
3387 | 1656 * version-etc.c (version_etc_copyright_fmt): Replace literal year |
1657 of copyright with `%s' so translators don't get an untranslated | |
1658 message in 2002. | |
1659 (COPYRIGHT_YEAR): Define. | |
1660 (version_etc): Use fprintf rather than fputs. | |
1661 Suggestion from Ulrich Drepper. | |
1662 | |
3378 | 1663 * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c. |
1664 | |
3375 | 1665 * strtoll.c: New file, from GNU libc. |
3368 | 1666 * xstrtoimax.c: New file. |
1667 | |
3380 | 1668 * xstrtol.h: Add xstrtoimax. |
3368 | 1669 * strtoumax.c: New file. Simply include "strtoumax.c". |
1670 * strtoimax.c: New file. Likewise, but first define STRTOUXMAX_SIGNED. | |
1671 | |
1672 * strtoumax.c: Factor to work both for unsigned and signed types, ... | |
3387 | 1673 * strtoxmax.c: ... then renamed to this. |
3368 | 1674 |
3348 | 1675 2001-08-13 Paul Eggert <eggert@twinsun.com> |
1676 | |
1677 * Makefile.am (unlocked-io.h): Do not append "_unlocked" twice. | |
1678 Port to Solaris 8, where 'sed' requires a space after the 'r' | |
1679 command, and where sh dislikes "$/". Clean up the spacing a bit. | |
1680 Redirect output to $tmp just once. | |
1681 | |
3346 | 1682 2001-08-12 Paul Eggert <eggert@sic.twinsun.com> |
1683 | |
3411 | 1684 * addext.c (<errno.h>): Include. |
3346 | 1685 (errno): Declare if not defined. |
1686 (addext): Work correctly when pathconf returns -1 and leaves | |
1687 errno alone because there is no limit. Also, work even if | |
1688 pathconf returns a value greater than SIZE_MAX. | |
1689 | |
3344 | 1690 2001-08-12 Jim Meyering <meyering@lucent.com> |
1691 | |
1692 * xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]: | |
1693 Simply `return getcwd (NULL, 0);'. | |
1694 [! (defined __GLIBC__ && __GLIBC__ >= 2)]: | |
1695 Use 1300 as initial value for length, not PATH_MAX. | |
1696 | |
1697 * pathmax.h: Clean up cpp syntax. | |
1698 | |
3334 | 1699 2001-08-12 Jim Meyering <meyering@lucent.com> |
1700 | |
1701 * gettimeofday.c: New file. | |
1702 * gtod.h: New file. | |
1703 * Makefile.am (libfetish_a_SOURCES): Add gtod.h. | |
1704 | |
3329 | 1705 2001-08-04 Jim Meyering <meyering@lucent.com> |
1706 | |
1707 * error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt, | |
1708 to get in sync with glibc. | |
1709 | |
3327 | 1710 2001-08-03 Paul Eggert <eggert@twinsun.com> |
1711 | |
1712 The following changes are from gettext 0.10.39 as maintained by | |
1713 Bruno Haible. | |
1714 | |
1715 * mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID): | |
1716 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID | |
1717 with inverted sense. All uses changed. | |
1718 | |
1719 * mbswidth.c: Don't include <limits.h>. | |
1720 Include <stdlib.h> and <string.h> unconditionally. | |
1721 (iswcntrl, mbsinit, ISCNTRL): New macros. | |
1722 (mbsnwidth): Use K&R style function declarations. | |
1723 Don't bother checking for MB_LEN_MAX == 1, since the compiler | |
1724 can optimize it when MB_CUR_MAX == 1. | |
1725 The width of control characters is zero, not 1. | |
1726 | |
3300 | 1727 2001-07-15 Jim Meyering <meyering@lucent.com> |
1728 | |
3301 | 1729 * Makefile.am (EXTRA_DIST): Add unlocked-io.hin. |
1730 (BUILT_SOURCES): Add unlocked-io.h. | |
1731 (io_functions): Define. | |
1732 (unlocked-io.h): New rule. | |
3304 | 1733 (DISTCLEANFILES): Add unlocked-io.h. |
3306 | 1734 (all-local): Depend on unlocked-io.h, to ensure it is created. |
3304 | 1735 |
3301 | 1736 * unlocked-io.hin: New file |
1737 | |
3300 | 1738 * regex.c: Update from glibc. |
1739 | |
3290 | 1740 2001-07-05 Jim Meyering <meyering@lucent.com> |
1741 | |
1742 * Makefile.am (noinst_HEADERS): Remove definition, per new automake | |
1743 recommendation. | |
1744 (libfetish_a_SOURCES): Put all .h files here instead. | |
1745 Remove a thus-exposed (better checks in automake) duplicate and | |
1746 two unnecessary .h files. | |
1747 | |
3279 | 1748 2001-06-11 Jim Meyering <meyering@lucent.com> |
1749 | |
1750 * regex.c: Update from GNU libc. | |
1751 | |
3277 | 1752 2001-05-27 Jim Meyering <meyering@lucent.com> |
1753 | |
1754 * readutmp.h (UT_TYPE): Define. | |
1755 | |
3273 | 1756 2001-05-24 Jim Meyering <meyering@lucent.com> |
1757 | |
1758 * argmatch.c: Include "quote.h". | |
1759 (argmatch_invalid): Remove explicit `' quotes. Instead, use the | |
1760 quote function. Reported by G�ran Uddeborg. | |
1761 | |
3264 | 1762 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr> |
1763 | |
1764 * dirname.c (dir_name): Compute append_dot using path, not newpath | |
1765 which is not yet declared. | |
1766 | |
1767 2001-05-11 Paul Eggert <eggert@twinsun.com> | |
1768 | |
3411 | 1769 * Makefile.am (libfetish_a_SOURCES): |
3264 | 1770 Add strftime.c, since we now compile it on all hosts. |
1771 | |
3411 | 1772 * strftime.c (my_strftime): |
3264 | 1773 Define to nstrftime if emacs, but only if my_strftime is not defined. |
1774 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from | |
1775 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively. | |
1776 Add one more extra argument: a nanoseconds value. | |
1777 All uses changed. | |
1778 (ns): New macro. | |
1779 (my_strftime function): Add %N format. | |
1780 (emacs_strftimeu): Renamed from emacs_strftime, | |
1781 with extra ut argument. | |
1782 | |
3249 | 1783 2001-05-11 Paul Eggert <eggert@twinsun.com> |
1784 | |
1785 dirname code cleanup. base_name now behaves more compatibly | |
1786 with POSIX basename when given file names that have trailing | |
1787 slashes, and similarly for dir_name. Add new primitives | |
1788 base_len and dir_len. Put the directory-name-related decls | |
1789 into dirname.h. | |
1790 | |
1791 * addext.c (ISSLASH, base_name): Remove; now in dirname.h. | |
1792 * backupfile.c (base_name): Likewise. | |
1793 * basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise. | |
1794 * dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise. | |
1795 * makepath.c (strip_trailing_slashes): Likewise. | |
1796 * path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): | |
1797 Likewise. | |
1798 * rename.c (strip_trailing_slashes): Likewise. | |
1799 * same.c (base_name): Likewise. | |
1800 * stripslash.c (ISSLASH): Likewise. | |
1801 | |
1802 * addext.c: Include <dirname.h> after size_t is defined. | |
1803 * backupfile.c: Likewise. | |
1804 | |
1805 * addext.c (addext): Use base_len to trim redundant | |
1806 trailing slashes instead of doing it ourselves. | |
1807 But do not trim the last slash if it is not redundant. | |
1808 | |
1809 * backupfile.c (find_backup_file_name, | |
1810 max_backup_version): Use base_len instead of rolling it ourselves. | |
1811 Handle the case of "" and (on DOS) "C:" correctly. | |
1812 | |
1813 * basename.c: Do not include <stdio.h>, <assert.h>; no longer needed. | |
1814 Include <string.h>, <dirname.h>. | |
1815 (base_name): Allow file names ending in slashes, other than names | |
1816 that are all slashes. In this case, return the basename followed | |
1817 by the slashes. This is more general, and can be used in places | |
1818 where the original base_name purposely had an assertion failure. | |
1819 (base_len): New function. | |
1820 | |
1821 * dirname.c: Include <string.h> instead of <stdlib.h>. | |
1822 Do not include <assert.h>; no longer needed. | |
1823 Include xalloc.h. | |
1824 (memrchr): Remove decl. | |
1825 (dir_name_r): Remove. | |
1826 (dir_len): Renamed from dirlen. All callers changed. | |
1827 Rewrite in terms of base_name, for simplicity and consistency. | |
1828 (dir_name): Never return NULL. All callers changed. | |
1829 Do not include <stdlib.h> in test program; no longer needed. | |
1830 return 0; is fine for test program. | |
1831 | |
1832 * dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): | |
1833 New macros. | |
1834 (base_name, base_len, dir_len, strip_trailing_slashes): New decls. | |
1835 | |
1836 * path-concat.c (path_concat): Use base_len to compute | |
1837 base length, not strlen; this means we cannot rely on memcpy | |
1838 to null-terminate. | |
1839 | |
1840 * same.c (STREQ): Remove. | |
1841 (same_name): Handle the case where the basename ends in trailing '/'. | |
1842 | |
1843 * stripslash.c (strip_trailing_slashes): Return nonzero if | |
1844 a slash was stripped. Do not strip the last slash after a | |
1845 file system prefix. | |
1846 | |
3229 | 1847 2001-04-08 Jim Meyering <meyering@lucent.com> |
1848 | |
1849 * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is | |
1850 recomputed; that's necessary when the offset spans a DST transition. | |
1851 Patch by David J. MacKenzie. Reported by Hon-Yin Kok. | |
1852 | |
3226 | 1853 2001-04-02 Jim Meyering <meyering@lucent.com> |
1854 | |
1855 * regex.h, regex.c: Update from GNU libc. | |
1856 | |
3221 | 1857 2001-03-19 Paul Eggert <eggert@twinsun.com> |
1858 | |
3249 | 1859 * version-etc.c (version_etc_copyright): Update to 2001. |
3221 | 1860 |
3213 | 1861 2001-03-16 Paul Eggert <eggert@twinsun.com> |
1862 | |
1863 * tempname.c (uint64_t): Define to uintmax_t if | |
1864 not defined, and if UINT64_MAX is not defined. | |
1865 Required at least for Vax Ultrix4.3, which doesn't define uint64_t. | |
1866 Reported by John David Anglin. | |
1867 | |
3211 | 1868 2001-03-10 Bruno Haible <haible@clisp.cons.org> |
1869 | |
1870 * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve | |
1871 alias if codeset is empty. | |
1872 * config.charset (BeOS): Use wildcard syntax. | |
1873 | |
3208 | 1874 2001-03-13 Jim Meyering <meyering@lucent.com> |
1875 | |
1876 * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: | |
1877 Don't insert a backslash when concatenating e.g., `C:' and `foo'. | |
1878 From Bruno Haible. | |
1879 | |
3204 | 1880 2001-03-06 Bruno Haible <haible@clisp.cons.org> |
1881 | |
1882 * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL). | |
1883 Don't return NULL. | |
1884 * unicodeio.c (print_unicode_char): Simplify accordingly. | |
1885 | |
3201 | 1886 2001-03-06 Bruno Haible <haible@clisp.cons.org> |
1887 | |
1888 * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add | |
1889 support for DOS/DJGPP. | |
1890 | |
3197 | 1891 2001-02-28 Paul Eggert <eggert@twinsun.com> |
1892 | |
1893 * Makefile.am (libfetish_a_SOURCES): | |
1894 Add dup-safer.c, fopen-safer.c. | |
1895 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h. | |
1896 | |
3411 | 1897 * dup-safer.c, fopen-safer.c, stdio-safer.h, unistd-safer.h: New files. |
3197 | 1898 |
3195 | 1899 2001-02-25 Paul Eggert <eggert@twinsun.com> |
1900 | |
1901 The mkstemp replacement is taken from glibc 2.2.2, with some | |
1902 portability fixes for use outside glibc, as follows: | |
1903 | |
1904 * tempname.c (struct_stat64): New macro. | |
1905 (direxists, __gen_tempname): Use it. | |
1906 This avoids a portability problem with Solaris 8. | |
1907 | |
1908 * tempname.c (<config.h>): Include if HAVE_CONFIG_H. | |
1909 (<stddef.h>, <stdint.h>, <string.h>): | |
1910 Include only if STDC_HEADERS || _LIBC. | |
1911 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC. | |
1912 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC. | |
1913 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC. | |
1914 (__set_errno): Define this macro if <errno.h> doesn't. | |
1915 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE): | |
1916 Define these macros if <stdio.h> doesn't. | |
1917 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR): | |
1918 Define these macros if <sys/stat.h> | |
1919 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN. | |
1920 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64, | |
1921 __xstat64): Define if not _LIBC. | |
1922 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC). | |
1923 (__gen_tempname): Invoke gettimeofday only if | |
1924 HAVE_GETTIMEOFDAY || _LIBC; | |
1925 otherwise, fall back on plain "time". | |
1926 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600. | |
1927 | |
1928 * mkstemp.c (__GT_FILE): Define to zero if not defined. | |
1929 | |
1930 * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2. | |
1931 | |
3182 | 1932 2001-02-17 Jim Meyering <meyering@lucent.com> |
1933 | |
3186 | 1934 * strtoul.c: Sync from GNU libc. Use double quotes, not <...> |
1935 around included file name. | |
1936 | |
3184 | 1937 * strnlen.c (__strnlen): Merge in a change from GNU libc. |
1938 | |
1939 * strftime.c: Update from GNU libc (the only changes were to comments). | |
3182 | 1940 |
3177 | 1941 2001-02-13 Bruno Haible <haible@clisp.cons.org> |
1942 | |
1943 * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash. | |
1944 | |
3173 | 1945 2001-02-17 Paul Eggert <eggert@twinsun.com> |
1946 | |
1947 * mbswidth.c, quotearg.c (mbrtowc, mbsinit): | |
1948 Remove workaround macros for hosts that have mbrtowc but not | |
1949 mbstate_t, as we now insist on proper declarations for both | |
1950 before using mbrtowc. | |
1951 | |
3166 | 1952 2001-02-17 Jim Meyering <meyering@lucent.com> |
1953 | |
1954 * regex.c: Update from libc. | |
1955 | |
3163 | 1956 2001-02-16 Paul Eggert <eggert@twinsun.com> |
1957 | |
3195 | 1958 * alloca.c (malloc): Undef before defining, since stdlib.h |
3164 | 1959 may have defined it. Needed for Encore Umax-3.0.9.16b systems. |
1960 Reported by Mark Hounschell via Paul Eggert. | |
3163 | 1961 |
3149 | 1962 2001-01-30 Bruno Haible <haible@clisp.cons.org> |
1963 | |
1964 * config.charset: Update for FreeBSD 4.2. | |
1965 | |
3131 | 1966 2001-01-26 Jim Meyering <meyering@lucent.com> |
1967 | |
3133 | 1968 * quotearg.c: Include stddef.h. |
1969 * quote.c: Include stddef.h. | |
1970 Reported by Axel Kittenberger. | |
1971 | |
3131 | 1972 * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking |
1973 line in double quotes so that it evokes a better diagnostic. | |
1974 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise. | |
1975 Reported by Axel Kittenberger. | |
1976 | |
3124 | 1977 2001-01-15 Bruno Haible <haible@clisp.cons.org> |
1978 | |
1979 * unicodeio.c (print_unicode_char): Cast the second iconv() arg, | |
1980 to avoid a warning. Add back 'const' to inptr. | |
1981 | |
3108 | 1982 2001-01-16 Jim Meyering <meyering@lucent.com> |
1983 | |
1984 * basename.c: Include <stdio.h>, needed by assert on SunOS4. | |
1985 From Bruno Haible. | |
1986 | |
3103 | 1987 2001-01-14 Jim Meyering <meyering@lucent.com> |
1988 | |
1989 * rename.c: New file. From Volker Borchert. | |
1990 Include stdlib.h, string.h or strings.h, and xalloc.h. | |
1991 Use strip_trailing_slashes rather than open-coding it. | |
1992 | |
3095 | 1993 2001-01-03 Paul Eggert <eggert@twinsun.com> |
1994 | |
3195 | 1995 * strftime.c: Sync with glibc time/strftime.c 1.81. |
3095 | 1996 |
3091 | 1997 2001-01-03 Jim Meyering <meyering@lucent.com> |
1998 | |
1999 * unicodeio.c (print_unicode_char): Remove `const' from declaration of | |
2000 local `inptr' to avoid warning with some system declarations of iconv. | |
2001 | |
3082 | 2002 2000-12-29 Paul Eggert <eggert@twinsun.com> |
2003 | |
3195 | 2004 * modechange.c: Do not assume that mode_t uses the |
3082 | 2005 traditional octal encoding. E.g. "chmod 1 FOO" should set |
2006 the other-execute bit of FOO even if S_IXOTH != 1. | |
2007 | |
2008 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH, | |
2009 WOTH, XOTH, ALLM): New macros. | |
2010 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, | |
2011 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): | |
2012 Use them. | |
2013 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID. | |
2014 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above. | |
2015 (mode_compile): | |
2016 No need to use uintmax_t; unsigned long is long enough. | |
2017 Don't bother to get suffix since we don't use it. | |
2018 | |
3074 | 2019 2000-12-24 Jim Meyering <meyering@lucent.com> |
2020 | |
2021 * hash.c (is_prime): Return explicit boolean values. | |
2022 (hash_get_first): Return NULL to appease Irix5.6's 89. | |
3075 | 2023 Reported by Nelson Beebe. |
3074 | 2024 |
3063 | 2025 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
2026 | |
2027 * localcharset.c (locale_charset): Add support for Win32. | |
2028 | |
2029 2000-12-18 Paul Eggert <eggert@twinsun.com> | |
2030 | |
3067 | 2031 * physmem.h, physmem.c: New files. |
3063 | 2032 |
3067 | 2033 * Makefile.am (libfetish_a_SOURCES): Add physmem.c. |
3063 | 2034 (noinst_HEADERS): Add physmem.h. |
2035 | |
3067 | 2036 * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and |
3063 | 2037 't' for compatibility with Solaris 8 sort. |
2038 | |
3061 | 2039 2000-12-18 Bruno Haible <haible@clisp.cons.org> |
2040 | |
2041 * config.charset: Add support for BeOS. | |
2042 | |
3053 | 2043 2000-12-16 Jim Meyering <meyering@lucent.com> |
2044 | |
2045 * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define | |
2046 SHELLS_FILE to a file name that's useful on djgpp systems. | |
2047 Include stdlib.h. | |
2048 (ADDITIONAL_DEFAULT_SHELLS): Define. | |
2049 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS. | |
2050 Based mostly on a patch from Prashant TR. | |
2051 | |
3051 | 2052 2000-12-16 Jim Meyering <meyering@lucent.com> |
2053 | |
2054 This bug had a serious impact on chown: `chown N:M FILE' (for integer | |
2055 N and M) would have treated it like `chown N:N FILE'. | |
2056 | |
2057 * userspec.c (parse_user_spec): Fix typo: s/u/g/. | |
2058 | |
3054 | 2059 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
2060 | |
2061 * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII, | |
2062 CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257 | |
2063 to the list of canonical encodings. Rename EUC-CN to GB2312. | |
2064 | |
3044 | 2065 2000-12-08 Andreas Schwab <schwab@suse.de> |
2066 | |
2067 * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an | |
2068 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set. | |
2069 | |
3039 | 2070 2000-12-07 Jim Meyering <meyering@lucent.com> |
2071 | |
3042 | 2072 * stripslash.c (ISSLASH): Define. |
2073 (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'. | |
2074 From Prashant TR. | |
2075 | |
3039 | 2076 * dirname.c (FILESYSTEM_PREFIX_LEN): Define. |
2077 (dir_name_r): Declare this function as static. | |
2078 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd | |
2079 manifest itself on a name containing a mix of slashes and | |
2080 backslashes. | |
2081 Make this function work with names starting with a DOS-style | |
2082 drive letter and colon prefix. | |
2083 (dir_name): Append `.' if necessary. | |
2084 Based mostly on patches from Prashant TR and Eli Zaretskii. | |
2085 | |
2086 * dirname.h (dir_name_r): Remove prototype. | |
2087 | |
3028 | 2088 2000-12-05 Jim Meyering <meyering@lucent.com> |
2089 | |
2090 * dirname.c (dir_name_r): Add `const' in a few local declarations. | |
2091 | |
3023 | 2092 2000-12-04 Jim Meyering <meyering@lucent.com> |
2093 | |
2094 * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc. | |
3025 | 2095 Also include memory.h, stdlib.h, unistd.h if appropriate. |
3026 | 2096 Reported by Andreas Jaeger (conflicting declaration of malloc). |
3023 | 2097 |
3020 | 2098 2000-12-02 Jim Meyering <meyering@lucent.com> |
2099 | |
2100 * closeout.h: Make idempotent, to avoid some obscure warnings. | |
2101 | |
3010 | 2102 2000-12-01 Paul Eggert <eggert@twinsun.com> |
2103 | |
3195 | 2104 * memrchr.c: Include <config.h> before any system include file. |
3010 | 2105 |
3005 | 2106 2000-11-29 Paul Eggert <eggert@twinsun.com> |
2107 | |
3195 | 2108 * dirname.c (dir_name_r): Fix typo: int -> size_t. |
3005 | 2109 |
2998 | 2110 2000-11-26 Jim Meyering <meyering@lucent.com> |
2111 | |
2112 * memcoll.c: Include sys/types.h. From Werner Almesberger. | |
2113 | |
2994 | 2114 2000-11-22 Paul Eggert <eggert@twinsun.com> |
2115 | |
3195 | 2116 * strftime.c (my_strftime): Do not invoke mbrlen with a |
2994 | 2117 size of (size_t) -1; it's not portable. |
2118 | |
2992 | 2119 2000-11-17 Akim Demaille <akim@epita.fr> |
2120 | |
3195 | 2121 * obstack.h: Formatting changes. |
2992 | 2122 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would |
2123 prevent type checking. | |
2124 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't | |
2125 cast the value to (void *): assigning a `foo *' to a `void *' | |
2126 variable is valid. | |
2127 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int. | |
2128 | |
2989 | 2129 2000-11-17 Jim Meyering <meyering@lucent.com> |
2130 | |
2131 * strstr.c: Update from GNU libc. | |
2132 | |
2987 | 2133 2000-11-16 Jim Meyering <meyering@lucent.com> |
2134 | |
2135 * strverscmp.c: Incorporate weak-alias-related changes from glibc. | |
2136 | |
2137 2000-11-11 Jim Meyering <meyering@lucent.com> | |
2138 | |
2139 * error.c: Add a couple #includes, merging from GNU libc version. | |
2140 | |
2980 | 2141 2000-11-10 Jim Meyering <meyering@lucent.com> |
2142 | |
2143 * obstack.h: Update from GNU libc. | |
2144 * obstack.c: Likewise. | |
2145 | |
2967 | 2146 2000-11-06 Paul Eggert <eggert@twinsun.com> |
2147 | |
2981 | 2148 * getusershell.c (setusershell): Use rewind rather than |
2967 | 2149 fseek/fseeko, to avoid configuration hassles with fseeko. |
2150 Don't bother opening SHELLS_FILE if shellstream is NULL; | |
2151 it's not necessary. | |
2152 | |
2965 | 2153 2000-11-05 Jim Meyering <meyering@lucent.com> |
2154 | |
2155 * makepath.h (make_dir): Declare. | |
2156 * makepath.c (make_dir): Remove `static' attribute. | |
2157 Tweak a comment. | |
2158 | |
2957 | 2159 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr> |
2160 | |
2161 * hash.c (hash_get_next): Fix a thinko: when ENTRY is the | |
2162 last one in a bucket, advance to the next bucket. | |
2163 | |
2955 | 2164 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg> |
2165 | |
2981 | 2166 * fnmatch.c: Do not comment out all the code if we are using |
2955 | 2167 the GNU C library, because in some cases we are replacing buggy |
2168 code in the GNU C library itself. | |
2169 | |
2952 | 2170 2000-10-30 Paul Eggert <eggert@twinsun.com> |
2171 | |
2981 | 2172 * error.h, getline.h, modechange.h: |
2952 | 2173 Remove "2000" from Copyright line, as the file hasn't been |
2174 changed this year other than in the copyright notice. | |
2175 | |
2981 | 2176 * xalloc.h: Add "2000" to Copyright line, as this file |
2952 | 2177 was changed this year. |
2178 | |
2949 | 2179 2000-10-30 Paul Eggert <eggert@twinsun.com> |
2180 | |
2981 | 2181 * fnmatch.c (FOLD): Do not assume that characters are unsigned. |
2949 | 2182 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs, |
2183 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero. | |
2184 | |
2941 | 2185 2000-10-29 Greg Louis <glouis@dynamicro.on.ca> |
2186 | |
2187 * regex.h (__restrict_arr): Move definition out of #ifndef block. | |
2188 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but | |
2189 doesn't define __restrict_arr. | |
2190 | |
2939 | 2191 2000-10-29 Jim Meyering <meyering@lucent.com> |
2192 | |
2193 * xstat.in: Fix grammar in comment. | |
2194 | |
2929 | 2195 2000-10-28 Jim Meyering <meyering@lucent.com> |
2196 | |
2933 | 2197 * memchr.c: Update from libc. |
2198 Adjust for portability: | |
2199 [HAVE_STDLIB_H]: Include stdlib.h. | |
2200 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h. | |
2201 Undef __memchr, too. | |
2202 [!weak_alias]: Define __memchr to memchr. | |
2203 | |
2931 | 2204 * regex.c: Update from libc. |
2205 * regex.h: Likewise. | |
2206 * getopt1.c: Likewise. | |
2935 | 2207 * memcmp.c: Likewise. |
2931 | 2208 |
2942
c5e4ce044bd7
fix typo: s/fseek0/fseeko/
Jim Meyering <jim@meyering.net>
parents:
2941
diff
changeset
|
2209 * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko. |
2967 | 2210 Avoid using fseek, when possible -- it's broken by design. |
2929 | 2211 Patch by Ulrich Drepper. |
2212 | |
2924 | 2213 2000-10-26 Jim Meyering <meyering@lucent.com> |
2214 | |
2215 * strftime.c: Update from libc. | |
2216 | |
2918 | 2217 2000-10-25 Jim Meyering <meyering@lucent.com> |
2218 | |
2219 * obstack.c: Update from libc. | |
2220 | |
2911 | 2221 2000-10-23 Jim Meyering <meyering@lucent.com> |
2222 | |
2223 * hard-locale.c (hard_locale): Revert last change -- it was simply | |
2224 wrong. That set_locale call must not have any side effects. | |
2225 From Paul Eggert. | |
2226 | |
2904 | 2227 2000-10-22 Jim Meyering <meyering@lucent.com> |
2228 | |
2907 | 2229 * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC. |
2230 [CYCLIC]: Remove now-unused definition. | |
2231 | |
2904 | 2232 * save-cwd.c (O_DIRECTORY): Define, if needed. |
2233 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".". | |
2234 Suggestion from Ulrich Drepper. | |
2235 | |
2893 | 2236 2000-10-21 Jim Meyering <meyering@lucent.com> |
2237 | |
2920 | 2238 * dirname.c (dir_name_r): New function, factored out of dir_name. |
2239 (dir_name): Use dir_name_r. | |
2240 * dirname.h (dir_name_r): Declare it. | |
2241 | |
2242 2000-10-21 Jim Meyering <meyering@lucent.com> | |
2243 | |
2898 | 2244 * dirname.c (memrchr): Declare if necessary. |
2245 (dir_name): Remove the restriction that there be no | |
2246 trailing slashes. Now, this code skips past them, effectively | |
2247 ignoring them. | |
2248 [TEST_DIRNAME] (main): New unit tests. | |
2249 | |
2893 | 2250 * memrchr.c: New file from GNU libc. |
2251 Undef __memrchr, too. | |
2252 [!weak_alias]: Define __memrchr to memrchr. | |
2253 Guard weak_alias use with `#ifdef weak_alias'. | |
2254 | |
2886 | 2255 2000-10-17 Jim Meyering <meyering@lucent.com> |
2256 | |
2891 | 2257 * quote.h (PARAMS): Define and use. |
2890 | 2258 Reported by Akim Demaille. |
2889 | 2259 |
2886 | 2260 * getopt.c: Update from libc. |
2261 | |
2884 | 2262 2000-10-16 Jim Meyering <meyering@lucent.com> |
2263 | |
2264 * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale. | |
2265 From Jan Fedak. | |
2266 | |
2880 | 2267 2000-09-25 Jim Meyering <meyering@lucent.com> |
2268 | |
2269 * md5.h (rol): Define (from GnuPG). | |
2270 | |
2271 * sha.c: Give credit (GnuPG) where due. | |
2272 (M): Use rol rather than open-coding it. | |
2273 Add a FIXME comment. | |
2274 | |
2876 | 2275 2000-09-21 Jim Meyering <meyering@lucent.com> |
2276 | |
2277 * userspec.c (parse_user_spec): Remove debugging printf I'd added. | |
2877 | 2278 Reported by Michael Stone. |
2876 | 2279 |
2874 | 2280 2000-09-20 Jim Meyering <meyering@lucent.com> |
2281 | |
2282 * Makefile.am (libfetish_a_SOURCES): Add sha.c. | |
2283 (noinst_HEADERS): Add sha.h. | |
2284 Based on code from Scott G. Miller and from GnuPG. | |
2285 | |
2861 | 2286 2000-09-15 Jim Meyering <meyering@lucent.com> |
2287 | |
2288 * regex.c: Update from libc. | |
2289 | |
2859 | 2290 2000-09-10 Jim Meyering <meyering@lucent.com> |
2291 | |
2292 * getopt.c (_getopt_internal): Update from glibc. | |
2293 | |
2855 | 2294 2000-09-09 Jim Meyering <meyering@lucent.com> |
2295 | |
2857 | 2296 * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't |
2297 think it should be used as a general replacement for isascii. | |
2298 * fnmatch.c: Likewise. | |
2299 * mbswidth.c: Likewise | |
2300 * regex.c: Likewise. | |
2301 | |
2855 | 2302 Don't use atoi. |
2303 * userspec.c: Include sys/param.h and limits.h. | |
2304 Include xstrtol.h. | |
2305 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define. | |
2306 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define. | |
2307 (parse_user_spec): Use xstrtoul, not atoi when converting numeric | |
2308 UID, GID. Check range. | |
2309 | |
2853 | 2310 2000-09-06 Jim Meyering <meyering@lucent.com> |
2311 | |
2312 * getopt.c (_getopt_internal): Update from glibc. | |
2313 | |
2846 | 2314 2000-08-30 Jim Meyering <meyering@lucent.com> |
2315 | |
2316 * strftime.c: Merge in changes from GNU libc. | |
2317 | |
2837 | 2318 2000-08-26 Jim Meyering <meyering@lucent.com> |
2319 | |
2839 | 2320 * closeout.c: Include "__fpending.h". |
2321 (close_stdout_status): Return right away if there's nothing to flush. | |
2322 | |
2837 | 2323 * Makefile.am (noinst_HEADERS): Add __fpending.h. |
2324 * __fpending.c: New file. | |
2325 * __fpending.h: New file. | |
2326 | |
2815 | 2327 2000-08-07 Paul Eggert <eggert@twinsun.com> |
2328 | |
2329 Standardize on "memory exhausted" instead of "Memory exhausted" | |
2330 or "virtual memory exhausted". | |
2331 * obstack.c (print_and_abort): Use "memory exhausted", not | |
2332 "virtual memory exhausted". | |
2333 * same.c (same_name): Invoke xalloc_die instead of printing | |
2334 our own message. | |
2335 * userspec.c (parse_user_spec): Likewise. | |
2336 * bumpalloc.h: comment fix | |
2337 * same.c, userspec.c: Include xalloc.h. | |
2338 | |
2339 * xalloc.h (xalloc_msg_memory_exhausted): Now char const[], | |
2340 not char *const and pointing to a constant array. | |
2341 * xmalloc.c (xalloc_msg_memory_exhausted): Likewise. | |
2342 (xrealloc): Comment fix. | |
2343 | |
2344 * userspec.c (parse_user_spec): | |
2345 Don't translate a message until just before returning, | |
2346 to avoid unnecessary translation. | |
2347 | |
2808 | 2348 2000-08-07 Jim Meyering <meyering@lucent.com> |
2349 | |
2350 * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h, | |
2351 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c, | |
2352 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h, | |
2353 getgroups.c, gethostname.c, getopt.h, group-member.c, | |
2354 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c, | |
2355 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c, | |
2356 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h, | |
2357 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c, | |
2358 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c, | |
2359 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c, | |
2360 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c, | |
2361 yesno.c: Back out Copyright date changes for each file with no change | |
2362 this year. This eases coordination with other programs using the same | |
2363 source code modules. From Paul Eggert. | |
2364 | |
2804 | 2365 2000-08-03 Greg McGary <greg@mcgary.org> |
2366 | |
2367 * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, | |
2368 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros. | |
2369 (EXTEND_BUFFER): Use them. | |
2370 | |
2802 | 2371 2000-08-01 Jim Meyering <meyering@lucent.com> |
2372 | |
2373 * dirname.c (ISSLASH): Define. | |
2374 (BACKSLASH_IS_PATH_SEPARATOR): Define. | |
2375 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which | |
2376 both `\' and `/' may be use as path separators. | |
2377 Based on a patch from Prashant TR. | |
2378 | |
2800 | 2379 2000-07-31 Paul Eggert <eggert@twinsun.com> |
2380 | |
2815 | 2381 * quotearg.c (quotearg_n_options): Don't make the initial |
2800 | 2382 slot vector a constant, since it might get modified. |
2383 | |
2794 | 2384 2000-07-31 Jim Meyering <meyering@lucent.com> |
2385 | |
2386 * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'. | |
2387 * obstack.c (print_and_abort): Likewise. | |
2388 | |
2796 | 2389 2000-07-30 Paul Eggert <eggert@twinsun.com> |
2390 | |
2391 * quotearg.c (quotearg_n_options): Preallocate a slot 0 | |
2392 buffer, so that the caller can always quote one small | |
2393 component of a "memory exhausted" message in slot 0. | |
2394 From a suggestion by Jim Meyering. | |
2395 | |
2791 | 2396 2000-07-30 Jim Meyering <meyering@lucent.com> |
2397 | |
2398 * makepath.c (make_path): Quote the other instance, too. | |
2399 | |
2400 * quotearg.c (N_STATIC_SLOTVECS): Define. | |
2401 (STATIC_BUF_SIZE): Define. | |
2402 (quotearg_n_options): Use only statically allocated storage when | |
2403 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller | |
2404 than STATIC_BUF_SIZE. | |
2405 | |
2782 | 2406 2000-07-29 Jim Meyering <meyering@lucent.com> |
2407 | |
2788 | 2408 * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS. |
2409 * dirname.c (dir_name): Likewise. | |
2410 | |
2411 * basename.c (base_name): Use ISSLASH rather than comparing against `/'. | |
2412 | |
2782 | 2413 * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const. |
2785 | 2414 (dir_name): Assert that there are no trailing slashes. |
2782 | 2415 |
2780 | 2416 2000-07-18 Bruno Haible <haible@clisp.cons.org> |
2417 | |
2418 * mbswidth.h (mbswidth): Add a flags argument. | |
2419 (mbswidth): New declaration. | |
2420 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros. | |
2421 * mbswidth.c (mbswidth): Add a flags argument. | |
2422 (mbsnwidth): New function. | |
2423 | |
2776 | 2424 2000-07-24 Jim Meyering <meyering@lucent.com> |
2425 | |
2426 * mbswidth.c: Remove useless #else. From Bruno Haible. | |
2427 | |
2773 | 2428 2000-07-23 Paul Eggert <eggert@twinsun.com> |
2429 | |
2430 * mbswidth.c (_XOPEN_SOURCE): | |
2431 Don't define; this causes problems on Solaris 7. | |
2432 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare. | |
2433 | |
2771 | 2434 2000-07-23 Paul Eggert <eggert@twinsun.com> |
2435 | |
2815 | 2436 * quotearg.c: |
2771 | 2437 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), |
2438 so that mbstate_t is always defined. | |
2439 | |
2440 Do not inspect MB_LEN_MAX, since it's incorrectly defined to | |
2441 be 1 in at least one GCC installation, and this configuration | |
2442 error is likely to be common. Ignoring MB_LEN_MAX hurts | |
2443 performance on hosts that have mbrtowc but have only unibyte | |
2444 locales, but I assume these hosts are rare. | |
2445 | |
2769 | 2446 2000-07-23 Paul Eggert <eggert@twinsun.com> |
2447 | |
2815 | 2448 * quotearg.c: Streamline by invoking multibyte code only if needed. |
2769 | 2449 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX. |
2450 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX). | |
2451 (quotearg_buffer_restyled): If a unibyte locale, don't bother to | |
2452 invoke multibyte primitives. | |
2453 | |
2764 | 2454 2000-07-23 Jim Meyering <meyering@lucent.com> |
2455 | |
2456 * basename.c (base_name): Add an assertion. | |
2457 | |
2762 | 2458 2000-07-15 Bruno Haible <clisp.cons.org> |
2459 | |
2460 * quotearg.c: When the system forces us to redefine mbstate_t, | |
2461 shadow its mbsinit function. | |
2462 | |
2755 | 2463 2000-07-16 Bruno Haible <haible@clisp.cons.org> |
2464 | |
2465 * mbswidth.h: New file. | |
2466 * mbswidth.c: New file. | |
2759 | 2467 * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c. |
2769 | 2468 (noinst_HEADERS): Add mbswidth.h. |
2755 | 2469 |
2754 | 2470 2000-07-17 Bruno Haible <haible@clisp.cons.org> |
2471 | |
2472 * config.charset: Add support for FreeBSD. Improve support for HP-UX | |
2473 and IRIX 6. | |
2474 | |
2747 | 2475 2000-07-15 Jim Meyering <meyering@lucent.com> |
2476 | |
2751 | 2477 * makepath.c: Include quote.h. |
2478 (make_path): Convert "`%s'" in format strings to "%s", and wrap each | |
2479 corresponding argument in a `quote (...)' call. | |
2480 Give better diagnostics. | |
2481 | |
2749 | 2482 * Makefile.am (libfetish_a_SOURCES): Add quote.c. |
2483 (noinst_HEADERS): Add quote.h. | |
2484 | |
2747 | 2485 * quote.c (quote, quote_n): New file. Two functions taken verbatim |
2486 from tar's src/misc.c. | |
2487 * quote.h: New file. Prototypes for same. | |
2488 | |
2740 | 2489 2000-07-10 Paul Eggert <eggert@twinsun.com> |
2490 | |
2491 From a suggestion by Bruno Haible. | |
2492 * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition. | |
2493 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT, | |
2494 to decide whether to define the BeOS workaround macro; | |
2495 this adjusts to the change to AC_MBSTATE_T. | |
2496 | |
2738 | 2497 2000-07-13 Paul Eggert <eggert@twinsun.com> |
2498 | |
2499 * quotearg.h (enum quoting style): New enum clocale_quoting_style. | |
2500 | |
3206 | 2501 * quotearg.c (quoting_style_args, quoting_style_vals, |
2738 | 2502 quotearg_buffer_restyled): Add support for |
2503 clocale_quoting_style. Undo previous change to | |
2504 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}" | |
2505 and "{RIGHT QUOTATION MARK}" msgids. | |
2506 | |
2723 | 2507 2000-07-05 Paul Eggert <eggert@twinsun.com> |
2508 | |
2509 The old behavior of quoting `like this' doesn't look good with | |
2510 newer, ISO-style fonts. See: | |
2511 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |
2512 | |
2513 Instead, quote "like this" by default. Let the translator | |
2514 tailor the locale-specific quoting behavior by providing | |
2515 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}. | |
2516 | |
2517 * quotearg.c (N_): New macro. | |
2518 (gettext_default): New function. | |
2519 (quotearg_buffer_restyled): Use | |
2520 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and | |
2521 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote. | |
2522 | |
2719 | 2523 2000-07-09 Jim Meyering <meyering@lucent.com> |
2524 | |
2525 * Most files: Update copyright dates to include 2000. | |
2526 | |
2721 | 2527 2000-07-08 Jim Meyering <meyering@lucent.com> |
2528 | |
2529 * xgethostname.c (ENAMETOOLONG): Define to an unlikely value | |
2530 if not defined. | |
2531 (xgethostname): Remove now-unnecessary #ifdef. | |
2532 Move declaration of `err' into loop where it's used. | |
2533 | |
2534 2000-07-05 Bruno Haible <haible@clisp.cons.org> | |
2535 | |
2536 * xgethostname.c (xgethostname): Protect against the SunOS5.5 bug | |
2537 by allocating a larger buffer. Test the gethostname return value for | |
2538 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname | |
2539 returns an error and ENAMETOOLONG isn't defined. | |
2540 | |
2710 | 2541 2000-07-05 Paul Eggert <eggert@twinsun.com> |
2542 and Bruno Haible <haible@clisp.cons.org> | |
2543 | |
2544 * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't. | |
2545 | |
2708 | 2546 2000-07-05 Bruno Haible <haible@clisp.cons.org> |
2547 | |
2548 * quotearg.c (struct quoting_options): Simplify quote_these_too | |
2549 dimension. | |
2550 | |
2706 | 2551 2000-07-03 Jim Meyering <meyering@lucent.com> |
2552 | |
2553 * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen. | |
2554 Reported by Bruno Haible. | |
2555 | |
2704 | 2556 2000-07-04 Jim Meyering <meyering@lucent.com> |
2557 | |
2558 * quotearg.c: Make inclusion of <wchar.h> independent of whether | |
2559 HAVE_MBRTOWC is set. Required at least for irix-5.6, which | |
2560 lacks mbrtowc. | |
2561 | |
2693 | 2562 2000-07-03 Paul Eggert <eggert@twinsun.com> |
2563 and Bruno Haible <haible@clisp.cons.org> | |
2564 | |
2815 | 2565 * quotearg.c (mbrtowc): |
2693 | 2566 Assign to *pwc, and return 1 only if result is nonzero. |
2567 (iswprint): Use ISPRINT when substituting our own mbrtowc. | |
2568 | |
2697 | 2569 2000-07-03 Jim Meyering <meyering@lucent.com> |
2570 | |
2571 * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H. | |
2572 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20. | |
2573 From Bob Proulx. | |
2574 | |
2691 | 2575 2000-07-02 Jim Meyering <meyering@lucent.com> |
2576 | |
2577 * quotearg.c (mbstate_t): Don't define here. | |
2578 | |
2688 | 2579 2000-07-02 Jim Meyering <meyering@lucent.com> |
2580 | |
2581 * nanosleep.c (SIGCONT): Define if not already defined. | |
2582 | |
2678 | 2583 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
2584 | |
2585 * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV, | |
2586 per change in ../m4/ls-mntd-fs.m4. | |
2587 (read_filesystem_list): Ignore symbolic links. | |
2588 | |
2668 | 2589 2000-06-29 Jim Meyering <meyering@lucent.com> |
2590 | |
2672 | 2591 * same.c: Include <string.h> or <strings.h>, as appropriate, |
2592 for declaration of strcmp. | |
2593 | |
2670 | 2594 * long-options.c: Include <stdlib.h>, for declaration of exit. |
2595 | |
2668 | 2596 * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: |
2597 Avoid warning by casting result to `char *' to remove `const'. | |
2598 | |
2662 | 2599 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
2600 | |
2601 * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c. | |
2602 | |
2659 | 2603 2000-06-26 Paul Eggert <eggert@twinsun.com> |
2604 | |
2605 savedir now sets errno on failure and invokes xmalloc to get memory. | |
2606 Fix a couple of other minor bugs while we're at it. | |
2607 | |
2608 * savedir.c (<unistd.h>): Do not include; there's no need. | |
2609 (NAMLEN): Remove macro. | |
2610 (malloc, realloc): Remove decls. | |
2611 (stpcpy): Likewise. | |
2612 ("xalloc.h"): Include. | |
2613 (NAME_SIZE_DEFAULT): New macro. | |
2614 (savedir): Use xmalloc / xrealloc to allocate memory. | |
2615 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero. | |
2616 Skip "" directory entries. | |
2617 Use strlen to calculate directory entry length, since the old method | |
2618 is rarely used these days and isn't worth supporting. | |
2619 Don't use a pointer after freeing it. | |
2620 Check for integer overflow when calculating allocation size. | |
2621 Use memcpy to copy entries, instead of stpcpy. | |
2622 Set errno properly when returning NULL. | |
2623 Check for readdir error. | |
2624 | |
2657 | 2625 2000-06-26 Jim Meyering <meyering@lucent.com> |
2626 | |
2627 * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort. | |
2628 | |
2655 | 2629 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
2630 | |
2631 * getusershell.c (xmalloc, xrealloc): Remove functions. | |
2632 Include xalloc.h. | |
2633 Don't include <stdlib.h>. Don't declare malloc, realloc. | |
2634 | |
2651 | 2635 2000-06-23 Bruno Haible <haible@clisp.cons.org> |
2636 | |
2637 * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency. | |
2638 | |
2644 | 2639 2000-06-24 Jim Meyering <meyering@lucent.com> |
2640 | |
2641 * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r. | |
2642 | |
2636 | 2643 2000-06-21 Jim Meyering <meyering@lucent.com> |
2644 | |
2645 * getpass.c: New file, from Bruno Haible. Required for BeOS. | |
2646 | |
2640 | 2647 2000-06-19 Paul Eggert <eggert@twinsun.com> |
2648 | |
2649 * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5. | |
2650 (mbrtowc, mbstate_t): Define substitutes if | |
2651 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT. | |
2652 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT, | |
2653 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H). | |
2654 | |
2628 | 2655 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
2656 | |
2657 * xgetcwd.c (xgetcwd): If the required pathname length is smaller | |
2658 than 1024, return a memory chunk of least possible size, instead | |
2659 of size PATH_MAX + 2. In the loop, increment the size proportionally. | |
2660 Use free/xmalloc instead of xrealloc to avoid copying for very long | |
2661 paths. | |
2662 | |
2626 | 2663 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
2664 | |
2665 * canon-host.c (canon_host): Use malloc and memcpy to copy an | |
2666 address, not strdup. Include <stdlib.h> and don't declare free(). | |
2667 | |
2624 | 2668 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
2669 | |
2670 * path-concat.c (path_concat): Don't access dir[-1] if dir is | |
2671 the empty string. | |
2672 | |
2621 | 2673 2000-06-21 Jim Meyering <meyering@lucent.com> |
2674 | |
2675 * Makefile.am (libfetish_a_SOURCES): Add getstr.c. | |
2676 (noinst_HEADERS): Add getstr.h. | |
2677 | |
2678 * getline.c (getstr): Move into a separate file. | |
2679 * getstr.c (getstr): New file, extracted from getline.c, with | |
2680 the following changes: new parameter, delim2; both delim[12] | |
2681 parameters have type `int', not `char'. The latter would lose | |
2682 with 8-bit delimiters. | |
2683 * getstr.h: New file. | |
2684 | |
2611 | 2685 2000-06-19 Jim Meyering <meyering@lucent.com> |
2686 | |
2687 * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define. | |
2688 | |
2602 | 2689 2000-06-18 Jim Meyering <meyering@lucent.com> |
2690 | |
2608 | 2691 * mkdir.c: Remove file, due mainly to copyright incompatibility. |
2692 Besides, these days every porting target provides a mkdir function. | |
2693 | |
2606 | 2694 * strnlen.c: Include memory.h, string.h, and/or strings.h as needed. |
2695 (this snippet comes from src/system.h). | |
2696 | |
2594 | 2697 2000-06-15 Paul Eggert <eggert@twinsun.com> |
2698 | |
2640 | 2699 * human.c (adjust_value): New function. |
2594 | 2700 (human_readable_inexact): Apply rounding style even when |
2701 printing approximate values. | |
2702 | |
2591 | 2703 2000-06-14 Paul Eggert <eggert@twinsun.com> |
2704 | |
2640 | 2705 * human.c (human_readable_inexact): Allow an input block |
2591 | 2706 size that is not a multiple of the output block size, and vice versa. |
2592 | 2707 Reported by Piergiorgio Sartor. |
2591 | 2708 |
2589 | 2709 2000-06-14 Paul Eggert <eggert@twinsun.com> |
2710 | |
2640 | 2711 * getdate.y (get_date): Apply relative times after time |
2589 | 2712 zone indicator, not before. Reported by Todd A. Jacobs. |
2713 | |
2585 | 2714 2000-06-13 Jim Meyering <meyering@lucent.com> |
2715 | |
2591 | 2716 * Makefile.am (all-local): Depend on lstat.c and stat.c. |
2717 | |
2585 | 2718 * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c. |
2719 | |
2583 | 2720 2000-06-12 Paul Eggert <eggert@twinsun.com> |
2721 | |
2722 * xstat.in: Include <stdlib.h> in lstat, to declare "free". | |
2723 | |
2575 | 2724 2000-06-04 Paul Eggert <eggert@twinsun.com> |
2725 | |
2583 | 2726 * strnlen.c: Include <config.h> if HAVE_CONFIG_H. |
2575 | 2727 |
2573 | 2728 2000-06-04 Jim Meyering <meyering@lucent.com> |
2729 | |
2730 * getugroups.c (getugroups): Cast -1 to gid_t, for systems like | |
2731 SunOS4.1.4 for which gid_t is an unsigned type. | |
2732 | |
2569 | 2733 2000-06-03 Jim Meyering <meyering@lucent.com> |
2734 | |
2735 * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr. | |
2736 | |
2559 | 2737 2000-05-26 Bruno Haible <haible@clisp.cons.org> |
2738 | |
2739 * Makefile.am (install-exec-local): On systems with glibc-2.1 or | |
2740 newer, don't install charset.alias. | |
2741 * config.charset: Change the Linux/glibc rules so they become empty | |
2742 on glibc-2.1 or newer. | |
2743 | |
2554 | 2744 2000-06-02 Jim Meyering <meyering@lucent.com> |
2745 | |
2746 * mountlist.c: Back out last change. Instead, do this... | |
2747 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy | |
2748 member using the same `ignore'-testing code. | |
2749 * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored | |
2750 fs_type strings. | |
2751 From Mark D. Roth. | |
2752 | |
2549 | 2753 2000-05-29 Jim Meyering <meyering@lucent.com> |
2754 | |
2755 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts | |
2756 with the `ignore' attribute. Based on a patch from Mark D. Roth. | |
2757 | |
2548 | 2758 2000-05-22 Jim Meyering <meyering@lucent.com> |
2759 | |
2760 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block. | |
2761 | |
2525 | 2762 2000-05-18 Jim Meyering <meyering@lucent.com> |
2763 | |
2764 * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list | |
2765 back, too, since it may have been modified by allocate_entry. | |
2766 (hash_delete): Rewrite to use neither the assignment operator | |
2767 nor the comma operator in an if-expression. | |
2768 | |
2523 | 2769 2000-05-15 Paul Eggert <eggert@twinsun.com> |
2770 | |
2583 | 2771 * closeout.c: |
2523 | 2772 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO): |
2773 Remove; no longer needed. | |
2774 "quotearg.h": Add include. | |
2775 (file_name): Do not bother to explicitly initialize to NULL; it's less | |
2776 efficient on some hosts. | |
2777 (close_stdout_status): Remove test as to whether stdout was already | |
2778 closed; it breaks for the case "echo x | sort >&-". | |
2779 Quote file name colons. | |
2780 Do not assume that _("write error") lacks format strings. | |
2781 | |
2518 | 2782 2000-05-15 Jim Meyering <meyering@lucent.com> |
2783 | |
2784 * version-etc.c (version_etc_copyright): Update the copyright string | |
2785 used in all --version output. | |
2786 | |
2521 | 2787 2000-05-14 Jim Meyering <meyering@lucent.com> |
2788 | |
2789 * closeout.c (close_stdout_set_file_name): New function. | |
2790 (close_stdout_status): Use new file-scoped global. | |
2791 Return right away if fstat says the stdout file descriptor is invalid. | |
2792 * closeout.h (close_stdout_set_file_name): Declare. | |
2793 | |
2515 | 2794 2000-05-10 Jim Meyering <meyering@lucent.com> |
2795 | |
2796 * closeout.c [default_exit_status]: New file-scoped variable. | |
2797 (close_stdout_set_status): New function. | |
2798 * closeout.h (close_stdout_set_status): Declare. | |
2799 | |
2508 | 2800 2000-05-08 Jim Meyering <meyering@lucent.com> |
2801 | |
2802 * long-options.c: Don't include closeout.h. | |
2803 (parse_long_options): Don't call close_stdout for --version. | |
2804 | |
2499 | 2805 2000-05-06 Jim Meyering <meyering@lucent.com> |
2806 | |
2504 | 2807 * strnlen.c: Undefine __strnlen and strnlen. |
2808 [!weak_alias]: Define __strnlen to strnlen. | |
2809 | |
2499 | 2810 * atexit.c: New file, from libiberty. |
2811 | |
2812 2000-05-06 Jim Meyering <meyering@lucent.com> | |
2813 | |
2814 * closeout.c (close_stdout_status): Also check for errors on the | |
2815 stderr stream. | |
2816 | |
2488 | 2817 2000-05-05 Bruno Haible <haible@clisp.cons.org> |
2818 | |
2819 * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy | |
2820 instead of xmalloc, xrealloc, path_concat. | |
2821 (locale_charset): Treat empty environment variables as absent. | |
2822 (DIRECTORY_SEPARATOR, ISSLASH): New macros. | |
2823 | |
2467 | 2824 2000-05-04 Jim Meyering <meyering@lucent.com> |
2825 | |
2826 * getopt.c: Update from glibc. | |
2478 | 2827 * obstack.c: Likewise. |
2828 * obstack.h: Likewise. | |
2473 | 2829 * regex.c: Likewise. NB: K&R compiler support is dropped for this file |
2830 | |
2831 * regex.h: Likewise. | |
2470 | 2832 * strndup.c: Likewise. |
2833 * strnlen.c: New file, from glibc. | |
2467 | 2834 |
2461 | 2835 2000-05-01 Jim Meyering <meyering@lucent.com> |
2836 | |
2837 * full-write.c (full_write): Remove `FIXME' part of comment. | |
2838 | |
2447 | 2839 2000-04-29 Jim Meyering <meyering@lucent.com> |
2840 | |
2841 * path-concat.c: Declare strdup only if it's not defined. | |
2842 * canon-host.c: Likewise. | |
2843 | |
2445 | 2844 2000-04-28 Jim Meyering <meyering@lucent.com> |
2845 | |
2846 * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid | |
2847 redefinition warning on some systems (HPUX). Otherwise, regex.h is | |
2848 included first, then limits.h is included by locale.h by libintl.h. | |
2849 From John David Anglin. | |
2850 | |
2440 | 2851 2000-04-25 Jim Meyering <meyering@lucent.com> |
2852 | |
2853 * makepath.c (S_IRWXUGO): Define. | |
2854 (make_path): Always perform explicit chmod if MODE specifies any | |
2442 | 2855 of the `special' permission bits. Prompted by a bug report against |
2856 install from Mate Wierdl and Joost van Baal. | |
2440 | 2857 |
2435 | 2858 2000-04-18 Jim Meyering <meyering@lucent.com> |
2859 | |
2440 | 2860 * README: New file. |
2861 | |
2435 | 2862 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define |
2863 getpagesize. For BeOS. Based on a patch from Bruno Haible. | |
2864 | |
2431 | 2865 2000-04-17 Jim Meyering <meyering@lucent.com> |
2866 | |
2867 * strftime.c (my_strftime) [strftime]: Declare strftime here, since | |
2868 the definition of it to rpl_strftime also defined-away the system's | |
2869 declaration. | |
2870 | |
2427 | 2871 2000-04-15 Jim Meyering <meyering@lucent.com> |
2872 | |
2873 Use `C' to denote so-called `contiguous' files, the same way | |
2874 that tar does. | |
2875 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. | |
2876 (ftypelet): Use S_ISCTG. | |
2877 From Michael Deutschmann. | |
2878 | |
2879 2000-04-14 Jim Meyering <meyering@lucent.com> | |
2880 | |
2881 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime. | |
2882 | |
2416 | 2883 2000-04-08 Jim Meyering <meyering@lucent.com> |
2884 | |
2885 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3 | |
2886 names don't conflict. Reported by Eli Zaretskii. | |
2887 | |
2413 | 2888 2000-03-28 Bruno Haible <haible@clisp.cons.org> |
2889 | |
2890 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv | |
2431 | 2891 bug. Deal with the different error behavior of Irix iconv. |
2413 | 2892 |
2893 2000-04-07 Jim Meyering <meyering@lucent.com> | |
2894 | |
2895 * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h, | |
2896 to work around system header problems on AIX 3.2.5. From Bruno Haible. | |
2897 | |
2406 | 2898 2000-04-05 Jim Meyering <meyering@lucent.com> |
2899 | |
2900 Portability tweaks required for ultrix4.3. | |
2901 * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent. | |
2902 * readutmp.c: Include sys/types.h before sys/stat.h. | |
2903 * canon-host.c: Declare strdup. | |
2904 * path-concat.c: Likewise. | |
2905 From John David Anglin. | |
2906 | |
2397 | 2907 2000-04-04 Jim Meyering <meyering@lucent.com> |
2908 | |
2909 Be more DOS 8.3-friendly. | |
2910 * ref-add.sin: Renamed from ref-add.sed.in. | |
2911 * ref-del.sin: Renamed from ref-del.sed.in. | |
2912 * Makefile.am: Reflect renaming. | |
2913 Reported by Eli Zaretskii. | |
2914 | |
2915 Use a temporary file name that won't clash with `charset.alias' | |
2916 in the DOS 8.3 name space. | |
2917 * Makefile.am (charset_tmp): Define. | |
2918 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t. | |
2919 (uninstall-local): Likewise. | |
2920 Reported by Eli Zaretskii. | |
2921 | |
2379 | 2922 2000-03-29 Paul Eggert <eggert@twinsun.com> |
2923 | |
2924 * time/strftime.c (my_strftime): Make sure we call the system | |
2925 strftime, not ourselves, when invoking the underlying strftime. | |
2926 | |
2364 | 2927 2000-03-24 Jim Meyering <meyering@lucent.com> |
2928 | |
2929 * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in. | |
2930 (charset_alias): Define. | |
2931 (install-exec-local): Factor out common code. | |
2932 (uninstall-local): Split lines longer than 80. | |
2933 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead) | |
2934 (SUFFIXES): Define. | |
2935 (.sed.in.sed): New rule. Don't redirect directly to $@. | |
2936 (CLEANFILES): Add ref-add.sed and ref-del.sed. | |
2937 | |
2938 2000-03-19 Bruno Haible <haible@clisp.cons.org> | |
2939 | |
2940 * config.charset: Output a line containing "Packages using this file". | |
2941 * ref-add.sed.in, ref-del.sed.in: New files. | |
2942 * Makefile.am (install-exec-local, uninstall-local, ref-add.sed, | |
2943 ref-del.sed): New rules. | |
2944 | |
2353 | 2945 2000-03-17 Jim Meyering <meyering@lucent.com> |
2946 | |
2947 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H. | |
2948 Otherwise, include <strings.h> | |
2949 | |
2950 2000-03-17 Bruno Haible <haible@clisp.cons.org> | |
2951 | |
2952 * unicodeio.c (utf8_wctomb): New function. | |
2953 (print_unicode_char): Pass the Unicode character to iconv in UTF-8 | |
2954 format instead of in UCS-4 with platform dependent endianness. | |
2955 | |
2343 | 2956 2000-03-07 Paul Eggert <eggert@twinsun.com> |
2957 | |
2583 | 2958 * savedir.c (savedir): Work even if directory size is |
2343 | 2959 negative; this can happen with some screwy NFS configurations. |
2960 | |
2348 | 2961 2000-03-06 Jim Meyering <meyering@lucent.com> |
2962 | |
2963 * localcharset.c (get_charset_aliases): Don't try to free file_name | |
2964 if it's NULL (because we ran out of memory). From Bruno Haible. | |
2965 | |
2337 | 2966 2000-03-05 Jim Meyering <meyering@lucent.com> |
2967 | |
2339 | 2968 * localcharset.c ("path-concat.h"): Include. |
2969 (get_charset_aliases): Use path_concat instead of ANSI string | |
2970 concatenation. | |
2971 | |
2337 | 2972 * unicodeio.h (PARAMS): Define. |
2973 Use it to guard prototype. | |
2974 | |
2330 | 2975 2000-03-04 Jim Meyering <meyering@lucent.com> |
2976 | |
2332 | 2977 * Makefile.am (install-exec-local): Create $(libdir) before installing |
2978 into it. | |
2334 | 2979 (uninstall-local): Uncomment this rule so `make distcheck' works |
2980 once again. | |
2332 | 2981 |
2330 | 2982 * unicodeio.c (<errno.h>): Include it. |
2983 (errno): Declare if not defined. | |
2984 | |
2985 * localcharset.c: Add Bruno's comment justifying use of volatile. | |
2986 | |
2987 * config.charset: New version, incorporating remarks from a linux | |
2988 i18n mailing list. From Bruno Haible. | |
2989 | |
2990 2000-03-02 Jim Meyering <meyering@lucent.com> | |
2991 | |
2992 * Makefile.am (EXTRA_DIST): Add config.charset. | |
2993 | |
2309 | 2994 2000-03-01 Jim Meyering <meyering@lucent.com> |
2995 | |
2996 * localcharset.c: Guard some #includes with `#if HAVE_...'. | |
2997 * unicodeio.c: Likewise. | |
2998 | |
2999 2000-02-02 Bruno Haible <haible@clisp.cons.org> | |
3000 | |
3001 * config.charset: New file. | |
3002 * localcharset.c: New file. | |
3003 * unicodeio.h, unicodeio.c: New files. | |
3004 * Makefile.am (DEFS): Add -DLIBDIR=... | |
3005 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c. | |
3006 (noinst_HEADERS): Add unicodeio.h. | |
3007 (all-local, install-exec-local, charset.alias): New targets. | |
3008 | |
2300 | 3009 2000-02-28 Paul Eggert <eggert@twinsun.com> |
3010 | |
2583 | 3011 * quotearg.c (ALERT_CHAR): New macro. |
2300 | 3012 (quotearg_buffer_restyled): Use it. |
3013 | |
2285 | 3014 2000-02-27 Jim Meyering <meyering@lucent.com> |
3015 | |
2298 | 3016 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/. |
3017 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'. | |
3018 | |
2295 | 3019 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H', |
3020 not `#if STDC_HEADERS'. | |
3021 Declare malloc if needed. | |
3022 | |
2290 | 3023 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..' |
3024 now that autoconf always defines the HAVE_DECL_ symbols. | |
3025 * human.c: Likewise. | |
3026 * same.c: Likewise. | |
3027 * strtoumax.c: Likewise. | |
3028 | |
3029 * backupfile.c: Arrange for cpp to fail if the configure-time | |
3030 declaration check was not run. | |
3031 * hash.c: Likewise. | |
3032 * human.c: Likewise. | |
3033 * same.c: Likewise. | |
3034 * strtoumax.c: Likewise. | |
3035 | |
2285 | 3036 * userspec.c (parse_user_spec): If there is no `:' but there is a `.', |
3037 then first look up the entire `.'-containing string as a login name. | |
3038 | |
2286 | 3039 2000-02-18 Paul Eggert <eggert@twinsun.com> |
3040 | |
2583 | 3041 * getdate.y: Handle two-digit years with leading zeros correctly. |
2286 | 3042 (textint): New typedef. |
3043 (parser_control): Member year changed from int to textint. | |
3044 All uses changed. | |
3045 (YYSTYPE): Removed; replaced by %union with int and textint members. | |
3046 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN, | |
3047 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER, | |
3048 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>. | |
3049 (tSNUMBER, tUNUMBER): Now of type <textintval>. | |
3050 (date, number, to_year): Use width of number in digits, not its value, | |
3051 to determine whether it's a 2-digit year, or a 2-digit time. | |
3052 (yylex): Store number of digits of numeric tokens. | |
3053 Reported by John Kendall. | |
3054 | |
3055 (parser_control): Changed from struct parser_control to typedef (for | |
3056 consistency). All uses changed. | |
3057 | |
3058 (tID): Removed; not used. | |
3059 (yylex): Return '?' for unknown identifiers, rather than (unused) tID. | |
3060 | |
2278 | 3061 2000-02-14 Paul Eggert <eggert@twinsun.com> |
3062 | |
2583 | 3063 * getpagesize.h (getpagesize): Port to VMS for Alpha; |
2279 | 3064 adapted from changes to grep getpagesize.h by Martin P.J. Zinser. |
2278 | 3065 |
2274 | 3066 2000-02-12 Jim Meyering <meyering@lucent.com> |
3067 | |
3068 * userspec.c (ISDIGIT): Define it. | |
3069 (isdigit): Remove definition. | |
3070 (is_number): Use ISDIGIT, not isdigit. | |
3071 <libintl.h>: Include. | |
3072 (_ and N_): Define. | |
3073 (parse_user_spec): Mark translatable strings. | |
3074 | |
2268 | 3075 2000-02-10 Jim Meyering <meyering@lucent.com> |
3076 | |
3077 With these changes, nanosleep.[ch] are finally enough like the other | |
3078 lib/* replacement files to compile on a few more losing systems. | |
3079 | |
3080 * nanosleep.h: Don't include config.h. | |
3081 Remove prototype from declaration of nanosleep. | |
3082 (PARAMS): Remove now-unneeded definition. | |
3083 * nanosleep.c: #undef nanosleep. | |
3084 (rpl_nanosleep): Rename from nanosleep. | |
3085 | |
2245 | 3086 2000-02-03 Jim Meyering <meyering@lucent.com> |
3087 | |
3088 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION', | |
3089 rather than with `#if HAVE_UTMPNAME'. | |
3090 | |
3091 2000-02-01 Jim Meyering <meyering@lucent.com> | |
3092 | |
3093 * readutmp.h (UT_USER): Add parens. From Andreas Schwab. | |
3094 | |
2235 | 3095 2000-01-31 Jim Meyering <meyering@lucent.com> |
3096 | |
2240 | 3097 * nanosleep.h (nanosleep): Guard declaration with |
3098 `#if ! HAVE_DECL_NANOSLEEP'. | |
2275 | 3099 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to |
2240 | 3100 the declaration in that vendor's sys/timers.h. |
3101 Reported by Christian Krackowizer. | |
3102 | |
2235 | 3103 * quotearg.c (ISASCII): Add #undef and move definition to follow |
3104 inclusion of wctype.h to work around solaris2.6 namespace pollution. | |
3105 (ISPRINT): Likewise. | |
2236 | 3106 Reported by Tom Tromey. |
2235 | 3107 |
2228 | 3108 2000-01-30 Jim Meyering <meyering@lucent.com> |
3109 | |
3110 * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding | |
3111 uses of ->ut_name. The latter doesn't work with new Linux header files | |
3112 where only utmpx.ut_user is declared. | |
3113 | |
3114 * readutmp.h (UT_USER): Define. | |
3115 | |
2193 | 3116 2000-01-23 Jim Meyering <meyering@lucent.com> |
3117 | |
3118 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of | |
3119 obstack.c. | |
3120 | |
2163 | 3121 2000-01-22 Jim Meyering <meyering@lucent.com> |
2188 | 3122 |
3123 * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul. | |
3124 [! HAVE_DECL_STRTOULL]: Declare strtoull. | |
3125 Required for some AIX systems. Reported by Christian Krackowizer. | |
3126 [TESTING] (main): New function. | |
3127 | |
2172 | 3128 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il> |
3129 * dirname.c (dir_name): Support for DOS-style file names with drive | |
3130 letters. | |
2163 | 3131 |
2185 | 3132 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint. |
2184 | 3133 |
2163 | 3134 * strverscmp.c (ISDIGIT): Define. |
3135 (strverscmp): Use ISDIGIT, not isdigit. | |
3136 | |
2152 | 3137 2000-01-17 Paul Eggert <eggert@twinsun.com> |
3138 | |
3139 * nanosleep.c (nanosleep): | |
3140 Don't use SA_INTERRUPT to decide whether to call sigaction, as | |
3141 POSIX.1 doesn't require SA_INTERRUPT and some systems | |
3142 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; | |
3143 it's been part of POSIX.1 since day 1 (in 1988). | |
3144 | |
2150 | 3145 2000-01-17 Jim Meyering <meyering@lucent.com> |
3146 | |
3147 * interlock: Remove unused file. Reported by Fran�ois Pinard. | |
3148 | |
2144 | 3149 2000-01-16 Paul Eggert <eggert@twinsun.com> |
3150 | |
2583 | 3151 * quotearg.c (quotearg_buffer_restyled): Do not quote |
2144 | 3152 alert, backslash, formfeed, and vertical tab unnecessarily in |
3153 shell quoting style. | |
2190 | 3154 |
3155 Local Variables: | |
3156 version-control: never | |
3157 End: |