46 #define __dead2 __attribute__((__noreturn__)) 49 extern int securelevel;
52 extern const char *panicstr;
53 extern char version[];
54 extern char copyright[];
62 int ureadc(
int,
struct uio *);
63 void *hashinit(
int count,
int type, u_long *hashmask);
64 void *phashinit(
int count,
int type, u_long *nentries);
66 void panic(
const char *, ...) __dead2;
67 void boot(
int) __dead2;
69 int kvprintf(
char const *,
void (*)(
int,
void*),
void *,
int,
71 void log(
int, const
char *, ...);
72 int printf(const
char *, ...);
73 int sprintf(
char *buf, const
char *, ...);
74 void uprintf(const
char *, ...);
75 void ttyprintf(struct tty *, const
char *, ...);
77 #define bcopy(f,t,n) memcpy((t),(f),(n)) 78 #define bzero(p,n) memset((p),(0),(n)) 80 int copystr(
const void *kfaddr,
void *kdaddr,
size_t len,
82 int copyinstr(
const void *udaddr,
void *kaddr,
size_t len,
86 int copyin(
const void *udaddr,
void *kaddr,
size_t len);
87 int copyout(
const void *kaddr,
void *udaddr,
size_t len);
90 int hzto(
struct timeval *tv);
95 typedef void (timeout_t)(
void *);
96 typedef timeout_t *timeout_func_t;
98 void timeout(timeout_func_t,
void *,
int);
99 void untimeout(timeout_func_t,
void *);
105 int tsleep(
void *chan,
int pri,
char *wmesg,
int timo);
106 void wakeup(
void *chan);