提交 ea1b6bb6 编写于 作者: R Rich Felker

remove dead case for F_SETLKW in fcntl

the first switch already returns in the F_SETLKW code path so it need
not be handled in the second switch. moreover the code in the second
switch is wrong for the F_SETLKW command: it's not cancellable.
上级 086793ad
...@@ -39,7 +39,6 @@ int fcntl(int fd, int cmd, ...) ...@@ -39,7 +39,6 @@ int fcntl(int fd, int cmd, ...)
} }
switch (cmd) { switch (cmd) {
case F_SETLK: case F_SETLK:
case F_SETLKW:
case F_GETLK: case F_GETLK:
case F_GETOWN_EX: case F_GETOWN_EX:
case F_SETOWN_EX: case F_SETOWN_EX:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册