Deleted Added
full compact
linux_misc.c (127140) linux_misc.c (130344)
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
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

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
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

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_misc.c 127140 2004-03-17 20:00:00Z jhb $");
30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_misc.c 130344 2004-06-11 11:16:26Z phk $");
31
32#include "opt_mac.h"
33
34#include <sys/param.h>
35#include <sys/blist.h>
36#include <sys/fcntl.h>
37#include <sys/imgact_aout.h>
38#include <sys/jail.h>

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

1294 bsd_args.opt = (args->cmd == REBOOT_HALT) ? RB_HALT : 0;
1295 return (reboot(td, &bsd_args));
1296}
1297
1298#ifndef __alpha__
1299
1300/*
1301 * The FreeBSD native getpid(2), getgid(2) and getuid(2) also modify
31
32#include "opt_mac.h"
33
34#include <sys/param.h>
35#include <sys/blist.h>
36#include <sys/fcntl.h>
37#include <sys/imgact_aout.h>
38#include <sys/jail.h>

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

1294 bsd_args.opt = (args->cmd == REBOOT_HALT) ? RB_HALT : 0;
1295 return (reboot(td, &bsd_args));
1296}
1297
1298#ifndef __alpha__
1299
1300/*
1301 * The FreeBSD native getpid(2), getgid(2) and getuid(2) also modify
1302 * td->td_retval[1] when COMPAT_43 or COMPAT_SUNOS is defined. This
1302 * td->td_retval[1] when COMPAT_43 is defined. This
1303 * globbers registers that are assumed to be preserved. The following
1304 * lightweight syscalls fixes this. See also linux_getgid16() and
1305 * linux_getuid16() in linux_uid16.c.
1306 *
1307 * linux_getpid() - MP SAFE
1308 * linux_getgid() - MP SAFE
1309 * linux_getuid() - MP SAFE
1310 */

--- 34 unchanged lines hidden ---
1303 * globbers registers that are assumed to be preserved. The following
1304 * lightweight syscalls fixes this. See also linux_getgid16() and
1305 * linux_getuid16() in linux_uid16.c.
1306 *
1307 * linux_getpid() - MP SAFE
1308 * linux_getgid() - MP SAFE
1309 * linux_getuid() - MP SAFE
1310 */

--- 34 unchanged lines hidden ---