diff options
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/syscall.h | 1 | ||||
-rw-r--r-- | sys/include/sys/ucred.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index 3650e7a..05288f4 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -56,6 +56,7 @@ #define SYS_inject 15 #define SYS_getpid 16 #define SYS_getppid 17 +#define SYS_setuid 18 #if defined(_KERNEL) /* Syscall return value and arg type */ diff --git a/sys/include/sys/ucred.h b/sys/include/sys/ucred.h index ef66a18..b44a7fe 100644 --- a/sys/include/sys/ucred.h +++ b/sys/include/sys/ucred.h @@ -33,6 +33,7 @@ #include <sys/types.h> #if defined(_KERNEL) #include <sys/spinlock.h> +#include <sys/syscall.h> #endif /* @@ -47,4 +48,8 @@ struct ucred { }; int setuid(uid_t new); + +#if defined(_KERNEL) +scret_t sys_setuid(struct syscall_args *scargs); +#endif #endif /* !_SYS_UCRED_H_ */ |