diff options
author | dds <dds@FreeBSD.org> | 2003-08-30 07:59:05 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2003-08-30 07:59:05 +0000 |
commit | fc3275c8a9ee7b4a3527b369a3e271d93c7107d8 (patch) | |
tree | 97707722510d99bdd5557691a1057ed8f3dd0a82 /lib/libc/sys | |
parent | 39f7c19dbfda38b7edde55481dfe7aeaa4a1bbee (diff) | |
download | FreeBSD-src-fc3275c8a9ee7b4a3527b369a3e271d93c7107d8.zip FreeBSD-src-fc3275c8a9ee7b4a3527b369a3e271d93c7107d8.tar.gz |
Document that read(2) can also return EPERM
See e.g. nfsclient/nfs_vnops.c
static int
nfs_read(struct vop_read_args *ap)
{
struct vnode *vp = ap->a_vp;
if (vp->v_type != VREG)
return (EPERM);
return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag, ap->a_cred));
}
Approved by: schweikh (mentor)
MFC after: 6 weeks
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/read.2 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index 2271141..badf49f 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -163,6 +163,9 @@ was negative. .It Bq Er EAGAIN The file was marked for non-blocking I/O, and no data were ready to be read. +.It Bq Er EPERM +The file descriptor is associated with a non regular file +(e.g. a directory) mounted over NFS. .El .Pp In addition, |