aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pty
Commit message (Collapse)AuthorAgeFilesLines
* MFC r303151:Konstantin Belousov2016-07-281-9/+4
| | | | | | | | | | Provide counter_warning(9) KPI. MFC r303155: Hide counted_warning(9) under #ifdef _KERNEL braces. Notes: svn path=/stable/10/; revision=303433
* MFC r298337:Enji Cooper2016-05-131-1/+1
| | | | | | | | | | | | | | | r298337 (by cem): pty(4): Use strlcpy to guarantee destination buffer isn't overrun The devtoname() name is strcpyed into a small stack buffer. Sure, we always expect the name to be ttyXX (or ptyXX). If that's the case, strlcpy() doesn't hurt. CID: 1006768 Notes: svn path=/stable/10/; revision=299623
* MFC r293825:Konstantin Belousov2016-02-031-2/+11
| | | | | | | | | | | | Switch legacy pty clone handler to use make_dev_s(9). MFC r294594: Remove printf only useful for debugging. Approved by: re (marius) Notes: svn path=/stable/10/; revision=295211
* Fix whitespace inconsistencies in the TTY layer and its drivers owned by me.Ed Schouten2011-06-261-3/+3
| | | | Notes: svn path=/head/; revision=223575
* Finish r210923, 210926. Mark some devices as eternal.Konstantin Belousov2011-01-041-1/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=216952
* Move ptmx into pty(4).Ed Schouten2009-09-061-0/+18
| | | | | | | | | | | Now that pty(4) is a loadable kernel module, I'd better move /dev/ptmx in there as well. This means that pty(4) now provides almost all pseudo-terminal compatibility code. This means it's very easy to test whether applications use the proper library interfaces when allocating pseudo-terminals (namely posix_openpt and openpty). Notes: svn path=/head/; revision=196886
* Allow pty(4) to be loaded as a kld.Ed Schouten2009-08-231-0/+141
Unfortunately, the wrappers that are present in pts(4) don't have the mechanics to allow pty(4) to be unloaded safely, so I'm forcing this kld to return EBUSY. This also means we have to enable some extra code in pts(4) unconditionally. Proposed by: rwatson Notes: svn path=/head/; revision=196480