From 76a1088782f363cc784f7a8fe2aa3906558ec559 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 9 Apr 2010 15:21:08 -0400 Subject: [PATCH] ukernel osi prototypes header and add statvfs to it so we stop getting a warning Change-Id: I585f559f083203214d298062862434f9f381808b Reviewed-on: http://gerrit.openafs.org/1729 Tested-by: Derrick Brashear Reviewed-by: Andrew Deason Reviewed-by: Derrick Brashear --- src/afs/UKERNEL/osi_prototypes.h | 31 +++++++++++++++++++++++++++++++ src/afs/UKERNEL/osi_vfsops.c | 4 ---- src/afs/afs_prototypes.h | 2 +- 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 src/afs/UKERNEL/osi_prototypes.h diff --git a/src/afs/UKERNEL/osi_prototypes.h b/src/afs/UKERNEL/osi_prototypes.h new file mode 100644 index 000000000..ffc3e7a72 --- /dev/null +++ b/src/afs/UKERNEL/osi_prototypes.h @@ -0,0 +1,31 @@ +/* + * Copyright 2000, International Business Machines Corporation and others. + * All Rights Reserved. + * + * This software has been released under the terms of the IBM Public + * License. For details, see the LICENSE file in the top-level source + * directory or online at http://www.openafs.org/dl/license10.html + */ +/* + * osi_prototypes.h + * + * Exported UKERNEL support routines. + */ +#ifndef _OSI_PROTO_H_ +#define _OSI_PROTO_H_ +/* osi_vfsops.c */ +extern int afs_statvfs(struct vfs *afsp, struct statvfs *abp); +extern int afs_mount(struct vfs *afsp, char *path, void *data); +extern int afs_unmount(struct vfs *afsp); +extern int afs_root(OSI_VFS_DECL(afsp), struct vnode **avpp); +extern int afs_sync(struct vfs *afsp); +extern int afs_statfs(register struct vfs *afsp, struct statfs *abp); +extern int afs_mountroot(void); +extern int afs_swapvp(void); + +/* osi_vnodeops.c */ +extern int afs_vrdwr(struct usr_vnode *avc, struct usr_uio *uio, int rw, + int io, struct usr_ucred *cred); +extern int afs_inactive(struct vcache *avc, afs_ucred_t *acred); + +#endif diff --git a/src/afs/UKERNEL/osi_vfsops.c b/src/afs/UKERNEL/osi_vfsops.c index 7ffa4da3e..1fd680327 100644 --- a/src/afs/UKERNEL/osi_vfsops.c +++ b/src/afs/UKERNEL/osi_vfsops.c @@ -15,10 +15,6 @@ #include "afsincludes.h" /* Afs-based standard headers */ #include "afs/afs_stats.h" /* statistics stuff */ -int afs_statfs(register struct vfs *afsp, struct statfs *abp); -int afs_sync(struct vfs *afsp); - - struct vfsops Afs_vfsops = { afs_mount, afs_unmount, diff --git a/src/afs/afs_prototypes.h b/src/afs/afs_prototypes.h index c31d5f3ab..d4dc7fcfe 100644 --- a/src/afs/afs_prototypes.h +++ b/src/afs/afs_prototypes.h @@ -1345,7 +1345,7 @@ extern void afs_ntohuuid(afsUUID * uuidp); extern afs_int32 afs_uuid_create(afsUUID * uuid); extern u_short afs_uuid_hash(afsUUID * uuid); -#if defined(AFS_SUN5_ENV) || defined(AFS_LINUX20_ENV) || defined(AFS_AIX_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_SGI62_ENV) +#if defined(AFS_SUN5_ENV) || defined(AFS_LINUX20_ENV) || defined(AFS_AIX_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_SGI62_ENV) || defined(UKERNEL) #include "osi_prototypes.h" #endif -- 2.39.5