|
1 /* |
|
2 * bsdjail.h - Header for the bsdjail extension |
|
3 * $Id$ |
|
4 * |
|
5 * Authors: |
|
6 * * Michael Granger <ged@FaerieMUD.org> |
|
7 * * Mahlon E. Smith <mahlon@martini.nu> |
|
8 * |
|
9 * Copyright (c) 2008, Michael Granger and Mahlon Smith |
|
10 * All rights reserved. |
|
11 * |
|
12 * Redistribution and use in source and binary forms, with or without |
|
13 * modification, are permitted provided that the following conditions are met: |
|
14 * |
|
15 * * Redistributions of source code must retain the above copyright notice, |
|
16 * this list of conditions and the following disclaimer. |
|
17 * |
|
18 * * Redistributions in binary form must reproduce the above copyright notice, |
|
19 * this list of conditions and the following disclaimer in the documentation |
|
20 * and/or other materials provided with the distribution. |
|
21 * |
|
22 * * Neither the name of the author/s, nor the names of the project's |
|
23 * contributors may be used to endorse or promote products derived from this |
|
24 * software without specific prior written permission. |
|
25 * |
|
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|
27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|
29 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE |
|
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
|
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
|
32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|
33 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
34 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
36 * |
|
37 */ |
|
38 |
|
39 #ifndef _BSDJAIL_H_ |
|
40 #define _BSDJAIL_H_ |
1 |
41 |
2 |
42 |
3 #include <stdlib.h> |
|
4 #include <stdio.h> |
43 #include <stdio.h> |
|
44 #include <sys/param.h> |
|
45 #include <sys/jail.h> |
|
46 #include <sys/types.h> |
|
47 #include <unistd.h> |
5 |
48 |
6 #include <ruby.h> |
49 #include <ruby.h> |
7 #include <intern.h> /* For rb_dbl2big() */ |
50 #include <intern.h> /* For rb_dbl2big() */ |
8 |
|
9 #include <link-grammar/link-includes.h> |
|
10 |
|
11 |
51 |
12 |
52 |
13 /* Debugging functions/macros */ |
53 /* Debugging functions/macros */ |
14 #ifdef HAVE_STDARG_PROTOTYPES |
54 #ifdef HAVE_STDARG_PROTOTYPES |
15 #include <stdarg.h> |
55 #include <stdarg.h> |