hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 19872fd59f02f7f42f63b2488d2c516876593342
parent 3148a5358420db7d25803a23423f4b88fd858bd6
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 22 Mar 2021 12:16:13 -0400

rt: add ioctl

Diffstat:
Mrt/+linux/syscalls.ha | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha @@ -510,3 +510,8 @@ export fn setsockopt(sockfd: int, level: int, optname: int, optval: *void, optle sockfd: u64, level: u64, optname: u64, optval: uintptr: u64, optlen: u64))?: int; }; + +export fn ioctl(fd: int, req: u64, arg: nullable *void) (int | errno) = { + return wrap_return(syscall3(SYS_ioctl, fd: u64, + req, arg: uintptr: u64))?: int; +};