Update.
[platform/upstream/glibc.git] / ChangeLog
1 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
2
3         * time/tzset.c (tz_compute): If time to switch to DST is later in
4         the year switch back in the next year.
5         Reported by jwitford@hutch.com.au.
6 1998-10-24  Mark Kettenis  <kettenis@phys.uva.nl>
7
8         * mach/Versions: Add evc_wait, mach_error, mach_error_string,
9         mach_error_type, mach_msg_destroy, mig_deallocate_reply_port.
10         Remove __mach_host_self, __mach_reply_port, __mach_setup_thread,
11         __mach_port_allocate, __mach_port_allocate_name,
12         __mach_port_deallocate, __mach_port_insert_right, __mutex_init,
13         __mutex_trylock, __mutex_lock, __mutex_unlock, __swtch, __switch,
14         __task_create, __task_suspend, __task_set_special_port,
15         __task_terminate, __thread_depress_abort, __thread_switch,
16         __vm_allocate, __vm_deallocate, __vm_map.  These functions are not
17         used outside libc.
18
19         * sysdeps/mach/hurd/Versions: New file.
20         [libc, GLIBC_2.0]: Add _cthread_exit_routine and
21         _cthread_init_routine.  These are set by the Hurd cthreads library.
22         Add __getcwd, __mmap.  If we don't add these, the weak definitions in
23         the dynamic linker will not be replaced by the corresponding shared
24         library routines once they are loaded.
25
26 1998-10-21  Mark Kettenis  <kettenis@phys.uva.nl>
27
28         * sysdeps/mach/hurd/i386/init-first.c: Only define
29         __libc_enable_secure if PIC is not defined.
30
31 1998-10-25  Roland McGrath  <roland@baalperazim.frob.com>
32
33         * argp/Versions: Add _argp_unlock_xxx.  Lock-savvy functions call this
34         to recurse into argp.
35
36 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
37
38         * include/features.h: Define __USE_POSIS199506 is _POSIX_C_SOURCE is
39         greater or equal than 199506L.
40
41         * sysdeps/generic/bits/types.h (__fd_set): Define element as fds_bits
42         only is __USE_XOPEN.  Otherwise use __fds_bits.
43         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
44         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
45         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
46         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
47         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
48
49 1998-10-24  H.J. Lu  <hjl@gnu.org>
50
51         * locale/programs/charmap.c (parse_charmap): Accept tok_string
52         for <code_set_name>.
53
54 1998-10-25  H.J. Lu  <hjl@gnu.org>
55
56         * locale/programs/ld-ctype.c (ctype_finish): Also check
57         <space>.
58
59 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
60
61         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX199506.
62
63         * sysdeps/unix/sysv/linux/bits/types.h: Include pthreadtypes.h only
64         if __USE_POSIX199506 or __USE_UNIX98.
65
66 1998-10-24 22:34 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
67
68         * string/bits/string2.h: Inline strdup+friends only if
69         __USE_MISC || __USE_GNU (prevents namespace pollution).
70
71 1998-10-24  H.J. Lu  <hjl@gnu.org>
72
73         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (LOCK_SH,
74         LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD.
75         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (LOCK_SH, LOCK_EX,
76         LOCK_NB, LOCK_UN): Likewise.
77         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (LOCK_SH, LOCK_EX,
78         LOCK_NB, LOCK_UN): Likewise.
79         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (LOCK_SH, LOCK_EX,
80         LOCK_NB, LOCK_UN): Likewise.
81         * sysdeps/unix/sysv/linux/bits/fcntl.h (LOCK_SH, LOCK_EX,
82         LOCK_NB, LOCK_UN): Likewise.
83
84 1998-10-24  H.J. Lu  <hjl@gnu.org>
85
86         * libio/ioseekoff.c (_IO_seekoff): Check the valid dir value.
87
88         * libio/rewind.c (rewind): Clear the error.
89
90 1998-10-24  H.J. Lu  <hjl@gnu.org>
91
92         * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to
93         "buffer".
94
95 1998-10-24  H.J. Lu  <hjl@gnu.org>
96
97         * sysdeps/unix/sysv/linux/alpha/bits/time.h (timeval): Protect
98         with __need_timeval.
99         * sysdeps/unix/sysv/linux/mips/bits/time.h (timeval): Likewise.
100         * sysdeps/unix/sysv/linux/bits/time.h (timeval): Likewise.
101
102 1998-10-24  H.J. Lu  <hjl@gnu.org>
103
104         * signal/signal.h (timespec, siginfo_t, sigwaitinfo, sigtimedwait,
105         sigqueue): Protect with __USE_POSIX199309.
106
107 1998-10-24  H.J. Lu  <hjl@gnu.org>
108
109         * time/time.h (timespec): Protect with __USE_POSIX199309 instead of
110         __USE_POSIX.
111
112 1998-10-24  H.J. Lu  <hjl@gnu.org>
113
114         * libio/fileops.c (_IO_new_file_seekoff): Always resync with
115         the kernel file offset.
116         * libio/oldfileops.c (_IO_old_file_seekoff): Likewise.
117
118 1998-10-24  H.J. Lu  <hjl@gnu.org>
119
120         * time/tzfile.c (__tzfile_default): Set num_types to 2.
121
122 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
123
124         * rt/aio.h: Move __aio_init to...
125         * include/aio.h: ...here.
126
127 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
128
129         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate
130         definition of O_LARGEFILE.
131
132 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
133
134         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path
135         as first argument to statfs.
136
137 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
138
139         * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else.
140
141 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
142
143         * malloc/mtrace.c: Include <string.h> for strlen.
144
145 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
146
147         * sysdeps/mach/hurd/bits/environments.h: New file.
148
149         * sysdeps/mach/hurd/dl-sysdep.c (__getcwd): New weak function.
150
151         * mach/Versions, hurd/Versions: Add numerous symbols.
152         Remove libmachuser and libhurduser sections, punt
153         versioning for those libraries for now.
154
155         * misc/Versions: Add reboot here; it exists on all platforms.
156         * sysdeps/unix/sysv/linux/Versions: Remove reboot here.
157
158 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
159
160         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOFOLLOW): New
161         macro.
162         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
163         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
164         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_LARGEFILE,
165         O_NOFOLLOW, O_DIRECT): New macros.
166         (O_DIRECTORY): Correct definition according to official 2.1.126.
167         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECTORY,
168         O_NOFOLLOW): New macros.
169
170 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
171
172         * include/ldsodefs.h: Test HAVE_ELF instead of __ELF__.
173
174         * sysdeps/mach/hurd/opendir.c (__opendir): Return ENOENT for "".
175         (__opendir): Add trailing slash to name for open, for ENOTDIR check.
176
177 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
178
179         * sysdeps/unix/sysv/linux/i386/Dist: Add setresuid.c, setresgid.c,
180         setfsuid.c, and setfsgid.c.
181         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
182         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
183         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
184
185         * version.h (VERSION): Bump to 2.0.99.
186
187         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove duplicate
188         ustat definition.
189
190         * sysdeps/unix/sysv/linux/i386/Dist: Remove s_pread64.c and
191         s_pwrite64.c.
192
193         * posix/fnmath.h: Don't redefine __P when used in glibc.
194         * posix/glob.h: Likewise.
195
196         * inet/rcmd.c (__ivaliduser2): Fix memory leak.
197         Patch by Dick Streefland <dick_streefland@tasking.com>.
198
199         * stdio-common/tst-ungetc.c: Add more test cases.
200
201         * sysdeps/unix/sysv/linux/Dist: Add linux_fsinfo.h.
202         * sysdeps/unix/sysv/linux/fstatvfs.c: Move filesystem magic number
203         definitions to ...
204         * sysdeps/unix/sysv/linux/linux_fsinfo.h: ...here.  New file.
205         * sysdeps/unix/sysv/linux/fpathconf.c: New file.
206         * sysdeps/unix/sysv/linux/pathconf.c: New file.
207         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Handle _PC_LINK_MAX here.
208         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
209
210 1998-10-20  Philip Blundell  <pb@nexus.co.uk>
211
212         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: Include
213         <asm/ptrace.h> to define struct pt_regs.
214         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Don't bother
215         including <asm/ptrace.h> here.
216
217         * sysdeps/unix/sysv/linux/arm/sysdep.S: Remove spurious call to
218         C_SYMBOL_NAME macro.
219
220 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
221
222         * sysdeps/generic/sys/ptrace.h (__ptrace_request): Remove comma at
223         end of enumerator list.
224         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Likewise.
225         * posix/wordexp.h: Likewise.
226
227         * db/db.h: Use __PMT instead of __P in typedefs.
228         * db/mpool.h: Likewise.
229         * sysdeps/generic/bits/siginfo.h: Likewise.
230         * nis/rpcsvc/ypclnt.h: Likewise.
231
232 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
233
234         * libio/genops.c (_IO_seekmark): When switching to backup buffer
235         make sure all characters from the read buffer are read after
236         switching back to it.
237
238 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
239
240         * configure.in: Add support for Cygnus GNUPro compilers.
241
242 1998-10-22  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
243
244         * stdio/stdio.h: Use __PMT instead of __P in typedefs.
245
246         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use __PMT instead
247         of __P for sa_restorer.
248         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
249         * sysdeps/unix/sysv/linux/kernel_sigaction.h (struct
250         kernel_sigaction, old_kernel_sigaction): Likewise.
251
252 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
253
254         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add __syscall_pread
255         and __syscall_pwrite aliases.
256
257         * sunrpc/rpc/auth.h (AUTH_DH): New macro.  Alias for AUTH_DES.
258
259         * sysdeps/unix/sysv/linux/i386/sysdep.h: Drastically simplify and
260         improve INLINE_SYSCALL using macro assembler magic.
261
262 1998-10-22  H.J. Lu  <hjl@gnu.org>
263
264         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Add
265         sanity check for n.
266         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Likewise.
267
268         * sysdeps/posix/fpathconf.c (__fpathconf): Set errno to
269         EINVAL if errno == ENODEV.  Tested by VSX-PCT.
270
271         * sysdeps/posix/isatty.c (__isatty): Don't reset errno.  Tested
272         by VSX-PCT.
273
274         * posix/execvp.c (execvp): Check "".  Tested by VSX-PCT.
275
276 1998-10-22  Philip Blundell  <pb@nexus.co.uk>
277
278         * sysdeps/unix/arm/sysdep.h: Wrap assembler macros in #ifdef
279         __ASSEMBLER__.
280
281 1998-10-21  Ulrich Drepper  <drepper@cygnus.com>
282
283         * sysdeps/unix/sysv/linux/i386/sysdep.h: Remove EXTRAVARS_* macros
284         and adjust formats.
285
286 1998-10-21 14:38  Ulrich Drepper  <drepper@cygnus.com>
287
288         * sysdeps/unix/sysdep.h (INLINE_SYSCALL): New macro.  Simply call
289         __syscall_* function.
290         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Use INLINE_SYSCALL instead
291         of calling __syscall_* function.
292         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
293         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
294         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
295         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
296         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
297         * sysdeps/unix/sysv/linux/getresgid.c: Likewise.
298         * sysdeps/unix/sysv/linux/getresuid.c: Likewise.
299         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
300         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
301         * sysdeps/unix/sysv/linux/poll.c: Likewise.
302         * sysdeps/unix/sysv/linux/pread.c: Likewise.
303         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
304         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
305         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
306         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
307         * sysdeps/unix/sysv/linux/readv.c: Likewise.
308         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
309         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
310         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
311         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
312         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
313         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
314         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
315         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
316         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
317         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
318         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
319         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
320         * sysdeps/unix/sysv/linux/writev.c: Likewise.
321         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
322         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
323         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
324         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
325         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
326         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
327         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
328         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
329         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
330         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
331         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
332         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
333         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
334
335         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INLINE_SYSCALL using
336         inline assembler.
337         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove various
338         __syscall_* definitions.
339
340         * sysdeps/unix/sysv/linux/syscalls.list: Move various __syscall_*
341         definitions to...
342         * sysdeps/unix/sysv/linux/alpha/syscalls.list: ...here...
343         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
344         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
345         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
346         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
347         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
348         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
349
350         * sysdeps/unix/sysv/linux/Makefile [subdir=signal] (sysdep_routines):
351         Move definition to...
352         * sysdeps/unix/sysv/linux/alpha/Makefile: ...here...
353         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
354         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
355         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
356         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
357         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
358         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
359
360         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
361         (sysdep_routines): Remove s_pread64 and s_pwrite64.
362
363         * sysdeps/unix/sysv/linux/i386/pread.c: New file.
364         * sysdeps/unix/sysv/linux/i386/pread64.c: New file.
365         * sysdeps/unix/sysv/linux/i386/pwrite.c: New file.
366         * sysdeps/unix/sysv/linux/i386/pwrite64.c: New file.
367         * sysdeps/unix/sysv/linux/i386/s_pread64.S: Removed.
368         * sysdeps/unix/sysv/linux/i386/s_pwrite64.S: Removed.
369
370 1998-10-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
371
372         * sysdeps/unix/sysv/linux/siglist.h: Fix some typos in these files
373         and bring them in synch.
374         * sysdeps/unix/siglist.c: Likewise.
375         Reported by Vladimir Michl <michlv@risc.upol.cz> [PR libc/832].
376
377 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
378
379         * sysdeps/unix/sysv/linux/i386/setresuid.c: Allow -1 as arguments.
380         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
381
382         * sysdeps/unix/sysv/linux/i386/setreuid.c: New file.
383         * sysdeps/unix/sysv/linux/i386/setregid.c: New file.
384         * sysdeps/unix/sysv/linux/m68k/setreuid.c: New file.
385         * sysdeps/unix/sysv/linux/m68k/setregid.c: New file.
386         * sysdeps/unix/sysv/linux/arm/setreuid.c: New file.
387         * sysdeps/unix/sysv/linux/arm/setregid.c: New file.
388         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: New file.
389         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: New file.
390         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add s_setreuid and
391         s_setregid.
392         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
393         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
394         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
395
396 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
397
398         * sunrpc/rpc_main.c (close_output, close_input): New functions.
399         (c_output, h_output, s_output, l_output, t_output, svc_output,
400         clnt_output, mkfile_output): Call them at the end.
401
402 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
403
404         * db/Makefile (LDFLAGS-db1.so): New variable, to avoid duplicating
405         link command.
406
407 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
408
409         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Add real contents.
410         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add s_setfs[ug]id.
411
412 1998-10-20  Ulrich Drepper  <drepper@cygnus.com>
413
414         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_pread64 and
415         s_pwrite64.
416         * sysdeps/unix/sysv/linux/powerpc/pread.c: New file.
417         * sysdeps/unix/sysv/linux/powerpc/pread64.c: New file.
418         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: New file.
419         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: New file.
420         Patch by Geoffrey KEATING <geoffk@discus.anu.edu.au>.
421
422 1998-10-18  Zack Weinberg  <zack@rabi.phys.columbia.edu>
423
424         * sysdeps/unix/opendir.c: Check at runtime for kernel support for
425         O_DIRECTORY.
426
427 1998-10-20  H.J. Lu  <hjl@gnu.org>
428
429         * sysdeps/unix/sysv/linux/i386/setresuid.c (__setresuid): Fix
430         argument types.
431
432 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
433
434         * math/tgmath.h: Make nested function calls work.
435
436         * include/ldsodefs.h: Fix typo.
437
438         * posix/Makefile (tests): Add tst-preadwrite.
439         * posix/tst-preadwrite.c: New file.
440
441         * sysdeps/unix/opendir.c (__opendir): Add back fstat call to make
442         sure that descriptor is in any case for a directory.
443
444 1998-10-19 18:59 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
445
446         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val.
447         (atan2): Takes two arguments.
448
449 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
450
451         * include/ldsodefs.h: New file.
452
453         * iconv/gconv.c: Include ldsodefs.h, not elf/ldsodefs.h.
454         Remove change to avoid using _CALL_DL_FCT.
455         * iconv/gconv_db.c: Likewise.
456         * iconv/gconv_dl.c: Likewise.
457         * iconv/skeleton.c: Likewise, here for DL_CALL_FCT.
458         * malloc/mtrace.c: Include ldsodefs.h, not elf/ldsodefs.h.
459         * nss/nsswitch.c: Likewise.
460         * nss/nsswitch.h: Likewise.
461
462 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
463
464         * sunrpc/Makefile (otherlibs): If static NSS is in use, set to the
465         required libraries.
466         * login/Makefile (otherlibs): Likewise.
467         * nscd/Makefile (otherlibs): Likewise.
468         * Makeconfig (link-libc) [! build_shared]: Add $(otherlibs).
469
470         * debug/Makefile (install-bin): Only build catchsegv if using ELF.
471
472         * inet/Makefile: Add -DSTATIC_NSS to CFLAGS.
473
474 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
475
476         * sysdeps/unix/sysv/linux/arm/syscalls.list: Added setfsgid
477         and setfsuid.
478
479 1998-10-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
480
481         * nscd/connections.c: Fix typos in comments and strings.
482
483         * nscd/nscd.conf: Update according to recent changes to nscd.
484
485         * nscd/cache.c (prune_cache): Remove wrong comment.
486
487 1998-10-19 13:24  Ulrich Drepper  <drepper@cygnus.com>
488
489         * locale/programs/ld-collate.c (collate_startup): Clear bit for this
490         category in copy_posix.
491         (collate_finish): Don't warn about UNDEFINED not being defined.
492         * locale/programs/ld-ctype.c (ctype_startup): Clear bit for this
493         category in copy_posix.
494         * locale/programs/ld-messages.c (messages_startup): Likewise.
495         * locale/programs/ld-monetary.c (monetary_startup): Likewise.
496         * locale/programs/ld-numeric.c (numeric_startup): Likewise.
497         * locale/programs/ld-time.c (time_startup): Likewise.
498         * locale/programs/localedef.c: Move copy_def_list_t definition into
499         locales.h.  Define copy_posix variable.
500         (main): Before processing copy list add &copy_posix to copy_list.
501         * locale/programs/locales.h: Add definition of copy_def_list_t.
502         * locale/programs/locfile.c: Clear bit for appropriate category in
503         copy_posix.mask for copy instruction.
504
505 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
506
507         * sysdeps/unix/sysv/linux/i386/setresgid.c: Remove #include of
508         non-existing file with generic implementation.
509         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
510
511 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
512
513         * iconv/gconv_db.c: Include ELF header only if STATIC_GCONV is not
514         defined.  Avoid using _CALL_DL_FCT if it is not defined.
515         * iconv/gconv.c: Likewise.
516
517 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
518
519         * nscd/connections.c (dbs): Define defualt values for timeouts and
520         set enabled to 0 by default.
521         (CACHE_PRUNE_INTERVAL): New constant.  Use it instead of magical 15 in
522         nscd_run.
523
524         * locale/C-ctype.c (_nl_C_LC_CTYPE_class): Clear ISCNTRL bit for
525         character >= 0x80.
526         (_nl_C_LC_CTYPE_class32): Likewise.
527         Reported by HJ Lu.
528
529 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
530
531         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
532         _HURD_THREADVAR_DL_ERROR.
533
534         * hurd/Makefile (user-interfaces): Add login, password.
535
536         * sysdeps/mach/hurd/Makefile (+cflags): Append -Wno-parentheses.
537
538 1998-08-06  Mark Kettenis  <kettenis@phys.uva.nl>
539
540         [submitted 1998-08-06]
541         * mach/Machrules: Create target directory and force re-evaluation
542         of Makefile to prevent `make' from optimizing away most of the
543         implicit rules and `vpath' directives.
544
545 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
546
547         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): If _hurd_msgport_thread
548         is null, short-circuit to __mach_msg.
549
550         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): New function,
551         broken out of init1.
552         (init1) [PIC]: Call it.
553         (__libc_init_first) [! PIC]: Call it.
554
555         * sysdeps/mach/hurd/i386/init-first.c (init1): Don't call
556         __libc_init_secure.  Instead set __libc_enable_secure here from
557         the exec flags.
558         (__libc_enable_secure): New variable it.
559         * sysdeps/mach/hurd/enbl-secure.c: New file, empty placeholder module.
560
561 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
562
563         * nscd/nscd-client.h: New file, broken out of "nscd.h".
564         * nscd/nscd.h: Move defns needed by clients to "nscd-client.h",
565         and #include that.
566         * nscd/Makefile (distribute): Add nscd-client.h.
567         * nscd/nscd_getgr_r.c, nscd/nscd_gethst_r.c, nscd/nscd_getpw_r.c:
568         Include "nscd-client.h" instead of "nscd.h"
569
570 1998-10-18  Ulrich Drepper  <drepper@cygnus.com>
571
572         * sysdeps/posix/getcwd.c (__getcwd): Don't stop processing
573         directory entries when a lstat call fails.
574         Patch by Colin Plumb <colin@nyx.net>.
575
576         * resolv/nss_dns/dns-host.c: Add missing errnop parameter to the
577         NSS functions.
578         * resolv/nss_dns/dns-network.c: Likewise.
579
580         * grp/Makefile: Don't search for linuxthreads in add-ons, use
581         have-thread-library to determine whether threads are available.
582         * pwd/Makefile: Remove wrong comment.
583
584         * inet/Makefile: Define CFLAGS-gethstbyad_r.c, CFLAGS-gethstbynm_r.c,
585         and CFLAGS-gethstbynm2_r.c to -DUSE_NSCD=1.
586
587         * locale/C-messages.c: Define default strings for YESTR and NOSTR.
588
589         * nss/Versions: Add __nss_hosts_lookup.
590
591         * nss/getXXbyYY.c: Remove unneeded assignment.
592
593         * nss/getXXbyYY_r.c: Include nscd/nscd_proto.h only if needed.
594
595         Almost complete rewrite of the NSCD to make it smaller, faster,
596         add more functionnality and make it easier to extend.
597         * nscd/Makfile (routines): Add nscd_gethst_r.
598         (nscd-modules): Add hstcache, gethstbyad_r, gethstbynm2_r, and cache.
599         * nscd/cache.c: New file.
600         * nscd/gethstbyad_r.c: New file.
601         * nscd/gethstbynm2_r.c: New file.
602         * nscd/hstcache.c: New file.
603         * nscd/nscd_gethst_r.c: New file.
604         * nscd/connections.c: Rewritten.  Don't start new thread for every
605         new connection.  Use a fixed set of threads which handle all
606         connections and also the cache cleanup.
607         * nscd/grpcache.c: Rewritten to use generic cache handling functions
608         in cache.c.
609         * nscd/nscd.c: Recognize new parameter nthreads.  Adjust initialization
610         for rewrite.  Remove handle_requests function.
611         * nscd/nscd.h (NSCD_VERSION): Bump to 2.
612         Define new data structure for the new unified cache and the host
613         database entries.
614         * nscd/nscd_conf.c: Rewrite parsing partly to allow adding of more
615         databases easily.  Recognize check-files and threads definitions.
616         * nscd/nscd.conf: Add definition of enable-cache and check-files to
617         passwd and group definitions.  Add new set of definitions for hosts.
618         * nscd/nscd_getgr_r.c: Rewrite for new protocol.
619         * nscd/nscd_getpw_r.c: Likewise.
620         * nscd/nscd_proto.h: Add prototype for host database functions.
621         * nscd/nscd_stat.c: Rewrite to simplify printing of information
622         for many databases.
623         * nscd/dbg_log.c: Remove unnecessary variable initializations.
624         Global variable debug_flag is renamed to dbg_level.
625         * nscd/dbg_log.h: Declare set_logfile.
626
627 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
628
629         * sysdeps/unix/sysv/linux/bits/fcntl.h: Add dummy definition of
630         O_LARGEFILE back.
631
632 1998-10-16  Paul Eggert  <eggert@shade.twinsun.com>
633
634         * time/mktime.c: Some systems require <unistd.h> to be
635         included before <time.h> for localtime_r to be declared
636         properly.
637         * time/strftime.c: Likewise.
638
639 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
640
641         * db/Makefile: Add rule to generate shared object with the soname
642         from glibc 2.0.
643
644         * sysdeps/unix/opendir.c: Use O_DIRECTORY if available.  If not
645         available double check to verify it's a directory.
646
647         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add O_DIRECTORY.
648         * sysdeps/unix/sysv/linux/mips/bits/fcntl: Likewise.
649         * sysdeps/unix/sysv/linux/bits/fcntl.h: Remove O_* constants which
650         are not generally available.
651         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: New file.
652
653         * sysdeps/unix/sysv/linux/i386/setgroups.c: Add range check for values.
654         * sysdeps/unix/sysv/linux/arm/Makefile: New file.
655         * sysdeps/unix/sysv/linux/arm/setegid.c: New file.
656         * sysdeps/unix/sysv/linux/arm/seteuid.c: New file.
657         * sysdeps/unix/sysv/linux/arm/setfsgid.c: New file.
658         * sysdeps/unix/sysv/linux/arm/setfsuid.c: New file.
659         * sysdeps/unix/sysv/linux/arm/setgid.c: New file.
660         * sysdeps/unix/sysv/linux/arm/setgroups.c: New file.
661         * sysdeps/unix/sysv/linux/arm/setresgid.c: New file.
662         * sysdeps/unix/sysv/linux/arm/setresuid.c: New file.
663         * sysdeps/unix/sysv/linux/arm/setuid.c: New file.
664         * sysdeps/unix/sysv/linux/i386/setegid.c: New file.
665         * sysdeps/unix/sysv/linux/i386/seteuid.c: New file.
666         * sysdeps/unix/sysv/linux/i386/setfsgid.c: New file.
667         * sysdeps/unix/sysv/linux/i386/setfsuid.c: New file.
668         * sysdeps/unix/sysv/linux/i386/setgid.c: New file.
669         * sysdeps/unix/sysv/linux/i386/setgroups.c: New file.
670         * sysdeps/unix/sysv/linux/i386/setresgid.c: New file.
671         * sysdeps/unix/sysv/linux/i386/setresuid.c: New file.
672         * sysdeps/unix/sysv/linux/i386/setuid.c: New file.
673         * sysdeps/unix/sysv/linux/m68k/setegid.c: New file.
674         * sysdeps/unix/sysv/linux/m68k/seteuid.c: New file.
675         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: New file.
676         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: New file.
677         * sysdeps/unix/sysv/linux/m68k/setgid.c: New file.
678         * sysdeps/unix/sysv/linux/m68k/setgroups.c: New file.
679         * sysdeps/unix/sysv/linux/m68k/setresgid.c: New file.
680         * sysdeps/unix/sysv/linux/m68k/setresuid.c: New file.
681         * sysdeps/unix/sysv/linux/m68k/setuid.c: New file.
682         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: New file.
683         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: New file.
684         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: New file.
685         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: New file.
686         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: New file.
687         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: New file.
688         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
689         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
690         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: New file.
691
692         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add s_setgid, s_setresuid,
693         s_setresgid, and s_setuid.
694         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
695         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
696         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
697         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
698         (sysdep_routines): Add setfsgid, setfsuid, setresgid, and setresuid.
699         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
700         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
701
702 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
703
704         * time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
705         localtime_t declaration on some systems.
706
707 1998-10-16 10:07  Ulrich Drepper  <drepper@cygnus.com>
708
709         * iconv/Makefile [! elf]: Define CFLAGS-gconv_simple.c to
710         -DSTATIC_GCONV.
711         * iconv/skeleton.c: Include ELF header only of STATIC_GCONV is not
712         defined.  Avoid using DL_CLL_FCT if it is not defined.
713
714 1998-10-16 10:40 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
715
716         * resolv/arpa/nameser.h: Include sys/types.h unconditionally.
717         Include endian.h unconditionally.  Remove portability goop
718         depending on #ifdef linux, #ifdef BSD, #ifdef machine-type.
719
720 1998-10-16 11:39 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
721
722         * sunrpc/rpc/types.h: Mark file so fixincludes won't modify it.
723
724 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
725
726         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Remove __kernel_termios
727         again.  Use char[44] to define size of the struct.
728
729         * sysdeps/unix/sysv/linux/arm/Dist: Add bits/armsigctx.h.
730
731 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
732
733         * string/bits/string2.h (strcmp): Don't cache the result of
734         __builtin_constant_p in variables, otherwise constant folding
735         can fail in big functions.
736
737 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
738
739         * string/bits/string2.h: Add prototypes for the new inline
740         functions.
741
742 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
743
744         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Include termios.h to
745         have all types defined.
746         Patch by Matti Aarnio <matti.aarnio@sonera.fi>.
747
748 1998-10-08  Paul Eggert  <eggert@twinsun.com>
749
750         * time/mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
751         Define also if HAVE_LOCALTIME_R && defined localtime_r, with
752         a body that merely expands localtime_r; this works around a
753         bug in Digital Unix 4.0A and 4.0D.
754
755 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
756
757         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_ioctl.
758         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: New file. Define
759         __ioctl to __syscall_ioctl and include Linux version of this file.
760         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
761         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: New file.  Redirect
762         ioctl calls which handle struct termios.
763         Based on a patch by Dan Jacobowitz <drow@false.org>.
764
765 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
766
767         * version.h (VERSION): Bump to 2.0.98.
768
769         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Define __kernel_termios
770         here instead of including kernel_termios.h.
771
772 1998-10-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
773
774         * sysdeps/unix/opendir.c (__opendir): Remove label lose2 which is
775         unnecessary after the changes of 1998-10-12.
776
777 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
778
779         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
780         parameter format string.
781         (inline_outw): Likewise.
782
783         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
784         string.h to get memcpy prototype and NULL definition.
785
786 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
787
788         * misc/sys/cdefs.h (__THROW): New macro.
789         * argp/argp.h: Use it to replace the kludgey __P in inline
790         function definitions.
791         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
792         * stdlib/stdlib.h: Likewise.
793         * wcsmbs/wchar.h: Likewise.
794         * libio/stdio.h: Likewise.
795         * stdio/stdio.h: Likewise.
796         * sysdeps/wordsize-64/inttypes.h: Likewise.
797         * sysdeps/wordsize-32/inttypes.h: Likewise.
798         * string/argz.h: Likewise.
799         * io/sys/stat.h: Likewise.
800
801 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
802
803         * Rules (stdio_lim): New variable.
804         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
805         on Rules and config.make, use $(move-if-change) to avoid unnessary
806         recompilations, and cleanup command.
807         (common-generated): Add bits/stdio_lim.st.
808
809 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
810
811         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
812         variable to prevent warnings from use of modern CPU instructions.
813         Patch by Richard Henderson <rth@cygnus.com>.
814
815         * sysdeps/unix/opendir.c: Test whether NAME is directory before
816         opening it.
817
818 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
819
820         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
821         semicolon so that profiling works.
822
823 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
824
825         * sysdeps/generic/glob.c: #undef mempcpy before #define.
826
827         * sysdeps/unix/bsd/clock.c: Use prototype defns.
828
829 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
830
831         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
832         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
833
834         * string/bits/string2.h [!_STRING_ARCH_unaligned]
835         (__mempcpy_small): Add parameter for 1 byte copy and use it.
836         Reported by Geoff Keating <geoffk@ozemail.com.au>.
837
838 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
839
840         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
841         it is already defined in <bits/environments.h>.
842
843 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
844
845         * posix/ptestcases.h: Fix typo.
846
847 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
848
849         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
850         (regexec): Allocate regs.start and regs.end as one block.
851
852 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
853
854         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
855         enum decl.
856
857 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
858
859         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
860         sigcontext union to ...
861         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
862         file.
863         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
864         version 2.0 kernels.
865
866 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
867
868         * malloc/mtrace.c (tr_reallochook): Produce better output for real
869         reallocation case.
870
871         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
872         * argp/argp-xinl.c: Likewise.
873
874         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
875         Ruffian entry back.
876         Patch by Christian Gafton.
877
878 1998-10-08  Paul Eggert  <eggert@twinsun.com>
879
880         * time/mktime.c (__mktime_internal): When the requested time falls
881         in a spring-forward gap of size DT, return a time that is DT away
882         from the requested time, preferring a time whose tm_isdst differs
883         from the requested value.  Bump the max number of probes from 4 to
884         6 to account for the extra probes needed to discover a
885         spring-forward gap in the worst case.
886
887 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
888
889         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
890         of the weird alpha architectures.
891         Patch by Cristian Gafton <gafton@redhat.com>.
892
893 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
894
895         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
896         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
897
898 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
899
900         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
901         (dl_open_worker): Use realloc, not malloc to resize array.
902         * elf/rtld.c (_dl_initial_searchlist): New variable.
903         (_dl_main): Copy content of _dl_main_searchlist to
904         _dl_initial_searchlist.
905         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
906         _dl_global_scope_alloc.
907         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
908         * elf/dl-close.c (_dl_close): When removing object with global
909         scope remove allocated searchlist if no dynamically loaded object
910         is on it anymore.
911         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
912         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
913
914         * malloc/mtrace.c (tr_where): Don't print space in location string,
915         print it afterwards.  Print better symbol name information.
916
917 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
918
919         * manual/filesys.texi (Setting Permissions): Fix example for
920         reading umask.
921
922 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
923
924         * elf/sprof.c (load_profdata): Fix typo in error message.
925
926 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
927
928         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
929         flag.
930
931 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
932
933         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
934
935 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
936
937         * version.h (VERSION): Bump to 2.0.97.
938
939 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
940
941         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
942         in definitions of inline stat functions so that they match the
943         declaration.
944         * stdlib/stdlib.h: Likewise.
945         * wcsmbs/wchar.h: Likewise.
946         * libio/stdio.h: Likewise.
947         * stdio/stdio.h: Likewise.
948         * sysdeps/wordsize-64/inttypes.h: Likewise.
949         * sysdeps/wordsize-32/inttypes.h: Likewise.
950         * string/argz.h: Likewise.
951         * argp/argp.h: Likewise.
952
953 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
954
955         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
956         netinet/in.h.
957
958 1998-10-05  Philip Blundell  <philb@gnu.org>
959
960         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
961         and constants.  Tidy up formatting a little.
962
963         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
964         Move definitions to in.h.
965
966 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
967
968         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
969         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
970         Remove inclusion of <linux/swap.h>.
971
972 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
973
974         * io/sys/stat.h: Use __P in definitions of inline stat functions
975         so that they match the declaration.
976
977 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
978
979         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
980
981 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
982
983         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
984         linux 2.1 version.
985
986 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
987
988         * sysdeps/arm/dl-machine.h: Fix typo in last change.
989
990         * sysdeps/arm/bits/huge_val.h: New file.
991
992 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
993
994         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
995
996         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
997         define.
998
999 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1000
1001         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
1002         store result of realloc instead of using BUF.
1003
1004 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1005
1006         * misc/sgtty.h (_SGTTY_H): Correct spelling.
1007         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
1008
1009 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1010
1011         * manual/memory.texi (Obstacks): Document
1012         obstack_alloc_failed_handler usage.
1013
1014         * malloc/obstack.h: Enhance comment about
1015         obstack_alloc_failed_handler usage.
1016         * malloc/obstack.c: Likewise.
1017
1018 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1019
1020         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
1021         gcc before 2.8 is used.
1022
1023 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
1024
1025         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
1026         from Scott Bambrough.
1027
1028         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
1029
1030         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
1031         include the lock member.
1032
1033 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
1034
1035         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
1036
1037 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
1038
1039         * timezone/zic.c: Update from tzcode1998h.
1040         * timezone/europe: Update from tzdata1998i.
1041         * timezone/southamerica: Likewise.
1042
1043         * sys/types.h: Protect use of long long by __extension__.
1044         * stdlib/stdlib.h: Likewise.
1045         * string/string.h: Likewise.
1046         * sysdeps/i386/bits/byteswap.h: Likewise.
1047         * sysdeps/geeric/bits/byteswap.h: Likewise.
1048         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1049         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1050         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
1051         * sysdeps/wordsize-32/inttypes.h: Likewise.
1052         * sysdeps/wordsize-32/stdint.h: Likewise.
1053         * wcsmbs/wchar.h: Likewise.
1054
1055 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1056
1057         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
1058         expression.
1059         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
1060         __strsep): Greatly reduce size of expansion by combining common
1061         expressions.
1062         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
1063         inline function.
1064         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
1065         by the above definitions.
1066
1067 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
1068
1069         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
1070         correct struct ipc_perm definition.
1071
1072 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1073
1074         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
1075
1076 1998-09-29  Cristian Gafton  <gafton@redhat.com>
1077
1078         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
1079         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
1080         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
1081         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
1082         Add net/if_shaper.h.
1083
1084 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
1085
1086         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
1087
1088         * nis/ypclnt.c: Remove not needed close calls.
1089
1090 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
1091
1092         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
1093         check a bit.  Also close socket of domain client.  Close socket
1094         in IPPORT_RESERVED error case.
1095
1096 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
1097
1098         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
1099         CMSG_ALIGN (fixes a bug) and correct test for availability of
1100         another entry.
1101         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
1102         Linux version.
1103         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
1104         availability of another entry.
1105         Patch by ak@muc.de.
1106
1107         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
1108         Patch by ak@muc.de.
1109
1110         * libio/libio.h [!__STDC__]: Define const only if not defined.
1111
1112 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1113
1114         * posix/annexc.c (xsystem): New function.  Use it instead of
1115         system.
1116
1117 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
1118
1119         * stdlib/longlong.h: Remove #endif for #if removed in last change.
1120
1121 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
1122
1123         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
1124         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
1125         allow using `ut' parameter.
1126         [!emacs]: Define ut_argument, ut_argument_spec, and
1127         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
1128         argument_spec to prototypes and definitions.
1129         (my_strftime): Don't call tzset of ut != 0.
1130         Compute diff as 0 is ut != 0;
1131         [emacs]: Define new emacs_strftime function.
1132         Based on a patch by Paul Eggert.
1133
1134 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1135
1136         * time/strftime.c (my_strftime): When asking for the length of the
1137         subformatted buffer, do not limit the length to look for;
1138         otherwise, we have no reliable way to distinguish between the
1139         empty buffer and an error.
1140
1141 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
1142
1143         * math/Makefile (gmp-objs): Add mp_clz_tab.
1144
1145 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
1146
1147         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
1148         set them.
1149         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
1150         cpus lacking hardware multiply and divide.
1151
1152 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1153
1154         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
1155         $(<F), not $(^F).
1156
1157 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1158
1159         * db/btree/bt_delete.c: Fix -Wparentheses warning.
1160
1161 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1162
1163         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
1164         $(do-install).
1165
1166 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
1167
1168         * debug/catchsegv.sh: Also produce output if clone process died.
1169
1170 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1171
1172         * time/strftime.c (f_wkday): Remove duplicate definition.
1173         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
1174         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
1175         1998-09-11 fix to this case.
1176         (wkday_len, month_len): Remove these macros; they're no longer needed.
1177
1178 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1179
1180         * time/strftime.c (my_strftime): Don't store past the end of a
1181         zero-sized buffer.
1182
1183 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1184
1185         * time/strftime.c (underlying_strftime):
1186         Set the buffer to a nonzero value before calling
1187         strftime, and check to see whether strftime has set the buffer to zero.
1188         This lets us distinguish between an empty buffer and an error.
1189
1190 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
1191
1192         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
1193         This fix is propagated from tzcode1998g.tar.gz.
1194
1195 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
1196
1197         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
1198         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
1199         sys_siglist.  This is handled correctly by the weak_alias macro.
1200
1201 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
1202
1203         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
1204         of mempcpy.  Reported by Andreas Jaeger.
1205
1206         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
1207         pollute the namespace since the compiler will resolve it inline.
1208         Reported by Florian La Roche <florian@suse.de>.
1209
1210 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
1211
1212         * timezone/private.h: Update from tzcode1998g.
1213
1214         * timezone/africa: Update from tzdata1998h.
1215         * timezone/asia: Likewise.
1216         * timezone/australasia: Likewise.
1217         * timezone/europe: Likewise.
1218         * timezone/northamerica: Likewise.
1219         * timezone/southamerica: Likewise.
1220         * timezone/zone.tab: Likewise.
1221
1222 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1223
1224         * misc/sys/mman.h: New file.
1225
1226         * sysdeps/generic/bits/mman.h: New file.
1227         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
1228         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
1229         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
1230         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
1231
1232         * sysdeps/generic/sys/mman.h: Removed.
1233         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
1234         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
1235         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
1236         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
1237         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
1238
1239         * include/sys/mman.h: Look directly for misc/sys/mman.h.
1240         * misc/Makefile (headers): Add bits/mman.h.
1241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
1242         bits/mman.h.
1243
1244         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
1245         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
1246         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
1247         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
1248         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
1249         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1250         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
1251         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1252
1253 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1254
1255         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
1256         * sysdeps/mach/alpha/thread_state.h: Likewise.
1257         * sysdeps/mach/i386/sysdep.h: Likewise.
1258         * sysdeps/mach/i386/thread_state.h: Likewise.
1259         * sysdeps/mach/mips/sysdep.h: Likewise.
1260         * sysdeps/mach/mips/thread_state.h: Likewise.
1261         * sysdeps/posix/profil.c: Likewise.
1262         * sysdeps/i386/i586/memcopy.h: Likewise.
1263         * sysdeps/mach/pagecopy.h: Likewise.
1264
1265 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
1266
1267         * libio/stdio.h: Define __need_getopt and include getopt.h to define
1268         getopt stuff.
1269         * posix/unistd.h: Likewise.
1270         * stdio/stdio.h: Likewise.
1271         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
1272         define only getopt and the variables.
1273
1274 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1275
1276         * scripts/test-installation.pl (installation_problem): Don't link
1277         the test program against libdb1.
1278
1279 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
1280
1281         * Makeconfig (all-subdirs): Add db.
1282         * Versions.def: Add definition for libdb1.
1283         * shlib-versions: Add definitions for libdb1.
1284         * db/Makefile (extra-libs): Replace by libdb1.
1285         (libdb-routines): Rename to libdb1-routines.
1286         (headers): Rename to db1-headers.
1287         (distribute): Add $(db1-headers).
1288         (install-others): Define to install symlink libdb.so.NN and the
1289         $(db1-headers).
1290         (CPPFLAGS): Add -DUSE_LIBDB1
1291         Remove rules to build makedb.
1292         * db/Versions: Rename libdb to libdb1.
1293         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
1294         * db/makedb.c: Removed.
1295
1296         * scripts/versions.awk: Recognize digits in library names.
1297
1298         * db/btree/bt_open.c: Fix compiler warnings.
1299         * db/btree/bt_put.c: Likewise.
1300         * db/btree/bt_split.c: Likewise.
1301         * db/hash/hash.c: Likewise.
1302         * db/hash/hash_bigkey.c: Likewise.
1303         * db/recno/rec_close.c: Likewise.
1304
1305         * Makefile: Add localedata/% goal.
1306
1307 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1308
1309         * posix/execvp.c: Don't give up searching the PATH if execve
1310         returns ENOTDIR.
1311
1312 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
1313
1314         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
1315         if _dl_fpu_control_set is set.
1316         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
1317         * elf/rtld.c: Don't define _dl_fpu_control_set.
1318         * elf/Versions: Remove _dl_fpu_control_set.
1319
1320 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
1321
1322         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
1323         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1324         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
1325         Correct values of other SA_* macros according to kernel headers.
1326
1327 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1328
1329         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
1330         variable l.
1331         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
1332         old.
1333
1334 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1335
1336         * elf/ldsodefs.h: Fix typo in comment.
1337
1338 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1339
1340         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
1341         char when comparing buffer contents with putback character.
1342
1343 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1344
1345         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
1346         Undo last change.
1347         * elf/Versions: Undo last change.  Export _dl_fpu_control and
1348         _dl_fpu_control_set.
1349         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
1350         variables.  Include <fpu_control.h>.
1351         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
1352         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
1353         to indicate that is was seen.
1354         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
1355         only if _dl_fpu_control was set and is equal to desired value.
1356         * math/Makefile (aux): Undo last change.
1357         * math/Versions: Export __fpu_control with version GLIBC_2.0.
1358
1359 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1360
1361         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
1362         optimized.
1363
1364 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
1365
1366         * string/bits/string2.h: Add mempcpy optimization.
1367         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
1368         * intl/localealias.c: Define mempcpy only if not already defined.
1369
1370         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
1371         defined.
1372
1373 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1374
1375         * csu/abi-note.S: Emit the note directly instead of defining
1376         a preprocessor macro that's only used once.  Don't include sysdep.h.
1377         * abi-tags: Generalize Solaris entry.
1378
1379 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1380
1381         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
1382         Change to array to avoid runtime relocation.
1383         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
1384
1385 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1386
1387         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
1388         * math/Makefile ($(objpfx)libieee.a): Likewise.
1389
1390 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
1391
1392         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
1393         Patch by John Tobey <jtobey@banta-im.com>.
1394
1395 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
1396
1397         * login/Makefile (distribute): Remove pty-internal.h, add
1398         pty-private.h.
1399
1400         * stdlib/tst-strtol.c: Add more checks.
1401         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
1402
1403 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
1404
1405         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
1406         * elf/elf.h: Add AT_FPUCW.
1407         * elf/Makefile (dl-routines): Add fpu_control.
1408         (elide-routines.os): Add fpu_control.
1409         (rtld-routines): Add fpu_control.
1410         * math/Makefile (aux): Remove fpu_control.
1411         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
1412         (_dl_show_auxv): Likewise.
1413         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
1414         if different from OS default.
1415
1416         * stdio-common/tstscanf.c: Add test case for (nil).
1417
1418 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
1419
1420         * libio/fileops.c (_IO_new_file_underflow): Before allocating
1421         buffer make sure the pushback buffer is destroyed.
1422         (_IO_new_file_seekoff): Likewise.
1423         If mode==0 quit early with the result.
1424         Clear OEF flag after successful fseek.
1425         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
1426         * libio/ftello.c (ftello): Add offset from original buffer if
1427         stream has pushed back characters.
1428         * libio/ftello64.c (ftello64): Likewise.
1429         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
1430         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
1431         * libio/ioftell.c (_IO_ftell): Likewise.
1432         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
1433         and _IO_save_ptr.
1434         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
1435         (_IO_default_pbackfail): Only stored push back character in original
1436         buffer if it is the same as the one in the file at this position.
1437         * libio/iofclose.c: Free backup buffer if one is available.
1438         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
1439         mode!=0.
1440
1441         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
1442
1443         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
1444
1445         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
1446
1447 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
1448
1449         * login/programs/pt_chown.c (more_help): Correct message that
1450         describes the purpose of the program.
1451
1452         * login/openpty.c: Do not include pty-private.h.
1453         (pts_name): New function.  Return name of slave pseudo terminal in
1454         an allocated buffer if necessary.
1455         (openpty): Use pts_name to get name of the slave end of the pseudo
1456         terminal pair.
1457
1458         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
1459         pts_name before return.
1460
1461 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
1462
1463         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
1464
1465 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1466
1467         * login/openpty.c: Include pty-private.h instead of
1468         pty-internal.h.
1469
1470 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
1471
1472         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
1473
1474 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
1475
1476         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
1477         recent ld.so changes.
1478         (elf_machine_runtime_setup): Correct behaviour when profiling.
1479
1480 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
1481
1482         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
1483         Patch by John Tobey <jtobey@banta-im.com>.
1484
1485 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
1486
1487         * login/pty-internal.h: Removed.  Moved constants related to the
1488         `grantpt' helper program protocol to ...
1489         * login/pty-private.h: ... here.  New file.
1490         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
1491         to make the function work with kernels >= 2.1.115.
1492         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
1493         version if using the cloning device fails.
1494         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1495         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
1496         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
1497         use by Linux specific code.
1498         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
1499         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
1500         function.  (grantpt): Use pts_name, check group and permission
1501         mode in addition to owner.  Try to set the owner, group and
1502         permission mode first without invoking the helper program.
1503         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
1504         internationalization support.  Use symbolic constants instead of
1505         hardwired numbers for permission mode.
1506         * sysdeps/unix/bsd/ptsname.c: New file.
1507
1508 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
1509
1510         * posix/wordexp-test.c: Undo last change.
1511
1512         * posix/wordexp.c: Undo last change.
1513
1514 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
1515
1516         * nscd/grpcache.c (save_grp): Partly undo last change.
1517
1518         * nscd/pwdcache.c (save_pwd): Undo last change.
1519
1520 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1521
1522         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
1523         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
1524
1525 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
1526
1527         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
1528         Add profiling support.
1529         (TRAMPOLINE_TEMPLATE): New macro.
1530         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
1531         (RTLD_START): Prettify, and set __libc_stack_end properly.
1532         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
1533         and check for sym being NULL instead.
1534         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
1535         of stack space.
1536         * sysdeps/sparc/sparc64/lshift.S: Likewise.
1537         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
1538         * sysdeps/sparc/sparc64/rshift.S: Likewise.
1539         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
1540         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
1541         MEDANY code model %g4 usage.
1542         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
1543         MEDANY code model %g4 usage.
1544         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
1545         code model address formation.
1546         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
1547         include elf/ldsodefs.h
1548         (DT_SPARC): Remove.
1549         (elf_machine_matches_host): It is now EM_SPARCV9.
1550         (elf_machine_dynamic): Clean up to remove ugly cast.
1551         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
1552         new PLT formats.
1553         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
1554         Prettify rest of function.
1555         [R_SPARC_COPY]: Check for sym being NULL.
1556         [R_SPARC_32]: Handle it.
1557         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
1558         MEDMID code model.
1559         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
1560         MEDANY code model.
1561         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
1562         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
1563         Add profiling support.
1564         (TRAMPOLINE_TEMPLATE): New macro.
1565         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
1566         (RTLD_START): Prettify and set __libc_stack_end.
1567         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
1568         Define.
1569         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
1570         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
1571         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
1572         unused variable scratch.
1573         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1574         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
1575         Declare.
1576         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
1577         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
1578         old format kernel sigaction structures.
1579         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
1580         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
1581         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
1582         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
1583         ucontext include.
1584         (_JMPBUF_UNWINDS): Define.
1585         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
1586         statfs64 structure, which is exactly the same as the normal one.
1587         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
1588         of stack.  Use correct syscall trap number.  Add branch prediction
1589         settings to branch instructions.  Remove old MEDANY code model %g4
1590         referneces for non-PIC.
1591         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1592         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
1593         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
1594         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1595         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1596         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
1597         __libc_longjmp and __libc_siglongjmp strong aliases.
1598         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
1599         Also define to __no__readdir64_decl around readdir.c inclusion.
1600         (__readdir64): Add strong alias.
1601         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
1602         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
1603         Set strong and weak names properly.
1604
1605 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1606
1607         * manual/Makefile (AWK): Default to gawk if standalone.
1608
1609 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1610
1611         * Makefile (distribute): Undo last change.
1612         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
1613         for sysdep headers.
1614         (+subdir-headers): Removed, unused.
1615
1616 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1617
1618         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
1619         $(do-install).
1620
1621 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1622
1623         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
1624         absolute name in $(config-sysdirs), can never happen.
1625         ($(+sysdir_pfx)sysd-rules): Likewise.
1626         * Makeconfig (full-config-sysdirs): Likewise.
1627         (all-Subdirs-files): Prepend $(..).
1628
1629         * configure.in: Don't check for absolute name in $add_ons_pfx, can
1630         not happen.  Let --enable-add-ons=yes work if no add-ons actually
1631         exist.
1632
1633 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1634
1635         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
1636         continuations in command.
1637
1638 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1639
1640         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
1641
1642 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
1643
1644         * posix/wordexp-test.c: If expansion or substitution occurs
1645         anywhere in a word, the entire word is subject to field-splitting.
1646
1647         * posix/wordexp.c (parse_glob): Look for end of word instead of
1648         end of field when deciding what to glob.
1649         (field_split_word): New function, now the only place where
1650         field-splitting is performed.
1651         (parse_dollars): New parameter - tell the caller if
1652         field-splitting should be performed on this word.
1653
1654         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
1655         succeeded (or failed with WRDE_NOSPACE).
1656
1657 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
1658
1659         * posix/wordexp.c (wordexp): Don't convert IFS characters to
1660         blanks.
1661
1662         * posix/wordexp-test.c: Words not the result of expansion or
1663         substitution should remain unchanged.
1664
1665 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
1666
1667         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
1668         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
1669
1670 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1671
1672         * stdio-common/Makefile: Include Makeconfig so that
1673         $(inst_includedir) is defined.
1674
1675 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1676
1677         * io/pwd.c: Include <mcheck.h>.
1678
1679 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
1680
1681         * nscd/pwdcache.c (save_pwd): Correct copying.
1682         * nscd/grpcache.c (save_grp): Likewise.
1683
1684 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
1685
1686         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
1687         (free_pwd): Adjust for this change.
1688         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
1689         (free_grp): Adjust for this change.
1690
1691 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
1692
1693         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
1694
1695 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
1696
1697         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
1698         (install-others): Add bits/stdio_lim.h.
1699         Add rule to install bits/stdio_lim.h.
1700
1701         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
1702
1703         * Makefile (distribute): Add include/sys/mman.h.
1704
1705         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
1706         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
1707         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
1708
1709         * grp/initgroups.c: Include stdlib.h.
1710         Patch by Zack Weinberg.
1711
1712 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
1713
1714         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
1715         for field-splitting :abc: is correct, and that two fields should
1716         result. Revert tests to reflect this.
1717
1718         * posix/wordexp.c (w_emptyword): Remove function.
1719         (exec_comm): Don't use w_emptyword.
1720         (parse_param): Likewise.
1721
1722 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
1723
1724         * sysdeps/arm/fpu/Dist: Moved to...
1725         * sysdeps/arm/Dist: ...here.
1726         * sysdeps/posix/Dist: Removed.
1727         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
1728         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
1729
1730 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1731
1732         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
1733
1734 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
1735
1736         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
1737
1738 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1739
1740         * libc-work/nis/nss_nisplus/nisplus-service.c
1741         (_nss_nisplus_parse_servent): Convert port in network byte order.
1742
1743 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1744
1745         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
1746         to provide only malloc and calloc.
1747         * include/stdlib.h: Support the above.
1748         * string/bits/string2.h: Use __need_malloc_and_calloc when
1749         including stdlib.h.
1750         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
1751
1752         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
1753         * iconvdata/iso646.c: Include <stdlib.h>.
1754
1755 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1756
1757         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
1758         * sysdeps/libm-ieee754/w_pow.c: Likewise.
1759         * sysdeps/libm-ieee754/w_powf.c: Likewise.
1760         * sysdeps/libm-ieee754/w_powl.c: Likewise.
1761
1762 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1763
1764         * stdio-common/stdio_lim.h.in: New file.  All parameters
1765         are adjustable at build time.
1766         * Rules: Add a rule to build bits/stdio_lim.h from
1767         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
1768         all subdirectories know how to make the file.  It can't be
1769         in Makerules because then it gets built at top level and the
1770         dependencies are wrong.)
1771
1772         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
1773         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
1774         stdio_lim.h.
1775         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
1776         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
1777         * sysdeps/posix/Makefile: Removed.
1778         * sysdeps/posix/mk-stdiolim.c: Removed.
1779         * sysdeps/generic/bits/stdio_lim.h: Removed.
1780
1781 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1782
1783         * argp/argp-help.c: Fixup indentation.
1784         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
1785         * resolv/nss_dns/dns-network.c: Likewise.
1786         * resolv/res_send.c: Likewise.
1787         * rt/aio_cancel.c: Likewise.
1788         * rt/aio_misc.c: Likewise.
1789
1790 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1791
1792         * Makefile (install-symbolic-link): Remove the link list file at last.
1793         * Makerules (install-clean-symbolic-link-list): Removed.
1794
1795 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1796
1797         * timezone/tst-timezone.c: Print time in UTC to get consistent
1798         output.
1799
1800 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1801
1802         * elf/rtld.c (_dl_rpath): Removed.
1803         * elf/dl-support.c (_dl_path): Removed.
1804         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
1805         (CFLAGS-dl-support.c): Removed.
1806
1807         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
1808         uses changed.
1809         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
1810         instead of appending it to the main map's rpath info.
1811         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
1812         DT_RPATHs.  This makes it effective again.
1813         (decompose_rpath): Remove second parameter, callers changed.
1814         (fillin_rpath): Allocate enough space in curwd.
1815         (expand_dynamic_string_token): Cope with get_origin returning -1.
1816
1817 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1818
1819         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
1820         passwd.adjunct.
1821
1822         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
1823         invalid password.
1824
1825 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
1826
1827         * locale/programs/locale.c: Update dates.
1828
1829 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
1830
1831         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
1832         size_t is defined.  Some reordering of definitions to make
1833         maintaining this file in parallel with the linux-specific file easier.
1834
1835 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
1836
1837         * io/pwd.c (main): Add call to mtrace.
1838
1839         * malloc/mtrace.pl: Quote @ in string.
1840
1841 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
1842
1843         * posix/wordexp.c (parse_arith): Fix memory leaks.
1844         (exec_comm): Likewise.
1845         (parse_param): Likewise.
1846         (wordexp): Likewise.
1847         (exec_comm): Reduce number of function return points.
1848         (parse_param): Likewise.
1849         (wordexp): Likewise.
1850
1851 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
1852
1853         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
1854         yield three fields, not two.  Test both parameter expansion and
1855         command substitution for correct field-splitting behaviour.
1856
1857         * posix/wordexp.c (w_emptyword): New function.
1858         (parse_param): Use it.
1859         (exec_comm): Likewise, for consistency with the way parse_param
1860         splits fields.
1861         (parse_param): Fix some memory leaks.
1862
1863 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
1864
1865         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
1866         Don't mark asm `volatile'.
1867         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
1868         from the data cache too.  Assume it isn't in the instruction cache yet.
1869         (__elf_machine_fixup_plt): Clear the modified address from the caches.
1870
1871 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
1872
1873         * sysdeps/generic/segfault.c (install_handler): Install signal
1874         handler with SA_ONSTACK instead of setting the stack flags to
1875         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
1876         defined.
1877
1878 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1879
1880         * signal/signal.h: Fix multiple inclusion guard to cover the
1881         entire file.
1882         * wcsmbs/wchar.h: Remove prototype of internal function
1883         __mbsrtowcs.
1884         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
1885         arithmetic on `void *'.
1886
1887 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
1888
1889         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
1890
1891         * posix/wordexp.c (wordexp): Perform word-splitting instead of
1892         field-splitting here.
1893         (wordexp): If out of memory mid-word, free the word (but still
1894         leave pwordexp alone for caller to see).
1895         (parse_param): Allow for zero-length fields (smarter checking of
1896         memory allocation failure).
1897         (w_addword): Convert NULL words to "".
1898         (wordexp): Convert left-over IFS characters to blanks (like bash).
1899
1900 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1901
1902         * configure.in: Use test -f instead of test -e.
1903         Patch by John Tobey <jtobey@banta-im.com>.
1904
1905         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
1906         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
1907         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
1908         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
1909         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
1910         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
1911         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
1912         Patches by John Tobey <jtobey@banta-im.com>.
1913
1914         * time/strftime.c (my_strftime): Delay use of *tp values until
1915         latest possible point to allow partly initialized structures
1916         (e.g., from strptime).
1917
1918         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
1919         and NATS-SEFI.
1920         Define *-routines variables for new modules.
1921         (distribute): Add .c files for new modules.
1922         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
1923         and nats-sefi.h.
1924         Add rules for header generation.
1925         * iconvdata/gconv-modules: Add entries for new modules.
1926         * iconvdata/iso_10367-box.c: New file.
1927         * iconvdata/mac-is.c: New file.
1928         * iconvdata/nats-dano.c: New file.
1929         * iconvdata/nats-sefi.c: New file.
1930
1931 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
1932
1933         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
1934         loader if PIC is not defined.
1935
1936 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1937
1938         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
1939         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
1940         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
1941         and ISO_5428.
1942         Define *-routines variables for new modules.
1943         (distribute): Add .c files for new modules.
1944         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
1945         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
1946         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
1947         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
1948         Add rules for header generation.
1949         * iconvdata/gconv-modules: Add entries for new modules.
1950         * iconvdata/csn_369103.c: New file.
1951         * iconvdata/cwi.c: New file.
1952         * iconvdata/dec-mcs.c: New file.
1953         * iconvdata/ecma-cyrillic.c: New file.
1954         * iconvdata/gost_19768-74.c: New file.
1955         * iconvdata/greek-ccitt.c: New file.
1956         * iconvdata/greek7-old.c: New file.
1957         * iconvdata/greek7.c: New file.
1958         * iconvdata/inis-8.c: New file.
1959         * iconvdata/inis-cyrillic.c: New file.
1960         * iconvdata/inis.c: New file.
1961         * iconvdata/iso6937-2.c: New file.
1962         * iconvdata/iso_2033.c: New file.
1963         * iconvdata/iso_5427-ext.c: New file.
1964         * iconvdata/iso_5427.c: New file.
1965         * iconvdata/iso_5428.c: New file.
1966
1967         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
1968         entries.
1969         Convert U02dd correctly.
1970
1971 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
1972
1973         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
1974         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1975         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
1976         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
1977
1978 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1979
1980         * resolv/res_init.c (res_init): Handle resolv.conf file with only
1981         one nameserver correctly.  Patch by HJ Lu.
1982
1983         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
1984         and ANSI_X3.110.
1985         Define *-routines variables for new modules.
1986         (distribute): Add .c files for new modules.
1987         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
1988         Add rules for hedaer generation.
1989         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
1990         * iconvdata/ansi_x3.110.c: New file.
1991         * iconvdata/asmo_449.c: New file.
1992         * iconvdata/baltic.c: New file.
1993         * iconvdata/iec_p27-1.c: New file.
1994
1995         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
1996         entries.
1997         Convert U02dc correctly.
1998
1999         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
2000         * math/atest-exp2.c: Likewise.
2001         * math/atest-sincos.c: Likewise.
2002
2003         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
2004         is defined.
2005
2006 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2007
2008         * string/strcoll.c: Optimize a few expressions.
2009         * string/strxfrm.c: Likewise.
2010
2011 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2012
2013         * manual/locale.texi: Fix typos.
2014
2015 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
2016
2017         * stdlib/random_r.c (__setstate_r): Allow call with same state
2018         array as currently used (PR libc/774).
2019
2020         * include/limits.h: Include gcc's header even if this file is
2021         found more than once before it (PR libc/778)
2022
2023         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
2024         (sysdep_headers): Remove sys/debugreg.h.
2025         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
2026         (sysdep_headers): Add sys/debugreg.h.
2027         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
2028         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
2029
2030         * stdio-common/tmpnam.c: Move local static variable buf to
2031         toplevel and rename to tmpnam_buffer to ease debugging.
2032         Patch by Joe Keane <jgk@jgk.org>.
2033         Optimize s == NULL case a bit.
2034
2035         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
2036         correction.
2037
2038 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
2039
2040         * resolv/res_init.c (res_init): Initialize _res.nscount and
2041         _res.nsaddr.sin_port differently for the can when no loopback
2042         is available to allow immediate timeout in non-networking environments.
2043         Patch by Cristian Gafton <gafton@redhat.com>.
2044
2045 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2046
2047         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
2048         BAR and not EM DASH.
2049         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
2050         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
2051         Fixes PR libc/717.
2052
2053 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
2054
2055         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
2056         for test.
2057         * timezone/tst-timezone.c (tests): Fix typo in last patch.
2058
2059         * time/tzfile.c (__tzfile_read): Handle case when there are no
2060         transitions.  Set __timezone based on computed offset.
2061         * time/tzset.c (tzset_internal): Set __timezone before returning.
2062
2063         * time/tzset.c (tzset_internal): Optimize handling of local string
2064         copy.
2065
2066 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2067
2068         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
2069         libc/776).
2070
2071 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
2072
2073         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
2074         (csqrt_test): Likewise.
2075         * sysdeps/powerpc/bits/fenv.h: Add parens.
2076
2077 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
2078
2079         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
2080         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
2081         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
2082
2083 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
2084
2085         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
2086         the special `-1' pointer.
2087
2088 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
2089
2090         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
2091         inline.
2092
2093 1998-09-07  Paul Eggert  <eggert@twinsun.com>
2094
2095         * time/mktime.c (__EXTENSIONS__): Define if not defined.
2096         (_REENTRANT): Remove.  It has undesirable consequences in
2097         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
2098         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
2099         is what we want.
2100         * time/strftime.c: Likewise.
2101
2102 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2103
2104         * elf/dl-error.c: Fix spelling.
2105
2106 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2107
2108         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
2109         * stdio-common/_itoa.c: Likewise.
2110         * stdio-common/printf_fp.c: Likewise.
2111         * stdio-common/vfscanf.c: Likewise.
2112         * wcsmbs/wcstok.c: Likewise.
2113         * sysdeps/generic/glob.c: Likewise.
2114         * posix/getopt.c: Likewise.
2115         * sysdeps/posix/getaddrinfo.c: Likewise.
2116         * posix/wordexp.c: Likewise.
2117         * io/ftw.c: Likewise.
2118         * io/fts.c: Likewise.
2119         * misc/getpass.c: Likewise.
2120         * iconv/gconv_conf.c: Likewise.
2121         * argp/argp-fmtstream.c: Likewise.
2122         * argp/argp-help.c: Likewise.
2123         * elf/dl-load.c: Likewise.
2124         * locale/programs/stringtrans.c: Likewise.
2125         * catgets/gencat.c: Likewise.
2126         * posix/getconf.c: Likewise.
2127         * iconv/gconv_conf.c: Likewise.
2128         * iconv/iconv_prog.c: Likewise.
2129
2130         * string/strcoll.c: Optimize a few expressions.
2131         * string/strxfrm.c: Likewise.
2132
2133 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2134
2135         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
2136         level to avoid uninit variable warning.
2137
2138 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2139
2140         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
2141         instead of _dl_default_scope[2] as argument to _dl_init_next.
2142
2143         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
2144         C9x macro.
2145
2146 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
2147
2148         Fix compatibility problems introduced in last change.
2149         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
2150         defined.
2151         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
2152         -DWEAK_GMON_START to CFLAGS-initfini.s.
2153
2154         * elf/dl-object.c (_dl_new_object): Store map address in
2155         _dl_loaded if _dl_loaded is NULL.
2156         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
2157
2158         * sysdeps/generic/setrlimit64.c: Remove stub warning.
2159
2160 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
2161
2162         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
2163         quiet.
2164         * db2/btree/bt_cursor.c: Likewise.
2165         * db2/common/db_region.db_c: Likewise.
2166         * db2/common/db_salloc.db_c: Likewise.
2167         * db2/db/db.c: Likewise.
2168         * db2/db/db_rec.c: Likewise.
2169         * db2/hash/hash.c: Likewise.
2170         * db2/hash/hash_page.c: Likewise.
2171         * db2/hash/hash_rec.c: Likewise.
2172         * db2/log/log_findckp.c: Likewise.
2173         * db2/log/log_get.c: Likewise.
2174         * db2/log/log_put.c: Likewise.
2175         * db2/mp/mp_fget.c: Likewise.
2176         * db2/mp/mp_fput.c: Likewise.
2177         * db2/mp/mp_region.c: Likewise.
2178         * stdlib/strtol.c: Likewise.
2179         * string/strcoll.c: Likewise.
2180         * string/strxfrm.c: Likewise.
2181         * argp/argp-help.c: Likewise.
2182         * argp/argp-parse.c: Likewise.
2183         * resolv/res_debug.c: Likewise.
2184
2185 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
2186
2187         * math/tgmath.h (scalb): Only define for __USE_MISC or
2188         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
2189
2190 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2191
2192         * libio/stdio.h: Fix comment.
2193
2194         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
2195         __USE_ISOC9X.
2196
2197 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2198
2199         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
2200
2201         * elf/dl-open.c: Quiet -Wparentheses warnings.
2202         * iconvdata/johab.c: Likewise.
2203         * iconvdata/uhc.c: Likewise.
2204         * inet/inet_net.c: Likewise.
2205         * io/fts.c: Likewise.
2206         * locale/newlocale.c: Likewise.
2207         * misc/getttyent.c: Likewise.
2208         * misc/mntent_r.c: Likewise.
2209         * misc/ttyslot.c: Likewise.
2210         * nscd/nscd_conf.c: Likewise.
2211         * nss/nsswitch.c: Likewise.
2212         * resolv/gethnamaddr.c: Likewise.
2213         * resolv/nsap_addr.c: Likewise.
2214         * resolv/res_debug.c: Likewise.
2215         * stdio-common/_itoa.c: Likewise.
2216         * stdlib/strtod.c: Likewise.
2217         * string/strverscmp.c: Likewise.
2218         * sunrpc/svc.c: Likewise.
2219         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
2220         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
2221         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
2222         * sysdeps/posix/getaddrinfo.c: Likewise.
2223
2224 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
2225
2226         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
2227         for use of global scope.
2228         * elf/dlvsym.c (dlvsym_doit): Likewise.
2229
2230 1998-09-02  Paul Eggert  <eggert@twinsun.com>
2231
2232         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
2233         copy the redundant bytes at the end of the format as-is; don't
2234         just copy their first byte and then rescan, as that might get
2235         us an encoding error.
2236         Account correctly for the length of multibyte sequences in the
2237         format.
2238
2239 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
2240
2241         * posix/wordexp-test.c: Add tests for different IFS values.
2242         Change unquoted-newline test so that newline is not in IFS.
2243
2244         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
2245         determining IFS characters.  Return WRDE_BADCHAR for unquoted
2246         special characters _except_ if they are separators.
2247
2248 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
2249
2250         * include/tgmath.h: New file.
2251
2252         * libio/stdio.h: Correct reversed #ifs.
2253         Patch by Zack Weinberg.
2254
2255         * manual/creature.texi: Better explain reason for feature select
2256         macros.
2257         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
2258
2259 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2260
2261         * include/alloca.h: Add multiple-inclusion guard.
2262         * include/db.h: Likewise.
2263         * include/db_185.h: Likewise.
2264         * include/dlfcn.h: Likewise.
2265         * include/fcntl.h: Likewise.
2266         * include/grp.h: Likewise.
2267         * include/libintl.h: Likewise.
2268         * include/mntent.h: Likewise.
2269         * include/pwd.h: Likewise.
2270         * include/sched.h: Likewise.
2271         * include/search.h: Likewise.
2272         * include/setjmp.h: Likewise.
2273         * include/shadow.h: Likewise.
2274         * include/signal.h: Likewise.
2275         * include/stdio.h: Likewise.
2276         * include/stdlib.h: Likewise.
2277         * include/string.h: Likewise.
2278         * include/termios.h: Likewise.
2279         * include/time.h: Likewise.
2280         * include/ulimit.h: Likewise.
2281         * include/utmp.h: Likewise.
2282         * include/wchar.h: Likewise.
2283         * include/sys/file.h: Likewise.
2284         * include/sys/gmon.h: Likewise.
2285         * include/sys/ioctl.h: Likewise.
2286         * include/sys/mman.h: Likewise.
2287         * include/sys/resource.h: Likewise.
2288         * include/sys/select.h: Likewise.
2289         * include/sys/socket.h: Likewise.
2290         * include/sys/statfs.h: Likewise.
2291         * include/sys/time.h: Likewise.
2292         * include/sys/times.h: Likewise.
2293         * include/sys/wait.h: Likewise.
2294
2295 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
2296
2297         * version.h (VERSION): Bump to 2.0.96.
2298
2299         Rewrite runtime linker to be truly thread-safe.  There is now no
2300         global variable specifying the scope.  We create all needed
2301         scopes at the time the link maps are created.
2302         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
2303         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
2304         l_symbolic_searchlist, l_scope, and l_local_scope elements in
2305         struct link_map.
2306         * elf/dl-close.c: Rewritten accordingly.
2307         * elf/dl-deps.c: Likewise.
2308         * elf/dl-error.c: Likewise.
2309         * elf/dl-init.c: Likewise.
2310         * elf/dl-load.c: Likewise.
2311         * elf/dl-lookup.c: Likewise.
2312         * elf/dl-object.c: Likewise.
2313         * elf/dl-open.c: Likewise.
2314         * elf/dl-reloc.c: Likewise.
2315         * elf/dl-runtime.c: Likewise.
2316         * elf/dl-support.c: Likewise.
2317         * elf/dl-symbol.c: Likewise.
2318         * elf/dl-version.c: Likewise.
2319         * elf/dlsym.c: Likewise.
2320         * elf/dlvsym.c: Likewise.
2321         * elf/ldsodefs.h: Likewise.
2322         * elf/rtld.c: Likewise.
2323         * iconv/gconv_dl.c: Likewise.
2324         * nss/nsswitch.c: Likewise.
2325         * sysdeps/i386/dl-machine.h: Likewise.
2326         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2327
2328         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
2329         Define RTLD_DEFAULT.
2330
2331 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
2332
2333         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
2334         __getopt_clean_environment with __environ instead of envp.
2335
2336 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
2337
2338         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
2339
2340         * string/argz-extract.c (__argz_extract): Add de-consting cast for
2341         setting results.
2342
2343         * string/argz.h (argz_next): Add de-consting cast for return.
2344         * string/argz-next.c (__argz_next): Likewise.
2345
2346         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
2347         Don't add netinet/udp.h, netinet/ip_icmp.h here.
2348         * sysdeps/gnu/Makefile: Do it here instead.
2349         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
2350         * sysdeps/gnu/Dist: ... to here.
2351
2352         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
2353         sysdeps/unix/sysv/linux/netinet/tcp.h,
2354         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
2355
2356 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
2357
2358         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
2359         * string/argz-next.c, string/argz-extract.c: Fix defns.
2360
2361 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
2362
2363         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
2364
2365         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
2366         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
2367         * sysdeps/generic/sysd-stdio.c: Likewise.
2368
2369 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
2370
2371         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
2372         (_dl_map_object_from_fd): Make NAME argument const.
2373         Remove last parameter in _dl_new_object call.
2374         (print_search_path): Correct construction of composed path name.
2375         (_dl_map_object): Prevent looking at RPATH of the main map twice.
2376         Remove last parameter in _dl_new_object call.
2377         * elf/dl-object.c: Remove last parameter.  Determine whether create
2378         origin entry based on empty realname.  Handle file in root directory
2379         correctly.
2380         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
2381         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
2382         Remove last parameter in _dl_new_object call.
2383         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
2384         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
2385
2386 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
2387
2388         * elf/dl-close.c (_dl_close): Add more comments and correct some.
2389         Free l_searchlist and l_dupsearchlist.
2390
2391         * debug/catchsegv.sh: Add one more pair of quotes.
2392
2393 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
2394
2395         * elf/dl-load.c (add_name_to_object): Change return type to void and
2396         make NAME parameter const.  Allocate room for NAME in same memory
2397         block used for l_libname entry.
2398         (_dl_map_object_from_fd): Don't free NAME on failure.
2399         (map_segment): Pass SONAME to add_name_to_object, not a copy.
2400         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
2401         _dl_map_object_from_fd.
2402         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
2403         memory block used for l_libname entry.
2404         * elf/dl-close.c: Adjust free()ing for this change.
2405
2406 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
2407
2408         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
2409
2410         * malloc/mtrace.c: Add bug report address.  Update email address.
2411         Add more @XXX@ to print correct address size.
2412
2413         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
2414         really initialized.
2415
2416         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
2417         for munmap call instead of examining phdr again.
2418         Free all malloc()ed strings and arrays.
2419
2420 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
2421
2422         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
2423         dl-machine.h.
2424         * sysdeps/powerpc/dl-machine.c: New file.
2425         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
2426         files.  Revise ELF_PREFERRED_ADDRESS to take account of
2427         the new mapping information (fixes bug involving huge bloated
2428         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
2429         * sysdeps/powerpc/dl-start.S: New file.
2430
2431         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
2432         l_map_end.
2433         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
2434         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
2435         others.  Call elf_dynamic_do_##reloc only once (to save even more
2436         space).
2437         * elf/link.h: Add new members l_map_start and l_map_end to keep
2438         track of the memory map.
2439         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
2440         the executable.
2441
2442 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
2443
2444         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
2445         Reported by Andreas Jaeger.
2446
2447         * posix/glob.h: Use __size_t instead of size_t in definitions and
2448         make sure this is defined.
2449
2450 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
2451
2452         * manual/locale.texi: Almost complete rewrite.  Document more functions
2453         and functionality.
2454         * manual/arith.texi: Correct reference.
2455         * manual/string.texi: Pretty printing.
2456
2457         * manual/texinfo.tex: Update from last available version.
2458
2459 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
2460
2461         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
2462         invalid password.
2463         (_nss_nis_getpwuid_r): Likewise.
2464         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
2465
2466         * inet/rcmd.c: Implement netgroup support.
2467         Patch by Dick Streefland <dick_streefland@tasking.com>.
2468
2469 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2470
2471         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
2472         object on the list is removed.  Don't use this code for PIC.
2473         Reported by HJ Lu [PR libc/770].
2474
2475 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
2476
2477         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
2478
2479         * include/stdio.h: Add __vsscanf.
2480
2481         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
2482         __USE_ISOC9X.
2483         Remove __vsscanf declaration.
2484         Always declare fgetpos and fsetpos.
2485
2486         * math/math.h: Define isinf as macro.
2487         * math/bits/mathcalls.h: Change to declare __isinf all the time.
2488         Don't declare scalb for ISO C 9x.
2489
2490         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
2491
2492         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
2493
2494         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
2495         sys/ucontext.h.
2496
2497         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
2498         macros.
2499
2500 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2501
2502         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
2503         Reported by jreising@frequentis.com [PR libc/767].
2504
2505 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2506
2507         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
2508         fl.l_start at beginning of function.
2509         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
2510
2511 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2512
2513         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
2514         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
2515
2516         * nscd/nscd.init: Make it work in RedHat systems.
2517         Patch by Christian Gafton.
2518
2519 1998-08-29  Philip Blundell  <philb@gnu.org>
2520
2521         * catgets/Makefile: Don't try to run test programs when
2522         cross-compiling.
2523
2524 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2525
2526         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
2527         Reported by Zack Weinberg.
2528
2529 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2530
2531         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
2532         * elf/Makefile (distribute): Remove ldd.sh.in.
2533
2534 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2535
2536         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
2537         variable.
2538
2539 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
2540
2541         * sysdeps/i386/register-dump.h: Move to ...
2542         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
2543
2544 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
2545
2546         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
2547         with load address, not map address.
2548         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
2549         parameter and use this value.
2550         * sysdeps/arm/dl-machine.h: Likewise.
2551         * sysdeps/i386/dl-machine.h: Likewise.
2552         * sysdeps/m68k/dl-machine.h: Likewise.
2553         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
2554         parameter.
2555         * sysdeps/powerpc/dl-machine.h: Likewise
2556         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
2557         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
2558
2559 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
2560
2561         * elf/rtld.c (process_envvars): Fix copy&paste error.
2562
2563         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
2564         memalign hook.
2565         (realloc_hook_ini): Don't overwrite memalign hook.
2566         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
2567         Reported by Philippe Troin <phil@fifi.org>.
2568
2569         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
2570         Patch by Philippe Troin <phil@fifi.org>.
2571
2572 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2573
2574         * sysdeps/generic/segfault.c (install_handler): Protect the
2575         non-POSIX signals with #ifdef.
2576         (catch_segfault): Add missing mode parameter for open.
2577         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
2578         other termination signals.
2579
2580 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2581
2582         * debug/Makefile (distribute): Add register-dump.h.
2583
2584 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2585
2586         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
2587
2588 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
2589
2590         * elf/Makefile (distribute): Add dl-origin.h.
2591         * sysdeps/generic/dl-origin.h: New file.
2592         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
2593         * elf/link.h (struct link_map): Add l_origin field.
2594         * elf/dl-load.c (expand_dynamic_string_token): New function.
2595         (decompose_path): Remove WHERE argument, take link map pointer instead.
2596         Call expand_dynamic_string_token instead of local_strdup to make copy
2597         of rpath.
2598         (_dl_init_paths): Call decompose_path with correct argument.
2599         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
2600         not defined.
2601         Check EI_OSABI and EI_ABIVERSION fields in header.
2602         Call _dl_new_object with extra argument.
2603         (_dl_map_object): Call decompose_path with correct argument.
2604         Call expand_dynamic_string_token instead of local_strdup to also
2605         expand DST.
2606         Call _dl_new_object with extra argument.
2607         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
2608         but the main one if new argument is nonzero.
2609         * elf/ldsodefs.h: Adjust for _dl_new_object change.
2610         * elf/dl-support.c: Define _dl_origin_path.
2611         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
2612         (dl_main): Call _dl_new_object with extra argument.
2613
2614         * elf/dl-close (_dl_close): Free l_name and l_origin.
2615
2616         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
2617         modifier in asm, not c.
2618
2619         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
2620         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
2621
2622 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
2623
2624         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
2625         variable so that map can be freed.
2626         Reported by Philippe Troin <phil@fifi.org>.
2627
2628         * elf/dl-open.c (dl_open_worker): Correct test for extending global
2629         scope array.
2630         Patch by Philippe Troin <phil@fifi.org>.
2631
2632 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
2633
2634         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
2635         Don't call writev() with a 100-element vector.
2636         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
2637         return address.
2638
2639         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
2640         In particular, set __libc_stack_end.
2641         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
2642         undefined.  Fix copyright notice.
2643
2644 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2645
2646         * math/Makefile (gmp-objs): New variable.
2647         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
2648         Depend on it.
2649         (tests): Add atest-exp atest-sincos atest-exp2.
2650         (tests-static): Remove atest-exp atest-sincos atest-exp2.
2651
2652 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
2653
2654         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
2655         to toplevel.
2656         (_dl_unload_cache): New function.
2657         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
2658         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
2659         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
2660
2661         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
2662         Correct comment for O_LARGEFILE.
2663         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
2664         Change O_LARGEFILE to correct value.
2665
2666 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
2667
2668         * libio/iogetline.c (_IO_getline_info): Don't read anything for
2669         N == 0.  Patch by HJ Lu.
2670
2671 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
2672
2673         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
2674
2675 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
2676
2677         * argp/argp.h: Use __inline__ not inline.
2678
2679         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
2680         an input register as being clobbered.
2681         * sysdeps/i386/memset.c (memset): Likewise.
2682         * sysdeps/i386/bzero.c (__bzero): Likewise.
2683         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
2684
2685 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2686
2687         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
2688         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
2689
2690 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
2691
2692         * debug/catchsegv.sh: Handle text preceding backtrace better.
2693         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
2694         to be installed for other signals than SIGSEGV.
2695         * sysdeps/generic/register-dump.h: New file.
2696         * sysdeps/i386/register-dump.h: New file.
2697         * sysdeps/powerpc/register-dump.h: New file.
2698
2699         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
2700         sigcontextinfo.h.
2701         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
2702
2703 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
2704
2705         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
2706
2707 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
2708
2709         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
2710         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
2711         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
2712         getresuid, getresgid.
2713
2714 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
2715
2716         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
2717         pointer in userland.
2718
2719 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2720
2721         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
2722         and fix value.
2723
2724 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2725
2726         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
2727         over arguments Bourne shell compatible.  Don't exit unsuccessfully
2728         if nonelf returns successfully.  Avoid duplicating most of the
2729         script.
2730         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
2731         around $file.
2732
2733 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2734
2735         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
2736         sys/reg.h.
2737         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
2738         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
2739
2740 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2741
2742         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
2743         __modify_ldt and modify_ldt.
2744         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
2745
2746         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2747         Use orl $-1 instead of movl $-1 to save two bytes.
2748         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
2749         Likewise.
2750
2751 1998-08-17  H.J. Lu  <hjl@gnu.org>
2752
2753         * libio/Versions (_IO_do_write, _IO_file_attach,
2754         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2755         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2756         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2757         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
2758
2759         * libio/fileops.c (_IO_do_write, _IO_file_attach,
2760         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2761         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2762         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2763         _IO_file_write, _IO_file_xsputn): Change the prefix to
2764         "_IO_new_". Added to GLIBC_2.1.
2765
2766         * libio/libioP.h (_IO_do_write, _IO_file_attach,
2767         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2768         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2769         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2770         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
2771         "_IO_new_".
2772
2773         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
2774         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2775         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2776         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2777         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
2778
2779 1998-08-23  Richard Henderson  <rth@cygnus.com>
2780
2781         * Makeconfig (LDFLAGS): Remove.
2782
2783         * csu/initfini.c: Return to .text before __gmon_start__.
2784
2785         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
2786         (STO_MIPS_*): Rename from STO_*.
2787         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
2788         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
2789
2790         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
2791         (main): e3s is negative on zero.
2792         * math/atest-exp2.c: Likewise.
2793         * math/atest-sincos.c: Likewise.
2794
2795 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2796
2797         * Makerules (install): Add comment about absolute paths.
2798
2799 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2800
2801         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
2802         array to NUL to handle maxlen==1 case correctly.
2803         Patch by HJ Lu.
2804
2805 1998-08-23  Richard Henderson  <rth@cygnus.com>
2806
2807         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
2808         * sysdeps/alpha/elf/crtend.S: Likewise.
2809         * sysdeps/alpha/elf/start.S: Likewise.
2810
2811         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
2812         non-standard pv usage.
2813
2814         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
2815         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2816         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2817         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2818         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2819         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2820         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2821         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2822         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2823         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2824         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2825
2826         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
2827         a finite non-denormal, deferring to the full IEEE version otherwise.
2828
2829         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
2830         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
2831         * sysdeps/alpha/fpu/s_floor.c: New.
2832         * sysdeps/alpha/fpu/s_floorf.c: New.
2833         * sysdeps/alpha/fpu/s_ceil.c: New.
2834         * sysdeps/alpha/fpu/s_ceilf.c: New.
2835
2836 1998-08-22  Philip Blundell  <philb@gnu.org>
2837
2838         * sysdeps/arm/bits/string.h: New file.
2839
2840 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2841
2842         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
2843         document it.
2844
2845         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
2846         test for recent Linux 2.1.100+ headers.
2847
2848 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2849
2850         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
2851
2852 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
2853
2854         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
2855
2856 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2857
2858         * Makefile (elf/ldso_install): Put back.  The problem still persists.
2859         * elf/Makefile (ldso_install): Likewise.
2860
2861 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2862
2863         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
2864         create weak alias.
2865         * include/db.h: Declare __nss_db_open.
2866         * db2/Versions: Export it.
2867
2868         * db2/makedb.c: Convert to use db2 API.
2869         * nss/nss_db/db-XXX.c: Likewise.
2870         * nss/nss_db/db-netgrp.c: Likewise.
2871         * nss/nss_db/db-alias.c: Likewise.
2872         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
2873
2874 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2875
2876         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2877         sys_setresuid, already built automatically (or not).
2878         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
2879         instead of __syscall_setresuid and add back setresuid.
2880         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
2881         __syscall_setresuid.
2882
2883 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2884
2885         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
2886
2887 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2888
2889         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
2890         BASH-ONLY marked region.
2891         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
2892
2893 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2894
2895         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
2896         _IO_SYSSEEK fails.
2897
2898         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
2899
2900         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
2901         element.
2902
2903 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
2904
2905         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
2906         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
2907         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
2908         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
2909         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
2910         those magic comments, and to use /bin/sh for @BASH@.
2911         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
2912         * elf/ldd.sh.in: File removed.
2913
2914 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
2915
2916         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
2917         cast them to unsigned long int.
2918         * pwd/putpwent.c (putpwent): Likewise.
2919         Patch by John Tobey <jtobey@banta-im.com>.
2920
2921 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
2922
2923         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
2924         _IO_pos_BAD.
2925
2926 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2927
2928         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
2929         _IO_SYSSEEK fails.
2930
2931 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
2932
2933         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
2934         Add umount and umount2.
2935         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
2936         * sysdeps/unix/sysv/linux/umount.S: New file.
2937         * sysdeps/unix/sysv/linux/umount2.S: New file.
2938         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
2939         Define MNT_FORCE.
2940
2941         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
2942         Add sys/sendfile.h.
2943         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
2944         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
2945
2946         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
2947
2948         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
2949         sendfile.
2950
2951 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
2952
2953         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
2954         * elf/ldd.bash.in: Likewise.
2955
2956         * elf/sln.c: Avoid warning for no main prototype.
2957
2958         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
2959         O_WRITE.
2960         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2961         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2962
2963         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
2964         F_GETSIG.
2965         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2966         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2967         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2968
2969 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
2970
2971         * sysdeps/arm/fpu/ieee754.h: Move to...
2972         * sysdeps/arm/ieee754.h: ... here.
2973
2974         * sysdeps/arm/__longjmp.S: Put return value in correct register.
2975         Don't set the condition flags unnecessarily.
2976         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
2977         registers correctly.
2978
2979         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
2980         (patch from Scott Bambrough).
2981
2982         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
2983
2984         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
2985         NULL, just call it unconditionally.
2986         (__gmon_start__): Provide stub version as a weak symbol.
2987
2988 1998-07-30  Philip Blundell  <philb@gnu.org>
2989
2990         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
2991         by Scott Bambrough)
2992
2993         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
2994         like `@' in .type directives.
2995
2996         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
2997         * sysdeps/arm/bsd-_setjmp.S: Likewise.
2998
2999         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
3000
3001 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3002
3003         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
3004         (F_GETOWN): Likewise.
3005
3006         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
3007         Linux 2.1.117).
3008
3009 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
3010
3011         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
3012         already defined.
3013
3014 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
3015
3016         * include/features.h: Define __USE_EXTERN_INLINES for recent
3017         enough gcc.
3018         * argp/argp.h: Define extern inline functions only if
3019         __USE_EXTERN_INLINES is defined.
3020         * libio/stdio.h: Likewise.
3021         * math/math.h: Likewise.
3022         * stdlib/stdlib.h: Likewise.
3023         * string/argz.h: Likewise.
3024         * sysdeps/generic/bits/sigset.h: Likewise.
3025         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3026         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
3027         * sysdeps/wordsize-32/inttypes.h: Likewise.
3028         * sysdeps/wordsize-64/inttypes.h: Likewise.
3029         * wcsmbs/wchar.h: Likewise.
3030
3031         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
3032         to allow compilation without optimization.
3033
3034 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3035
3036         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
3037         more entries.
3038         * nis/nss_compat/compat-initgroups.c: Likewise.
3039         * nis/nss_compat/compat-pwd.c: Likewise.
3040         * nis/nss_compat/compat-spwd.c: Likewise.
3041         * nis/nss_nis/nis-alias.c: Likewise.
3042         * nis/nss_nis/nis-ethers.c: Likewise.
3043         * nis/nss_nis/nis-grp.c: Likewise.
3044         * nis/nss_nis/nis-hosts.c: Likewise.
3045         * nis/nss_nis/nis-initgroups.c: Likewise.
3046         * nis/nss_nis/nis-network.c: Likewise.
3047         * nis/nss_nis/nis-proto.c: Likewise.
3048         * nis/nss_nis/nis-pwd.c: Likewise.
3049         * nis/nss_nis/nis-rpc.c: Likewise.
3050         * nis/nss_nis/nis-service.c: Likewise.
3051         * nis/nss_nis/nis-spwd.c: Likewise.
3052
3053         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
3054
3055         * nis/ypclnt.c: Try binding dir only first time, could be to old.
3056
3057         * nis/yp_xdr.c: Remove 1024 byte limit.
3058         * nis/ypupdate_xdr.c: Likewise.
3059
3060         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
3061         wrong data.
3062
3063 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
3064
3065         * Rules (binaries-static, binaries-shared static pattern rules):
3066         Depend on lib%, not just libc%, from $(link-libc{,-static}).
3067
3068         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
3069         this here, overriding Makeconfig generic value so we link against
3070         the RPC libs.
3071
3072 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
3073
3074         * posix/tstgetopt.c (options): Add NULL entry at end
3075         Patch by Adrian Miranda <ade@psg.com>.
3076
3077 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
3078
3079         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
3080         to 9.
3081
3082 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
3083
3084         * elf/elf.h: Add PPC Diab relocations.
3085
3086         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
3087
3088 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
3089
3090         * manual/texinfo.tex: Update.
3091
3092 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
3093
3094         * sysdeps/powerpc/backtrace.c: New file.
3095
3096 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
3097
3098         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
3099         sigjmp_save.
3100         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
3101
3102 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3103
3104         * Makefile (install-symbolic-link): Fix spelling.
3105
3106 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3107
3108         * elf/elf.h (SHT_HIOS): Fix value.
3109
3110 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3111
3112         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
3113         part of the expansion, this is undefined by the standard.
3114
3115 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
3116
3117         * posix/getconf.c: Add support for systems with incomplete confname.h.
3118
3119         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
3120
3121         * sysdeps/posix/wait3.c: Make it work.
3122
3123 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3124
3125         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
3126         (elf/ldso_install): Remove.
3127
3128         * elf/Makefile (distribute): Add sln.c.
3129         (others): Add sln.
3130         (others-static): Add sln.
3131         (install-rootsbin): Add sln.
3132         (others-static): Add sln.
3133         (ldso_install): Remove.
3134
3135 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3136
3137         * Makerules (install-clean-symbolic-link-list): Make phony.
3138         * Makefile (install-symbolic-link): Make phony.  Depend on
3139         subdir_install for parallel makes.
3140
3141
3142 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
3143
3144         * elf/Makefile (distribute): Add sln.c
3145
3146 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
3147
3148         * elf/sln.c: New file.
3149
3150         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
3151         (install-clean-symbolic-link-list): New target.
3152         (install): Depend on install-clean-symbolic-link-list.
3153         (make-shlib-link): Changed for $(symbolic-link-list).
3154
3155         * Makefile (install-symbolic-link): New target.
3156         (install): Depend on install-symbolic-link.
3157
3158 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
3159
3160         * include/unistd.h: Protect against multiple inclusion.
3161
3162         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
3163         is defined, not is glob is defined.
3164         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
3165
3166 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
3167
3168         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
3169         xdr_string for ut_line, ut_name and ut_host.
3170
3171 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3172
3173         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
3174         /var/mail in accordance with FHS 2.0.
3175         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
3176
3177 1998-08-12  Richard Henderson  <rth@cygnus.com>
3178
3179         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
3180         Update aliases for cancelation.
3181
3182         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
3183         playing with symbol versions.
3184
3185 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
3186
3187         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
3188         multiple inclusion protection.
3189         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
3190         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
3191         define all these to 1.
3192         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
3193
3194 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
3195
3196         * sysdeps/mach/usleep.c: Include <unistd.h>.
3197         (usleep): Return void.
3198
3199 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
3200
3201         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
3202         decl to inhibit warning in if_freenameindex defn.
3203
3204         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
3205
3206         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
3207
3208         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
3209         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
3210         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
3211         * sysdeps/mach/usleep.c: Likewise.
3212
3213         * sysdeps/mach/hurd/bind.c (bind): Add a const.
3214
3215         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
3216         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
3217         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
3218         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
3219         * sysdeps/mach/usleep.c (usleep): Likewise.
3220         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
3221         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
3222         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3223         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
3224
3225 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
3226
3227         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
3228         (glob64): Fix typo.
3229
3230         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
3231         %p arg to fprintf, since `void *' is the right type already.
3232
3233 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
3234
3235         * sysdeps/mach/hurd/getcwd.c
3236         (_hurd_canonicalize_directory_name_internal): Do not loop forever
3237         for unknown root directories.
3238         (__getcwd): Return NULL when the current root directory could not
3239         be reached.
3240
3241 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
3242
3243         * string/strsignal.c (strsignal): Count real-time signals from zero.
3244
3245
3246 See ChangeLog.8 for earlier changes.