From d1fd400a8048db0a958b0f441ae542fb5e9e16e7 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 7 Dec 2018 15:17:29 +0000 Subject: Add new file handle system calls. Namely, getfhat(2), fhlink(2), fhlinkat(2), fhreadlink(2). The syscalls are provided for a NFS userspace server (nfs-ganesha). Submitted by: Jack Halford Sponsored by: Gandi.net Tested by: pho Feedback from: brooks, markj MFC after: 1 week Differential revision: https://reviews.freebsd.org/D18359 --- sys/sys/mount.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/sys/mount.h') diff --git a/sys/sys/mount.h b/sys/sys/mount.h index ac1c215b9a83..2a5d4cff2a8b 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -932,11 +932,15 @@ void syncer_resume(void); struct stat; __BEGIN_DECLS +int fhlink(struct fhandle *, const char *); +int fhlinkat(struct fhandle *, int, const char *); int fhopen(const struct fhandle *, int); +int fhreadlink(struct fhandle *, char *, size_t); int fhstat(const struct fhandle *, struct stat *); int fhstatfs(const struct fhandle *, struct statfs *); int fstatfs(int, struct statfs *); int getfh(const char *, fhandle_t *); +int getfhat(int, char *, struct fhandle *, int); int getfsstat(struct statfs *, long, int); int getmntinfo(struct statfs **, int); int lgetfh(const char *, fhandle_t *); -- cgit v1.2.3