diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/libc/port/threads/alloc.c | 3 | ||||
-rw-r--r-- | usr/src/lib/libc/sparc/sys/syscall.s | 4 | ||||
-rw-r--r-- | usr/src/uts/common/sys/syscall.h | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/usr/src/lib/libc/port/threads/alloc.c b/usr/src/lib/libc/port/threads/alloc.c index 5851212ad4..99f68000d2 100644 --- a/usr/src/lib/libc/port/threads/alloc.c +++ b/usr/src/lib/libc/port/threads/alloc.c @@ -21,13 +21,14 @@ /* * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, Joyent, Inc. All rights reserved. */ #include "lint.h" #include "thr_uberdata.h" #include <sys/syscall.h> -extern int __systemcall6(sysret_t *, int, ...); +extern long __systemcall6(sysret_t *, int, ...); /* * This is a small and simple power of two memory allocator that is diff --git a/usr/src/lib/libc/sparc/sys/syscall.s b/usr/src/lib/libc/sparc/sys/syscall.s index 70f3618642..41af4eb8d9 100644 --- a/usr/src/lib/libc/sparc/sys/syscall.s +++ b/usr/src/lib/libc/sparc/sys/syscall.s @@ -28,8 +28,8 @@ /* All Rights Reserved */ /* - * C library -- int syscall(int sysnum, ...); - * C library -- int __systemcall(sysret_t *, int sysnum, ...); + * C library -- long syscall(int sysnum, ...); + * C library -- long __systemcall(sysret_t *, int sysnum, ...); * * Interpret a given system call * diff --git a/usr/src/uts/common/sys/syscall.h b/usr/src/uts/common/sys/syscall.h index e365668f85..7d86565564 100644 --- a/usr/src/uts/common/sys/syscall.h +++ b/usr/src/uts/common/sys/syscall.h @@ -511,8 +511,8 @@ typedef struct { /* return values from system call */ #if !defined(_KERNEL) -extern int syscall(int, ...); -extern int __systemcall(sysret_t *, int, ...); +extern long syscall(int, ...); +extern long __systemcall(sysret_t *, int, ...); extern int __set_errno(int); #endif /* _KERNEL */ |