1 /* $NetBSD: vfs_syscalls.h,v 1.7 2008/03/21 21:55:01 ad Exp $ */
2
3 #ifndef _SYS_VFS_SYSCALLS_H_
4 #define _SYS_VFS_SYSCALLS_H_
5
6 struct stat;
7 struct statvfs;
8
9 extern int dovfsusermount;
10
11 /*
12 * syscall helpers for compat code.
13 */
14
15 /* Status functions to kernel 'struct stat' buffers */
16 int do_sys_stat(const char *, unsigned int, struct stat *);
17 int do_fhstat(struct lwp *, const void *, size_t, struct stat *);
18 int do_fhstatvfs(struct lwp *, const void *, size_t, struct statvfs *, int);
19
20 /* VFS status functions to kernel buffers */
21 int do_sys_pstatvfs(struct lwp *, const char *, int, struct statvfs *);
22 int do_sys_fstatvfs(struct lwp *, int, int, struct statvfs *);
23 /* VFS status - call copyfn() for each entry */
24 int do_sys_getvfsstat(struct lwp *, void *, size_t, int, int (*)(const void *, void *, size_t), size_t, register_t *);
25
26 int do_sys_utimes(struct lwp *, struct vnode *, const char *, int,
27 const struct timeval *, enum uio_seg);
28
29 int vfs_copyinfh_alloc(const void *, size_t, fhandle_t **);
30 void vfs_copyinfh_free(fhandle_t *);
31
32 int dofhopen(struct lwp *, const void *, size_t, int, register_t *);
33
34 int do_sys_unlink(const char *, enum uio_seg);
35 int do_sys_rename(const char *, const char *, enum uio_seg, int);
36
37 #endif /* _SYS_VFS_SYSCALLS_H_ */
Cache object: bedbb8cde0b7ef3b999a18782d35933f
|