authorgravatar for git@l4.pmLuna <git@l4.pm> 2020-04-20 17:47:05-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-06-02 14:56:19-04:00
log6d3d1152eafea83efcde066d494edd9adc65a02d
tree181bdc235d2eca1681a8ec7ea688751a792ff876
parent7c710542867d283b6ab774af76083d55996b127e

Add declaration for libc ioctl


1 files changed, 1 insertions(+), 0 deletions(-)

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