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
@@ -8352,7 +8352,7 @@ static int talk_initctl(void) {
request.runlevel = rl;
fd = open(INIT_FIFO, O_WRONLY|O_NDELAY|O_CLOEXEC|O_NOCTTY);
fd = open(INIT_FIFO, O_WRONLY|O_NONBLOCK|O_CLOEXEC|O_NOCTTY);
if (fd < 0) {
if (errno == ENOENT)
return 0;