diff options
Diffstat (limited to 'usr/src/uts/common/sys')
-rw-r--r-- | usr/src/uts/common/sys/lwp.h | 9 | ||||
-rw-r--r-- | usr/src/uts/common/sys/syscall.h | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/usr/src/uts/common/sys/lwp.h b/usr/src/uts/common/sys/lwp.h index 1333225e65..03081022b3 100644 --- a/usr/src/uts/common/sys/lwp.h +++ b/usr/src/uts/common/sys/lwp.h @@ -23,12 +23,13 @@ * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* + * Copyright (c) 2013 by Delphix. All rights reserved. + */ #ifndef _SYS_LWP_H #define _SYS_LWP_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/synch.h> #include <sys/ucontext.h> @@ -64,6 +65,8 @@ struct lwpinfo32 { #endif /* _SYSCALL32 */ +typedef uint_t lwpid_t; + #define _LWP_FSBASE 0 #define _LWP_GSBASE 1 @@ -72,8 +75,6 @@ struct lwpinfo32 { #ifndef _KERNEL -typedef uint_t lwpid_t; - int _lwp_kill(lwpid_t, int); int _lwp_info(struct lwpinfo *); lwpid_t _lwp_self(void); diff --git a/usr/src/uts/common/sys/syscall.h b/usr/src/uts/common/sys/syscall.h index 633bfef143..15dc00aa45 100644 --- a/usr/src/uts/common/sys/syscall.h +++ b/usr/src/uts/common/sys/syscall.h @@ -21,6 +21,7 @@ /* * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013 by Delphix. All rights reserved. */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ @@ -498,13 +499,13 @@ typedef struct { /* syscall set type */ unsigned int word[16]; } sysset_t; -#if !defined(_KERNEL) - typedef struct { /* return values from system call */ long sys_rval1; /* primary return value from system call */ long sys_rval2; /* second return value from system call */ } sysret_t; +#if !defined(_KERNEL) + #if defined(__STDC__) extern int syscall(int, ...); extern int __systemcall(sysret_t *, int, ...); |