| ... | ... | @@ -1186,11 +1186,11 @@ pub fn getrusage(who: i32, usage: *rusage) usize { |
| 1186 | 1186 | } |
| 1187 | 1187 | |
| 1188 | 1188 | pub fn tcgetattr(fd: fd_t, termios_p: *termios) usize { |
| 1189 | | return syscall3(.ioctl, @bitCast(usize, @as(isize, fd)), TCGETS, @ptrToInt(termios_p)); |
| 1189 | return ioctl(fd, TCGETS, @ptrToInt(termios_p)); |
| 1190 | 1190 | } |
| 1191 | 1191 | |
| 1192 | 1192 | pub fn tcsetattr(fd: fd_t, optional_action: TCSA, termios_p: *const termios) usize { |
| 1193 | | return syscall3(.ioctl, @bitCast(usize, @as(isize, fd)), TCSETS + @enumToInt(optional_action), @ptrToInt(termios_p)); |
| 1193 | return ioctl(fd, TCSETS + @enumToInt(optional_action), @ptrToInt(termios_p)); |
| 1194 | 1194 | } |
| 1195 | 1195 | |
| 1196 | 1196 | pub fn ioctl(fd: fd_t, request: u32, arg: var) usize { |