summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-06-26 07:58:48 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-06-26 07:58:48 +0000
commitdb6f2152ce8405f627f597268f0071a4f9f6a4cd (patch)
tree3e9f05eb9cb3ee4c75251a5efe3478222c202e7d /sys/ufs
parentad3dc5b9f3cf3d2227d56ed40aeb8b203fc362c8 (diff)
add prototypes for userland code that reaches over. ok deraadt@
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_subr.c14
1 files changed, 9 insertions, 5 deletions
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
*