/* $NetBSD: vfs_syscalls.h,v 1.7 2008/03/21 21:55:01 ad Exp $ */ #ifndef _SYS_VFS_SYSCALLS_H_ #define _SYS_VFS_SYSCALLS_H_ struct stat; struct statvfs; extern int dovfsusermount; /* * syscall helpers for compat code. */ /* Status functions to kernel 'struct stat' buffers */ int do_sys_stat(const char *, unsigned int, struct stat *); int do_fhstat(struct lwp *, const void *, size_t, struct stat *); int do_fhstatvfs(struct lwp *, const void *, size_t, struct statvfs *, int); /* VFS status functions to kernel buffers */ int do_sys_pstatvfs(struct lwp *, const char *, int, struct statvfs *); int do_sys_fstatvfs(struct lwp *, int, int, struct statvfs *); /* VFS status - call copyfn() for each entry */ int do_sys_getvfsstat(struct lwp *, void *, size_t, int, int (*)(const void *, void *, size_t), size_t, register_t *); int do_sys_utimes(struct lwp *, struct vnode *, const char *, int, const struct timeval *, enum uio_seg); int vfs_copyinfh_alloc(const void *, size_t, fhandle_t **); void vfs_copyinfh_free(fhandle_t *); int dofhopen(struct lwp *, const void *, size_t, int, register_t *); int do_sys_unlink(const char *, enum uio_seg); int do_sys_rename(const char *, const char *, enum uio_seg, int); #endif /* _SYS_VFS_SYSCALLS_H_ */