summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
AgeCommit message (Expand)Author
2022-08-14remove unneeded includes in sys/kernJonathan Gray
2022-07-02Remove unused device poll functions.Visa Hankala
2022-02-15unifdef TIOCHPCL, 4.3BSD compat ioctlJonathan Gray
2021-12-15Adjust pty and tty event filtersVisa Hankala
2021-12-14Cover all state checks and updates with spltty() in filt_ttyread().Visa Hankala
2021-12-02firstc() and nextc() use an int of global static storage. Make thisTheo de Raadt
2021-10-24use NULL not 0 for pointer values in kernJonathan Gray
2021-05-19In ttyinfo() check that ps_vmspace isn't NULL before calculating theMark Kettenis
2021-05-16panic does not require a \n at the end. When one is provided, it looks wrong.Theo de Raadt
2021-02-08Revert the convertion of per-process thread into a SMR_TAILQ.Martin Pieuchot
2020-12-25Refactor klist insertion and removalVisa Hankala
2020-12-07Convert the per-process thread list into a SMR_TAILQ.Martin Pieuchot
2020-09-09Introduce a helper to check if a signal is ignored or masked by a thread.Martin Pieuchot
2020-07-22pstat -t was showing bogus column data on ttys, in modes whereTheo de Raadt
2020-07-20cleanup ttrstrt; no functional change; ok dlgTheo de Raadt
2020-07-20Sigh. Only the ptyc case should tsleep in ttyretype, since others canTheo de Raadt
2020-07-15Scott Cheloha convinces me the newly added tsleep_nsec should be tsleep,Theo de Raadt
2020-07-14Use a rwlock to protect the ttylist, rather than having ttymalloc/ttyfreeTheo de Raadt
2020-07-14A pty write containing VDISCARD, VREPRINT, or various retyping cases ofTheo de Raadt
2020-06-15Set __EV_HUP when the conditions matching poll(2)'s POLLUP are found.Martin Pieuchot
2020-05-29dev/rndvar.h no longer has statistical interfaces (removed during variousTheo de Raadt
2020-05-08Do not wait indefinitely for flushing when closing a tty.Martin Pieuchot
2020-04-07Abstract the head of knote lists. This allows extending the lists,Visa Hankala
2020-02-20Replace field f_isfd with field f_flags in struct filterops to allowVisa Hankala
2020-02-08Replace ttkqflush() with klist_invalidate() to handle knote listVisa Hankala
2020-01-09Convert sleeps of 1sec or more to tsleep_nsec(9).Martin Pieuchot
2020-01-08Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP andVisa Hankala
2019-12-31Use C99 designated initializers with struct filterops. In addition,Visa Hankala
2019-07-19ttysleep(): drop unused timeout parametercheloha
2019-07-09Use timeout_add_msec(9)kn
2019-06-01Revert to using the SCHED_LOCK() to protect time accounting.Martin Pieuchot
2019-05-31Use a per-process mutex to protect time accounting instead of SCHED_LOCK().Martin Pieuchot
2019-05-13When killing a process, the signal is handled by any thread thatAlexander Bluhm
2018-09-06fix whitespaceJonathan Gray
2018-08-05Decouple unveil from the pledge flags, by adding dedicated unveil flagsBob Beck
2018-06-16base and ports are now clean of TIOCSTI uses. The #define can now be removed.Theo de Raadt
2018-05-02Remove proc from the parameters of vn_lock(). The parameter isVisa Hankala
2018-04-28replace add_*_randomness with enqueue_randomness()Jasper Lievisse Adriaanse
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysVisa Hankala
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2018-02-06reduce scope of variable a bit to avoid shadowingTed Unangst
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
2017-06-29Due to risks known for decades, TIOCSTI now performs no action, and simplyTheo de Raadt
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
2016-07-10POSIX specifies that if a processing calling tcsetpgrp() is in theTodd C. Miller
2016-05-17Allow sendsyslog(2) with LOG_CONS even when /dev/console has notAlexander Bluhm
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
2016-01-28Convert to uiomove. Diff from Martin Natano.Stefan Kempf
2016-01-14Increase buffer sizes and watermarks for tty and pppStefan Fritsch
2015-12-05remove stale lint annotationsTed Unangst