Deleted Added
full compact
systm.h (93600) systm.h (94936)
1/*-
2 * Copyright (c) 1982, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)systm.h 8.7 (Berkeley) 3/29/95
1/*-
2 * Copyright (c) 1982, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)systm.h 8.7 (Berkeley) 3/29/95
39 * $FreeBSD: head/sys/sys/systm.h 93600 2002-04-01 21:55:00Z jake $
39 * $FreeBSD: head/sys/sys/systm.h 94936 2002-04-17 13:06:36Z mux $
40 */
41
42#ifndef _SYS_SYSTM_H_
43#define _SYS_SYSTM_H_
44
45#include <machine/atomic.h>
46#include <machine/cpufunc.h>
47#include <sys/callout.h>
40 */
41
42#ifndef _SYS_SYSTM_H_
43#define _SYS_SYSTM_H_
44
45#include <machine/atomic.h>
46#include <machine/cpufunc.h>
47#include <sys/callout.h>
48#include <sys/queue.h>
48
49extern int securelevel; /* system security level (see init(8)) */
50extern int suser_enabled; /* suser() is permitted to return 0 */
51
52extern int cold; /* nonzero if we are doing a cold boot */
53extern const char *panicstr; /* panic message */
54extern char version[]; /* system version */
55extern char copyright[]; /* system copyright */

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

85/*
86 * XXX the hints declarations are even more misplaced than most declarations
87 * in this file, since they are needed in one file (per arch) and only used
88 * in two files.
89 * XXX most of these variables should be const.
90 */
91extern int envmode;
92extern int hintmode; /* 0 = off. 1 = config, 2 = fallback */
49
50extern int securelevel; /* system security level (see init(8)) */
51extern int suser_enabled; /* suser() is permitted to return 0 */
52
53extern int cold; /* nonzero if we are doing a cold boot */
54extern const char *panicstr; /* panic message */
55extern char version[]; /* system version */
56extern char copyright[]; /* system copyright */

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

86/*
87 * XXX the hints declarations are even more misplaced than most declarations
88 * in this file, since they are needed in one file (per arch) and only used
89 * in two files.
90 * XXX most of these variables should be const.
91 */
92extern int envmode;
93extern int hintmode; /* 0 = off. 1 = config, 2 = fallback */
94extern int dynamic_kenv;
95extern struct sx kenv_lock;
93extern char *kern_envp;
94extern char static_env[];
95extern char static_hints[]; /* by config for now */
96
96extern char *kern_envp;
97extern char static_env[];
98extern char static_hints[]; /* by config for now */
99
100extern char **kenvp;
101
97/*
98 * General function declarations.
99 */
100
101struct clockframe;
102struct malloc_type;
103struct mtx;
104struct proc;

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

196#define PRISON_ROOT 1
197
198int suser(struct thread *td);
199int suser_cred(struct ucred *cred, int flag);
200int cr_cansee(struct ucred *u1, struct ucred *u2);
201int cr_canseesocket(struct ucred *cred, struct socket *so);
202
203char *getenv(const char *name);
102/*
103 * General function declarations.
104 */
105
106struct clockframe;
107struct malloc_type;
108struct mtx;
109struct proc;

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

201#define PRISON_ROOT 1
202
203int suser(struct thread *td);
204int suser_cred(struct ucred *cred, int flag);
205int cr_cansee(struct ucred *u1, struct ucred *u2);
206int cr_canseesocket(struct ucred *cred, struct socket *so);
207
208char *getenv(const char *name);
209void freeenv(char *env);
204int getenv_int(const char *name, int *data);
205int getenv_string(const char *name, char *data, int size);
206int getenv_quad(const char *name, quad_t *data);
210int getenv_int(const char *name, int *data);
211int getenv_string(const char *name, char *data, int size);
212int getenv_quad(const char *name, quad_t *data);
213void setenv(const char *name, const char *value);
214int unsetenv(const char *name);
215int testenv(const char *name);
207
208#ifdef APM_FIXUP_CALLTODO
209struct timeval;
210void adjust_timeout_calltodo(struct timeval *time_change);
211#endif /* APM_FIXUP_CALLTODO */
212
213#include <sys/libkern.h>
214

--- 104 unchanged lines hidden ---
216
217#ifdef APM_FIXUP_CALLTODO
218struct timeval;
219void adjust_timeout_calltodo(struct timeval *time_change);
220#endif /* APM_FIXUP_CALLTODO */
221
222#include <sys/libkern.h>
223

--- 104 unchanged lines hidden ---