summaryrefslogtreecommitdiff
path: root/libexec/ld.so/mips
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-07-23 23:56:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-07-23 23:56:32 +0000
commita37ed2515fa5180dd7f67a2791ef3f0ce9d0ef79 (patch)
tree8a53340d610b6e65d8d422ffbd2e680a4c5290f3 /libexec/ld.so/mips
parent507e4043abea27ec72a6e1bea821a2e248d74d7b (diff)
match _dl_ syscall prototypes w/ the real syscalls prototypes, including args and return values; art@ ok
Diffstat (limited to 'libexec/ld.so/mips')
-rw-r--r--libexec/ld.so/mips/syscall.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/libexec/ld.so/mips/syscall.h b/libexec/ld.so/mips/syscall.h
index 896fd7efe67..0437d269c34 100644
--- a/libexec/ld.so/mips/syscall.h
+++ b/libexec/ld.so/mips/syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall.h,v 1.6 2002/07/12 20:18:30 drahn Exp $ */
+/* $OpenBSD: syscall.h,v 1.7 2002/07/23 23:56:31 mickey Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -65,7 +65,7 @@ _dl_exit (int status)
}
extern inline int
-_dl_open (const char* addr, unsigned int flags)
+_dl_open (const char* addr, int flags)
{
register int status __asm__ ("$2");
@@ -99,10 +99,10 @@ _dl_close (int fd)
return status;
}
-extern inline int
-_dl_write (int fd, const char* buf, int len)
+extern inline ssize_t
+_dl_write (int fd, const char* buf, size_t len)
{
- register int status __asm__ ("$2");
+ register ssize_t status __asm__ ("$2");
__asm__ volatile ("move $4,%2\n\t"
"move $5,%3\n\t"
@@ -118,10 +118,10 @@ _dl_write (int fd, const char* buf, int len)
return status;
}
-extern inline int
-_dl_read (int fd, const char* buf, int len)
+extern inline ssize_t
+_dl_read (int fd, const char* buf, size_t len)
{
- register int status __asm__ ("$2");
+ register ssize_t status __asm__ ("$2");
__asm__ volatile ("move $4,%2\n\t"
"move $5,%3\n\t"
@@ -137,11 +137,10 @@ _dl_read (int fd, const char* buf, int len)
return status;
}
-extern inline int
-_dl_mmap (void *addr, unsigned int size, unsigned int prot,
- unsigned int flags, int fd, unsigned int f_offset)
+extern inline void *
+_dl_mmap (void *addr, size_t size, int prot, int flags, int fd, off_t f_offset)
{
- register int malloc_buffer __asm__ ("$2");
+ register void * malloc_buffer __asm__ ("$2");
__asm__ volatile ("addiu $29,-40\n\t"
"move $6,%2\n\t"
@@ -175,7 +174,7 @@ _dl_mmap (void *addr, unsigned int size, unsigned int prot,
}
extern inline int
-_dl_munmap (const void* addr, unsigned int len)
+_dl_munmap (const void* addr, size_t len)
{
register int status __asm__ ("$2");
@@ -193,7 +192,7 @@ _dl_munmap (const void* addr, unsigned int len)
}
extern inline int
-_dl_mprotect (const void *addr, int size, int prot)
+_dl_mprotect (const void *addr, size_t size, int prot)
{
register int status __asm__ ("$2");