summaryrefslogtreecommitdiff
path: root/libexec/ld.so/sparc64
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/ld.so/sparc64')
-rw-r--r--libexec/ld.so/sparc64/archdep.h8
-rw-r--r--libexec/ld.so/sparc64/syscall.h11
2 files changed, 10 insertions, 9 deletions
diff --git a/libexec/ld.so/sparc64/archdep.h b/libexec/ld.so/sparc64/archdep.h
index 47ffa8932cd..84217ea7827 100644
--- a/libexec/ld.so/sparc64/archdep.h
+++ b/libexec/ld.so/sparc64/archdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: archdep.h,v 1.23 2017/01/20 10:40:30 guenther Exp $ */
+/* $OpenBSD: archdep.h,v 1.24 2017/01/21 01:15:00 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -38,12 +38,6 @@
#include "syscall.h"
#include "util.h"
-static inline void *
-_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
-{
- return((void *)_dl__syscall((quad_t)SYS_mmap, addr, len, prot,
- flags, fd, 0, offset));
-}
static inline void
RELOC_DYN(Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v)
diff --git a/libexec/ld.so/sparc64/syscall.h b/libexec/ld.so/sparc64/syscall.h
index 07def710309..f756b6da1d8 100644
--- a/libexec/ld.so/sparc64/syscall.h
+++ b/libexec/ld.so/sparc64/syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall.h,v 1.35 2016/08/28 06:15:33 guenther Exp $ */
+/* $OpenBSD: syscall.h,v 1.36 2017/01/21 01:15:00 guenther Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist
@@ -40,7 +40,7 @@
int _dl_close(int);
__dead
-int _dl_exit(int);
+void _dl_exit(int);
int _dl_issetugid(void);
int _dl_getthrid(void);
long _dl__syscall(quad_t, ...);
@@ -58,4 +58,11 @@ int _dl_utrace(const char *, const void *, size_t);
int _dl_getentropy(char *, size_t);
int _dl_sendsyslog(const char *, size_t, int);
+static inline void *
+_dl_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
+{
+ return (void *)_dl__syscall(SYS_mmap, addr, len, prot,
+ flags, fd, 0, offset);
+}
+
#endif /*__DL_SYSCALL_H__*/