sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
show more ...
Provide counter_warning(9) KPI which allows to issue limited number ofwarnings for some kernel events, mostly intended for the use ofobsoleted or otherwise undersired interfaces.This is an abstra
Provide counter_warning(9) KPI which allows to issue limited number ofwarnings for some kernel events, mostly intended for the use ofobsoleted or otherwise undersired interfaces.This is an abstracted and race-expelled code from compat pty driver.Requested and reviewed by: jhbSponsored by: The FreeBSD FoundationMFC after: 1 weekDifferential revision: https://reviews.freebsd.org/D7270
pty(4): Use strlcpy to guarantee destination buffer isn't overrunThe devtoname() name is strcpyed into a small stack buffer. Sure, we alwaysexpect the name to be ttyXX (or ptyXX). If that's the
pty(4): Use strlcpy to guarantee destination buffer isn't overrunThe devtoname() name is strcpyed into a small stack buffer. Sure, we alwaysexpect the name to be ttyXX (or ptyXX). If that's the case, strlcpy() doesn'thurt.Reported by: CoverityCID: 1006768Sponsored by: EMC / Isilon Storage Division
Remove printf only useful for debugging.Requested by: bdeSponsored by: The FreeBSD FoundationMFC after: 3 weeks
Switch legacy pty clone handler to use make_dev_s(9). AddMAKEDEV_CHECKNAME flag to the call, this is required to not panic onrace between the clone and destructing the closed master.Reported by
Switch legacy pty clone handler to use make_dev_s(9). AddMAKEDEV_CHECKNAME flag to the call, this is required to not panic onrace between the clone and destructing the closed master.Reported by and discussed with: bdeTested by: pho (as part of the larger patch)Sponsored by: The FreeBSD FoundationMFC after: 3 weeks
Fix whitespace inconsistencies in the TTY layer and its drivers owned by me.
Finish r210923, 210926. Mark some devices as eternal.MFC after: 2 weeks
Move ptmx into pty(4).Now that pty(4) is a loadable kernel module, I'd better move /dev/ptmxin there as well. This means that pty(4) now provides almost allpseudo-terminal compatibility code. Thi
Move ptmx into pty(4).Now that pty(4) is a loadable kernel module, I'd better move /dev/ptmxin there as well. This means that pty(4) now provides almost allpseudo-terminal compatibility code. This means it's very easy to testwhether applications use the proper library interfaces when allocatingpseudo-terminals (namely posix_openpt and openpty).
Allow pty(4) to be loaded as a kld.Unfortunately, the wrappers that are present in pts(4) don't have themechanics to allow pty(4) to be unloaded safely, so I'm forcing this kldto return EBUSY. Th
Allow pty(4) to be loaded as a kld.Unfortunately, the wrappers that are present in pts(4) don't have themechanics to allow pty(4) to be unloaded safely, so I'm forcing this kldto return EBUSY. This also means we have to enable some extra code inpts(4) unconditionally.Proposed by: rwatson