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:
Lennart Poettering
2018-01-24 11:09:29 +01:00
parent 81b1dc271f
commit db4a47e9fe
7 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -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;