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