linux_uid16.c (121302) | linux_uid16.c (130344) |
---|---|
1/*- 2 * Copyright (c) 2001 The FreeBSD Project 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 The FreeBSD Project 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/compat/linux/linux_uid16.c 121302 2003-10-21 11:00:33Z tjr $"); | 28__FBSDID("$FreeBSD: head/sys/compat/linux/linux_uid16.c 130344 2004-06-11 11:16:26Z phk $"); |
29 30#include <sys/param.h> 31#include <sys/lock.h> 32#include <sys/malloc.h> 33#include <sys/mutex.h> 34#include <sys/proc.h> 35#include <sys/syscallsubr.h> 36#include <sys/sysproto.h> --- 148 unchanged lines hidden (view full) --- 185 return (error); 186 187 td->td_retval[0] = ngrp; 188 return (0); 189} 190 191/* 192 * The FreeBSD native getgid(2) and getuid(2) also modify td->td_retval[1] | 29 30#include <sys/param.h> 31#include <sys/lock.h> 32#include <sys/malloc.h> 33#include <sys/mutex.h> 34#include <sys/proc.h> 35#include <sys/syscallsubr.h> 36#include <sys/sysproto.h> --- 148 unchanged lines hidden (view full) --- 185 return (error); 186 187 td->td_retval[0] = ngrp; 188 return (0); 189} 190 191/* 192 * The FreeBSD native getgid(2) and getuid(2) also modify td->td_retval[1] |
193 * when COMPAT_43 or COMPAT_SUNOS is defined. This globbers registers that | 193 * when COMPAT_43 is defined. This globbers registers that |
194 * are assumed to be preserved. The following lightweight syscalls fixes 195 * this. See also linux_getpid(2), linux_getgid(2) and linux_getuid(2) in 196 * linux_misc.c 197 * 198 * linux_getgid16() - MP SAFE 199 * linux_getuid16() - MP SAFE 200 */ 201 --- 91 unchanged lines hidden --- | 194 * are assumed to be preserved. The following lightweight syscalls fixes 195 * this. See also linux_getpid(2), linux_getgid(2) and linux_getuid(2) in 196 * linux_misc.c 197 * 198 * linux_getgid16() - MP SAFE 199 * linux_getuid16() - MP SAFE 200 */ 201 --- 91 unchanged lines hidden --- |