mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:57:36 +00:00
Kernel+LibC: Implement FIONREAD ioctl
FIONREAD gets the number of bytes availible to read from a file descriptor without blocking. I only implemented it for regular files and sockets
This commit is contained in:
parent
db92e66902
commit
39a77559f1
7 changed files with 38 additions and 4 deletions
|
@ -83,6 +83,7 @@ enum IOCtlNumber {
|
|||
SIOCDARP,
|
||||
FIBMAP,
|
||||
FIONBIO,
|
||||
FIONREAD,
|
||||
KCOV_SETBUFSIZE,
|
||||
KCOV_ENABLE,
|
||||
KCOV_DISABLE,
|
||||
|
@ -126,3 +127,4 @@ enum IOCtlNumber {
|
|||
#define SIOCDARP SIOCDARP
|
||||
#define FIBMAP FIBMAP
|
||||
#define FIONBIO FIONBIO
|
||||
#define FIONREAD FIONREAD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue