summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/vax/sys
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-08-26 01:54:08 +0000
committerguenther <guenther@openbsd.org>2015-08-26 01:54:08 +0000
commitb3b7ef2e4e6be9caa31c33f1642745eba9e6b35d (patch)
tree81be9910dee3a3339f55d5edfa25d7c588d02bb8 /lib/libc/arch/vax/sys
parentReplace clock_gettime UPTIME with MONOTONIC to improve worm portability. (diff)
downloadwireguard-openbsd-b3b7ef2e4e6be9caa31c33f1642745eba9e6b35d.tar.xz
wireguard-openbsd-b3b7ef2e4e6be9caa31c33f1642745eba9e6b35d.zip
Hide many (194!) symbols that nothing should be using.
Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
Diffstat (limited to 'lib/libc/arch/vax/sys')
-rw-r--r--lib/libc/arch/vax/sys/brk.S17
-rw-r--r--lib/libc/arch/vax/sys/exect.S37
-rw-r--r--lib/libc/arch/vax/sys/sbrk.S9
3 files changed, 16 insertions, 47 deletions
diff --git a/lib/libc/arch/vax/sys/brk.S b/lib/libc/arch/vax/sys/brk.S
index 39a708d254c..49023595209 100644
--- a/lib/libc/arch/vax/sys/brk.S
+++ b/lib/libc/arch/vax/sys/brk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: brk.S,v 1.9 2013/07/05 21:10:50 miod Exp $ */
+/* $OpenBSD: brk.S,v 1.10 2015/08/26 01:54:09 guenther Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -30,12 +30,19 @@
#include "SYS.h"
+ .data
+__minbrk:
+ .long _end
+ .text
+
.globl __curbrk
- .globl _C_LABEL(minbrk)
-ENTRY(brk, 0)
- cmpl _C_LABEL(minbrk),4(%ap)
+
+WEAK_ALIAS(brk,_brk)
+
+ENTRY(_brk, 0)
+ cmpl __minbrk,4(%ap)
blequ ok
- movl _C_LABEL(minbrk),4(%ap)
+ movl __minbrk,4(%ap)
ok:
chmk $ SYS_break
jcs err
diff --git a/lib/libc/arch/vax/sys/exect.S b/lib/libc/arch/vax/sys/exect.S
deleted file mode 100644
index 97832482a96..00000000000
--- a/lib/libc/arch/vax/sys/exect.S
+++ /dev/null
@@ -1,37 +0,0 @@
-/* $OpenBSD: exect.S,v 1.9 2013/07/05 21:10:50 miod Exp $ */
-/*
- * Copyright (c) 1983, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include "SYS.h"
-#include <machine/psl.h>
-
-SYSENTRY(exect)
- bispsw $PSL_T
- chmk $ SYS_execve
- jmp _C_LABEL(__cerror) # exect(file, argv, env)
diff --git a/lib/libc/arch/vax/sys/sbrk.S b/lib/libc/arch/vax/sys/sbrk.S
index dc6c2901ea0..d24feb74933 100644
--- a/lib/libc/arch/vax/sys/sbrk.S
+++ b/lib/libc/arch/vax/sys/sbrk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbrk.S,v 1.9 2013/07/05 21:10:50 miod Exp $ */
+/* $OpenBSD: sbrk.S,v 1.10 2015/08/26 01:54:09 guenther Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -32,17 +32,16 @@
.globl _end
- .globl _C_LABEL(minbrk)
.globl __curbrk
.data
-_C_LABEL(minbrk):
- .long _end
__curbrk:
.long _end
.text
-ENTRY(sbrk, R3)
+WEAK_ALIAS(sbrk,_sbrk)
+
+ENTRY(_sbrk, R3)
addl3 __curbrk,4(%ap),-(%sp)
pushl $1
movl %ap,%r3