From db6f2152ce8405f627f597268f0071a4f9f6a4cd Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 26 Jun 2003 07:58:48 +0000 Subject: add prototypes for userland code that reaches over. ok deraadt@ --- sys/ufs/ffs/ffs_subr.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c index f389117a4d5..a9b24987a32 100644 --- a/sys/ufs/ffs/ffs_subr.c +++ b/sys/ufs/ffs/ffs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_subr.c,v 1.13 2003/06/02 23:28:23 millert Exp $ */ +/* $OpenBSD: ffs_subr.c,v 1.14 2003/06/26 07:58:47 tedu Exp $ */ /* $NetBSD: ffs_subr.c,v 1.6 1996/03/17 02:16:23 christos Exp $ */ /* @@ -73,6 +73,14 @@ ffs_bufatoff(struct inode *ip, off_t offset, char **res, struct buf **bpp) *bpp = bp; return (0); } +#else +/* Prototypes for userland */ +void ffs_fragacct(struct fs *, int, int32_t[], int); +int ffs_isfreeblock(struct fs *, unsigned char *, daddr_t); +int ffs_isblock(struct fs *, unsigned char *, daddr_t); +void ffs_clrblock(struct fs *, u_char *, daddr_t); +void ffs_setblock(struct fs *, unsigned char *, daddr_t); +__dead void panic(const char *, ...); #endif /* @@ -144,10 +152,6 @@ ffs_checkoverlap(bp, ip) } #endif /* DIAGNOSTIC */ -#ifndef _KERNEL -void panic(const char *, ...); -#endif - /* * block operations * -- cgit v1.2.3