Skip to content

Commit

Permalink
term, term.termios: update fn C.ioctl declaration (#21982)
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman authored Aug 2, 2024
1 parent 71aa3a4 commit 3ca5bc3
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion vlib/term/term_nix.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub:
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.
pub fn get_terminal_size() (int, int) {
Expand Down
2 changes: 1 addition & 1 deletion vlib/term/termios/termios_android.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
// for the underlying C.termios structure
Expand Down
2 changes: 1 addition & 1 deletion vlib/term/termios/termios_darwin.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
// for the underlying C.termios structure
Expand Down
2 changes: 1 addition & 1 deletion vlib/term/termios/termios_dragonfly.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
// for the underlying C.termios structure
Expand Down
2 changes: 1 addition & 1 deletion vlib/term/termios/termios_freebsd.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
// for the underlying C.termios structure
Expand Down
2 changes: 1 addition & 1 deletion vlib/term/termios/termios_linux.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
// for the underlying C.termios structure
Expand Down
2 changes: 1 addition & 1 deletion vlib/term/termios/termios_openbsd.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
// for the underlying C.termios structure
Expand Down
2 changes: 1 addition & 1 deletion vlib/term/termios/termios_qnx.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
// for the underlying C.termios structure
Expand Down
2 changes: 1 addition & 1 deletion vlib/term/termios/termios_solaris.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
// for the underlying C.termios structure
Expand Down

0 comments on commit 3ca5bc3

Please sign in to comment.