cvs commit: src/lib/libc/sys read.2
Diomidis Spinellis
dds at FreeBSD.org
Sat Aug 30 00:59:06 PDT 2003
dds 2003/08/30 00:59:05 PDT
FreeBSD src repository
Modified files:
lib/libc/sys read.2
Log:
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
Revision Changes Path
1.20 +3 -0 src/lib/libc/sys/read.2
More information about the cvs-src
mailing list