term, term.termios: update fn C.ioctl declaration (#21982)

This commit is contained in:
Delyan Angelov 2024-08-02 18:03:13 +03:00 committed by GitHub
parent 71aa3a463d
commit 3ca5bc3bcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View File

@ -13,7 +13,7 @@ pub:
ws_ypixel u16 ws_ypixel u16
} }
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// get_terminal_size returns a number of columns and rows of terminal window. // get_terminal_size returns a number of columns and rows of terminal window.
pub fn get_terminal_size() (int, int) { pub fn get_terminal_size() (int, int) {

View File

@ -35,7 +35,7 @@ fn C.tcgetattr(fd int, termios_p &C.termios) int
fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// flag provides a termios flag of the correct size // flag provides a termios flag of the correct size
// for the underlying C.termios structure // for the underlying C.termios structure

View File

@ -34,7 +34,7 @@ fn C.tcgetattr(fd int, termios_p &C.termios) int
fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// flag provides a termios flag of the correct size // flag provides a termios flag of the correct size
// for the underlying C.termios structure // for the underlying C.termios structure

View File

@ -34,7 +34,7 @@ fn C.tcgetattr(fd int, termios_p &C.termios) int
fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// flag provides a termios flag of the correct size // flag provides a termios flag of the correct size
// for the underlying C.termios structure // for the underlying C.termios structure

View File

@ -34,7 +34,7 @@ fn C.tcgetattr(fd int, termios_p &C.termios) int
fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// flag provides a termios flag of the correct size // flag provides a termios flag of the correct size
// for the underlying C.termios structure // for the underlying C.termios structure

View File

@ -35,7 +35,7 @@ fn C.tcgetattr(fd int, termios_p &C.termios) int
fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// flag provides a termios flag of the correct size // flag provides a termios flag of the correct size
// for the underlying C.termios structure // for the underlying C.termios structure

View File

@ -34,7 +34,7 @@ fn C.tcgetattr(fd int, termios_p &C.termios) int
fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// flag provides a termios flag of the correct size // flag provides a termios flag of the correct size
// for the underlying C.termios structure // for the underlying C.termios structure

View File

@ -35,7 +35,7 @@ fn C.tcgetattr(fd int, termios_p &C.termios) int
fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// flag provides a termios flag of the correct size // flag provides a termios flag of the correct size
// for the underlying C.termios structure // for the underlying C.termios structure

View File

@ -32,7 +32,7 @@ fn C.tcgetattr(fd int, termios_p &C.termios) int
fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int fn C.tcsetattr(fd int, optional_actions int, const_termios_p &C.termios) int
fn C.ioctl(fd int, request u64, arg voidptr) int fn C.ioctl(fd int, request u64, args ...voidptr) int
// flag provides a termios flag of the correct size // flag provides a termios flag of the correct size
// for the underlying C.termios structure // for the underlying C.termios structure