summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
AgeCommit message (Expand)Author
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
2015-06-12When closing a tty, limit the amount of time spent waiting for thegson
2014-09-05Don't use catch as a varible name.matt
2014-05-22Use accessor functions for the tty's table of control characters.dholland
2014-05-22Define TTY_ALLOW_PRIVATE in tty.c, tty_pty.c, and tty_conf.c.dholland
2014-02-25Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist beforepooka
2014-02-23ttioctl always gets a valid lwp reference. Replace attempt to handle a NULLmlelstv
2013-02-09printflike maintenance.christos
2012-10-19Add COMPAT_60 versions of the TIOCPTMGET and TIOCPTSNAME ioctls.apb
2012-10-02Don't call ureadc() with a spinlock held because ureadc() may fault whenmlelstv
2012-09-30Provide consistent locking around getc() in ttread(). This is necessarymlelstv
2012-08-17Better (not racy fix) from Paul Goyette.christos
2012-08-17Use the queue of the tty not garbage from the stack (Paul Goyette)christos
2012-08-12PR/46780: Dennis Ferguson: Take the easy way out and return EBUSY when changingchristos
2012-03-12PR/41673: Stathis Kamperis: tcsetpgrp returns EINVAL, but should return EPERM.christos