summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjaredy <jaredy@openbsd.org>2005-08-10 01:33:06 +0000
committerjaredy <jaredy@openbsd.org>2005-08-10 01:33:06 +0000
commitcb1ee08d640786c16499107e9507aa69155da207 (patch)
tree5bde144dfa9e8dc957958c581c664b2ee342b301 /lib/libc
parent- layout, macro, and punctuation tweaks (diff)
downloadwireguard-openbsd-cb1ee08d640786c16499107e9507aa69155da207.tar.xz
wireguard-openbsd-cb1ee08d640786c16499107e9507aa69155da207.zip
- sys/mount.h wants sys/param.h
- path can also cause EFAULT ok jmc
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/getfh.26
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2
index 427996ec18d..731e98f8302 100644
--- a/lib/libc/sys/getfh.2
+++ b/lib/libc/sys/getfh.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getfh.2,v 1.9 2003/06/02 20:18:39 millert Exp $
+.\" $OpenBSD: getfh.2,v 1.10 2005/08/10 01:33:06 jaredy Exp $
.\" $NetBSD: getfh.2,v 1.7 1995/10/12 15:40:53 jtc Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
@@ -37,7 +37,7 @@
.Nm getfh
.Nd get file handle
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
+.Fd #include <sys/param.h>
.Fd #include <sys/mount.h>
.Ft int
.Fn getfh "const char *path" "fhandle_t *fhp"
@@ -84,6 +84,8 @@ Too many symbolic links were encountered in translating
The effective user ID is not the superuser.
.It Bq EFAULT
.Fa fhp
+or
+.Fa path
points to an invalid address.
.It Bq EIO
An