mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-29 15:10:57 +01:00
mount.h: Declare getvfs* functions from libc.
vfs_init.c: Fix fs_sysctl() so that getvfs* functions actually work.
This commit is contained in:
parent
4b1e44f14a
commit
dff55bb5c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2962
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_init.c 8.3 (Berkeley) 1/4/94
|
||||
* $Id: vfs_init.c,v 1.4 1994/08/18 22:35:08 wollman Exp $
|
||||
* $Id: vfs_init.c,v 1.5 1994/09/21 03:46:48 wollman Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -291,7 +291,7 @@ fs_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
int i;
|
||||
int error;
|
||||
int buflen = *oldlenp;
|
||||
caddr_t where = newp, start = newp;
|
||||
caddr_t where = oldp, start = oldp;
|
||||
|
||||
switch (name[0]) {
|
||||
case FS_VFSCONF:
|
||||
|
@ -481,6 +481,15 @@ int getmntinfo __P((struct statfs **, int));
|
||||
int mount __P((int, const char *, int, void *));
|
||||
int statfs __P((const char *, struct statfs *));
|
||||
int unmount __P((const char *, int));
|
||||
|
||||
/* C library stuff */
|
||||
struct vfsconf *getvfsbyname __P((const char *));
|
||||
struct vfsconf *getvfsbytype __P((int));
|
||||
struct vfsconf *getvfsent __P((void));
|
||||
void setvfsent __P((int));
|
||||
void endvfsent __P((void));
|
||||
int vfsisloadable __P((const char *));
|
||||
int vfsload __P((const char *));
|
||||
__END_DECLS
|
||||
|
||||
#endif /* KERNEL */
|
||||
|
Loading…
Reference in New Issue
Block a user