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 166944 2007-02-24 16:49:25Z netchild $"); |
29 30#include "opt_compat.h" 31 32#include <sys/param.h> 33#include <sys/lock.h> 34#include <sys/malloc.h> 35#include <sys/mutex.h> 36#include <sys/priv.h> --- 157 unchanged lines hidden (view full) --- 194 return (error); 195 196 td->td_retval[0] = ngrp; 197 return (0); 198} 199 200/* 201 * The FreeBSD native getgid(2) and getuid(2) also modify td->td_retval[1] |
202 * when COMPAT_43 is defined. This clobbers registers that are assumed to 203 * be preserved. The following lightweight syscalls fixes this. See also 204 * linux_getpid(2), linux_getgid(2) and linux_getuid(2) in linux_misc.c |
205 * 206 * linux_getgid16() - MP SAFE 207 * linux_getuid16() - MP SAFE 208 */ 209 210int 211linux_getgid16(struct thread *td, struct linux_getgid16_args *args) 212{ --- 88 unchanged lines hidden --- |