summaryrefslogtreecommitdiffstats
path: root/sys/dev/wscons/wseventvar.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* A wscons device may only be opened in read/write mode once. However,anton2019-05-221-2/+2
| | | | | | | | | | | after checking for exclusive access, malloc() can sleep in wsevent_init() opening up for a potential race where more than one thread may be able open the device. Prevent this by checking if the race was won after calling malloc(). While here, switch to mallocarray as proposed by both cheloha@ and mpi@ ok mpi@
* Utilize sigio with wscons. The old behavior of always making the process groupanton2018-11-191-3/+5
| | | | | | | | | | | | | | of the process who opens the device the default recipient of sigio is removed as a side-effect of this change. Issuing ioctl(FIOSETOWN) is therefore mandatory in order to receive sigio, which is more consistent with other subsystems supporting sigio. This change is all made possible by the new sigio(9) API and prevents wscons from keeping a pointer to the recipient process. Usage of such pointer could cause a panic since wscons is not inform on process deallocation, leaving a dangling pointer behind. ok mpi@ visa@
* kqueue(2) support for wsmouse(4), wskbd(4) and wsmux(4).mpi2015-09-101-1/+2
| | | | | | Needed for libinput port. ok guenther@, miod@
* Correct the links between threads, processes, pgrps, and sessions,guenther2010-07-261-3/+3
| | | | | | | | | so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots
* Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tnicm2009-11-091-2/+1
| | | | | | | | | | supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
* KNOTE() after selwakeup(); ok miodderaadt2009-10-311-1/+2
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* in async mode, send SIGIO to the process group of the process thatmatthieu2003-02-121-2/+2
| | | | | requested the signal. This is coherent with what /dev/tty does and the current implementation of fcntl(F_SETOWN). Ok deraadt@
* First round of __P removal in sysmillert2002-03-141-5/+5
|
* import newer wscons source from netbsd.mickey2000-05-161-0/+118
art@ said it will make his life easier in alpha rhands@ said it is not used in powerpc for now bjc@ said that it would make vax port easier mickey@ said other platforms can use it, and it's faster