date and time created 86/07/02 16:23:03 by sam
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 3 Jul 1986 07:23:03 +0000 (23:23 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 3 Jul 1986 07:23:03 +0000 (23:23 -0800)
SCCS-vsn: lib/libc/tahoe/sys/bind.s 5.1
SCCS-vsn: lib/libc/tahoe/sys/brk.s 5.1

usr/src/lib/libc/tahoe/sys/bind.s [new file with mode: 0644]
usr/src/lib/libc/tahoe/sys/brk.s [new file with mode: 0644]

diff --git a/usr/src/lib/libc/tahoe/sys/bind.s b/usr/src/lib/libc/tahoe/sys/bind.s
new file mode 100644 (file)
index 0000000..5af94af
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifdef SYSLIBC_SCCS
+_sccsid:.asciz "@(#)bind.s     5.1 (Berkeley) %G%"
+#endif SYSLIBC_SCCS
+
+#include "SYS.h"
+
+SYSCALL(bind)
+       ret
diff --git a/usr/src/lib/libc/tahoe/sys/brk.s b/usr/src/lib/libc/tahoe/sys/brk.s
new file mode 100644 (file)
index 0000000..bc698b9
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifdef SYSLIBC_SCCS
+_sccsid:.asciz "@(#)brk.s      5.1 (Berkeley) %G%"
+#endif SYSLIBC_SCCS
+
+#include "SYS.h"
+
+#define        SYS_brk         17
+
+       .globl  curbrk
+       .globl  minbrk
+
+ENTRY(brk)
+       cmpl    4(fp),minbrk
+       bgeq    ok
+       movl    minbrk,4(fp)
+ok:
+       kcall   $SYS_brk
+       jcs     err
+       movl    4(fp),curbrk
+       clrl    r0
+       ret
+err:
+       jmp     cerror