summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-28 17:50:08 +0200
committerAndreas Kling <kling@serenityos.org>2021-03-28 17:50:08 +0200
commit5f71bf0cc7de17d0aa2703aabf4e0cad5f000ae8 (patch)
tree5e01cd67c7c17791de758381883f5934ba4fd5e1 /Userland
parent526b4bbfdb1a60fbfec3fe64e3fc3ab9b49a221c (diff)
downloadserenity-5f71bf0cc7de17d0aa2703aabf4e0cad5f000ae8.zip
Kernel+LibC: Implement sys$ioctl() FIONBIO
This is another (older) way of making a file descriptor non-blocking.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibC/sys/ioctl_numbers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/sys/ioctl_numbers.h b/Userland/Libraries/LibC/sys/ioctl_numbers.h
index df31bebaf9..345f2d43de 100644
--- a/Userland/Libraries/LibC/sys/ioctl_numbers.h
+++ b/Userland/Libraries/LibC/sys/ioctl_numbers.h
@@ -68,7 +68,8 @@ enum IOCtlNumber {
SIOCSIFNETMASK,
SIOCADDRT,
SIOCDELRT,
- FIBMAP
+ FIBMAP,
+ FIONBIO,
};
#define TIOCGPGRP TIOCGPGRP
@@ -94,3 +95,4 @@ enum IOCtlNumber {
#define SIOCADDRT SIOCADDRT
#define SIOCDELRT SIOCDELRT
#define FIBMAP FIBMAP
+#define FIONBIO FIONBIO