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.h6
-rw-r--r--libexec/ld.so/sparc64/syscall.h14
2 files changed, 10 insertions, 10 deletions
diff --git a/libexec/ld.so/sparc64/archdep.h b/libexec/ld.so/sparc64/archdep.h
index 8e3c1b19d36..3f3257fa865 100644
--- a/libexec/ld.so/sparc64/archdep.h
+++ b/libexec/ld.so/sparc64/archdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: archdep.h,v 1.10 2002/07/24 00:12:47 deraadt Exp $ */
+/* $OpenBSD: archdep.h,v 1.11 2002/07/24 04:00:45 deraadt Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -49,11 +49,11 @@
#include "syscall.h"
#include "util.h"
-static inline void *
+static inline long
_dl_mmap(void *addr, unsigned int len, unsigned int prot,
unsigned int flags, int fd, off_t offset)
{
- return((void *)_dl__syscall((quad_t)SYS_mmap, addr, len, prot,
+ return(_dl__syscall((quad_t)SYS_mmap, addr, len, prot,
flags, fd, 0, offset));
}
diff --git a/libexec/ld.so/sparc64/syscall.h b/libexec/ld.so/sparc64/syscall.h
index 1be4c3faf1c..83d6f9d2536 100644
--- a/libexec/ld.so/sparc64/syscall.h
+++ b/libexec/ld.so/sparc64/syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall.h,v 1.8 2002/07/24 01:05:11 deraadt Exp $ */
+/* $OpenBSD: syscall.h,v 1.9 2002/07/24 04:00:45 deraadt Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist
@@ -48,12 +48,12 @@ int _dl_close(int);
int _dl_exit(int);
int _dl_issetugid(void);
long _dl__syscall(quad_t, ...);
-int _dl_mprotect(const void *, size_t, int);
-int _dl_munmap(const void*, size_t);
-int _dl_open(const char*, int);
-ssize_t _dl_read(int, const char*, size_t);
+int _dl_mprotect(const void *, int, int);
+int _dl_munmap(const void*, unsigned int);
+int _dl_open(const char*, unsigned int);
+int _dl_read(int, const char*, int);
int _dl_stat(const char *, struct stat *);
-ssize_t _dl_write(int, const char*, size_t);
+int _dl_write(int, const char*, int);
int _dl_fstat(int, struct stat *);
int _dl_fcntl(int, int, ...);
int _dl_getdirentries(int, char*, int, long *);
@@ -61,7 +61,7 @@ int _dl_getdirentries(int, char*, int, long *);
static inline off_t
_dl_lseek(int fildes, off_t offset, int whence)
{
- return _dl__syscall((quad_t)SYS_lseek, fildes, 0, offset, whence);
+ return _dl__syscall((quad_t)SYS_lseek, fildes, 0, offset, whence);
}
#endif /*__DL_SYSCALL_H__*/