]> sourceware.org Git - glibc.git/blame - ChangeLog
Tue Aug 29 12:35:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
[glibc.git] / ChangeLog
CommitLineData
18926cf4
RM
1Tue Aug 29 12:35:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2
3 * time/australasia: Updated data from ADO.
4
5Mon Aug 28 17:47:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6
7 * dirent/dirent.h: Don't include <dirstream.h>.
8 Instead, define DIR as typedef for (undefined) `struct __dirstream'.
9
7752137a
RM
10Fri Aug 25 12:12:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11
9e865ade
RM
12 * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
13 instead of `DIR'.
14 * sysdeps/unix/bsd/dirstream.h: Likewise.
15 * sysdeps/stub/dirstream.h: Likewise.
16 * sysdeps/unix/dirstream.h: Likewise.
17 * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
18 * sysdeps/mach/hurd/seekdir.c: Likewise.
19 * sysdeps/mach/hurd/opendir.c: Likewise.
20 * sysdeps/mach/hurd/closedir.c: Likewise.
21 * sysdeps/mach/hurd/readdir.c: Likewise.
22 * sysdeps/unix/telldir.c: Likewise.
23 * sysdeps/unix/seekdir.c: Likewise.
24 * sysdeps/unix/rewinddir.c: Likewise.
25 * sysdeps/unix/readdir.c: Likewise.
26 * sysdeps/unix/opendir.c: Likewise.
27 * sysdeps/unix/closedir.c: Likewise.
28 * sysdeps/unix/bsd/telldir.c: Likewise.
29 * sysdeps/unix/bsd/readdir.c: Likewise.
30 * dirent/Makefile (headers): Remove dirstream.h.
31 (distribute): Put it here instead.
32
7752137a
RM
33 * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
34
35 * stdio/vfscanf.c (number): Allow field width to inhibit first
36 digit after base detection.
37
38 * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
39 specified by the precision.
40
41 * grp/grpread.c (__grpscan): New function.
42 * grp/grp.h (__grpscan): Declare it.
43 * grp/getgrgid.c: Use __grpscan.
44 * grp/getgrnam.c: Likewise.
45 * pwd/pwdread.c (__pwdscan): New function.
46 * pwd/pwd.h (__pwdscan): Declare it.
47 * pwd/getpwnam.c: Use __pwdscan.
48 * pwd/getpwuid.c: Likewise.
49
50Thu Aug 24 16:29:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
51
52 * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
53 MAP_FILE.
54
55 * hurd/thread-cancel.c: Return EINTR when called on self.
56 * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
57 __data_start.
58
3cf595e5
RM
59Tue Aug 22 16:49:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
60
61 * inet/netdb.h: Moved to resolv.
62 * inet/Makefile (headers): Remove netdb.h.
63 * resolv/Makefile (headers): Add netdb.h.
64 * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
65 resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
66
67 * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
68 resuming the thread.
69 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
70
71 * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
72
73Mon Aug 21 16:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
74
75 * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
76 relocs, and do nothing. Why the linker generates them we may
77 never know.
78
3fe9de0d
RM
79Thu Aug 17 16:18:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
80
a4bb2589
RM
81 * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
82 `subdirs' variable.
83
3cf595e5 84 * sysdeps/mach/hurd/i386/intr-msg.h: New file.
3fe9de0d
RM
85 * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
86 "intr-msg.h" for special syscall code, instead of i386-specific asm.
87 * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
88 machine-dependent "intr-msg.h" before mutating thread state to
89 skip RPC.
90
91 * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
92 _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
93 %ecx.
94
95 * Makeconfig (link-libc): New variable; use shared library if
96 available.
97 (+link): Use it.
98
99 * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
100 Instead, declare with `symbol_set_declare'.
101 (fork): Use symbol_set_* macros for _hurd_fork_locks.
102 Use SS->thread instead of __mach_thread_self (). Suspend all
103 other threads during task_create and port copying.
104
191abc51
RM
105Wed Aug 16 17:04:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
106
107 * hurd/intr-msg.c: Fixed calculation of syscall %esp.
108
109Tue Aug 15 12:26:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
110
111 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
112
113 * hurd/Makefile (sig): Add intr-msg.
114
54da5be3
RM
115Mon Aug 14 16:51:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
116
117 * hurd/thread-cancel.c: New file.
118 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
119 rpc_wait case, frob mach_msg args to set timeout on receive.
120 (_hurdsig_rcv_interrupted_p): Function removed.
121 * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
122 * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
123 * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
124 * hurd/intr-msg.c: New file.
125 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
126 (_hurdsig_rcv_interrupted_p): Declaration removed.
127 (HURD_EINTR_RPC): Macro removed.
128 (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
129 these.
130 * hurd/intr-rpc.h: New file.
131 * hurd/intr-rpc.defs: Just import intr-rpc.h.
132 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
133 (interrupted_reply_port_location): Take new flag arg; only catch
134 faults if it's set.
135 (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
136 No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
137 &_hurd_intr_rpc_msg_in_trap. If before it, mutate state to simulate
138 MACH_SEND_INTERRUPTED return; on it, interrupt the operation. All
139 callers changed.
140 * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
141 * hurd/Makefile (distribute): Remove intr-rpc.awk.
142 (sig): Add thread-cancel.
143 (transform-user-stub, transform-user-stub-output): Variables removed.
144 * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
145 `__hurd_intr_rpc_*' to `__*'.
146 (_hurd_intr_rpc_mach_msg): New function.
147 (_hurd_thread_sigstate): Function removed.
148 * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
149 instead of __mach_msg inside HURD_EINTR_RPC macro.
150
151 * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
152 to take ptrdiff_t arg.
153
154 * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
155
156 * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
157
158 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
159 weak_alias): Use `extern' storage class.
160
76894e2e
RM
161Wed Aug 9 14:25:35 1995 Miles Bader <miles@geech.gnu.ai.mit.edu>
162
163 * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
164 port-count parameters to __auth_makeauth.
165 * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
166
167Tue Aug 8 12:22:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
168
169 * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
170
171 * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
172
173Tue Aug 8 12:06:04 1995 Michael I. Bushnell, p/BSG <mib@duality.gnu.ai.mit.edu>
174
175 * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
176 IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
177 layer socket options.
178 (IPPROTO_GGP): Delete obsolote protocol.
179 (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
180 (struct ip_mreq): New type.
181
99a9e88e
RM
182Mon Aug 7 14:04:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
183
b25c5d66
RM
184 * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
185
186 * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
187 (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
188
99a9e88e
RM
189 * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
190 when __stdio_open fails with a code other than ENFILE or EMFILE.
191
5e98d83c 192Fri Aug 4 16:01:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
507fcb75 193
5e98d83c
RM
194 * Makefile (headers): Added gnu-versions.h.
195
196Thu Aug 3 14:41:11 1995 Michael I. Bushnell <mib@duality.gnu.ai.mit.edu>
197
198 * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
199 equality, not assignment, to test bitfields.
200
201Sat Jul 29 10:41:06 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
202
203 * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
204 resolve AF_LOCAL addresses.
205
206 * sysdeps/mach/hurd/accept.c (accept): If the protocol family
207 can't tell us what an address means, just return a zero-length
208 buffer instead.
209 * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
210
211Fri Jul 28 15:29:11 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
212
213 * sysdeps/mach/hurd/bind.c (bind): Don't use
214 file_invoke_translator, as it doesn't work. Instead just lookup
215 the translated node again, and hope we're not hit by any race
216 conditions.
507fcb75 217
958f803f
RM
218Wed Jul 26 02:00:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
219
b8dc6a10
RM
220 * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
221 [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
222 [start-installed-name-rule]: If this is defined, elide rule for
223 $(objpfx)$(start-installed-name).
99a9e88e
RM
224 * csu/initfini.c (SECTION): New macro, different definitions for
225 #ifdef HAVE_ELF and not.
226 (_init, _fini): Use that macro.
b8dc6a10
RM
227 * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
228 (start-installed-rule, start-installed-name-rule): New variables;
229 specify crt1.o, created by our own rule.
230 ($(objpfx)crt1.o): New rule.
231 * configure.in: Require autoconf 2.4.2 or later. Change all
232 AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
233 prettify some messages.
234 [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
235 sections.
236 * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
237 this case rather than #ifdef HAVE_ELF.
238 * config.h.in (HAVE_INITFINI): New macro.
99a9e88e 239 * config.make.in (have-initfini): New variable, set by configure.
b8dc6a10 240
4e1bac76
RM
241 * stdio/vfscanf.c (conv_error): Simplify expression to avoid
242 "value computed is not used" warning.
243
244 * Makeconfig (+gccwarn): Removed -Wconversion.
245
246 * csu/initfini.c (GLOBAL): Macro removed.
247 (_init, _fini): Always define globally.
248 * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
249
3d61b63c
RM
250 * asia, backward, europe, leapseconds, southamerica: New data from
251 ADO's 95e.
252
253 * inet/Makefile (routines): Removed inet_addr.
254 * inet/inet_addr.c: Moved to resolv/ subdirectory.
255 * resolv/Makefile (routines): Added inet_addr.
256 * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
257 * resolv/gethnamaddr.c: Likewise.
258 * resolv/getnetbyaddr.c: Likewise.
259 * resolv/getnetbyname.c: Likewise.
260 * resolv/getnetent.c: Likewise.
261 * resolv/getnetnamadr.c: Likewise.
262 * resolv/herror.c: Likewise.
263 * resolv/nsap_addr.c: Likewise.
264 * resolv/res_comp.c: Likewise.
265 * resolv/res_debug.c: Likewise.
266 * resolv/res_init.c: Likewise.
267 * resolv/res_mkquery.c: Likewise.
268 * resolv/res_query.c: Likewise.
269 * resolv/res_send.c: Likewise.
270 * resolv/resolv.h: Likewise.
271 * resolv/sethostent.c: Likewise.
272 * resolv/arpa/nameser.h: Likewise.
273 * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
274 [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
275 its declarations (and doing so only #ifdef sun!).
99a9e88e 276 * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
3d61b63c
RM
277
278 * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
279 [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
280
958f803f
RM
281 * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
282 if possible.
283
284 * mach/shortcut.awk: Emit decls for RPC.
285
286 * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
287 weak_alias, strong_alias): Define using GCC __attribute__ syntax.
288
289 * Makerules ($(installed-libcs)): Depend on `lib' (only).
290
874f1b9b
RM
291Tue Jul 25 09:14:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
292
ff48a63c
RM
293 * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
294
4356cfd7
RM
295 * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
296
297 * sysdeps/unix/sysv/ftime.S: New file.
298
299 * locale/locfile-parse.c (categories_write): Cast "" to char *.
300
301 * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
302
303 * time/strftime.c: Use year modulo 100 for %y.
304
305 * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
306
307 * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
308 of one, to work around bug in sunos4.1.2 sed.
309
874f1b9b
RM
310 * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
311 memchr instead of strlen to limit search for NUL by precision.
312
51813e80
RM
313Mon Jul 24 03:13:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
314
315 * sysdeps/posix/pathconf.c: New file.
316
d7e16e9e
RM
317Sat Jul 22 20:53:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
318
319 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
320 before @PLT.
321 * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
322 * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
323 * sysdeps/i386/bsd-setjmp.S: Likewise.
324
9c9022dd
TBB
325Sat Jul 22 19:58:54 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
326
327 * inet/Makefile (routines): Added `ruserpass'.
328 * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
329 client. Modified to remove the fourth arg AACCT. Do nothing for
330 the `account' and `macdef' keywords. Other incidental changes
331 because we are not in the FTP source tree.
332
439d1d45
RM
333Sat Jul 22 01:56:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
334
9c9022dd
TBB
335 * sysdeps/stub/init-posix.c: Removed stub warning.
336
587dbc6f
RM
337 * Makefile (autoconf-it): Make it executable and unwritable.
338
339 * configure.in (sysnames): Under --enable-debug-configure, spew
340 potential sysnames.
341
439d1d45
RM
342 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
343 #ifdef PIC.
344 (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
345 * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
346 jump insn.
347
348 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
349 * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
350 * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
351 <sys/socketcall.h>. Save %ebx in call-clobbered %edx instead of
352 stack. Use JUMPTARGET(syscall_error) in jump insn.
353
354 * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
355
356 * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
357 ASM_TYPE_DIRECTIVE.
358 (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
359
360 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
361 Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
362 * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
363
439d1d45 364 * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
9c9022dd 365 instead of unix/sysv.
439d1d45
RM
366 * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
367 socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
368 to new directory sysdeps/unix/sysv/sysv4/linux.
369 * sysdeps/unix/sysv/linux: Directory removed.
370 * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
371 to new directory sysdeps/unix/sysv/sysv4/linux/i386.
372 * sysdeps/unix/sysv/linux/i386: Directory removed.
373
9c9022dd
TBB
374 Fixes to help Linux, inspired by drepper's work:
375 * sysdeps/posix/utimes.c: New file.
376 * sysdeps/generic/getdomain.c: New file.
377 * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
378 * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
379 externals _dl_argc, _dl_argc, and _environ.
380
584de3b9
TBB
381Fri Jul 21 12:57:29 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
382
383 * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
384 EOPNOTSUPP as indications that the server has died.
385 * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
386 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
387
ac00263e
JM
388Mon Jul 17 08:45:40 1995 Jim Meyering (meyering@comco.com)
389
390 * strtol.c: Portability changes from Uli Drepper.
391 [!STDC_HEADERS && !defined(NULL)]: Define NULL.
392
d819080c
RM
393Mon Jul 10 05:39:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
394
395 * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
396 DATA for the entry SP; DATA[-1] is always the return address
397 location. In both cthreads and non-cthreads cases, use asm to
398 force parameters into %eax and %ecx before return, and mutate
399 DATA[-1] to return to specific asm code to set up the user from
400 %eax and %ecx.
401 [PIC] (_init): Caller changed.
402 (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
403 with SP unwound to argument data ptr.
404
405Thu Jul 6 14:28:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
406
407 * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
408 when 0x08000000 and up are not mapped.
409
410 * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
411 before touching it.
412 (lib%.so): Use -Wl to get -soname to ld.
413
414 * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
415
416 * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
417
487253ea
RM
418Tue Jun 20 02:18:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
419
420 * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
421 library's name including $(libprefix) and major version number.
422
423 * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
424 in place of xcalloc.
425
426 * Makeconfig (prefix, exec_prefix, libprefix): Instead of
427 `ifndef', use the $(origin) function to only set these if they are
428 undefined, and not if they are defined to empty.
429
430 * gnu-versions.h: New file.
431 * features.h (__GNU_LIBRARY__): Increase value to 5.
432
d6e2f671
RM
433Wed Jun 14 03:45:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
434
435 * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
436 expression, to avoid gcc's "value computed is not used" warning.
437
438 * libc-symbols.h (_elf_set_element): Give the set-element variable
439 an `unused' attribute.
440
441 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
442 __attribute__ ((__const__)).
443 * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
444
445 * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
446 LINK->resource.next->resource.prevp when appropriate, not
447 LINK->resource.next->thread.prevp!!!
448
882087b9
RM
449Tue Jun 13 15:45:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
450
df2a0c93
RM
451 * configure.in (libc_cv_asm_set_directive): Make sure that the
452 `.set' directive really worked by linking against a reference to
453 the alias.
454
882087b9
RM
455 * sysdeps/stub/init-first.c: Don't include <hurd.h>.
456 [PIC] (soinit): Renamed to (global) _init.
457
1a2df358
RM
458Mon Jun 12 13:15:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
459
882087b9
RM
460 * malloc/Makefile (gmalloc-routines): Remove valloc.
461 (dist-routines): Add it here.
462
463 * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
464 emacs_loser_valloc to inhibit valloc declaration below.
465
1a2df358
RM
466 * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
467 installation rules.
468
469 * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
470 it uses the `.type' directive, which is necessary for shared
471 libraries to work properly.
472
5bf62f2d
RM
473Thu Jun 8 02:50:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
474
f2b0f935
RM
475 * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
476 from zero fill.
477
478 * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
479 if nonzero, don't let *REF satisfy the reference itself.
480 * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
481 * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
482 _dl_lookup_symbol.
483 * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
484 R->r_offset to RESOLVE callback.
485 * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
486 satisfy the reference itself if its value equals the reloc's
487 offset.
488
489 * elf/rtld.c (dl_main): Write a newline in fatal msg.
490
491 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
492
5bf62f2d
RM
493 * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
494
495 * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
496 and user entry point addresses.
497
498 * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
499 (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
500
501 * Makerules (install-lib.so): Don't include libc.so.
502 [$(build-shared)=yes] (install): Depend on the installed libc.so file.
503 [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
504 install, depend on the installed $(install-lib.so) files.
505 [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
506
507 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
508 allocate high addresses to avoid random mappings appearing there.
509 (mmap): Comment out mask; always pass zero.
510
511Tue Jun 6 13:34:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
512
513 * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
514 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
515
516 * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
517 when successful.
518
519 * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
520 (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
521 variables, using the `threadvars' buffer.
522
523 * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
524 * sysdeps/i386/dl-runtime.c: Likewise.
525
526 * elf/rtld.c (dl_main): Add missing NULL terminating argument in
527 _dl_sysdep_fatal call.
528 (__assert_fail): Likewise.
529
530 * locale/Makefile (localedef-modules): Renamed ctype to
531 locale-ctype so as not to conflict with the object file for
532 ctype/ctype.c in the build directory.
533
75598ca6
RM
534Mon Jun 5 04:02:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
535
536 * elf/elf.h (ELFMAG): Use \177 instead of \x7f. It seems GCC
537 insists on seeing the following E as part of hex 7FE, and
538 complaining that is wider than a byte.
539
ded29119
RM
540Sun Jun 4 22:14:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
541
542 * hurd/Makefile (sig): Added thread-self.
543 * hurd/hurd.h: Declare hurd_thread_self.
544 * hurd/thread-self.c: New file.
545
546Thu Jun 1 12:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
547
548 * elf/rtld.c: Initialize RTLD_MAP.l_type.
549 * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
550 the dynamic linker itself.
5bf62f2d
RM
551 * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
552 lt_interpreter, first undo relocation done during bootstrapping.
ded29119 553
a1a9d215
RM
554Tue May 30 15:52:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
555
556 * mach/Makefile (server-interfaces): Removed notify and
557 device_reply. For shlibs with eager binding, libmachuser.so must
558 not refer to any functions not defined in libc.
559
6f6ce652
JM
560Sat May 27 16:23:22 1995 Jim Meyering (meyering@comco.com)
561
562 * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
563 to avoid error from Irix-4.0.5's C compiler. From Kaveh Ghazi.
564
7cc645ed
RM
565Fri May 26 13:00:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
566
567 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
568 pending signals if the thread is in a critical section. It will
569 send us a msg when it finishes.
570
571 * sysdeps/mach/hurd/pathconf.c: New file.
572 * sysdeps/mach/hurd/fpathconf.c: New file.
573
574 * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
575 SIGCHLD when the SA_NOCLDSTOP bit actually changes.
576
a692d003
RM
577Sun May 21 05:05:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
578
579 * elf/Makefile (ld.so): Use -nostartfiles in addition to
580 -nostdlib.
581
3b5a8107
JM
582Sun May 21 02:01:29 1995 Jim Meyering (meyering@comco.com)
583
584 * sysdeps/generic/memchr.c: Don't include <string.h> at all.
585 HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
586 memchr unless one manually arranges for them to define __STDC__.
587
a2fe9c76
RM
588Fri May 19 17:16:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
589
590 * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
591 args on stack from kernel.
592
593 * posix/Makefile, sysdeps/alpha/Makefile,
594 * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
595 * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
596 in the absence of CVS dirs.
597
598 * hurd/hurdstartup.c: Don't call __mach_init. Grok args from the
599 kernel on the stack properly.
600
601 * set-init.c: Never call _init/_fini; just run __libc_subinit.
602
603 * Makerules (LDFLAGS-c.so): Add -nostartfiles.
604 * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
605
606 * configure.in: Move defaulting of --with-elf and --with-gnu-*
607 based on host os outside the AC_CACHE_VAL for the sysdirs
608 calculation.
609
610 * Makeconfig (localedir, nlsdir): New variables.
611
612 * values.h: New file.
613 * Makefile (headers): Add values.h.
614
615 * locale/Makefile (distribute): Add error.h.
616 * locale/localedef.c: Include "error.h".
617 (main): Use error_message_count instead of warning_cntr.
618
2b83a2a4
RM
619Wed May 17 16:50:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
620
621 Merged 1003.2 locale and localedef programs by Ulrich Drepper.
622 * locale/charmap.c: New file.
623 * locale/collate.c: New file.
624 * locale/config.h: New file.
625 * locale/ctype.c: New file.
626 * locale/ctypedump.c: New file.
627 * locale/hash.c: New file.
628 * locale/hash.h: New file.
629 * locale/iso-4217.def: New file.
630 * locale/keyword.gperf: New file.
631 * locale/keyword.h: New file.
632 * locale/libintl.h: New file.
633 * locale/locale.c: New file.
634 * locale/localedef.c: New file.
635 * locale/localedef.h: New file.
636 * locale/locfile-lex.c: New file.
637 * locale/locfile-parse.c: New file.
638 * locale/messages.c: New file.
639 * locale/monetary.c: New file.
640 * locale/numeric.c: New file.
641 * locale/token.h: New file.
642
643 * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
644 * posix/Makefile (headers): Add regex.h.
645 (routines): Add regex.
646 (gpl2lgpl): Add regex.c and regex.h.
647
648Tue May 16 17:35:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
649
650 * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
651 instead of hard-coding "/share/locale".
652
74aa5ce5
RM
653Sat May 13 02:16:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
654
655 * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
656
657Fri May 12 15:31:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
658
659 * elf/elf.h (ELFMAG, SELFMAG): New macros.
660
661Fri May 12 11:24:53 1995 Michael I Bushnell <mib@duality.gnu.ai.mit.edu>
662
663 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
664 the case where it starts out less than _hurd_dtablesize.
665
666Thu May 11 20:51:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
667
668 * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
669 make sure the new size exceeds FIRST_FD.
670
99b306dc
RM
671Wed May 10 21:00:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
672
673 * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
674
1d26b22c
RM
675Tue May 9 01:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
676
99b306dc
RM
677 * Makerules (install-lib.so): Add %.so for each %_pic.a.
678
1d26b22c
RM
679 * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
680 the first thing in .data.
681
682 * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
683
684 * hurd/hurdstartup.h: New file.
685
686 * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
687 are the same. Use `jz' instead of `jeq'.
688
689 * Makeconfig (config.make): Depend on config.status, and run it to
690 update.
691 (config.status): New target; depend on configure.
692 If target (config.status) exists, run it with --recheck to update;
693 if not, give error msg saying to run confiugre by hand.
694 * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
695 (sysd-Makefile-force): Set this variable to FORCE in this case, to
696 force a rebuild of sysd-Makefile.
697 (sysd-Makefile): Depend on $(sysd-Makefile-force).
698 Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
699 [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
700 variable to FORCE in this case, to force a rebuild of sysd-rules.
701 (sysd-rules): Depend on $(sysd-rules-force).
702 Write into the file sysd-rules-sysdirs:=$(sysdirs).
703
704 * Makerules (LDFLAGS-c.so): Change ld option -interp to
705 -dynamic-linker.
706
707 * Makerules (do-install-program): New canned sequence.
708 (install-bin, install-sbin): Use it.
709 (install for lib*.so): Use it instead of $(do-install).
710 Fix .so installation rules to handle lib*.so and *.so, deal with
711 $(libprefix) right, and install *.so as *.so$($(*.so)-version);
712 i.e. "libc.so-version = .1".
713
714Mon May 8 05:10:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
715
716 * elf/do-rel.h: New file, split out of dynamic-link.h.
717 * elf/Makefile (distribute): Add do-rel.h.
718
421f82e5
RM
719Sat May 6 11:06:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
720
721 * Makeconfig (+gccwarn): Add -Winline.
722
723 * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
724 set, avoid abort_rpcs, and use reply and intr ports saved in
725 SS->context.
726 * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
727 from SS->context. Don't clear SS->context.
728 * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
729 setting SS->context. If msg_sig_post returns, re-lock and clear
730 SS->context.
731
732Fri May 5 10:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
733
734 * mach/Makefile (errsystems.c): Comment out generation rule.
735
736 * sysdeps/mach/_strerror.c: Consider a system unknown if its
737 bad_sub member is null.
738
739 * mach/mig-alloc.c: Add weak alias to non-__ name.
740
e4448b6f
RM
741Wed May 3 11:56:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
742
743 * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
744
08162fa8
RM
745Tue May 2 01:52:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
746
e4448b6f
RM
747 * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
748 function. Duh.
749
750 * hurd/Makefile (distribute): Added hurdstartup.h.
751 * hurd/hurd.h: Remove _hurd_startup decl.
752
753 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
754 ((__unused__)) instead of gratuitous self reference.
755
756 * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
757 table if FD2 doesn't fit.
758
759 * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
760 not the current table size.
761
d66e34cd
RM
762 * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
763
08162fa8
RM
764 Implemented runtime dynamic linker to support ELF shared libraries.
765 * elf/Makefile: Added rules to make ld.so and libdl.
766 * elf/dl-error.c: New file.
767 * elf/dl-fini.c: New file.
768 * elf/dl-init.c: New file.
769 * elf/dl-load.c: New file.
770 * elf/dl-lookup.c: New file.
771 * elf/dl-object.c: New file.
772 * elf/dl-reloc.c: New file.
773 * elf/dlclose.c: New file.
774 * elf/dlerror.c: New file.
775 * elf/dlopen.c: New file.
776 * elf/dlsym.c: New file.
777 * elf/dynamic-link.h: New file.
778 * elf/link.h: New file.
779 * elf/rtld.c: New file.
d66e34cd
RM
780 * sysdeps/i386/dl-machine.h: New file.
781 * sysdeps/stub/dl-machine.h: New file.
782 * sysdeps/i386/dl-runtime.c: New file.
783 * sysdeps/stub/dl-runtime.c: New file.
784 * sysdeps/i386/elf/start.S: New file.
785 * sysdeps/generic/dl-sysdep.c: New file.
786 * sysdeps/mach/hurd/dl-sysdep.c: New file.
99b306dc 787 * sysdeps/mach/hurd/i386/init-first.c: New file.
e4448b6f
RM
788 * sysdeps/i386/init-first.c: New file.
789 * sysdeps/stub/init-first.c: New file.
790
08162fa8
RM
791Mon May 1 18:48:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
792
793 * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
794 libc.so runnable.
795 * version.c (__libc_print_version): Add "et al" and missing NL to
796 author credit.
797
b7eb8445
RM
798Sat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
799
800 * posix/glob.c (S_ISDIR): Define if undefined.
801
10ceac89
RM
802Thu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
803
804 * configure.in: Unless --without-fp, prepend */fpu before each
805 machine dir in $mach; don't prepend FPU dirs at end. If
806 --with-elf, prepend MACHINE/elf directories at end; don't insert
807 them into $mach.
808
809 * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
810
811 * sysdeps/stub/clock.c: Added stub warning.
812 * sysdeps/stub/dirfd.c: Likewise.
813 * sysdeps/stub/exc2signal.c: Likewise.
814 * sysdeps/stub/fdopen.c: Likewise.
815 * sysdeps/stub/flock.c: Likewise.
816 * sysdeps/stub/fpathconf.c: Likewise.
817 * sysdeps/stub/ftruncate.c: Likewise.
818 * sysdeps/stub/gtty.c: Likewise.
819 * sysdeps/stub/isatty.c: Likewise.
820 * sysdeps/stub/killpg.c: Likewise.
821 * sysdeps/stub/madvise.c: Likewise.
822 * sysdeps/stub/mkstemp.c: Likewise.
823 * sysdeps/stub/mktemp.c: Likewise.
824 * sysdeps/stub/mprotect.c: Likewise.
825 * sysdeps/stub/msync.c: Likewise.
826 * sysdeps/stub/pathconf.c: Likewise.
827 * sysdeps/stub/poll.c: Likewise.
828 * sysdeps/stub/raise.c: Likewise.
829 * sysdeps/stub/readv.c: Likewise.
830 * sysdeps/stub/setenv.c: Likewise.
831 * sysdeps/stub/setlogin.c: Likewise.
832 * sysdeps/stub/sigaltstack.c: Likewise.
833 * sysdeps/stub/sigintr.c: Likewise.
834 * sysdeps/stub/sigstack.c: Likewise.
835 * sysdeps/stub/sleep.c: Likewise.
836 * sysdeps/stub/sstk.c: Likewise.
837 * sysdeps/stub/stime.c: Likewise.
838 * sysdeps/stub/stty.c: Likewise.
839 * sysdeps/stub/syscall.c: Likewise.
840 * sysdeps/stub/sysconf.c: Likewise.
841 * sysdeps/stub/truncate.c: Likewise.
842 * sysdeps/stub/ualarm.c: Likewise.
843 * sysdeps/stub/usleep.c: Likewise.
844 * sysdeps/stub/utimes.c: Likewise.
845 * sysdeps/stub/writev.c: Likewise.
846
847 * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
848
849Wed Apr 26 16:06:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
850
851 * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
852
853Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
854
855 * posix/glob.c (glob): If GLOB_MARK set, stat names to find
856 directories and append slashes to them in final pass before
857 sorting.
858 (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
859 slash; never append it here.
860
11872325
RM
861Sat Apr 22 14:48:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
862
863 * mach/Machrules [interface-library]
864 (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
865 -nostdlib.
866
867 * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed. Lock
868 _hurd_siglock only around initial task creation in parent. Use
869 _hurd_critical_section_unlock at end. Handle dead name rights
870 properly, and deal with a send right dying while we try to copy
871 it. For the time being, use assert_perror for kernel and proc RPC
872 failures.
873
874Fri Apr 21 01:10:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
875
876 * extra-lib.mk: Don't include $(o-iterator); construct it by hand
877 using $(object-suffixes-$(lib)) instead.
878
879 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
880
881 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
882 (LDFLAGS-c.so): New variable.
883
884 * resolv/res_init.c (res_init): Don't clobber _res.options with
885 RES_DEFAULT. If RES_INIT is clear, OR in RES_DEFAULT.
886
887 * hurd/hurd.h: Declare _hurd_startup.
888 * hurd/hurdstartup.c: New file.
889 * hurd/Makefile (routines): Add hurdstartup.
890
11d90def
RM
891Thu Apr 20 22:23:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
892
b96bdcd7
RM
893 * hurd/hurdsig.c: Use assert_perror for many calls which should
894 never fail and previously were not checked.
895
11d90def
RM
896 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
897 Point the return address for sigreturn's frame at a "hlt" insn so
898 it will definitely crash if sigreturn returns.
899
0ac2e7d8
BK
900Wed Apr 19 18:40:11 1995 Brendan Kehoe (brendan@zen.org)
901
902 * time/tzset.c (__tzname, __daylight, __timezone): Don't check
11d90def 903 HAVE_WEAK_SYMBOLS for doing weak_alias.
0ac2e7d8 904
f4153e13
RM
905Wed Apr 19 18:12:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
906
907 * configure.in: Move $os tests to set $elf et al earlier, before
908 construction of $sysnames. Instead of prepending MACHINE/elf to
909 $sysnames, append &/elf after each elt appended to $mach.
65b3cbcb 910
f4153e13 911Tue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
67be1ecf 912
65b3cbcb
RM
913 * configure.in (libc_cv_asm_global_directive): New check to define
914 ASM_GLOBAL_DIRECTIVE.
915 * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
d02907df
RM
916 * libc-symbols.h (strong_alias_asm, strong_alias): Use
917 ASM_GLOBAL_DIRECTIVE on the alias.
65b3cbcb
RM
918
919 * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
920 HAVE_WEAK_SYMBOLS" #defns.
921
5fa25886
BK
922Mon Apr 17 12:02:49 1995 Brendan Kehoe (brendan@zen.org)
923
924 * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
925 of the byte that was zero, so we return a valid number.
926
e0585da1
BK
927Sun Apr 16 03:23:09 1995 Brendan Kehoe (brendan@zen.org)
928
5fa25886 929 * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
e0585da1
BK
930 NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
931
dce38123
BK
932Fri Apr 14 18:49:03 1995 Brendan Kehoe (brendan@zen.org)
933
fc40c039
BK
934 * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
935 [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
936 * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
937 [BITS_PER_MP_LIMB == 64]: Likewise.
938
d619f2a8
BK
939 * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
940 * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
941 * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
942 * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
943 * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
944 * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
945 * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
946 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
947 * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
948 * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
949 * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
950
951 * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
77162807
BK
952 * sysdeps/unix/mips/fork.S (fork): Likewise.
953 * sysdeps/unix/mips/pipe.S (fork): Likewise.
954 * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
955 * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
956 * sysdeps/unix/mips/wait.S (__handler): Likewise.
957 * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
958 * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
959 * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
960 * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
961 * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
962 * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
963 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
964 * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
965 * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
966 * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise. Use `$0'
967 instead of `zero' for the li instruction.
968
dfd5ddb7
BK
969 * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
970 preprocessor comments, not assembler comments.
fa21d693 971 * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
dce38123
BK
972 * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
973
eb712cf1
RM
974Fri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
975
976 * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
977 in place of inline.
978
6e33fad3
RM
979Thu Apr 13 09:45:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
980
e215c478 981 * Makefile (distribute): Add ChangeLog.[0-9].
335aa320 982
e215c478
RM
983 * configure.in: Add check for .set directive.
984 * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
335aa320
RM
985 * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
986 strong_alias_asm): Use `foo = bar' syntax instead.
e215c478
RM
987
988 * Makerules [! subdir] (O%-lib): Don't prepend ../.
989
990 * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
991
335aa320
RM
992 * configure.in: Fix AC_ARG_WITH uses; check for --with-fp. Move
993 $host_os checks to set gnu_ld/as and elf before sysdirs
994 generation. Fix $with_fp test.
995 [$elf=yes]: Prepend MACHINE/elf directory.
996
6e33fad3
RM
997 * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
998 being cleared are already known to be set. Thanks Ulrich.
999
6432a779
RM
1000Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1001
1002 * posix/environ.c: Add weak alias `_environ'.
1003
53afa8d9
RM
1004Tue Apr 11 20:38:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1005
1006 * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
1007 * sysdeps/i386/sub_n.S [PIC]: Likewise.
1008
217d85b9
RM
1009Mon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1010
53afa8d9
RM
1011 * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
1012 word `const'.
1013
1014 * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
1015 $(foo-$(suffix $@)).
1016
1017 * manual/Makefile (chapters-incl): Filter out summary.texi.
1018
217d85b9
RM
1019 * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
1020 a weak symbol instead of literal "STRTOF".
1021
1022 * locale/setlocale.c: Work around ld bug: don't weakify refs to
1023 _nl_{current,C}_*.
1024
8c0dc19c
RM
1025Sun Apr 9 01:24:33 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1026
1027 * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
1028
1029 * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
1030 * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
1031
1032 * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
1033 #ifdef emacs, but only #ifndef memmove.
1034 * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
1035 safe_bcopy.
1036 (memmove): Define only if undefined.
1037
73fbb9a5
RM
1038Sat Apr 8 00:40:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1039
6aa8372e
RM
1040 * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
1041 sure these are simply-expanded variables.
1042
883bc19b
RM
1043 * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
1044 mmap call.
1045
1046 * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
1047 for these too.
1048
1049 * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
1050 set c_oflag value.
1051
1052 * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
1053
1054 * locale/Makefile (categories): Uncomment collate.
1055 * locale/lc-collate.c: New file.
1056
8ab69eb3
RM
1057 * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
1058 #ifdef emacs.
1059 * malloc/realloc.c: Likewise.
1060
8c0dc19c
RM
1061 * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
1062 (_itoa): Use it in defn.
8ab69eb3
RM
1063 * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
1064 "_itoa.h".
1065 (_itoa): Function removed.
1066
73fbb9a5
RM
1067 * malloc/free.c: Remove use of `assert'.
1068
1069 * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
1070 __malloc_safe_bcopy; #define safe_bcopy.
1071 * malloc/free.c: Cope with systems lacking `memmove'.
1072 (_free_internal): Cast result of _malloc_internal.
1073
4bca5a35
RM
1074Wed Apr 5 00:13:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1075
e627021e
RM
1076 * hurd/hurdinline.c: Include signal.h first, so we don't define
1077 its inlines too.
1078
1079 * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
1080 of -1 to avoid compiler warning.
1081
1082 * configure.in (host_os=linux*): Set elf=yes for this, not just
1083 linux*elf*.
1084
c0fef53b
RM
1085 * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
1086 and open.
1087
4bca5a35
RM
1088 * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
1089
45b28a8f
RM
1090Tue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1091
fa0ad204
RM
1092 * sysdeps/unix/start.c: Remove spurious decl and #endif.
1093
45b28a8f
RM
1094 * misc/progname.c (program_invocation_name,
1095 program_invocation_short_name): Make these initialized data
1096 definitions.
1097
1098 * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
1099 so gcc doesn't optimize out the function entirely.
1100
e607b492
RM
1101Sun Apr 2 13:13:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1102
c4bf5a3e
RM
1103 * posix/execvp.c: Don't use stat to search path; just try execv
1104 until it works.
1105
e607b492
RM
1106 * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
1107 SS->active_resources, so that _hurdsig_longjmp_from_handler will
1108 be called when a longjmp unwinds the signal frame.
1109 * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
1110 SS->active_resources chain added by _hurd_setup_sighandler.
1111 * hurd/sigunwind.c: New file.
1112 * hurd/Makefile (sig): Add sigunwind.
1113
1114 * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
1115
1116 * MakeTAGS (tags-sources): Include $(all-dist).
1117 [subdir] (all-dist): Define to $(distribute).
1118
2f8033d6
RM
1119Sat Apr 1 00:08:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1120
193ce8dc
RM
1121 * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
1122 parent objdirs.
1123
1124 * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
1125 filtering out $($(lib)-inhibit-o); use that instead of
1126 $(object-suffixes) in all the other variables.
1127
2f8033d6
RM
1128 * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
1129 if undefined.
1130
1131 * string/strxfrm.c: Just copy the string (for now).
1132 * string/strcoll.c: Just call strcmp (for now).
1133
1134 * mach/Makefile (lock): Add mutex-init.
1135 * mach/mutex-solid.c (_cthread_mutex_lock_routine,
1136 _cthread_mutex_unlock_routine): Variables removed.
1137 (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
1138 (__mutex_init): Function moved to new file mutex-init.c.
1139 * mach/mutex-init.c: New file, broken out of mutex-solid.c.
1140
67188fe6
BK
1141Thu Mar 30 20:43:02 1995 Brendan Kehoe <brendan@zen.org>
1142
1143 * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
0a648051 1144 * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
67188fe6 1145
b1f11361
RM
1146Thu Mar 30 01:38:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1147
1148 * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
1149 both are zero).
1150
a9df8829
RM
1151Wed Mar 29 11:26:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1152
b1f11361
RM
1153 * elf/dlfcn.h: New file.
1154
ea7d9938
RM
1155 * Make-dist (README): Commit it to CVS if there is a CVS directory.
1156
a9df8829
RM
1157 More changes from Germano Caronni <caronni@tik.ethz.ch>:
1158 * malloc/free.c: Relocate _heapinfo when that allows us to return
1159 core to the system.
1160
1161 * malloc/malloc.c: Move #include <errno.h> outside #ifndef
1162 _MALLOC_INTERNAL.
1163
1474b80f
RM
1164Mon Mar 27 02:23:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1165
c316b486
RM
1166 * mach/Makefile (headers): Add mach/mach_traps.h.
1167
1168 * Makerules ($(installed-libcs) rule): Fix typos.
1169
342414a6
RM
1170 * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
1171 * sysdeps/stub/revoke.c: New file.
1172 * misc/Makefile (routines): Add revoke.
1173 * posix/unistd.h [__USE_BSD] (revoke): Declare it.
1174 * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
1175 (forkpty): Declare login_tty.
1176 * misc/logwtmp.c (logwtmp): Declare to return void.
1177 * misc/login_tty.c (login_tty): Include unistd.h. Declare return type.
1178
1474b80f
RM
1179 * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
1180
1181 * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
1182 unless L_SET already defined.
1183 * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
1184 already defined.
1185
1186 Incorporated -lutil library from 4.4-Lite.
1187 * misc/Makefile (extra-libs, libutil-routines): New variables.
1188 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
1189 sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
1190
1191 Support simple, light-weight unwind-protect mechanism for longjmp.
1192 * setjmp/longjmp.c: Call _longjmp_unwind first thing.
1193 * sysdeps/mach/hurd/jmp-unwind.c: New file.
1194 * sysdeps/stub/jmp-unwind.c: New file.
1195 * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
1196 * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
1197 * setjmp/Makefile (routines): Add jmp-unwind.
1198 * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
1199 `prevp' members into new substructure `resource'; add another such
1200 substructure `thread' and members `cleanup' (function ptr) and
1201 `cleanup_data' (generic ptr).
1202 (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
1203 into the `_hurd_self_sigstate ()->active_resources' list via the
1204 `thread' substructure.
1205 * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
1206 (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
1207 LINK->cleanup_data' to the port extracted.
1208 * hurd/hurd/signal.h (struct hurd_sigstate): New member
1209 `active_resources'.
1210 * hurd/port-cleanup.c: New file.
1211 * hurd/Makefile (routines): Add port-cleanup.
1212
1213 * malloc/malloc.c: Include errno.h.
1214
1215Sat Mar 25 18:24:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1216
1217 * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
1218
a04e7405
RM
1219Fri Mar 24 02:35:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1220
d365fd2c
RM
1221 * misc/Makefile (headers): Add utmp.h.
1222 * misc/utmp.h: New file, incorporated from 4.4-Lite.
1223
a04e7405
RM
1224 * stdio/printf-parse.h: New file, mostly written by drepper.
1225 * stdio/vfprintf.c: Rewritten, mostly by drepper.
1226 * stdio/printf-prs.c: Rewritten.
1227 * stdio/Makefile (distribute): Add printf-parse.h.
1228
1229Thu Mar 23 22:03:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1230
1231 * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
1232 with asm name. Just do a ".set start, __start".
1233
1234 * malloc/realloc.c: Call _free_internal instead of free.
1235
49e522bf
RM
1236Tue Mar 21 00:14:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1237
1238 * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
1239 directory, open LOCALE/LC_*/SYS_LC_* instead.
1240
1e9dc039
RM
1241Mon Mar 20 03:19:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1242
49e522bf
RM
1243 * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
1244 stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
1245 stdio/gen-mpn-copy: Files moved to stdlib.
1246 * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
a04e7405 1247 * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
49e522bf
RM
1248 * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
1249 headers.
1250 * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
1251 headers.
1252
6bf02878
RM
1253 * Makefile (parent-mostlyclean): Don't use $(libc.a).
1254 (parent-clean): Use $(objpfx) to find sysd-*.
1255 * Rules (generated): Append dummy.o dummy.c.
4788ab46
RM
1256 * Makerules (lib): Depend on lib-noranlib.
1257 (lib-noranlib): Depend on $(install-lib) in objdir.
1258 (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
1259 from objdir. Don't remove TAGS; it comes in the distribution.
1260
1261 * malloc/malloc.c (morecore): Save errno around call to
1262 _realloc_internal. Don't account for the additional new blocks of
1263 the info table itself when choosing the new table size for the
1264 first crack; if it succeeds, the new blocks will have been found
1265 in existing free space already described by the existing info
1266 table.
1267
1e9dc039
RM
1268 * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
1269 read-ahead character.
1270
be69ea41
RM
1271Sat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1272
1e9dc039
RM
1273 * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
1274 hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
1275 hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
1276 hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
1277 Get anal with unsigned to pacify compiler.
1278
be69ea41
RM
1279 * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
1280 means %d from 3rd arg).
1281
1282 * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
1283
1284 * stdlib/strtol.c: If !GROUP, set END to null. In loop, test only
1285 END, not GROUP.
1286
693e7b96
RM
1287Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1288
a38f13ba
RM
1289 * Makefile (subdirs): Put elf last.
1290
693e7b96
RM
1291 * sunrpc/Makefile (install-lib): Variable removed.
1292 (rpcsvc-objs): Variable removed.
1293 (extra-objs): Don't include $(rpcsvc-objs).
1294 (extra-libs): New variable, contains librpcsvc.
1295 (librpcsvc-routines): New variable.
1296 (librpcsvc-inhibit-o): New variable, contains .so.
1297 (omit-deps): Set this to $(librpcsvc-routines).
1298 ($(objpfx)rpcgen): Don't use $(libc.a).
1299 (lib, $(objpfx)librpcsvc.a): Targets removed.
1300
1301 * o-iterator.mk, extra-lib.mk: New files.
1302 * Makerules (o-iterator): New variable.
1303 [extra-libs]: Include extra-lib.mk to generate rules for each word
1304 of $(extra-libs).
1305 * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
1306
b3fe1350
UD
1307Fri Mar 17 13:28:04 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
1308
1309 * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
68b3ef49 1310 Handle 80-bit denormalized numbers correctly.
b3fe1350 1311
68b3ef49 1312 * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
693e7b96 1313 (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
68b3ef49
RM
1314 * stdlib/strtod.c (RETURN): Add parentheses around return value.
1315 (round_and_return): Correct handling of denormalized numbers.
b3fe1350 1316
693e7b96
RM
1317 * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
1318 LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
1319 exponent.
b3fe1350 1320
f0bf9cb9
RM
1321Thu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1322
1323 * locale/C-ctype.c: New correct data generated by drepper.
1324
1325 * Rules: Don't use $(libc.a).
1326
1327 Parsing of grouped numbers contributed by Ulrich Drepper.
1328 * stdlib/strtol.c (__strtol_internal): Renamed from strtol. Take
1329 new flag arg; if nonzero, parse locale-dependent thousands
1330 grouping and interpret only the prefix that is correctly grouped.
1331 (strtol): Define this to call _strtol_internal with zero for the flag.
1332 Use a weak symbol for the definition.
1333 * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
1334 Check for the exponent of the number overflowing the float format.
1335 * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
1336 (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
1337 [__OPTIMIZE__]: Define inline functions calling those.
c45e5aa9
RM
1338 * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
1339 (strtold): Remove weak alias.
1340 * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
1341 (strtof): Remove weak alias.
f0bf9cb9
RM
1342 * stdlib/grouping.h: New file, written by drepper.
1343 * stdlib/Makefile (distribute): Add grouping.h.
1344 * stdio/vfscanf.c: Grok %' modifier to numeric conversions. Call
1345 __strtoX_internal with the grouping flag set iff the modifier is
1346 present.
1347
1348Wed Mar 15 00:40:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1349
1350 * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
1351
1352 * mach/Machrules: Produce static deps for all object flavors.
1353 [interface-library]: Remove all these variables and rules.
1354 ($(interface-library)-routines): Define this variable.
1355 (extra-libs): Append $(interface-library) to this.
1356 * mach/Makefile (interface-library): Omit .a suffix.
1357 * hurd/Makefile: Likewise.
1358
1359Tue Mar 14 23:40:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1360
1361 * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
1362 early if no new data in buffer after priming.
1363
01a36ad3
RM
1364Mon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1365
f0bf9cb9
RM
1366 * Makerules (object-suffixes, libtypes): Move all these variables
1367 to Makeconfig.
1368 * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
1369
1370 * Makerules (build-extra-lib): New canned sequence.
1371
1372 * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h. Declare ERR;
1373 fix uses of FILE and PORT. Remove bogus weak alias for `access'.
1374
1375 * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
1376 Add missing semicolon.
1377 * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h. Use a `struct
1378 hurd_fd *' temp var, since DIRP->__fd is a `void *'.
1379 * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
1380
1381 * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
1382 locale data format is implemented.
1383
1384 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1385 Pass &__sigreturn on the stack to the trampoline code, so it is
1386 not position-dependent.
1387
1388 * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
1389 Don't include <stdarg.h>.
1390 (__printf_fp): Last arg ARGS is now `const void **const';
1391 dereference ARGS[0] instead of using va_arg.
1392
1393 * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
1394 loop to install data.
1395
1396 * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
1397 to extract number from item code.
1398 (_nl_load_locale): Close the descriptor when finished.
1399
1400 * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
1401 place of malloc.
1402
1403 * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
1404
67a3a8ac
RM
1405 * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
1406 to avoid warning.
1407 * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
1408 int to avoid warning.
1409
51f75302
RM
1410 Support building several flavors of objects and libraries.
1411 * Makerules (libtypes, object-suffixes): New variables.
1412 (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
1413 suffix.
1414 (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
1415 (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
1416 (close-check-inhibit-asm): Append a semicolon.
1417 (sysd-rules): Generate rules for each object suffix.
1418 (compile.S, compile.c): Always assume gcc.
1419 (OUTPUT_OPTION): Define unconditionally.
1420 (+make-deps): In generated rule, produce a dependent for each
1421 object suffix.
1422 (.SUFFIXES): Add $(object-suffixes) in place of .o.
1423 (.PRECIOUS): Make all suffix flavors precious.
1424 ($(libc.a)): Target removed.
1425 (lib): Depend on each enabled libtype.
1426 (libobjs, objects, objs): Depend on all the enabled object flavors.
1427 (lib%.a): New pattern rule.
1428 [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
1429 (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
1430 to make one for each flavor; library dep rule likewise rewritten.
1431 ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
1432 flavor.
1433 (symdef.%): New pattern rule; helper for __.SYMDEF targets.
1434 (installed-libcs): New variable.
1435 (install): Depend on that instead of
1436 $(libdir)/lib$(libprefix)$(libc-name).a;
1437 that file's rule rewritten to make each enabled libtype.
1438 (install-lib.so): New variable, filters lib%.so from $(install-lib).
1439 (install-lib): Filter out lib%.so after setting install-lib.so.
1440 [$(build-shared)=yes] (install): Install $(install-lib.so).
1441 (common-mostlyclean): Remove all flavors of objects.
01a36ad3
RM
1442 * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
1443 [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
1444
424f8c09
RM
1445Sun Mar 12 18:21:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1446
01a36ad3
RM
1447 * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
1448 * sysdeps/stub/pause.c: Likewise.
1449 * sysdeps/stub/time.c: Likewise.
1450
1451 * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
1452 locale data format is implemented.
1453 * stdlib/wctomb.c: Likewise.
1454
1455 * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
1456 gcc bug is fixed.
1457 * mach/errsystems.c: File removed.
1458
1459 * Makeconfig (libc.a): Variable removed.
1460 (+link): Don't use it.
1461
1462 * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
1463 assuming `yes'.
1464
424f8c09
RM
1465 * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
1466 * malloc/realloc.c (_realloc_internal): Renamed from realloc;
1467 don't use __realloc_hook.
1468 (realloc): New function; call __realloc_hook ?: _realloc_internal.
1469 * malloc/malloc.c (_malloc_internal): Renamed from malloc;
1470 don't use __malloc_hook.
1471 (malloc): New function; call __malloc_hook ?: _malloc_internal.
4788ab46 1472 Changes from Germano Caronni <caronni@tik.ethz.ch>:
424f8c09
RM
1473 (initialize): Set up _heaplimit to cover the _heapinfo table.
1474 (morecore_recursing): New static variable.
1475 (morecore): If that is set, return null immediately.
1476 When growing the info table, before getting new core from the
1477 system for it, set morecore_recursing and try moving _heapinfo
1478 with _realloc_internal. When that fails and we get new core, set
1479 _heaplimit to cover the core for the new _heapinfo table.
1480 (register_heapinfo): New function. Record the _heapinfo table's
1481 own blocks in that table and in the statistics variables.
1482 (initialize, _malloc_internal): Use it after allocating new table.
1483
1484Fri Mar 10 22:26:28 1995 Jim Meyering (meyering@comco.com)
1485
1486 * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
1487 by other packages.
1488 [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
1489
cfe33fd9
RM
1490Fri Mar 10 13:31:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1491
424f8c09
RM
1492 * mach/errorlib.h (errors): Use const for decl.
1493
1494 * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
1495 (decode): New inline function; decode signed 32-bit integers, and
1496 sign-extend properly when long is longer than 32 bits.
1497 (__tzfile_read): Changed all uses of uc2ul to decode.
1498 Decode the transition times properly when sizeof (time_t) > 4.
1499
cfe33fd9
RM
1500 * stdio/printf.h: Doc fixes. Don't #include <stddef.h>.
1501 (printf_function): Make last arg ARGS a vector of pointers instead of a
1502 pointer to va_list.
1503
1504Fri Mar 10 13:46:25 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
1505
424f8c09
RM
1506 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
1507 (buffered_vfprintf): Remove line buffer when flush failed.
cfe33fd9
RM
1508
1509Fri Mar 10 00:04:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1510
1511 * time/tzfile.c (struct ttinfo): New member `isgmt'.
1512 (__tzfile_read): Read isgmt flags for each type.
1513 (__tzfile_default): When using TZDEFRULES DST rules, adjust
1514 transition times according to the isstd and isgmt flags for the
1515 types of each transition, and adjust each transition to point to
1516 type index either 0 or 1. Reset type indices 0 and 1 to describe
1517 the user's settings.
1518
d8cc5f0c
RM
1519Thu Mar 9 22:29:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1520
40deae08
RM
1521 * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
1522 into just CLASS. Add standard/optional flag to all items.
1523
1524 * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
1525
1526 * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
1527 Rearrange defn to satisfy compiler.
1528
1529 * locale/localeinfo.h: Declare _nl_current.
1530
ff3d7ed3
RM
1531 * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
1532 --enable-shared, --enable-profile, --enable-omitfp; pass settings
1533 through to config.make.
1534 * config.make.in (build-shared, build-profile, build-omitfp): New
1535 config vars.
1536
d8cc5f0c
RM
1537 * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
1538 (DT_NUM): New macro.
1539
1540 * locale/nl_langinfo.c: Include errno.h and stddef.h. Fix typos.
1541
1542 * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
1543
1544 * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
1545 MAP_COPY to MAP_PRIVATE.
1546
222c4e71
BK
1547Thu Mar 9 17:16:53 1995 Brendan Kehoe (brendan@zen.org)
1548
06c48879
BK
1549 * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
1550 that's used inside the alpha sysdep.h.
1551
5638ea42
BK
1552 * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
1553 keyword.
eded85e0 1554 * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
127b3c35 1555
222c4e71
BK
1556 * configure.in: Match `osf*', not `osf1*'.
1557 * configure: Likewise.
134c1236 1558 * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
222c4e71 1559
6c2f0507
RM
1560Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1561
1562 * posix/glob/configure.bat: Fixes from DJ.
1563
1564 * time/backward, time/europe, time/northamerica, time/pacificnew,
1565 time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
1566 time/ialloc.c: Code and data updated from ADO's 95b.
1567 * time/emkdir.c: File removed.
1568 * time/Makefile (distribute, extra-objs, zic): Omit it.
1569
1570 * time/localtime.c: Deansideclized. Never #define __tzname et al
1571 to non-__ names.
1572
1573 * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
1574 instead of short int *.
1575 * ctype/ctype-info.c: Likewise.
1576 * ctype/ctype.h: Likewise.
1577
1578 * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
1579 of EB and EL versions.
1580
28635115
RM
1581Mon Mar 6 12:34:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1582
1583 * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
1584 (_IS* enum): Use _ISbit to produce values.
1585
933e73fa
RM
1586Sun Mar 5 19:40:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1587
1588 * locale/localeinfo.h: Rewritten for new locale system, using
1589 locale data files and with <langinfo.h> interface.
1590 * locale/setlocale.c: Rewritten to use locale data files.
1591 * langinfo.h: New file.
1592 * locale/langinfo.h: New file.
1593 * locale/nl_langinfo.c: New file.
1594 * locale/loadlocale.c: New file.
1595 * locale/lc-ctype.c: New file.
1596 * locale/lc-messages.c: New file.
1597 * locale/lc-monetary.c: New file.
1598 * locale/lc-numeric.c: New file.
1599 * locale/lc-time.c: New file.
1600 * locale/categories.def: New file.
1601 * locale/Makefile (headers): Remove localeinfo.h.
1602 (distribute): New variable; put localeinfo.h here, and categories.def.
1603 (routines): Add loadlocale.
1604 (categories): New variable.
1605 (aux): Use that to get C-category and lc-category.
1606 * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
797fa620
RM
1607 * ctype/ctype-info.c: For initial tables, use
1608 _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
1609 locale/C-ctype.c.
933e73fa
RM
1610 * locale/C-ctype.c, locale/C-messages.c: New files.
1611 * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
1612 Default "C" locale data updated for new locale system.
1613 * locale/C-collate.c: File removed.
1614 * locale/C-ctype_ct.c: File removed.
1615 * locale/C-ctype_mb.c: File removed.
1616 * locale/C-response.c: File removed.
1617 * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
1618 * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
1619 stdlib/strtod.c, time/asctime.c, time/strftime.c:
1620 Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
1621 locale data.
1622 * time/localtime.c: Don't include <localeinfo.h>.
1623 * time/tzset.c: Don't use locale items for default TZ value or
1624 "GMT" string (use "UTC").
1625
1626 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
1627 WIDTH>0; update DONE.
1628
1629 * malloc/malloc.c (morecore): Fix last change to calculate by
1630 blocks instead of bytes.
1631
6408bdde
RM
1632Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1633
1634 * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
1635 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
1636 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
1637 * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
1638 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
1639 * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
1640 alias munmap.
1641 * sysdeps/unix/mman/munmap.S: Likewise.
1642 * sysdeps/mach/munmap.c: Likewise.
1643 * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
1644 alias mmap.
1645 * sysdeps/unix/mman/mmap.S: Likewise.
1646 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
1647 * sysdeps/stub/mmap.c: Likewise.
1648
1649 * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
1650
1651 * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
1652
1653Thu Mar 2 12:15:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1654
1655 * misc/search.h: Add missing semicolon.
1656
1657 * sysdeps/unix/dirfd.c: Fix typo.
1658
1659 * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
1660 in decl.
1661
1662 * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
1663 WIDTH before test.
1664
30e77772
RM
1665Wed Mar 1 00:57:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1666
4933a099
RM
1667 * stdlib/strtod.c: Fixes from drepper.
1668 [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
1669 * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
1670 * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
1671
1672 * stdio/vfprintf.c: Correctly notice Z modifier.
1673
30e77772
RM
1674 * misc/search.h: New file.
1675 * misc/Makefile (headers): Add search.h.
1676 * misc/insremque.c: Include search.h.
1677 (struct qelem): Type removed.
1678
e32a7957
RM
1679Mon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1680
1681 * elf/libelf.h: New file.
1682 * elf/elf_hash.c: New file.
1683
24b76949
RM
1684Sun Feb 26 15:51:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1685
4788ab46 1686 Changes from Germano Caronni <caronni@tik.ethz.ch>:
24b76949
RM
1687 * malloc/malloc.c (morecore): Account in NEWSIZE for the
1688 malloc_info structures for each new block.
1689
3c46a92d
RM
1690Sat Feb 25 02:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1691
1692 * sysdeps/mach/hurd/kill.c: When the process has no message port
1693 registered and we have its task port, translate a few signals to
1694 task_suspend/task_resume/task_terminate.
1695
e66f63fb
RM
1696Fri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1697
22a1292a
RM
1698 * io/Makefile (routines): Add euidaccess.
1699 * sysdeps/mach/hurd/euidaccess.c: New file.
1700 * sysdeps/stub/euidaccess.c: New file.
1701 * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
1702
1703 * dirent/Makefile (routines): Add dirfd.
1704 * sysdeps/stub/dirfd.c: New file.
1705 * sysdeps/unix/dirfd.c: New file.
1706 * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
1707 * dirent/dirent.h (dirfd): Declare new function. Define as macro
1708 _DIR_dirfd if that is defined.
1709 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
1710 with `void *__fd'.
1711 * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
1712 Open the file with `open'; set FD_CLOEXEC on the fd.
1713 * sysdeps/mach/hurd/closedir.c: Likewise.
1714 * sysdeps/mach/hurd/readdir.c: Likewise.
1715 * sysdeps/mach/hurd/dirfd.c: New file.
1716
1717 * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
1718 directory.
1719 (glob/ChangeLog): Likewise.
1720
1721 * locale/locale.h (LC_*): Use small integers instead of bit masks.
1722
e66f63fb
RM
1723 * stdio/bug4.c: Put temporary files in /tmp.
1724 * stdio/bug3.c: Likewise.
1725 * stdio/bug5.c: Likewise.
1726 * stdio/test-fseek.c: Likewise.
1727 * stdio/test-popen.c: Likewise.
1728
50843ff0
RM
1729Wed Feb 22 00:44:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1730
b5388cb6
RM
1731 * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
1732
1733 * libc-symbols.h (weak_symbol): New macro.
1734
0677a80c
RM
1735 * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
1736 elts with null handlers.
1737
50843ff0
RM
1738 * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
1739
23ad311d
RM
1740Tue Feb 21 21:53:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1741
50843ff0
RM
1742 * stdlib/random.c (__srandom): Change algorithm used to populate
1743 the state array.
1744 (randtbl): Recomputed with new algorithm.
1745
23ad311d
RM
1746 * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
1747 to original value of `crypt'.
1748 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
1749 (crypt): New variable, set to crypt.solar.
1750
daf12887
BK
1751Tue Feb 21 11:50:37 1995 Brendan Kehoe (brendan@zen.org)
1752
d53f392b
BK
1753 * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
1754
daf12887
BK
1755 * config.h.in: Put comment around ^L to pacify Solaris as here too.
1756
37f91d33
RM
1757Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1758
67a87b93
RM
1759 * string/Makefile (distribute): Add pagecopy.h.
1760 * sysdeps/mach/pagecopy.h: New file.
1761 * sysdeps/generic/pagecopy.h: New file.
1762 * sysdeps/generic/memcpy.c: Include pagecopy.h; call
1763 PAGE_COPY_FWD_MAYBE first when word aligned.
1764 * sysdeps/generic/memmove.c: Likewise.
1765
787126fe
RM
1766 * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
1767 (getpgrp): Call __getpgid instead of __getpgrp.
1768
01cc0be6
RM
1769 * Makefile (subdirs): Add elf first.
1770 * elf/Makefile: New file.
1771 * elf/elf.h: New file.
1772
8b60020b
RM
1773 * sysdeps/unix/start.c (errno): Only define if it's not #define'd
1774 as a macro.
1775 [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
1776 indirection.
1777
37f91d33
RM
1778 * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
1779 add crti_s, crtn_s.
1780 (install-lib, extra-objs, generated-, omit-deps): Use that.
1781 (initfini): New canned sequence, broken out of crt[in].s rule.
1782 (crt[in].s rule): Use it.
1783 (crt[in]_s.s): New rule.
1784 * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
1785 (_init, _fini): Use GLOBAL as storage class.
1786 Add self reference to avoid GCC optimizing out the functions.
1787
1788 * Makefile (headers): Remove $(stddef.h).
1789 * Makeconfig (stddef.h): Variable removed; now require gcc version
1790 >= 2.2.
1791 * stddef.h: File removed.
1792
1793Mon Feb 20 19:42:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1794
1795 * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
1796 definition.
1797 * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
1798
1799 * stdlib/strtod.c: Allow the string to start with a decimal point
1800 without a leading zero.
1801
0923c7a5
RM
1802Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
1803
41d43dbc
RM
1804 * Makefile (subdirs): Put csu first.
1805
1806 * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
1807
96f873b9
RM
1808 * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
1809 to crt[in].o.
1810 (csu-objpfx): New variable.
1811 (+link): Use it to find start.o and $(+preinit), $(+postinit).
1812
1813 * Rules (subdir_lib, all): Depend on objs.
1814
0923c7a5
RM
1815 * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
1816
1817 * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
1818 access to float.h macros.
1819
1820 * misc/efgcvt.c: New file.
1821 * misc/Makefile (routines): Add efgcvt.
1822
5ace96c8
BK
1823Sun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
1824
1825 * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
1826 * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
1827 to avoid a misreference that would override sysdeps/generic/mul.c.
1828 * sysdeps/sparc/Dist: Likewise.
1829
5f9e57ba
RM
1830Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
1831
1832 * posix/Makefile (aux): Add environ.
1833 * posix/environ.c: New file.
1834 * sysdeps/unix/sparc/start.c: Remove __environ definition.
1835 * sysdeps/unix/start.c: Likewise.
1836 * sysdeps/unix/sysv/irix4/start.c: Likewise.
1837 * sysdeps/mach/hurd/start.c: Likewise.
1838 * sysdeps/mach/start.c: Likewise.
1839 * sysdeps/stub/start.c: Likewise.
1840
1841 * sysdeps/unix/make_errlist.c: In produced program, test
1842 HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
1843 * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
1844 Remove extra weak alias.
1845
1846 * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
1847 in #include.
1848
1849 * libc-symbols.h: Put comment around ^L to pacify Solaris as.
1850
1851 * sysdeps/posix/Makefile (cded-objdir-includes): New variable
1852 replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
1853 $(CPPFLAGS).
1854 (mk-stdiolim): Use it instead.
1855
28f540f4
RM
1856Fri Feb 17 12:16:27 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
1857
5f9e57ba
RM
1858 * mach/mach_init.c (__vm_page_size): Make it initialized. It does
1859 not work to make a weak alias to a bss symbol.
1860
1861 * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
1862 (tests): Add test-fwrite.
1863 * stdio/test-fwrite.c: New file.
1864
1865 * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
1866 __strtold.
1867
1868 * Makefile (autoconf-it): New canned sequence. Do cvs commit if
1869 there is a CVS directory.
1870 (configure, %/configure): Use $(autoconf-it) for cmds.
1871 * Make-dist: Likewise.
28f540f4
RM
1872 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
1873 if there is a CVS directory.
1874 * sysdeps/sparc/Makefile (divrem output): Likewise.
1875 * sysdeps/alpha/Makefile (divrem output): Likewise.
5f9e57ba 1876 * Makerules ($(gpl2lgpl)): Likewise.
28f540f4
RM
1877
1878 * Makerules (rule to install lib%.a from $(install-lib)): Fix
1879 patsubst to elide ranlib for $(non-lib.a).
1880
1881 * stdio/tst-printf.c: Enable FP tests. Add some new tests from rfg.
1882
1883Thu Feb 16 04:06:06 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
1884
1885 * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
1886 * mach/mig-dealloc.c: Add weak alias mig_deallocate.
1887
1888Wed Feb 15 13:34:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1889
1890 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
1891 DEALLOC_REFPORT; deallocate the refport after use only if it
1892 evaluates to nonzero.
1893 * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
1894 * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
1895
1896 * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
1897 *STATE_CHANGE to indicate whether or not we changed *STATE and it
1898 should be committed to the thread.
1899 (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
1900 state for a thread, do thread_set_state on that thread. Don't use
1901 SS->intr_port for collecting reply ports, it is not safe to
1902 clobber that when suspending; instead, alloca a temporary array.
1903 (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
1904 zero when dying, one when suspending. Pass new arg to abort_rpcs.
1905
1906 * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
1907 HURD_FD_PORT_USE will. Don't use critical sections around
1908 HURD_FD_PORT_USE invocations.
1909
1910 * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
1911 * sysdeps/posix/stdio_init.c: Likewise.
1912
1913Tue Feb 14 03:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1914
1915 * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
1916 locking; don't leave the descriptor locked on return.
1917 (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
1918 Use a critical section around locking the descriptor.
1919 Check for an empty descriptor and return EBADF.
1920 * sysdeps/mach/hurd/dup2.c: Likewise.
1921 * sysdeps/mach/hurd/fcntl.c: Likewise.
1922 Use HURD_FD_PORT_USE macro for RPCs.
1923 * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
1924 using HURD_FD_PORT_USE.
1925 * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
1926 to lock the descriptor.
1927 * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
1928 locking the descriptor.
1929 * sysdeps/mach/hurd/fdopen.c: Likewise.
1930 * hurd/fd-close.c: Likewise.
1931 Don't expect the descriptor to be locked on entry.
1932 Check for empty descriptor and return EBADF.
1933
1934 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
1935 new functions _hurd_ctty_input and _hurd_ctty_output, each
1936 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
1937 * hurd/ctty-input.c: New file.
1938 * hurd/ctty-output.c: New file.
1939 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
1940 * hurd/fd-read.c: Use _hurd_ctty_input.
1941 * hurd/fd-write.c: Use _hurd_ctty_output.
1942 * sysdeps/mach/hurd/ioctl.c: Likewise.
1943 * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
1944
1945Mon Feb 13 11:36:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1946
1947 * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
1948 as appropriate to the type.
1949
1950 * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
1951 repeating the union.
1952 (HUGE_VAL, __huge_val): Use it.
1953 [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
1954 analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
1955 * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
1956 (STRTOF): Set to __strtold; define strtold as weak alias.
1957 * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
1958 (STRTOF): Set to __strtof; define strtof as weak alias.
1959
1960 * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
1961 (IEEE754_FLOAT_BIAS): New macro.
1962
1963 * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
1964
1965 * stdlib/testmb.c: Add tests from rfg for using normal chars as
1966 multibyte chars.
1967
1968 * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
1969 only the `defined but not used' warning, but also to avoid GCC
1970 optimizing out the entire function (!).
1971
1972 * stdlib/wctomb.c: Include ctype.h.
1973
1974 * Makerules (install-lib-non.a): Don't include $(non-lib.a).
1975
1976 * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
1977
1978Sat Feb 11 04:05:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1979
1980 * stdio/printf_fp.c: Include "fpioconst.h".
1981 (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
1982 (__printf_fp): All references changed.
1983 Don't bother computing THOUSANDS_SEP if GROUPING is empty.
1984 (group_number): Use memmove instead of memcpy, since operands overlap.
1985 * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
1986 * stdio/fpioconst.h: New file, header declaring the table data.
1987 * stdio/Makefile (aux): Add fpioconst.
1988 (distribute): Add fpioconst.h.
1989 * stdlib/strtod.c: Complete rewrite from drepper.
1990 * stdlib/strtof.c: New file.
1991 * stdlib/strtold.c: New file.
1992 * stdlib/Makefile (routines): Add strtof, strtold.
1993 * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
1994 * sysdeps/stub/mpn2flt.c: New file.
1995 * sysdeps/stub/mpn2dbl.c: New file.
1996 * sysdeps/stub/mpn2ldbl.c: New file.
1997 * sysdeps/ieee754/mpn2flt.c: New file.
1998 * sysdeps/ieee754/mpn2dbl.c: New file.
1999 * sysdeps/ieee754/mpn2ldbl.c: New file.
2000
2001 * Makerules (install-lib.a): Don't filter out $(non-lib.a).
2002 ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
2003 appears in $(non-lib.a).
2004
2005Fri Feb 10 17:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2006
2007 * stdlib/wctomb.c: A normal ASCII character translates to itself.
2008 * stdlib/mbtowc.c: Likewise.
2009
2010Thu Feb 9 03:55:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2011
2012 * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
2013 Remove `const' from prototypes.
2014 * sysdeps/m68k/__longjmp.c: Likewise.
2015 * setjmp/longjmp.c: Likewise.
2016 * sysdeps/i386/__longjmp.c: Likewise.
2017
2018 * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
2019 so when we return a name, it is incremented past the value that
2020 produces that same name.
2021
2022 * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype. Sigh.
2023 * stdio/stdio.h (fgets): Likewise.
2024
2025 * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
2026
2027 * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
2028 when it's EBACKGROUND; we need to notice that it is EBACKGROUND
2029 and retry the RPC.
2030 * hurd/fd-read.c: Likewise.
2031
2032Wed Feb 8 05:01:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2033
2034 * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
2035 <mach/mig_support.h>.
2036 * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
2037 * assert/assert.c: Likewise.
2038 * sysdeps/posix/libc_fatal.c: Likewise.
2039
2040Tue Feb 7 12:17:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2041
2042 * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
2043 as macros, to satisfy ANSI pedants.
2044
2045 * stdio/internals.c (flushbuf): When there is no new data after
2046 priming the stream, return without writing out the buffer.
2047 * stdio/Makefile (tests): Add bug7.
2048 * stdio/bug7.c: New file.
2049
2050 * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
2051 S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
2052 is defined.
2053
2054 * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
2055
2056 * stdio/Makefile (tests): Add errnobug.
2057 * stdio/errnobug.c: New file.
2058
2059 * mach/mig_strncpy.c: Include string.h.
2060
2061 * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>. Its
5f9e57ba 2062 inlines cause trouble for files defining global register variables.
28f540f4
RM
2063
2064 * stdio/vfprintf.c: Use _strerror_internal for %m.
2065
2066 * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
2067
2068 * stdio/printf.h (struct printf_info): New member `group', for %' flag.
2069 * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
2070 * stdio/vfprintf.c (group_number): New function.
2071 (vfprintf): Support %' flag for integer formats, by calling
2072 group_number after formatting the number in WORK.
2073 * stdio/printf_fp.c (guess_grouping, group_number): New functions.
2074 (__printf_fp): Implement `group' flag using them.
2075
2076 * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
2077 (parent-clean): Remove sysd-rules, not sysdirs.
2078 (distclean): Pass avoid-generated=yes to submake.
2079 (distclean-1): Remove $(sysdep-$(distclean-1)).
2080
2081 * Makerules (objects, objs): Depend on $(extra-objs) too.
2082 (include sysd-Makefile): Protect with ifndef avoid-generated.
2083
2084 * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
2085 (CPPFLAGS): Use $(defines) in place of $(+defines).
2086 Replace -D_LIBC with -include $(..)libc-symbols.h.
2087
2088 * stdio/freopen.c: Set seen bit before calling fclose.
2089
2090Mon Feb 6 18:34:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2091
2092 * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
2093 successes and each kind of failure. Return EPERM or EACCES only
2094 if every task failed that way.
2095
2096 * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
2097 correctly.
2098
2099 * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
2100 or resume the process after frobbing.
2101
2102 * hurd/hurdsig.c: Use spin lock operations on sigstate locks
2103 throughout.
2104 (_hurd_thread_sigstate): Don't lock the sigstate lock.
2105 (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
2106 repeated sequences with calls to it. Don't expect the sigstate
2107 lock to be held on entry; lock it just before examining sigaction.
2108 In handler case, check SS->critical_section after calling
2109 abort_rpcs; if set, mark the signal pending and resume the thread.
2110 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
2111 (_hurd_self_sigstate): Don't lock the sigstate lock.
2112 (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
2113 _hurd_self_sigstate_unlocked.
2114 * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
2115 the sigstate lock.
2116 * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
2117 Don't expect _hurd_self_sigstate to lock it. Fix critical section
2118 locking.
2119 * hurd/hurd-raise.c: Likewise.
2120 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
2121 * sysdeps/mach/hurd/sigpending.c: Likewise.
2122 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
2123 * sysdeps/mach/hurd/sigaction.c: Likewise.
2124 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
2125 * hurd/fd-write.c: Likewise.
2126 * hurd/fd-read.c: Likewise.
2127 * sysdeps/mach/hurd/ioctl.c: Likewise.
2128 * sysdeps/mach/hurd/fork.c: Likewise.
2129 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
2130 * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
2131 * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
2132 * hurd/hurdmsg.c (get_int): Likewise.
2133
2134 * stdio/vfprintf.c: Include stddef.h. Fix typos in libio code.
2135
2136 * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
2137 global.
2138 (PAD): Caller changed.
2139 * stdio/printf_fp.c (__pad): Function removed.
2140 (PAD): Use __printf_pad instead.
2141
2142Sun Feb 5 17:59:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2143
2144 Merged new FP printer by Ulrich Drepper.
2145 * stdio/printf_fp.c: Rewrite by drepper.
2146 * stdio/Makefile (routines): Add ldbl2mpn.
2147 * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
2148 member.
2149 (union ieee854_long_double): New type, from drepper.
2150 (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
2151 * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
2152 * sysdeps/stub/ldbl2mpn.c: New file.
2153 * math/Makefile (routines): Add isinfl and isnanl.
2154 * sysdeps/ieee754/isinfl.c: New file.
2155 * sysdeps/stub/isinfl.c: New file.
2156 * sysdeps/ieee754/isnanl.c: New file.
2157 * sysdeps/stub/isnanl.c: New file.
2158
2159 * malloc/malloc.c (__malloc_extra_blocks): New variable.
2160 (malloc): When getting more core, get __malloc_extra_blocks extra;
2161 put the new block at the end of the free list and let the next loop
2162 iteration use the initial portion of it.
2163 * malloc/free.c (_free_internal): Account for twice
2164 __malloc_extra_blocks in deciding if we have so much extra memory
2165 we should return it to the system.
2166 * malloc/malloc.h (__malloc_extra_blocks): Declare it.
2167 * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
2168 const in parameter decl.
2169
2170 * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
2171
2172Fri Feb 3 18:15:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2173
2174 * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
2175
2176 * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
2177 * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
2178 * sysdeps/mips/bsd-setjmp.S: Likewise.
2179 * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
2180 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
2181 Use `long int' for sigcode. Use explicit register numbers instead
2182 of names.
2183 (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
2184 * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
2185
2186Thu Feb 2 20:06:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2187
2188 * hurd/hurdmalloc.c: Remove bogus bcopy decl.
2189
2190 * mach/mig_strncpy.c: Add missing `const' in prototype. Rewritten
2191 using __stpncpy.
2192
2193 * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
2194
5f9e57ba 2195 * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
28f540f4
RM
2196
2197Tue Jan 31 13:49:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2198
2199 * mach/mig_strncpy.c: Include mach.h instead of string.h. Use
2200 vm_size_t instead of size_t for arg and return types.
2201
2202 * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
2203 already does.
2204
2205Mon Jan 30 00:33:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2206
2207 * set-hooks.h (RUN_HOOK): Dereference PTR properly.
2208
2209 * configure.in (friendly stddef.h check): Write override defn for
2210 `stddef.h' Make variable.
2211 (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
2212
2213 * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
2214
2215 * Rules ($(objpfx)dummy.o): Write an empty function, not just an
2216 empty file.
2217
2218 * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
2219
2220Sat Jan 28 03:38:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2221
2222 * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
2223
2224 * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
2225 mach/machine/syscall_sw.h with this.
2226
2227Fri Jan 27 18:33:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2228
2229 * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
2230 instead of <lock-intern.h>.
2231 (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
2232 (_hurd_critical_section_lock): Use spin lock operators.
2233 Don't hold the sigstate lock, unlock it after setting the flag.
2234 (_hurd_critical_section_unlock): Take the sigstate lock
2235 to clear the flag; while holding it, check pending signals. After
2236 unlocking, sig_post ourselves if there were pending signals.
2237
2238 * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
2239 sigstate lock. If it is locked, clear SS->critical_section and
2240 SS->context, and unlock it.
2241
2242 * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
2243
2244 * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
2245 * munch-tmpl.c: Likewise.
2246
2247 * mach/Makefile (routines): Don't filter out syscall_% from
2248 $(mach-syscalls).
2249
2250Fri Jan 27 17:53:49 1995 Jim Meyering (meyering@comco.com)
2251
2252 * posix/fnmatch.c: Declare errno if it's not defined.
2253 That's simpler than testing #if !defined(__GNU_LIBRARY__)
2254 && !defined(STDC_HEADERS).
2255
2256Fri Jan 27 15:40:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2257
2258 * csu/Makefile: New file.
2259 * csu/initfini.c: New file.
2260 * Makefile (+other_dirs): Add csu.
2261 (+init): Variable renamed to libc-init. All references changed.
2262 (aux): Remove start.
2263 (install-lib): Variable removed.
2264 (crt0.o, Mcrt1.o crt1.o): Targets removed.
2265
2266 * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
2267 and $(objpfx)config.h.
2268 (static deps of RPC alias *.o): Removed.
2269
2270 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
2271 Protect macros with this.
2272 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
2273 * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
2274 * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
2275 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
2276 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
2277 * sysdeps/unix/mips/sysdep.h: Likewise.
2278
2279Thu Jan 26 00:02:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2280
2281 * Makerules (compile.[Sc]): Match gcc in $(CC) better.
2282 (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
2283
2284 * hurd/intr-rpc.awk: Emit weak alias.
2285
2286 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
2287 __getpgrp.
2288
2289 * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
2290 this.
2291 * sysdeps/unix/i386/sysdep.h: Likewise.
2292 * sysdeps/unix/sparc/sysdep.h: Likewise.
2293
2294 * io/ftw.c: Avoid `ret' as variable name.
2295 * posix/glob.c: Likewise.
2296
2297 * ctype/ctype.h (_ISalpha): Define as its own bit.
2298 * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
2299
2300 * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
2301 DEFINE_HOOK with this.
2302
2303Wed Jan 25 00:45:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2304
2305 * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
2306 * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
2307 * mach/shortcut.awk: Emit weak alias.
2308 * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
2309 * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
2310 __ names.
2311 * mach/Makefile (lock): Remove spin-syms.
2312 (routines): Remove __ names, vm_page_size, msgserver_t.
2313 ($(mach-syscalls) rule): Generate files without __, add weak alias.
2314 Remove symbol alias file rule.
2315 ($(mach-shortcuts) rule): Likewise.
2316 [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
2317 * mach/Machrules (if-calls.c): Variable and rule removed.
2318 (interface-headers): Don't add $($(if)-calls).
2319 (transform-user-stub): Define to add weak alias.
2320 * set-hooks.h: Use new libc-symbols.h set access macros.
2321 * time/Makefile (routines): Remove __ names.
2322 (aux): Variable removed.
2323 * hurd/Makefile: Likewise.
2324 * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
2325 (data_start): Define as weak alias for __data_start.
2326 * sysdeps/mach/hurd/start.c: Likewise.
2327 * sysdeps/unix/sparc/start.c: Likewise.
2328 * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
2329 sys_errlist.
2330 * sysdeps/mach/hurd/errlist.awk: Likewise.
2331 * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
2332 alias for __environ.
2333 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
2334 * sysdeps/stub/setdomain.c: Use new stub_warning macro.
2335 * sysdeps/stub/getdomain.c: Likewise.
2336 * sysdeps/stub/vhangup.c: Likewise.
2337 * sysdeps/stub/swapon.c: Likewise.
2338 * sysdeps/stub/sendmsg.c: Likewise.
2339 * sysdeps/stub/recvmsg.c: Likewise.
2340 * sysdeps/stub/acct.c: Likewise.
2341 * sysdeps/stub/isinf.c: Likewise. Add weak alias isinf for __isinf.
2342 * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
2343 * sysdeps/posix/libc_fatal.c: Likewise.
2344 * sysdeps/i386/abort.c: Likewise.
2345 * sysdeps/i386/__longjmp.c: Likewise.
2346 * sysdeps/generic/make_siglist.c: Emit defn always for
2347 _sys_siglist. Emit weak alias to sys_siglist.
2348 * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
2349 * sysdeps/ieee754/log10.c: Likewise.
2350 * time/difftime.c: Likewise.
2351 * stdlib/random.c (srand): Define as weak alias for __srandom.
2352 * stdlib/exit.c: Remove obsolete __NORETURN keyword. Use set-hooks
2353 macros for __libc_atexit.
2354 * stdlib/Makefile (routines): Remove __random, srand.
2355 * stdio/gets.c: Use new link_warning macro instead of old
2356 warn_references.
2357 * stdio/Makefile (routines): Remove __ names.
2358 (aux): Remove syms-stdio.
2359 * socket/Makefile (routines): Added e on getpeernam and getsocknam.
2360 * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
2361 * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
2362 * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
2363 * stdio/stdio.h: Likewise.
2364 * misc/Makefile (routines): Remove __ names.
2365 (aux): Remove data_start.
2366 * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
2367 * sysdeps/mach/hurd/brk.c: Likewise.
2368 * hurd/hurdid.c: Likewise.
2369 * hurd/hurdpid.c: Likewise.
2370 * hurd/openport.c: Likewise.
2371 * hurd/hurdsock.c: Likewise.
2372 * hurd/hurdsig.c: Likewise.
2373 * hurd/hurdrlimit.c: Likewise.
2374 * hurd/hurdmalloc.c: Likewise.
2375 * hurd/dtable.c: Likewise.
2376 * hurd/setauth.c: Likewise.
2377 * misc/progname.c: Likewise.
2378 * misc/init-misc.c: Likewise.
2379 * sysdeps/generic/vfork.c: Likewise.
2380 * sysdeps/unix/bsd/init-posix.c: Likewise.
2381 * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
2382 * time/time.h: Likewise.
2383 * math/Makefile (routines): Remove __ names.
2384 * io/Makefile: Likewise.
2385 * termios/Makefile: Likewise.
2386 * resource/Makefile: Likewise.
2387 * signal/Makefile: Likewise.
2388 * dirent/Makefile: Likewise.
2389 * assert/assert.h: Replace __NORETURN keyword with __attribute__
2390 uses. Functions return void and macros deal with this.
2391 * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
2392 Return void. Don't include gnu-stabs.h.
2393 * assert/assert.c: Likewise.
2394 * posix/Makefile (routines): Remove __ names, setpgrp. Add
2395 getpgid.
2396 (aux): Remove environ.
2397 * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
2398 __attribute__ use.
2399 * posix/unistd.h (_exit): Likewise.
2400 (__getpgrp, __setpgrp): Declarations removed.
2401 (__getpgid, getpid): Declare these.
2402
2403 * configure.in (host_os=gnuelf|linuxelf): Set elf=yes. Do AC_SUBST
2404 for gnu_ld, gnu_as, elf, and weak. Call AC_LINK_FILEES on
2405 $libc_link_{sources,dests}.
2406 * sysdeps/unix/configure.in: Remove __ from file names. Don't
2407 create files, just add to libc_link_{dests,sources}.
2408
2409 * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
2410
2411 * config.h.in: Add #undefs used by sysdeps configures.
2412
2413 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
2414 __setpgid, __getpgid.
2415 * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
2416 from setpgrp.c.
2417 * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
2418 from __getpgrp.c.
2419 * sysdeps/unix/bsd/getpgrp.c: File removed.
2420 * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
2421 Call __getpgid with zero.
2422 * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
2423 weak aliases setpgid and setpgrp.
2424 * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
2425 * sysdeps/unix/common/setpgid.S: Likewise.
2426 * sysdeps/mach/hurd/setpgid.c: Likewise.
2427 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
2428 Use subcall 5 to __pgrpsys.
2429 * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
2430 weak alias getpgid.
2431 * sysdeps/mach/hurd/getpgid.c: Likewise.
2432 * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
2433 * sysdeps/unix/common/getpgid.S: Likewise.
2434 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
2435 Use subcall 4 to __pgrpsys.
2436 * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
2437 * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
2438 * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
2439 * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
2440 * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
2441 * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
2442 * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
2443 * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
2444 * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
2445 * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
2446 * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
2447 * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
2448
2449 * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
2450 from __getdents.S.
2451
2452 * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
2453 * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
2454 warning.
2455 * sysdeps/stub/fexecve.c: Likewise.
2456 * sysdeps/stub/fchdir.c: Likewise.
2457 * sysdeps/stub/fchflags.c: Likewise.
2458 * sysdeps/stub/chflags.c: Likewise.
2459
2460 * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
2461 * sysdeps/generic/abort.c: Likewise.
2462 * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
2463
2464 * hurd/hurdioctl.c: Include hurd/ioctl.h.
2465 (_hurd_ioctl_handler_lists): Define this set.
2466 (_hurd_lookup_ioctl_handler): New function.
2467 * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
2468 * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
2469 (_hurd_lookup_ioctl_handler): Declare it.
2470 (ioctl_handler_t): New typedef. Use it throughout.
2471 * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
2472 (_hurd_ioctl_handler_lists): Don't define.
2473 (__ioctl): Call _hurd_lookup_ioctl_handler.
2474
2475 * stdlib/strtol.c (maxquad): Make this const.
2476 [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
2477
2478 * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
2479 any compile tests.
2480
2481 * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
2482 __msg_sig_post_request, not __sig_post_request.
2483
2484 * misc/getusersh.c: Renamed to getusershell.c.
2485 * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
2486 * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
2487 * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
2488 * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
2489
2490Tue Jan 24 00:14:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2491
2492 * sysdeps/stub/settod.c: Renamed to settimeofday.c.
2493 * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
2494 * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
2495 * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
2496 * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
2497 * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
2498 * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
2499 * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
2500 * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
2501 * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
2502 * sysdeps/stub/getprio.c: Renamed to getpriority.c.
2503 * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
2504 * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
2505 * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
2506 * sysdeps/stub/setprio.c: Renamed to setpriority.c.
2507 * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
2508 * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
2509 * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
2510 * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
2511 * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
2512 * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
2513 * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
2514 * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
2515 * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
2516 * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
2517 * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
2518 * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
2519 * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
2520 * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
2521 * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
2522
2523 * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
2524 of __sig_post.
2525 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
2526 * sysdeps/mach/hurd/kill.c: Likewise.
2527 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
2528
2529 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
2530 [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
2531
2532 * sysdeps/stub/remove.c: New file.
2533 * sysdeps/posix/remove.c: New file.
2534
2535Mon Jan 23 03:26:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2536
2537 * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
2538 mktime.
2539 * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
2540 __mig_strncpy.
2541 * mach/msg-destroy.c: Renamed from __msg_dest.c.
2542 (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
2543 * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
2544 * time/tzset.c (tzname, daylight, timezone): Define as weak
2545 aliases for __ names.
2546 * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
2547 * hurd/hurdlookup.c: Add weak aliases for non-__ names.
2548 * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
2549 being defined.
2550
2551Sun Jan 22 15:19:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2552
2553 * string/Makefile (routines): Remove __ names, index, rindex, and
2554 bcmp.
2555 * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
2556 alias for strchr.
2557 * sysdeps/generic/strchr.c: Likewise.
2558 * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
2559 alias for strrchr.
2560 * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
2561 alias for memcmp.
2562
2563 * malloc/free.c (cfree): Define this function, with weak_alias if
2564 available, otherwise a C function.
2565 * malloc/Makefile (gmalloc-routines): Remove cfree.
2566
2567Sat Jan 21 08:08:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2568
2569 * stdio/fseek.c: Do move bufp by O when that puts it exactly at
2570 get_limit. This has the effect of no-op'ing properly for zero.
2571
2572 * configure.in: Add AC_CONFIG_HEADER(config.h).
2573 (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
2574 * config.h.in: New file.
2575
2576 * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
2577 All code converted to use weak symbols, defined in the files which
2578 define the real code (with the __ names, the non-__ names are weak).
2579 All old symbol alias files removed.
2580 Many files renamed to remove __ prefix since there is now just
2581 the one file for both the __ and non-__ name for each function.
2582 * libc-symbols.h: New file.
2583 * set-hooks.h: Use libc-symbols.h macros for accessing symbol
2584 sets.
2585 * gnu-stabs.h: Prepend #error this file is obsolete.
2586 * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
2587 * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
2588 access.
2589 * sysdeps/unix/common/__access.S: Likewise.
2590 * sysdeps/mach/hurd/__access.c: Likewise.
2591 * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
2592 adjtime.
2593 * sysdeps/unix/common/__adjtime.S: Likewise.
2594 * sysdeps/mach/__adjtime.c: Likewise.
2595 * sysdeps/mach/hurd/__adjtime.c: Likewise.
2596 * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
2597 * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
2598 * sysdeps/unix/bsd/vax/__brk.S: Likewise.
2599 * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
2600 * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
2601 * sysdeps/unix/i386/__brk.S: Likewise.
2602 * sysdeps/unix/sparc/__brk.S: Likewise.
2603 * sysdeps/unix/mips/__brk.S: Likewise.
2604 * sysdeps/mach/hurd/__brk.c: Likewise.
2605 * sysdeps/standalone/__brk.c: Likewise.
2606 * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
2607 * sysdeps/unix/__chdir.S: Likewise.
2608 * sysdeps/mach/hurd/__chdir.c: Likewise.
2609 * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
2610 * sysdeps/unix/__chmod.S: Likewise.
2611 * sysdeps/mach/hurd/__chmod.c: Likewise.
2612 * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
2613 * sysdeps/unix/__chown.S: Likewise.
2614 * sysdeps/mach/hurd/__chown.c: Likewise.
2615 * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
2616 * sysdeps/unix/__close.S: Likewise.
2617 * sysdeps/mach/hurd/__close.c: Likewise.
2618 * sysdeps/standalone/__close.c: Likewise.
2619 * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
2620 alias copysign.
2621 * sysdeps/ieee754/__copysign.c: Likewise.
2622 * sysdeps/alpha/__copysign.c: Likewise.
2623 * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
2624 * sysdeps/m68k/fpu/__drem.c: Likewise.
2625 * sysdeps/stub/__drem.c: Likewise.
2626 * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
2627 * sysdeps/stub/__dup.c: Likewise.
2628 * sysdeps/unix/__dup.S: Likewise.
2629 * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
2630 * sysdeps/stub/__dup2.c: Likewise.
2631 * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
2632 * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
2633 * sysdeps/unix/common/__dup2.S: Likewise.
2634 * sysdeps/mach/hurd/__dup2.c: Likewise.
2635 * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
2636 execve.
2637 * sysdeps/unix/__execve.S: Likewise.
2638 * sysdeps/mach/hurd/__execve.c: Likewise.
2639 * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
2640 expm1.
2641 * sysdeps/m68k/fpu/__expm1.c: Likewise.
2642 * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
2643 fchmod.
2644 * sysdeps/unix/common/__fchmod.S: Likewise.
2645 * sysdeps/mach/hurd/__fchmod.c: Likewise.
2646 * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
2647 fchown.
2648 * sysdeps/unix/common/__fchown.S: Likewise.
2649 * sysdeps/mach/hurd/__fchown.c: Likewise.
2650 * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
2651 * sysdeps/unix/__fcntl.S: Likewise.
2652 * sysdeps/mach/hurd/__fcntl.c: Likewise.
2653 * math/__finite.c: Renamed to finite.c; added weak alias finite.
2654 * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
2655 * sysdeps/stub/__flock.c: Likewise.
2656 * sysdeps/unix/bsd/__flock.S: Likewise.
2657 * sysdeps/mach/hurd/__flock.c: Likewise.
2658 * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
2659 fopenport.
2660 * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
2661 * sysdeps/unix/__fork.S: Likewise.
2662 * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
2663 * sysdeps/unix/i386/__fork.S: Likewise.
2664 * sysdeps/unix/sparc/__fork.S: Likewise.
2665 * sysdeps/unix/mips/__fork.S: Likewise.
2666 * sysdeps/mach/hurd/__fork.c: Likewise.
2667 * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
2668 alias fpathconf.
2669 * sysdeps/stub/__fpathcon.c: Likewise.
2670 * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
2671 * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
2672 * sysdeps/unix/__fstat.S: Likewise.
2673 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
2674 * sysdeps/mach/hurd/__fstat.c: Likewise.
2675 * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
2676 getdelim.
2677 * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
2678 alias getdents.
2679 * sysdeps/unix/__getdents.c: Likewise.
2680 * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
2681 * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
2682 * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
2683 * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
2684 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
2685 * sysdeps/unix/sysv/__getdents.c: Likewise.
2686 * sysdeps/mach/hurd/__getdents.c: Likewise.
2687 * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
2688 * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
2689 alias getdtablesize.
2690 * sysdeps/stub/__getdtsz.c: Likewise.
2691 * sysdeps/unix/bsd/__getdtsz.S: Likewise.
2692 * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
2693 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
2694 * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
2695 getegid.
2696 * sysdeps/unix/__getegid.S: Likewise.
2697 * sysdeps/mach/hurd/__getegid.c: Likewise.
2698 * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
2699 geteuid.
2700 * sysdeps/unix/__geteuid.S: Likewise.
2701 * sysdeps/mach/hurd/__geteuid.c: Likewise.
2702 * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
2703 getgid.
2704 * sysdeps/unix/__getgid.S: Likewise.
2705 * sysdeps/mach/hurd/__getgid.c: Likewise.
2706 * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
2707 alias getgroups.
2708 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
2709 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
2710 * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
2711 * sysdeps/unix/common/__getgrps.S: Likewise.
2712 * sysdeps/mach/hurd/__getgrps.c: Likewise.
2713 * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
2714 alias gethostname.
2715 * sysdeps/unix/inet/__gethstnm.S: Likewise.
2716 * sysdeps/unix/sysv/__gethstnm.c: Likewise.
2717 * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
2718 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
2719 * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
2720 alias getitimer.
2721 * sysdeps/unix/common/__getitmr.S: Likewise.
2722 * sysdeps/mach/hurd/__getitmr.c: Likewise.
2723 * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
2724 * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
2725 alias getpagesize.
2726 * sysdeps/stub/__getpgsz.c: Likewise.
2727 * sysdeps/unix/__getpgsz.c: Likewise.
2728 * sysdeps/unix/bsd/__getpgsz.S: Likewise.
2729 * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
2730 * sysdeps/mach/__getpgsz.c: Likewise.
2731 * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
2732 getpid.
2733 * sysdeps/unix/__getpid.S: Likewise.
2734 * sysdeps/mach/hurd/__getpid.c: Likewise.
2735 * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
2736 getppid.
2737 * sysdeps/unix/__getppid.S: Likewise.
2738 * sysdeps/mach/hurd/__getppid.c: Likewise.
2739 * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
2740 alias gettimeofday.
2741 * sysdeps/stub/__gettod.c: Likewise.
2742 * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
2743 * sysdeps/unix/common/__gettod.S: Likewise.
2744 * sysdeps/mach/__gettod.c: Likewise.
2745 * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
2746 getuid.
2747 * sysdeps/unix/__getuid.S: Likewise.
2748 * sysdeps/mach/hurd/__getuid.c: Likewise.
2749 * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
2750 alias infnan.
2751 * sysdeps/ieee754/__infnan.c: Likewise.
2752 * sysdeps/vax/__infnan.c: Likewise.
2753 * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
2754 * sysdeps/unix/__ioctl.S: Likewise.
2755 * sysdeps/mach/hurd/__ioctl.c: Likewise.
2756 * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
2757 isatty.
2758 * sysdeps/stub/__isatty.c: Likewise.
2759 * sysdeps/unix/bsd/__isatty.c: Likewise.
2760 * sysdeps/mach/hurd/__isatty.c: Likewise.
2761 * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
2762 isinf.
2763 * sysdeps/m68k/fpu/__isinf.c: Likewise.
2764 * sysdeps/stub/__isinf.c: Likewise.
2765 * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
2766 isnan.
2767 * sysdeps/ieee754/__isnan.c: Likewise.
2768 * sysdeps/m68k/fpu/__isnan.c: Likewise.
2769 * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
2770 * sysdeps/unix/__kill.S: Likewise.
2771 * sysdeps/mach/hurd/__kill.c: Likewise.
2772 * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
2773 * sysdeps/unix/__link.S: Likewise.
2774 * sysdeps/mach/hurd/__link.c: Likewise.
2775 * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
2776 * sysdeps/m68k/fpu/__logb.c: Likewise.
2777 * sysdeps/stub/__logb.c: Likewise.
2778 * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
2779 * sysdeps/unix/__lseek.S: Likewise.
2780 * sysdeps/mach/hurd/__lseek.c: Likewise.
2781 * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
2782 lstat.
2783 * sysdeps/stub/__lstat.c: Likewise.
2784 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
2785 * sysdeps/unix/common/__lstat.S: Likewise.
2786 * sysdeps/mach/hurd/__lstat.c: Likewise.
2787 * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
2788 alias memccpy.
2789 * sysdeps/vax/__memccpy.c: Likewise.
2790 * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
2791 * sysdeps/unix/sysv/__mkdir.c: Likewise.
2792 * sysdeps/unix/common/__mkdir.S: Likewise.
2793 * sysdeps/mach/hurd/__mkdir.c: Likewise.
2794 * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
2795 * sysdeps/unix/__mknod.S: Likewise.
2796 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
2797 * sysdeps/mach/hurd/__mknod.c: Likewise.
2798 * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
2799 * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
2800 mach_msg_server.
2801 * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
2802 * sysdeps/unix/__open.S: Likewise.
2803 * sysdeps/mach/hurd/__open.c: Likewise.
2804 * sysdeps/standalone/__open.c: Likewise.
2805 * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
2806 alias pathconf.
2807 * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
2808 * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
2809 * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
2810 * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
2811 * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
2812 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
2813 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
2814 * sysdeps/unix/i386/__pipe.S: Likewise.
2815 * sysdeps/unix/sparc/__pipe.S: Likewise.
2816 * sysdeps/unix/mips/__pipe.S: Likewise.
2817 * sysdeps/mach/hurd/__pipe.c: Likewise.
2818 * stdlib/__random.c: Renamed to random.c; added weak alias random.
2819 * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
2820 * sysdeps/unix/__read.S: Likewise.
2821 * sysdeps/mach/hurd/__read.c: Likewise.
2822 * sysdeps/standalone/__read.c: Likewise.
2823 * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
2824 alias readlink.
2825 * sysdeps/unix/common/__readlink.S: Likewise.
2826 * sysdeps/mach/hurd/__readlink.c: Likewise.
2827 * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
2828 * sysdeps/m68k/fpu/__rint.c: Likewise.
2829 * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
2830 * sysdeps/unix/sysv/__rmdir.c: Likewise.
2831 * sysdeps/unix/common/__rmdir.S: Likewise.
2832 * sysdeps/mach/hurd/__rmdir.c: Likewise.
2833 * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
2834 * sysdeps/stub/__sbrk.c: Likewise.
2835 * sysdeps/mach/hurd/__sbrk.c: Likewise.
2836 * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
2837 * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
2838 select.
2839 * sysdeps/unix/common/__select.S: Likewise.
2840 * sysdeps/mach/hurd/__select.c: Likewise.
2841 * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
2842 * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
2843 setgid.
2844 * sysdeps/unix/__setgid.S: Likewise.
2845 * sysdeps/unix/bsd/__setgid.c: Likewise.
2846 * sysdeps/mach/hurd/__setgid.c: Likewise.
2847 * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
2848 setitmr
2849 * sysdeps/unix/common/__setitmr.S: Likewise.
2850 * sysdeps/mach/hurd/__setitmr.c: Likewise.
2851 * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
2852 setpgrp
2853 * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
2854 * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
2855 * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
2856 * sysdeps/unix/common/__setpgrp.S: Likewise.
2857 * sysdeps/mach/hurd/__setpgrp.c: Likewise.
2858 * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
2859 alias setregid.
2860 * sysdeps/unix/common/__setregid.S: Likewise.
2861 * sysdeps/mach/hurd/__setregid.c: Likewise.
2862 * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
2863 alias setreuid.
2864 * sysdeps/unix/common/__setreuid.S: Likewise.
2865 * sysdeps/mach/hurd/__setreuid.c: Likewise.
2866 * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
2867 setsid.
2868 * sysdeps/unix/bsd/__setsid.c: Likewise.
2869 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
2870 * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
2871 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
2872 * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
2873 * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
2874 * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
2875 * sysdeps/mach/hurd/__setsid.c: Likewise.
2876 * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
2877 settimeofday.
2878 * sysdeps/unix/bsd/__settod.S: Likewise.
2879 * sysdeps/unix/sysv/__settod.c: Likewise.
2880 * sysdeps/mach/hurd/__settod.c: Likewise.
2881 * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
2882 setuid.
2883 * sysdeps/unix/__setuid.S: Likewise.
2884 * sysdeps/unix/bsd/__setuid.c: Likewise.
2885 * sysdeps/mach/hurd/__setuid.c: Likewise.
2886 * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
2887 alias sigblock.
2888 * sysdeps/stub/__sigblock.c: Likewise.
2889 * sysdeps/unix/bsd/__sigblock.S: Likewise.
2890 * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
2891 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
2892 * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
2893 alias sigpause.
2894 * sysdeps/stub/__sigpause.c: Likewise.
2895 * sysdeps/unix/bsd/__sigpause.S: Likewise.
2896 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
2897 * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
2898 alias sigprocmask.
2899 * sysdeps/unix/bsd/__sigproc.c: Likewise.
2900 * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
2901 * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
2902 * sysdeps/mach/hurd/__sigproc.c: Likewise.
2903 * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
2904 alias sigreturn.
2905 * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
2906 * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
2907 * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
2908 * sysdeps/unix/i386/__sigret.S: Likewise.
2909 * sysdeps/unix/mips/__sigret.S: Likewise.
2910 * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
2911 * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
2912 * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
2913 * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
2914 sigvec.
2915 * sysdeps/stub/__sigvec.c: Likewise.
2916 * sysdeps/unix/bsd/__sigvec.S: Likewise.
2917 * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
2918 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
2919 * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
2920 * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
2921 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
2922 * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
2923 * sysdeps/unix/__stat.S: Likewise.
2924 * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
2925 * sysdeps/mach/hurd/__stat.c: Likewise.
2926 * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
2927 alias stpncpy.
2928 * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
2929 symlink.
2930 * sysdeps/unix/common/__symlink.S: Likewise.
2931 * sysdeps/mach/hurd/__symlink.c: Likewise.
2932 * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
2933 alias sysconf.
2934 * sysdeps/stub/__sysconf.c: Likewise.
2935 * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
2936 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
2937 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
2938 * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
2939 * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
2940 * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
2941 * sysdeps/unix/bsd/__times.c: Likewise.
2942 * sysdeps/unix/sysv/__times.S: Likewise.
2943 * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
2944 * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
2945 * sysdeps/unix/__umask.S: Likewise.
2946 * sysdeps/mach/hurd/__umask.c: Likewise.
2947 * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
2948 unlink.
2949 * sysdeps/unix/__unlink.S: Likewise.
2950 * sysdeps/mach/hurd/__unlink.c: Likewise.
2951 * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
2952 utimes.
2953 * sysdeps/unix/bsd/__utimes.S: Likewise.
2954 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
2955 * sysdeps/mach/hurd/__utimes.c: Likewise.
2956 * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
2957 vfork.
2958 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
2959 * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
2960 * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
2961 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
2962 * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
2963 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
2964 * sysdeps/unix/sparc/__vfork.S: Likewise.
2965 * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
2966 * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
2967 * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
2968 * sysdeps/stub/__wait.c: Likewise.
2969 * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
2970 * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
2971 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
2972 * sysdeps/unix/bsd/vax/__wait.S: Likewise.
2973 * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
2974 * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
2975 * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
2976 * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
2977 * sysdeps/unix/i386/__wait.S: Likewise.
2978 * sysdeps/unix/mips/__wait.S: Likewise.
2979 * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
2980 * sysdeps/stub/__wait3.c: Likewise.
2981 * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
2982 * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
2983 * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
2984 * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
2985 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
2986 * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
2987 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
2988 * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
2989 * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
2990 * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
2991 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
2992 * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
2993 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
2994 * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
2995 * sysdeps/mach/hurd/__wait4.c: Likewise.
2996 * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
2997 waitpid.
2998 * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
2999 * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
3000 * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
3001 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
3002 * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
3003 * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
3004 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
3005 * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
3006 * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
3007 * sysdeps/unix/__write.S: Likewise.
3008 * sysdeps/mach/hurd/__write.c: Likewise.
3009 * sysdeps/standalone/__write.c: Likewise.
3010 * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
3011 alias tcgetattr.
3012 * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
3013 * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
3014 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
3015 * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
3016 * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
3017 alias sigaction.
3018 * sysdeps/unix/bsd/__sigact.c: Likewise.
3019 * sysdeps/unix/sysv/__sigact.c: Likewise.
3020 * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
3021 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
3022 * sysdeps/mach/hurd/__sigact.c: Likewise.
3023 * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
3024 alias sigsetmask.
3025 * sysdeps/stub/__sigstmsk.c: Likewise.
3026 * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
3027 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
3028 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
3029 * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
3030 alias getrusage.
3031 * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
3032 * sysdeps/unix/common/__getrusag.S: Likewise.
3033 * hurd/task2pid.c: File removed.
3034 * hurd/setauth.c: File removed.
3035 * hurd/pid2task.c: File removed.
3036 * hurd/hurdsyms.c: File removed.
3037 * hurd/getdport.c: File removed.
3038 * hurd/fopenport.c: File removed.
3039 * mach/thread-sym.c: File removed.
3040 * mach/spin-syms.c: File removed.
3041 * mach/msgserver_t.c: File removed.
3042 * mach/msgserver.c: File removed.
3043 * mach/msg.c: File removed.
3044 * mach/mig_syms.c: File removed.
3045 * malloc/mcheck-init.c: File removed.
3046 * malloc/cfree.c: File removed.
3047 * io/flock.c: File removed.
3048 * io/write.c: File removed.
3049 * io/unlink.c: File removed.
3050 * io/umask.c: File removed.
3051 * io/symlink.c: File removed.
3052 * io/rmdir.c: File removed.
3053 * io/readlink.c: File removed.
3054 * io/read.c: File removed.
3055 * io/pipe.c: File removed.
3056 * io/open.c: File removed.
3057 * io/mkdir.c: File removed.
3058 * io/lstat.c: File removed.
3059 * io/lseek.c: File removed.
3060 * io/link.c: File removed.
3061 * io/isatty.c: File removed.
3062 * io/stat.c: File removed.
3063 * io/fstat.c: File removed.
3064 * io/fchown.c: File removed.
3065 * io/fchmod.c: File removed.
3066 * io/dup2.c: File removed.
3067 * io/dup.c: File removed.
3068 * io/close.c: File removed.
3069 * io/fcntl.c: File removed.
3070 * io/chmod.c: File removed.
3071 * io/chdir.c: File removed.
3072 * io/access.c: File removed.
3073 * io/chown.c: File removed.
3074 * time/tzset.c: File removed.
3075 * time/timelocal.c: File removed.
3076 * time/syms-time.c: File removed.
3077 * time/settod.c: File removed.
3078 * time/setitmr.c: File removed.
3079 * time/gettod.c: File removed.
3080 * time/getitmr.c: File removed.
3081 * time/adjtime.c: File removed.
3082 * termios/tcgetattr.c: File removed.
3083 * string/stpncpy.c: File removed.
3084 * string/rindex.c: File removed.
3085 * string/memccpy.c: File removed.
3086 * string/index.c: File removed.
3087 * string/bcmp.c: File removed.
3088 * stdlib/srand.c: File removed.
3089 * stdlib/random.c: File removed.
3090 * stdio/vsscanf.c: File removed.
3091 * stdio/vfscanf.c: File removed.
3092 * stdio/syms-stdio.c: File removed.
3093 * stdio/remove.c: File removed.
3094 * stdio/getline.c: File removed.
3095 * stdio/getdelim.c: File removed.
3096 * signal/ssignal.c: File removed.
3097 * signal/sigvec.c: File removed.
3098 * signal/sigsetmask.c: File removed.
3099 * signal/sigret.c: File removed.
3100 * signal/sigproc.c: File removed.
3101 * signal/sigpause.c: File removed.
3102 * signal/sigblock.c: File removed.
3103 * signal/sigaction.c: File removed.
3104 * signal/kill.c: File removed.
3105 * signal/gsignal.c: File removed.
3106 * setjmp/siglongjmp.c: File removed.
3107 * setjmp/_longjmp.c: File removed.
3108 * resource/getrusage.c: File removed.
3109 * posix/waitpid.c: File removed.
3110 * posix/wait4.c: File removed.
3111 * posix/wait3.c: File removed.
3112 * posix/wait.c: File removed.
3113 * posix/times.c: File removed.
3114 * posix/sysconf.c: File removed.
3115 * posix/setuid.c: File removed.
3116 * posix/setsid.c: File removed.
3117 * posix/setpgrp.c: File removed.
3118 * posix/setpgid.c: File removed.
3119 * posix/setgid.c: File removed.
3120 * posix/pathconf.c: File removed.
3121 * posix/getuid.c: File removed.
3122 * posix/getppid.c: File removed.
3123 * posix/getpid.c: File removed.
3124 * posix/getgrps.c: File removed.
3125 * posix/getgid.c: File removed.
3126 * posix/geteuid.c: File removed.
3127 * posix/getegid.c: File removed.
3128 * posix/fpathcon.c: File removed.
3129 * posix/fork.c: File removed.
3130 * posix/execve.c: File removed.
3131 * posix/environ.c: File removed.
3132 * misc/utimes.c: File removed.
3133 * misc/setreuid.c: File removed.
3134 * misc/setregid.c: File removed.
3135 * misc/select.c: File removed.
3136 * misc/sbrk.c: File removed.
3137 * misc/mknod.c: File removed.
3138 * misc/ioctl.c: File removed.
3139 * misc/getpgsz.c: File removed.
3140 * misc/gethstnm.c: File removed.
3141 * misc/getdtsz.c: File removed.
3142 * misc/data_start.c: File removed.
3143 * misc/brk.c: File removed.
3144 * math/scalb.c: File removed.
3145 * math/rint.c: File removed.
3146 * math/logb.c: File removed.
3147 * math/isnan.c: File removed.
3148 * math/isinf.c: File removed.
3149 * math/infnan.c: File removed.
3150 * math/finite.c: File removed.
3151 * math/expm1.c: File removed.
3152 * math/drem.c: File removed.
3153 * math/copysign.c: File removed.
3154 * math/__scalb.c: File removed.
3155 * dirent/getdents.c: File removed.
3156
3157Fri Jan 20 16:11:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3158
3159 * sysdeps/generic/morecore.c (__default_morecore): Use
3160 __malloc_ptrdiff_t; don't cast arg to int.
3161
3162 * resolv/getnetnamadr.c: Include "conf/portability.h".
3163
3164Thu Jan 19 02:20:04 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3165
3166 * stdlib/strtol.c: Include errno.h.
3167 [QUAD] (ULONG_MAX): Define to a static variable initialized to
3168 ULONG_LONG_MAX. This is to work around a GCC bug in using the
3169 constant in arithmetic.
3170
3171 * posix/unistd.h (daemon): Declare it.
3172
3173 * malloc/mcheck-init.c: Remove GNU ld hacks.
3174 (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
3175 * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
3176 (initialize): Call the hook if set.
3177 * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
3178 (__malloc_initialize_hook): Declare new hook variable.
3179
3180Wed Jan 18 01:43:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3181
3182 * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
3183 * hurd/hurdpid.c: Likewise.
3184 * hurd/hurdauth.c: Likewise.
3185
3186Tue Jan 17 03:16:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3187
3188 * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
3189 if any are successful.
3190
3191 * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
3192 (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
3193 _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
3194 functions.
3195 (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
3196
3197 * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
3198 * hurd/hurd-raise.c: Likewise.
3199 * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
3200
3201 * sysdeps/mach/hurd/ptrace.c: New file.
3202
3203 * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
3204 interface, which has normal EINTR semantics. Instead of waiting
3205 for io_select_done notification messages, send io_select messages
3206 with short reply timeout and then wait for io_select_reply
3207 messages.
3208
3209 * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
3210 EXEC_INHERITED) to file_exec.
3211
3212 * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
3213 use sig_post_untraced_reply. All callers changed.
3214 (abort_thread, abort_rpcs): Take same new arg and pass it through.
3215 All callers changed.
3216 (_hurd_internal_post_signal): Take new arg UNTRACED.
3217 If zero and process is traced, stop with SIGNO as stop signal. If
3218 nonzero, resume process before delivering signal (unless
3219 ACT==stop). Expand local fn sigwakeup into block at end taken iff
3220 SIGNO!=0.
3221 (signal_allowed): New function, broken out of _S_sig_post.
3222 (_S_sig_post): Call it. Pass UNTRACED arg of false to
3223 _hurd_internal_post_signal.
3224 (_S_sig_post_untraced): New function. Just like _S_sig_post, but
3225 pass true for UNTRACED.
3226 * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
3227 UNTRACED.
3228 * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
3229 to _hurd_internal_post_signal (value zero).
3230
3231Mon Jan 16 16:40:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3232
3233 * hurd/hurdinit.c (_hurd_exec_flags): New variable.
3234 (_hurd_init): Initialize it from FLAGS arg.
3235 (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
3236 raise a SIGTRAP signal (with a sigcode of zero).
3237 * hurd/hurd.h (_hurd_exec_flags): Declare it.
3238
3239 * Version 1.09.5.
3240
3241Mon Jan 16 16:16:55 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3242
3243 * malloc/malloc.c (malloc): Fix 1-off in previous change.
3244
3245Mon Jan 16 15:49:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3246
3247 * posix/glob/Makefile.in: Remove config.h and config.log.
3248
3249Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3250
3251 * posix/glob/configure.in: Add AC_CONST check.
3252
3253 * conf/portability.h: #undef sun.
3254 * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
3255 * resolv/getnetnamadr.c: Likewise.
3256
3257 * socket/Makefile (headers): Add sockaddrcom.h.
3258 * inet/netinet/in.h: Include <sockaddrcom.h>.
3259 (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
3260 * socket/sys/un.h (struct sockaddr_in): Likewise.
3261 * socket/sys/socket.h (struct sockaddr): Likewise.
3262 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
3263 * sysdeps/generic/sockaddrcom.h: New file.
3264
3265 * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
3266 * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
3267 F_FREESP): New macros.
3268 * sysdeps/posix/truncate.c: New file.
3269
3270 * malloc/malloc.c (malloc): Fix typos in RMS's change.
3271
3272 * malloc/Makefile (dist-routines): Add malloc-find.
3273 * malloc/malloc.h (malloc_find_object_address): Declare it.
3274 * malloc/malloc-find.c: New file.
3275
3276 * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
3277 __malloc_size_t.
3278 (malloc_info): Use that type for member `busy.info.size'.
3279
3280 * stdlib/strtol.c: Change uses of `long' keyword throughout to use
3281 `LONG' macro.
3282 [! QUAD] (LONG): Define as long.
3283 [QUAD] (LONG): Define as long long.
3284 [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
3285 versions.
3286 [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
3287 * stdlib/Makefile (routines): Add strtoq and strtouq.
3288 * stdlib/strtoq.c, stdlib/strtouq.c: New files.
3289 * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
3290 Declare them.
3291
3292 * stdio/vfprintf.c: If there was a precision specified, ignore the
3293 0 flag and always pad with spaces.
3294
3295 * stdio/vfprintf.c: Don't use strchr to skip text until next %.
3296 Use a loop and also stop on first !isascii char.
3297
3298Wed Jan 11 00:07:10 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3299
3300 * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
3301
3302 * malloc/malloc.c (malloc): For a multi-block object, store a
3303 negative number into the busy.info.size of all but the first block.
3304
3305Tue Jan 10 13:45:20 1995 Brendan Kehoe <brendan@zen.org>
3306
3307 * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
3308 instead of t0, t1, and t2.
3309
3310Tue Jan 10 05:53:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3311
3312 * malloc/memalign.c (__memalign_hook): New variable.
3313 (memalign): Call it if set.
3314 * malloc/malloc.h (__memalign_hook): Declare new variable.
3315
3316Wed Dec 28 03:27:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3317
3318 * conf/portability.h: Include string.h and stdlib.h.
3319 * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
3320 * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
3321 resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
3322 resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
3323 resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
3324
3325 * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro. Replace
3326 all uses of `extern __inline' with `__m81_inline'.
3327
3328 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
3329 * sysdeps/unix/__fork.S: Swap args in subl.
3330
3331 * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
3332 compatibility.
3333
3334Tue Dec 20 13:33:20 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
3335
3336 * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
3337 of swtch.
3338 * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
3339 * mach/spin-solid.c (__spin_lock_solid): Likewise.
3340
3341Thu Dec 15 12:01:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3342
3343 * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
3344 for PBUF.
3345 (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
3346
3347 * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
3348
3349Wed Dec 14 18:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3350
3351 * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
3352 in `bis' insn; immediate must be second.
3353
3354 * sysdeps/unix/__fork.S: Use subl instead of decl.
3355 * sysdeps/unix/i386/__fork.S: New file.
3356
3357 * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
3358 Remove A macro; just use `asm volatile' with proper quotes in each
3359 line.
3360 * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
3361 jmp target register.
3362
3363 * time/africa, time/asia, time/australasia, time/emkdir.c,
3364 time/europe, time/ialloc.c, time/northamerica, time/private.h,
3365 time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
3366 and data from ADO 94h distribution.
3367
3368 * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
3369 __sigjmp_save in %g1 and jmp there. jmp cannot contain a complete
3370 absolute pointer. Put second store in jmp delay slot.
3371
3372Tue Dec 13 15:47:52 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3373
3374 * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
3375 __sigsetjmp in %g1 and jmp there. jmp cannot contain a complete
3376 absolute pointer.
3377 * sysdeps/sparc/bsd-setjmp.S: Likewise.
3378
3379 * configure.in: Use ; before } in { ... } exprs.
3380
e215c478 3381\f
28f540f4 3382
e215c478 3383See ChangeLog.4 for earlier changes.
This page took 0.380925 seconds and 5 git commands to generate.