Deleted Added
full compact
kern_jail.c (219304) kern_jail.c (219819)
1/*-
2 * Copyright (c) 1999 Poul-Henning Kamp.
3 * Copyright (c) 2008 Bjoern A. Zeeb.
4 * Copyright (c) 2009 James Gritton.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1999 Poul-Henning Kamp.
3 * Copyright (c) 2008 Bjoern A. Zeeb.
4 * Copyright (c) 2009 James Gritton.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/kern/kern_jail.c 219304 2011-03-05 12:40:35Z trasz $");
30__FBSDID("$FreeBSD: head/sys/kern/kern_jail.c 219819 2011-03-21 09:40:01Z jeff $");
31
32#include "opt_compat.h"
33#include "opt_ddb.h"
34#include "opt_inet.h"
35#include "opt_inet6.h"
36
37#include <sys/param.h>
38#include <sys/types.h>

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

4177 if (!(req->flags & SCTL_MASK32))
4178#endif
4179 return (SYSCTL_OUT(req, &l, sizeof(l)));
4180 case CTLTYPE_INT:
4181 case CTLTYPE_UINT:
4182 i = 0;
4183 return (SYSCTL_OUT(req, &i, sizeof(i)));
4184 case CTLTYPE_STRING:
31
32#include "opt_compat.h"
33#include "opt_ddb.h"
34#include "opt_inet.h"
35#include "opt_inet6.h"
36
37#include <sys/param.h>
38#include <sys/types.h>

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

4177 if (!(req->flags & SCTL_MASK32))
4178#endif
4179 return (SYSCTL_OUT(req, &l, sizeof(l)));
4180 case CTLTYPE_INT:
4181 case CTLTYPE_UINT:
4182 i = 0;
4183 return (SYSCTL_OUT(req, &i, sizeof(i)));
4184 case CTLTYPE_STRING:
4185 snprintf(numbuf, sizeof(numbuf), "%d", arg2);
4185 snprintf(numbuf, sizeof(numbuf), "%jd", (intmax_t)arg2);
4186 return
4187 (sysctl_handle_string(oidp, numbuf, sizeof(numbuf), req));
4188 case CTLTYPE_STRUCT:
4189 s = (size_t)arg2;
4190 return (SYSCTL_OUT(req, &s, sizeof(s)));
4191 }
4192 return (0);
4193}

--- 187 unchanged lines hidden ---
4186 return
4187 (sysctl_handle_string(oidp, numbuf, sizeof(numbuf), req));
4188 case CTLTYPE_STRUCT:
4189 s = (size_t)arg2;
4190 return (SYSCTL_OUT(req, &s, sizeof(s)));
4191 }
4192 return (0);
4193}

--- 187 unchanged lines hidden ---