summaryrefslogtreecommitdiffstats
path: root/sys/dev/wscons/wsevent.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* A wscons device may only be opened in read/write mode once. However,anton2019-05-221-8/+14
| | | | | | | | | | | 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@
* free size for wscons_event; ok deraadt@ visa@anton2019-02-011-2/+2
|
* Utilize sigio with wscons. The old behavior of always making the process groupanton2018-11-191-1/+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@
* Partially revert previous mallocarray conversions that containdhill2017-04-111-2/+2
| | | | | | | | | constants. The consensus is that if both operands are constant, we don't need mallocarray. Reminded by tedu@ ok deraadt@
* Convert some malloc(9) to mallocarray(9)dhill2017-04-091-2/+2
| | | | ok deraadt@
* Use uiomove() instead of uiomovei(); from Martin Natanostefan2016-01-121-4/+6
| | | | ok deraadt@
* kqueue(2) support for wsmouse(4), wskbd(4) and wsmux(4).mpi2015-09-101-1/+64
| | | | | | Needed for libinput port. ok guenther@, miod@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* First step towards making uiomove() take a size_t size argument:miod2015-02-101-3/+3
| | | | | | | - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
* unnecessary castderaadt2015-01-111-2/+2
|
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-3/+1
| | | | ok guenther millert kettenis
* KNFgilles2007-09-111-2/+2
| | | | prompted and "much better" by marco@, ok pyr@
* more MALLOC/FREE -> malloc/free and M_ZERO changesgilles2007-09-101-3/+2
| | | | ok pyr@
* Move contents of sys/select.h to sys/selinfo.h in preparation for amillert2005-11-211-2/+2
| | | | | userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
* Partial sync to the NetBSD wscons code, bringing a better wsmux behaviourmiod2005-05-151-18/+22
| | | | | | | and bugfixes (the kqueue code, /dev/wsmuxctl and screen border color changes have not been picked), keeping local changes. Tested by many on alpha/cats/hp300/i386/macppc/sparc/sparc64/zaurus if not more.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* update wscons, nothing serious, mostly api fixes for us; from netbsd through aaron@mickey2000-08-011-3/+3
|
* import newer wscons source from netbsd.mickey2000-05-161-0/+201
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