Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/lib/libc/arch/vax/sys Pull up revs. 1.4-1.6, 1.9 (approv...



details:   https://anonhg.NetBSD.org/src/rev/baf1ab9f4c71
branches:  netbsd-1-5
changeset: 489192:baf1ab9f4c71
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Aug 22 07:35:44 2000 +0000

description:
Pull up revs. 1.4-1.6,1.9 (approved by thorpej):
Add internal names for brk(), sbrk() and fork().

diffstat:

 lib/libc/arch/vax/sys/brk.S |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r 7c5167594564 -r baf1ab9f4c71 lib/libc/arch/vax/sys/brk.S
--- a/lib/libc/arch/vax/sys/brk.S       Tue Aug 22 07:28:15 2000 +0000
+++ b/lib/libc/arch/vax/sys/brk.S       Tue Aug 22 07:35:44 2000 +0000
@@ -33,22 +33,23 @@
 
 #if defined(SYSLIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)brk.s    8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: brk.S,v 1.3 1999/01/14 22:48:22 kleink Exp $"
+       .asciz "$NetBSD: brk.S,v 1.3.10.1 2000/08/22 07:35:44 kleink Exp $"
 #endif /* SYSLIBC_SCCS and not lint */
 
 #include "SYS.h"
 
        .globl  curbrk
        .globl  ___minbrk
+
+#ifdef WEAK_ALIAS
+WEAK_ALIAS(brk, _brk)
+#endif
+
 ENTRY(_brk, 0)
-       jbr     ok
-
-ENTRY(brk, 0)
        cmpl    4(ap),___minbrk
-       bgeq    ok
+       bgeq    1f
        movl    ___minbrk,4(ap)
-ok:
-       chmk    $ SYS_break
+1:     chmk    $ SYS_break
        jcs     err
        movl    4(ap),curbrk
        clrl    r0



Home | Main Index | Thread Index | Old Index