diff options
author | phk <phk@FreeBSD.org> | 2004-12-13 07:37:29 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-13 07:37:29 +0000 |
commit | 381851ecfeabb9fb6a87658734215cfc6be526c0 (patch) | |
tree | 423770fe453e98410d5c0d3ae44ed8adc165457b /sys/fs/devfs/devfs_vnops.c | |
parent | 16b6daa45bf76f56e57184892c2d31c3b6b710ee (diff) | |
download | FreeBSD-src-381851ecfeabb9fb6a87658734215cfc6be526c0.zip FreeBSD-src-381851ecfeabb9fb6a87658734215cfc6be526c0.tar.gz |
Use O_NONBLOCK instead of FNONBLOCK alias.
Diffstat (limited to 'sys/fs/devfs/devfs_vnops.c')
-rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 963685d..2ff7a79 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -914,7 +914,7 @@ devfs_read_f(struct file *fp, struct uio *uio, struct ucred *cred, int flags, st return (error); resid = uio->uio_resid; ioflag = 0; - if (fp->f_flag & FNONBLOCK) + if (fp->f_flag & O_NONBLOCK) ioflag |= IO_NDELAY; if (fp->f_flag & O_DIRECT) ioflag |= IO_DIRECT; |