]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commit
Define O_DIRECTORY with different value RELEASE-0.12.0
authorMaria Sfiraiala <maria.sfiraiala@gmail.com>
Wed, 3 Aug 2022 15:59:43 +0000 (18:59 +0300)
committerUnikraft <monkey@unikraft.io>
Wed, 16 Nov 2022 17:23:52 +0000 (17:23 +0000)
commitdea6ac34da547c9ea5831ed4f6044669259285b4
tree88c0584f9b59e669b6f5527143086c9ee6089263
parente42e8a700043f04d1822f9915eeb4d4dededd9a5
Define O_DIRECTORY with different value

Previous fix regarding confusion between O_NONBLOCK and O_DIRECTORY
values changed O_NONBLOCK to a different number, therefore it drifted
away from FNONBLOCK (for which it was an alias) and caused a blocking
socket.

This commit simply changes the value of O_DIRECTORY, without being
necessary to redefine O_NONBLOCK or FNONBLOCK.

Fixes: 58f9f3a3f7b5 ("include/fcntl.h: Replace O_NONBLOCK with new one
on arm")

Signed-off-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #21
include/fcntl.h