378cd6ba7f102ee112fe9611029a97f68f82ad29
[platform/upstream/glibc.git] / ChangeLog
1 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
2
3         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
4         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
5         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
6         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
7         test for cmsg struct size.
8
9 2001-04-23  Paul Eggert  <eggert@twinsun.com>
10
11         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
12         Rename __argc to ___argc in prototypes to avoid compatibility
13         problems with systems that reserve the identifier "__argc".
14         Similarly for __argv.
15
16 2001-08-21  Roland McGrath  <roland@frob.com>
17
18         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
19
20         * mach/Makefile (tests): Removed.
21         * mach/hello.c: File removed.
22
23 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
24
25         * po/sv.po: Update from translation team.
26
27         * stdio-common/vfscanf.c: Fix handling of %l[].
28         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
29
30         * libio/Makefile (tests): Add tst-sscanf.
31         * libio/tst-sscanf.c: New file.
32
33         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
34         * malloc/mtrace.c (tr_where): dli_sname always points to a
35         non-empty string if != NULL.
36         Reported by Tim Janik <timj@gtk.org>.
37
38 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
39
40         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
41         buf.  Free resources on failure.
42         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
43         (makefd_xprt): Likewise.
44         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
45         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
46         * sunrpc/auth_unix.c (authunix_create): Likewise.
47
48 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
49
50         * string/strnlen.c: Remove.
51         * sysdeps/generic/strnlen.c: New.
52         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
53
54 2001-08-21  Roland McGrath  <roland@frob.com>
55
56         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
57         as a macro, not an extern inline function.
58
59         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
60         * Versions.def (libc): Add GLIBC_2.2.5 set.
61         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
62         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
63
64 2001-08-20  Roland McGrath  <roland@frob.com>
65
66         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
67         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
68
69 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
70
71         * string/bits/string2.h: Remove strnlen optimization here.
72         * sysdeps/i386/i486/bits/string.h: Add it here.
73
74 2001-08-21  Wolfram Gloger  <wg@malloc.de>
75
76         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
77
78 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
79
80         * po/gl.po: Update from translation team.
81
82 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
83
84         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
85         * misc/err.c (convert_and_print): Likewise.
86
87         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
88         function calls.
89
90 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
91
92         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
93         change of the gregset_t type.
94         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
95
96 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
97
98         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
99
100 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
101
102         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
103
104         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
105
106 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
107
108         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
109         before calling the cthreads initialization code.
110
111 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
112
113         * argp/argp-help.c: Fix two problems introduced in last change.
114
115         * include/dirent.h: Include <dirstream.h> first.
116
117 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
118
119         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
120
121         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
122         * sunrpc/xdr_rec.c: Likewise.
123         * sunrpc/xdr_mem.c: Likewise.
124         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
125         * sunrpc/rpc_cmsg.c: Likewise.
126         * sunrpc/getrpcport.c (getrpcport): Likewise.
127         * sunrpc/clnt_simp.c (callrpc): Likewise.
128         * sunrpc/clnt_gen.c (clnt_create): Likewise.
129         * string/envz.c: Likewise.
130
131         * po/ko.po: Update from translation team.
132
133         * argp/argp-help.c: Handle wide oriented stderr stream.
134
135 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
136
137         * sysdeps/generic/strtol.c: Little optimizations.  Add some
138         __builtin_expect.
139
140         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
141
142         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
143         * wcsmbs/wcwidth.c (wcwdith): Likewise.
144         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
145
146         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
147
148         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
149
150         * time/time.h (struct timespec): Use __time_t for tv_sec element.
151
152         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
153         wchar_t for function declarations and defintions.
154
155         * misc/sys/select.h: Define __need_time_t before including <time.h>.
156         Define suseconds_t if it hasn't happened yet.
157
158         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
159
160         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
161
162         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
163         <stddef.h>.
164
165         * conform/data/stddef.h-data: Remove wint_t.
166
167         * conform/conformtest.pl: Change namespace test to take #undef
168         lines into account.
169
170         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
171
172         * conform/data/sys/socket.h-data: Add sockatmark.
173
174 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
175
176         * io/fts.c: Update from recent BSD source.
177
178 2001-08-17  Roland McGrath  <roland@frob.com>
179
180         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
181         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
182         Likewise.
183
184 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
185
186         * locale/duplocale.c (__duplocale): Also initialize the special
187         __ctype_* elements.
188
189         * conform/data/netdb.h-data: Adjust gai_strerror return type.
190
191 2001-08-17  Andreas Jaeger  <aj@suse.de>
192
193         * misc/getpass.c: Include wchar.h for prototypes.
194         * malloc/obstack.c: Likewise.
195
196 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
197
198         * sunrpc/svc_simple.c (universal): Use __write instead of write.
199
200         * wcsmbs/wcscoll.c: Also define __wcscoll.
201         * include/wchar.h: Declare __wcscoll.
202
203         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
204         * libio/vwprintf.c: Likewise.
205         * libio/wprintf.c: Likewise.
206
207         * iconv/gconv_cache.c: Use __munmap instead of munmap.
208
209 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
210
211         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
212         instead of mbrtowc.
213         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
214         wcslen, and __wcscoll instead of wcscoll.
215
216         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
217
218         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
219         __getuid instead of getuid.
220
221         * stdio-common/perror.c (perror): Use __close instead of close.
222         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
223         * libio/freopen.c (freopen): Likewise.
224         * libio/freopen64.c (freopen64): Likewise.
225
226         * libio/tst-ungetwc2.c (main): Define str const.
227
228         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
229         * libio/fwprintf.c: Also define __fwprintf.
230         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
231         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
232         * assert/assert-perr.c: Likewise.
233         * assert/assert.c: Likewise.
234         * gmon/gmon.c: Likewise.
235         * inet/rcmd.c: Likewise.
236         * malloc/obstack.c: Likewise.
237         * misc/err.c: Likewise.
238         * misc/error.c: Likewise.
239         * misc/getpass.c: Likewise.
240         * posix/getopt.c: Likewise.
241         * resolv/res_hconf.c: Likewise.
242         * stdio-common/perror.c: Likewise.
243         * stdio-common/psignal.c: Likewise.
244         * stdlib/fmtmsg.c: Likewise.
245         * sunrpc/auth_unix.c: Likewise.
246         * sunrpc/clnt_perr.c: Likewise.
247         * sunrpc/clnt_tcp.c: Likewise.
248         * sunrpc/clnt_udp.c: Likewise.
249         * sunrpc/clnt_unix.c: Likewise.
250         * sunrpc/svc_simple.c: Likewise.
251         * sunrpc/svc_tcp.c: Likewise.
252         * sunrpc/svc_udp.c: Likewise.
253         * sunrpc/svc_unix.c: Likewise.
254         * sunrpc/xdr.c: Likewise.
255         * sunrpc/xdr_array.c: Likewise.
256         * sunrpc/xdr_rec.c: Likewise.
257         * sunrpc/xdr_ref.c: Likewise.
258         * sysdeps/generic/wordexp.c: Likewise.
259
260         * po/it.po: Update from translation team.
261
262         * misc/err.c: Handle wide oriented stderr stream.
263
264 2001-08-14  Tom Rix  <trix@redhat.com>
265
266         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
267         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
268
269 2001-08-13  Tom Rix  <trix@redhat.com>
270
271         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
272         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
273         and __intptr_t.
274
275 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
276
277         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
278         Store the access registers to the ucontext structure.
279         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
280         Likewise.
281
282         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
283         Load the access registers from the ucontext structure.
284         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
285         Likewise.
286
287         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
288         offsets to the new ucontext layout.
289         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
290
291         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
292         of the ucontext structure.
293         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
294
295 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
296
297         * misc/error.c (error): Handle wide oriented stderr stream correctly.
298         (error_at_line): Likewise.
299
300         * stdio-common/perror.c (perror): Implement according to standard.
301         The stream orientation must not be changed if the stream was not
302         oriented before the call.
303         * stdio-common/Makefile (tests): Add tst-perror.
304         * stdio-common/tst-perror.c: New file.
305
306
307 See ChangeLog.12 for earlier changes.