Deleted Added
full compact
linux_uid16.c (102814) linux_uid16.c (102954)
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

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
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

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/compat/linux/linux_uid16.c 102814 2002-09-01 22:30:27Z iedowse $
26 * $FreeBSD: head/sys/compat/linux/linux_uid16.c 102954 2002-09-05 08:13:20Z bde $
27 */
28
27 */
28
29#include "opt_compat.h"
30
31#include <sys/param.h>
29#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/lock.h>
30#include <sys/lock.h>
31#include <sys/malloc.h>
34#include <sys/mutex.h>
35#include <sys/proc.h>
36#include <sys/syscallsubr.h>
37#include <sys/sysproto.h>
32#include <sys/mutex.h>
33#include <sys/proc.h>
34#include <sys/syscallsubr.h>
35#include <sys/sysproto.h>
36#include <sys/systm.h>
38
39#include <machine/../linux/linux.h>
40#include <machine/../linux/linux_proto.h>
37
38#include <machine/../linux/linux.h>
39#include <machine/../linux/linux_proto.h>
40
41#include <compat/linux/linux_util.h>
42
43DUMMY(setfsuid16);
44DUMMY(setfsgid16);
45DUMMY(getresuid16);
46DUMMY(getresgid16);
47
48#define CAST_NOCHG(x) ((x == 0xFFFF) ? -1 : x)

--- 245 unchanged lines hidden ---
41#include <compat/linux/linux_util.h>
42
43DUMMY(setfsuid16);
44DUMMY(setfsgid16);
45DUMMY(getresuid16);
46DUMMY(getresgid16);
47
48#define CAST_NOCHG(x) ((x == 0xFFFF) ? -1 : x)

--- 245 unchanged lines hidden ---