projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec...
[deliverable/linux.git]
/
fs
/
fifo.c
diff --git
a/fs/fifo.c
b/fs/fifo.c
index 987bf94114957beca2250a221778f3f93c20d6d2..f8f97b8b6d44c82056a970b549eb3272d457263d 100644
(file)
--- a/
fs/fifo.c
+++ b/
fs/fifo.c
@@
-51,7
+51,7
@@
static int fifo_open(struct inode *inode, struct file *filp)
filp->f_mode &= (FMODE_READ | FMODE_WRITE);
switch (filp->f_mode) {
filp->f_mode &= (FMODE_READ | FMODE_WRITE);
switch (filp->f_mode) {
- case
1
:
+ case
FMODE_READ
:
/*
* O_RDONLY
* POSIX.1 says that O_NONBLOCK means return with the FIFO
/*
* O_RDONLY
* POSIX.1 says that O_NONBLOCK means return with the FIFO
@@
-76,7
+76,7
@@
static int fifo_open(struct inode *inode, struct file *filp)
}
break;
}
break;
- case
2
:
+ case
FMODE_WRITE
:
/*
* O_WRONLY
* POSIX.1 says that O_NONBLOCK means return -1 with
/*
* O_WRONLY
* POSIX.1 says that O_NONBLOCK means return -1 with
@@
-98,7
+98,7
@@
static int fifo_open(struct inode *inode, struct file *filp)
}
break;
}
break;
- case
3
:
+ case
FMODE_READ | FMODE_WRITE
:
/*
* O_RDWR
* POSIX.1 leaves this case "undefined" when O_NONBLOCK is set.
/*
* O_RDWR
* POSIX.1 leaves this case "undefined" when O_NONBLOCK is set.
This page took
0.02407 seconds
and
5
git commands to generate.