/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* @(#)fdesc_vfsops.c 8.10 (Berkeley) 5/14/95
*
*/
-
/*
- * /dev/fd Filesystem
+* /dev/fd Filesystem
*/
#include <sys/param.h>
/*
* Mount the per-process file descriptors (/dev/fd)
*/
-int
-fdesc_mount(struct mount *mp, vnode_t devvp, __unused user_addr_t data, vfs_context_t context)
+static int
+fdesc_mount(struct mount *mp, __unused vnode_t devvp, __unused user_addr_t data, __unused vfs_context_t context)
{
int error = 0;
struct fdescmount *fmp;
return (0);
}
-int
-fdesc_start(mp, flags, context)
- struct mount *mp;
- int flags;
- vfs_context_t context;
+static int
+fdesc_start(__unused struct mount *mp, __unused int flags, __unused vfs_context_t context)
{
return (0);
}
-int
-fdesc_unmount(mp, mntflags, context)
- struct mount *mp;
- int mntflags;
- vfs_context_t context;
+static int
+fdesc_unmount(struct mount *mp, int mntflags, __unused vfs_context_t context)
{
int error;
int flags = 0;
* Finally, throw away the fdescmount structure
*/
_FREE(mp->mnt_data, M_UFSMNT); /* XXX */
- mp->mnt_data = 0;
+ mp->mnt_data = NULL;
return (0);
}
int
-fdesc_root(mp, vpp, context)
- struct mount *mp;
- struct vnode **vpp;
- vfs_context_t context;
+fdesc_root(struct mount *mp, struct vnode **vpp, __unused vfs_context_t context)
{
struct vnode *vp;
return (0);
}
+#if 0
+/*
+ * XXX commented out in mount.h
+ */
int
-fdesc_statfs(mp, sbp, context)
- struct mount *mp;
- struct vfsstatfs *sbp;
- vfs_context_t context;
+fdesc_statfs(__unused struct mount *mp, struct vfsstatfs *sbp, vfs_context_t context)
{
- struct proc *p = vfs_context_proc(context);
+ proc_t p = vfs_context_proc(context);
struct filedesc *fdp;
int lim;
int i;
return (0);
}
+#endif /* 0 */
static int
-fdesc_vfs_getattr(mount_t mp, struct vfs_attr *fsap, vfs_context_t context)
+fdesc_vfs_getattr(__unused mount_t mp, struct vfs_attr *fsap, vfs_context_t context)
{
VFSATTR_RETURN(fsap, f_bsize, DEV_BSIZE);
VFSATTR_RETURN(fsap, f_iosize, DEV_BSIZE);
VFSATTR_IS_ACTIVE(fsap, f_files) ||
VFSATTR_IS_ACTIVE(fsap, f_ffree))
{
- struct proc *p = vfs_context_proc(context);
+ proc_t p = vfs_context_proc(context);
struct filedesc *fdp;
int lim;
int i;
return 0;
}
-int
-fdesc_sync(mp, waitfor, context)
- struct mount *mp;
- int waitfor;
- vfs_context_t context;
+static int
+fdesc_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t context)
{
return (0);
fdesc_root,
NULL, /* quotactl */
fdesc_vfs_getattr,
+/* fdesc_statfs, XXX commented out in mount.h */
fdesc_sync,
fdesc_vget,
fdesc_fhtovp,
fdesc_vptofh,
fdesc_init,
- fdesc_sysctl
+ fdesc_sysctl,
+ NULL,
+ {NULL}
};