github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/openbsd/tty.txt (about) 1 # Copyright 2018 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 include <sys/types.h> 5 include <time.h> 6 include <sys/tty.h> 7 include <fcntl.h> 8 9 resource fd_tty[fd] 10 11 syz_open_pts() fd_tty 12 openat$tty(fd const[AT_FDCWD], file ptr[in, string["/dev/tty"]], flags flags[open_flags], mode const[0]) fd_tty 13 14 ioctl$TIOCSETD(fd fd_tty, cmd const[TIOCSETD], arg ptr[in, int32]) 15 ioctl$TIOCGETD(fd fd_tty, cmd const[TIOCGETD], arg ptr[out, int32]) 16 ioctl$TIOCSBRK(fd fd_tty, cmd const[TIOCSBRK]) 17 ioctl$TIOCCBRK(fd fd_tty, cmd const[TIOCCBRK]) 18 ioctl$TIOCSDTR(fd fd_tty, cmd const[TIOCSDTR]) 19 ioctl$TIOCCDTR(fd fd_tty, cmd const[TIOCCDTR]) 20 ioctl$TIOCSPGRP(fd fd_tty, cmd const[TIOCGPGRP], arg ptr[out, int32]) 21 ioctl$TIOCGETA(fd fd_tty, cmd const[TIOCGETA], arg ptr[out, termios]) 22 ioctl$TIOCSETA(fd fd_tty, cmd const[TIOCSETA], arg ptr[in, termios]) 23 ioctl$TIOCSETAW(fd fd_tty, cmd const[TIOCSETAW], arg ptr[in, termios]) 24 ioctl$TIOCSETAF(fd fd_tty, cmd const[TIOCSETAF], arg ptr[in, termios]) 25 ioctl$TIOCOUTQ(fd fd_tty, cmd const[TIOCOUTQ], arg ptr[in, int32]) 26 ioctl$TIOCNOTTY(fd fd_tty, cmd const[TIOCNOTTY]) 27 ioctl$TIOCSETVERAUTH(fd fd_tty, cmd const[TIOCSETVERAUTH], arg ptr[in, int32]) 28 ioctl$TIOCCLRVERAUTH(fd fd_tty, cmd const[TIOCCLRVERAUTH]) 29 ioctl$TIOCCHKVERAUTH(fd fd_tty, cmd const[TIOCCHKVERAUTH]) 30 ioctl$TIOCSTOP(fd fd_tty, cmd const[TIOCSTOP]) 31 ioctl$TIOCSTART(fd fd_tty, cmd const[TIOCSTART]) 32 ioctl$TIOCSCTTY(fd fd_tty, cmd const[TIOCSCTTY]) 33 ioctl$TIOCDRAIN(fd fd_tty, cmd const[TIOCDRAIN]) 34 ioctl$TIOCEXCL(fd fd_tty, cmd const[TIOCEXCL]) 35 ioctl$TIOCNXCL(fd fd_tty, cmd const[TIOCNXCL]) 36 ioctl$TIOCFLUSH(fd fd_tty, cmd const[TIOCFLUSH], arg ptr[in, int32]) 37 ioctl$TIOCGWINSZ(fd fd_tty, cmd const[TIOCGWINSZ], arg ptr[out, winsize]) 38 ioctl$TIOCSWINSZ(fd fd_tty, cmd const[TIOCSWINSZ], arg ptr[in, winsize]) 39 ioctl$TIOCCONS(fd fd_tty, cmd const[TIOCCONS], arg ptr[in, int32]) 40 ioctl$TIOCMSET(fd fd_tty, cmd const[TIOCMSET], arg ptr[in, int32]) 41 ioctl$TIOCMGET(fd fd_tty, cmd const[TIOCMGET], arg ptr[out, int32]) 42 ioctl$TIOCMBIS(fd fd_tty, cmd const[TIOCMBIS], arg ptr[in, int32]) 43 ioctl$TIOCMBIC(fd fd_tty, cmd const[TIOCMBIC], arg ptr[in, int32]) 44 ioctl$TIOCGTSTAMP(fd fd_tty, cmd const[TIOCGTSTAMP], arg ptr[out, timeval]) 45 ioctl$TIOCSTSTAMP(fd fd_tty, cmd const[TIOCSTSTAMP], arg ptr[in, tstamps]) 46 ioctl$TIOCSFLAGS(fd fd_tty, cmd const[TIOCSFLAGS], arg ptr[in, int32]) 47 ioctl$TIOCGFLAGS(fd fd_tty, cmd const[TIOCGFLAGS], arg ptr[out, int32]) 48 ioctl$TIOCSTAT(fd fd_tty, cmd const[TIOCSTAT], arg ptr[out, int32]) 49 50 termios { 51 iflag int32 52 oflag int32 53 cflag int32 54 lflag int32 55 cc array[int8, NCCS] 56 ispeed int32 57 ospeed int32 58 } 59 60 tstamps { 61 set int32 62 clr int32 63 } 64 65 winsize { 66 row int16 67 col int16 68 xpixel int16 69 ypixel int16 70 }