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/sparc/sys Pull up rev. 1.3 (approved by t...



details:   https://anonhg.NetBSD.org/src/rev/b751236f2c17
branches:  netbsd-1-5
changeset: 489186:b751236f2c17
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Aug 22 07:24:00 2000 +0000

description:
Pull up rev. 1.3 (approved by thorpej):
Add internal names for brk(), sbrk() and fork().

diffstat:

 lib/libc/arch/sparc/sys/fork.S |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 73db67a1541c -r b751236f2c17 lib/libc/arch/sparc/sys/fork.S
--- a/lib/libc/arch/sparc/sys/fork.S    Tue Aug 22 07:23:25 2000 +0000
+++ b/lib/libc/arch/sparc/sys/fork.S    Tue Aug 22 07:24:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fork.S,v 1.2 1997/07/16 14:37:56 christos Exp $        */
+/*     $NetBSD: fork.S,v 1.2.12.1 2000/08/22 07:24:00 kleink Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -44,13 +44,17 @@
 #if 0
        .asciz "@(#)fork.s      8.1 (Berkeley) 6/4/93"
 #else
-       RCSID("$NetBSD: fork.S,v 1.2 1997/07/16 14:37:56 christos Exp $")
+       RCSID("$NetBSD: fork.S,v 1.2.12.1 2000/08/22 07:24:00 kleink Exp $")
 #endif
 #endif /* SYSLIBC_SCCS and not lint */
 
 #include "SYS.h"
 
-SYSCALL(fork)
+#ifdef WEAK_ALIAS
+WEAK_ALIAS(fork, _fork)
+#endif
+
+_SYSCALL(_fork,fork)
        dec     %o1             ! from 1 to 0 in child, 0 to -1 in parent
        retl
-       and     %o0, %o1, %o0   ! return 0 in child, pid in parent
+        and    %o0, %o1, %o0   ! return 0 in child, pid in parent



Home | Main Index | Thread Index | Old Index