Deleted Added
full compact
linux_sysctl.c (83221) linux_sysctl.c (83366)
1/*-
2 * Copyright (c) 2001 Marcel Moolenaar
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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 *
1/*-
2 * Copyright (c) 2001 Marcel Moolenaar
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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * $FreeBSD: head/sys/compat/linux/linux_sysctl.c 83221 2001-09-08 19:07:04Z marcel $
28 * $FreeBSD: head/sys/compat/linux/linux_sysctl.c 83366 2001-09-12 08:38:13Z julian $
29 */
30
31#include "opt_compat.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/proc.h>
36#include <sys/sysproto.h>

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

70
71 if (la->newval != NULL)
72 return (ENOTDIR);
73
74 return (0);
75}
76
77int
29 */
30
31#include "opt_compat.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/proc.h>
36#include <sys/sysproto.h>

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

70
71 if (la->newval != NULL)
72 return (ENOTDIR);
73
74 return (0);
75}
76
77int
78linux_sysctl(struct proc *p, struct linux_sysctl_args *args)
78linux_sysctl(struct thread *td, struct linux_sysctl_args *args)
79{
80 struct l___sysctl_args la;
81 l_int *mib;
82 int error, i;
83 caddr_t sg;
84
85 error = copyin((caddr_t)args->args, &la, sizeof(la));
86 if (error)

--- 34 unchanged lines hidden ---
79{
80 struct l___sysctl_args la;
81 l_int *mib;
82 int error, i;
83 caddr_t sg;
84
85 error = copyin((caddr_t)args->args, &la, sizeof(la));
86 if (error)

--- 34 unchanged lines hidden ---