summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-07-08 20:03:39 +0000
committerjhb <jhb@FreeBSD.org>2006-07-08 20:03:39 +0000
commite09e5b52dbb8914136f6708a8042007a16277dde (patch)
tree2f42b6b122203b412debeb7c4d7a7de8a551de99 /sys/fs
parentdf27227bab23aaf42551e2e2ea6f0955e253f135 (diff)
downloadFreeBSD-src-e09e5b52dbb8914136f6708a8042007a16277dde.zip
FreeBSD-src-e09e5b52dbb8914136f6708a8042007a16277dde.tar.gz
Add a kern_close() so that the ABIs can close a file descriptor w/o having
to populate a close_args struct and change some of the places that do.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/portalfs/portal_vnops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c
index 680d1fb..efed4c2 100644
--- a/sys/fs/portalfs/portal_vnops.c
+++ b/sys/fs/portalfs/portal_vnops.c
@@ -52,7 +52,7 @@
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/stat.h>
-#include <sys/sysproto.h>
+#include <sys/syscallsubr.h>
#include <sys/systm.h>
#include <sys/un.h>
#include <sys/unpcb.h>
@@ -77,10 +77,8 @@ portal_closefd(td, fd)
int fd;
{
int error;
- struct close_args ua;
- ua.fd = fd;
- error = close(td, &ua);
+ error = kern_close(td, fd);
/*
* We should never get an error, and there isn't anything
* we could do if we got one, so just print a message.
OpenPOWER on IntegriCloud