summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
AgeCommit message (Expand)Author
2023-07-10Implement stubbed out lockdoc functions; update lockdoc_event.hMerlin Scholz
2023-07-10Ignore Carrier Detect on tty when runngin under LOCKDOC kernel to curcumvent ...Merlin Scholz
2023-05-22tty(9): Make ttwrite update uio with only how much it has consumed.riastradh
2023-04-12ttycheckoutq(9): wait=0 always, parameter no longer useful, nix it.riastradh
2023-04-11ttwrite(9): Assert we mangle uio_resid only if we also return error.riastradh
2023-02-17ttycheckoutq(9): wait is always 0. Assert it; prune dead branches.riastradh
2022-10-26tty(9): New ttylock, ttyunlock, ttylocked functions.riastradh
2022-10-25constty(4): Make MP-safe, take three.riastradh
2022-10-07Revert "constty(4): Make MP-safe."riastradh
2022-10-06constty(4): Make MP-safe.riastradh
2022-10-04Revert "constty(4): Make MP-safe."riastradh
2022-10-03constty(4): Make MP-safe.riastradh
2022-04-07tty(9): New function tty_unit for struct cdevsw::d_devtounit.riastradh
2022-03-28tty(9): New ttycancel function.riastradh
2021-12-05s/runable/runnable/msaitoh
2021-09-29ttyread_filtops, ttywrite_filtops, ptcread_filtops, and ptcwrite_filtopsthorpej
2021-09-27Consistently reference kn->kn_data only within the lock perimeter inthorpej
2021-09-26Change the kqueue filterops::f_isfd field to filterops::f_flags, andthorpej
2020-12-11Use sel{record,remove}_knote().thorpej
2020-10-10remove extra breakchristos
2020-10-10remove broken copy of TIOCGSID.christos
2020-10-10TIOCGSID is used by tcgetsid() so it is not really compat :-)christos
2020-10-10tty: Negating INT_MIN will overflow int, bail out with EINVALnia
2020-10-09tty: Avoid undefined behaviour (left shift of 1 by 31 places overflows int)nia
2020-08-26Add a check to prevent shift by -1. Not really important in this case,maxv
2020-06-22Don't leak an unused sysctl log. Found by kLSan.maxv
2020-05-23Move proc_lock into the data segment. It was dynamically allocated becausead
2020-01-21Don't crash if we are on a hippie trail, head full of zombiechristos
2020-01-07Appease gccskrll
2020-01-06ttygetinfo(): avoid crash with zombies. From skrll@, tweaked by me.ad
2020-01-02KNFskrll
2020-01-02Trailing whitespaceskrll
2019-03-01Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as brieflypgoyette
2019-01-29Normalize all the compat hooks' names to the formpgoyette
2019-01-28- provide a hook for the 43 tty ioctlschristos
2019-01-27Merge the [pgoyette-compat] branchpgoyette
2018-09-03Rename min/max -> uimin/uimax for better honesty.riastradh
2018-03-30correct typo: and and -> andmaya
2017-10-25Use C99 initializer for filteropsmaya
2016-10-01Require exact credential match; this way even if we su to the original userchristos
2016-10-01Weaken the test a bit to still allow non-root to use TIOCSTI; we need to havechristos
2016-09-29Only allow root to use TIOCSTI. Don't eat the kauth error number.christos
2016-07-07KNF. Remove extra spaces. No functional change.msaitoh
2015-10-22Add console-related ioctls.christos
2015-10-18add the pty ioctls to pass through.christos
2015-10-18handle the hardware layer tty ioctls directly so that we don't need to loadchristos
2015-08-25In ttywait_timo(), break out of loop on all errors, not justgson
2015-08-24to garnish, dust with _KERNEL_OPTpooka
2015-08-19When closing a tty, limit the amount of time spent waiting for thegson
2015-06-14Revert previous; it broke the lib/libc/ttyio/t_ttyio/ioctl test case.gson