aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pty
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Provide counter_warning(9) KPI which allows to issue limited number ofKonstantin Belousov2016-07-211-9/+4
| | | | | | | | | | | | | | | warnings for some kernel events, mostly intended for the use of obsoleted or otherwise undersired interfaces. This is an abstracted and race-expelled code from compat pty driver. Requested and reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D7270 Notes: svn path=/head/; revision=303151
* pty(4): Use strlcpy to guarantee destination buffer isn't overrunConrad Meyer2016-04-201-1/+1
| | | | | | | | | | | | | 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. Reported by: Coverity CID: 1006768 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=298337
* Remove printf only useful for debugging.Konstantin Belousov2016-01-221-3/+1
| | | | | | | | | Requested by: bde Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Notes: svn path=/head/; revision=294594
* Switch legacy pty clone handler to use make_dev_s(9). AddKonstantin Belousov2016-01-131-2/+13
| | | | | | | | | | | | | MAKEDEV_CHECKNAME flag to the call, this is required to not panic on race between the clone and destructing the closed master. Reported by and discussed with: bde Tested by: pho (as part of the larger patch) Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Notes: svn path=/head/; revision=293825
* 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