/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License"). You may not use this file except in compliance with the
- * License. Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
+ * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
*
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
- * License for the specific language governing rights and limitations
- * under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
*
* @APPLE_LICENSE_HEADER_END@
*/
#ifndef _SYS_SYSTM_H_
#define _SYS_SYSTM_H_
+#include <sys/appleapiopts.h>
#include <sys/cdefs.h>
-
#include <sys/types.h>
#include <sys/time.h>
#include <sys/tty.h>
#include <kern/thread.h>
__END_DECLS
-#define KERNEL_FUNNEL 1
-#define NETWORK_FUNNEL 2
-
+#ifdef __APPLE_API_PRIVATE
extern int securelevel; /* system security level */
extern const char *panicstr; /* panic message */
extern char version[]; /* system version */
extern char copyright[]; /* system copyright */
-extern int nblkdev; /* number of entries in bdevsw */
-extern int nchrdev; /* number of entries in cdevsw */
-
-extern dev_t rootdev; /* root device */
-extern struct vnode *rootvp; /* vnode equivalent to above */
extern struct sysent { /* system call table */
int16_t sy_narg; /* number of args */
extern int boothowto; /* reboot flags, from console subsystem */
extern int show_space;
+extern int nblkdev; /* number of entries in bdevsw */
+extern int nchrdev; /* number of entries in cdevsw */
+extern dev_t rootdev; /* root device */
+extern struct vnode *rootvp; /* vnode equivalent to above */
+#endif /* __APPLE_API_PRIVATE */
+
+#ifdef __APPLE_API_UNSTABLE
+#define NO_FUNNEL 0
+#define KERNEL_FUNNEL 1
+#define NETWORK_FUNNEL 2
+
extern funnel_t * kernel_flock;
extern funnel_t * network_flock;
+#endif /* __APPLE_API_UNSTABLE */
#define SYSINIT(a,b,c,d,e)
#define MALLOC_DEFINE(a,b,c)
-
#define getenv_int(a,b) (*b = 0)
#define KASSERT(exp,msg)
int enxio __P((void));
int eopnotsupp __P((void));
int einval __P((void));
+
+#ifdef __APPLE_API_UNSTABLE
int seltrue __P((dev_t dev, int which, struct proc *p));
+#endif /* __APPLE_API_UNSTABLE */
+
void *hashinit __P((int count, int type, u_long *hashmask));
int nosys __P((struct proc *, void *, register_t *));
int vsnprintf __P((char *, size_t, const char *, _BSD_VA_LIST_));
int vsprintf __P((char *buf, const char *, _BSD_VA_LIST_));
-
void bcopy __P((const void *from, void *to, size_t len));
void ovbcopy __P((const void *from, void *to, size_t len));
void bzero __P((void *buf, size_t len));
int suword __P((void *base, long word));
int suiword __P((void *base, long word));
+#ifdef __APPLE_API_UNSTABLE
int hzto __P((struct timeval *tv));
typedef void (*timeout_fcn_t)(void *);
void timeout __P((void (*)(void *), void *arg, int ticks));
void untimeout __P((void (*)(void *), void *arg));
void realitexpire __P((void *));
+#endif /* __APPLE_API_UNSTABLE */
+#ifdef __APPLE_API_PRIVATE
void bsd_hardclock __P((boolean_t usermode, caddr_t pc, int numticks));
void gatherstats __P((boolean_t usermode, caddr_t pc));
void startprofclock __P((struct proc *));
void stopprofclock __P((struct proc *));
void setstatclockrate __P((int hzrate));
+#ifdef DDB
+/* debugger entry points */
+int Debugger __P((void)); /* in DDB only */
+#endif
+
void set_fsblocksize __P((struct vnode *));
+#endif /* __APPLE_API_PRIVATE */
void addlog __P((const char *, ...));
void printf __P((const char *, ...));
#include <libkern/libkern.h>
-#ifdef DDB
-/* debugger entry points */
-int Debugger __P((void)); /* in DDB only */
-#endif
-
__END_DECLS
#endif /* !_SYS_SYSTM_H_ */