diff options
author | mr <mr@FreeBSD.org> | 2001-09-15 09:57:30 +0000 |
---|---|---|
committer | mr <mr@FreeBSD.org> | 2001-09-15 09:57:30 +0000 |
commit | fc0a6c1596965169eaaf0434848132a546dc2b8a (patch) | |
tree | 1bace7de7f0de81c22cd0111f0fc35491ebb502c /sys/compat/linux/linux_misc.c | |
parent | 60a2e27040133822807bc4a64e7b486315129c58 (diff) | |
download | FreeBSD-src-fc0a6c1596965169eaaf0434848132a546dc2b8a.zip FreeBSD-src-fc0a6c1596965169eaaf0434848132a546dc2b8a.tar.gz |
Add a wrapper for linux_getsid -> getsid Syscall.
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 7acea9f..f82f799 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1339,3 +1339,11 @@ linux_getuid(struct thread *td, struct linux_getuid_args *args) td->td_retval[0] = td->td_proc->p_ucred->cr_ruid; return (0); } + +int +linux_getsid(struct thread *td, struct linux_getsid_args *args) +{ + struct getsid_args bsd; + bsd.pid = args->pid; + return getsid(td, &bsd); +} |