motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit 6d3d1152eafea83efcde066d494edd9adc65a02d (tree)
parent 7c710542867d283b6ab774af76083d55996b127e
Author: Luna <git@l4.pm>
Date:   Mon, 20 Apr 2020 17:47:05 -0300

Add declaration for libc ioctl

Diffstat:
Mlib/std/c.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/std/c.zig b/lib/std/c.zig @@ -132,6 +132,7 @@ pub extern "c" fn tcgetattr(fd: fd_t, termios_p: *termios) c_int; pub extern "c" fn tcsetattr(fd: fd_t, optional_action: TCSA, termios_p: *const termios) c_int; pub extern "c" fn fcntl(fd: fd_t, cmd: c_int, ...) c_int; pub extern "c" fn flock(fd: fd_t, operation: c_int) c_int; +pub extern "c" fn ioctl(fd: fd_t, request: c_int, ...) c_int; pub extern "c" fn uname(buf: *utsname) c_int; pub extern "c" fn gethostname(name: [*]u8, len: usize) c_int;