coccinelle: O_NDELAY → O_NONBLOCK
Apparently O_NONBLOCK is the modern name used in most documentation and for most cases in our sources. Let's hence replace the old alias O_NDELAY and stick to O_NONBLOCK everywhere.
This commit is contained in:
@@ -330,7 +330,7 @@ static int write_to_terminal(const char *tty, const char *message) {
|
||||
assert(tty);
|
||||
assert(message);
|
||||
|
||||
fd = open(tty, O_WRONLY|O_NDELAY|O_NOCTTY|O_CLOEXEC);
|
||||
fd = open(tty, O_WRONLY|O_NONBLOCK|O_NOCTTY|O_CLOEXEC);
|
||||
if (fd < 0 || !isatty(fd))
|
||||
return -errno;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user