summaryrefslogtreecommitdiff
path: root/libexec/ld.so/mips
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-24 04:11:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-24 04:11:11 +0000
commitf4836b6d05c454ec22dcd8656f58b151a3970047 (patch)
tree8d7df3890632232ec5b42601e7c334f120773cc1 /libexec/ld.so/mips
parent2647b624657fb649232b187356361551c6b5af11 (diff)
ok i found it
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 0e33a3a6d2d..46b6ce28706 100644
--- a/libexec/ld.so/mips/syscall.h
+++ b/libexec/ld.so/mips/syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall.h,v 1.8 2002/07/24 04:00:44 deraadt Exp $ */
+/* $OpenBSD: syscall.h,v 1.9 2002/07/24 04:11:10 deraadt 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");