aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/snoop.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert r327005 - SPDX tags for license similar to BSD-2-Clause.Pedro F. Giffuni2017-12-201-2/+0
| | | | | | | | | | | | | | | | | | After consultation with SPDX experts and their matching guidelines[1], the licensing doesn't exactly match the BSD-2-Clause. It yet remains to be determined if they are equivalent or if there is a recognized license that matches but it is safer to just revert the tags. Let this also be a reminder that on FreeBSD, SPDX tags are only advisory and have no legal value (but IANAL). Pointyhat to: pfg Thanks to: Rodney Grimes, Gary O'Neall [1] https://spdx.org/spdx-license-list/matching-guidelines Notes: svn path=/head/; revision=327040
* SPDX: These are fundamentally BSD-2-Clause.Pedro F. Giffuni2017-12-191-1/+1
| | | | | | | They just omit the introductory line and numbering. Notes: svn path=/head/; revision=327005
* SPDX: mostly fixes to previous changes.Pedro F. Giffuni2017-12-131-1/+1
| | | | | | | | Introduce the recently approved BSD-1-Clause and replace 0BSD which never did fit well our use cases. Notes: svn path=/head/; revision=326823
* SPDX: Fix some cases wrongly attributed to MIT.Pedro F. Giffuni2017-11-301-1/+1
| | | | | | | | In the cases of BSD-style license variants without clauses, use 0BSD for the time being in lack of a better description. Notes: svn path=/head/; revision=326398
* sys/sys: 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=326256
* Slightly change the API for the SNPSTTY ioctl so that the userland nowOlivier Houchard2005-09-181-4/+2
| | | | | | | | | | provides a file descriptor instead of a dev_t. Discussed with: phk MFC after: 3 days Notes: svn path=/head/; revision=150298
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139825
* Second half of the dev_t cleanup.Poul-Henning Kamp2004-06-171-2/+2
| | | | | | | | | | | | | | The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc. Notes: svn path=/head/; revision=130640
* Declare the snp ioctl()s to work on udev_t, since that is what theyThomas Moestl2002-11-111-2/+2
| | | | | | | | | | really do and dev_t is defined differently in kernel and userland. Return a correctly formed udev from SNPGTTY. Reviewed by: dd Notes: svn path=/head/; revision=106767
* - Spell "these" properly.Andrew R. Reiter2002-09-101-2/+2
| | | | Notes: svn path=/head/; revision=103167
* Include <sys/types.h> in the !_KERNEL case so that this file isBruce Evans2002-06-241-0/+3
| | | | | | | | self-sufficient in that case (it needs dev_t). This is normal pollution for most headers that define ioctl numbers. Notes: svn path=/head/; revision=98746
* Move the kernel stuff out of snoop.h. It was only there because someDima Dorfman2001-07-251-39/+0
| | | | | | | | of the snp* functions needed to be called from tty.c, which is no longer the case. Notes: svn path=/head/; revision=80326
* Keep track of all "struct snoop"'s so that snp_modevent can fail withDima Dorfman2001-07-181-0/+1
| | | | | | | EBUSY if there's a device still open. Notes: svn path=/head/; revision=79864
* Style and cosmetic cleanups. This driver is now reasonably stlye(9)Dima Dorfman2001-06-051-4/+0
| | | | | | | | | | | | compliant. All the variable definitions and function names are reasonably consistent, and the functions which should be static (i.e., all of them) are. Other assorted fixes were made. The majority of the delta is indentation fixes. Partially reviewed by: bde Notes: svn path=/head/; revision=77748
* Remove unused includes, use *min() inline functions rather than aDima Dorfman2001-06-031-1/+0
| | | | | | | | | | home-grown macro, rewrite a confusing conditional in snpdevtotty(), and change ibuf to 512 bytes instead of 1024 bytes in dsnwrite(). Reviewed by: bde Notes: svn path=/head/; revision=77648
* Add snp_olddisc member to struct snoop; the linedisc'ized snp(4) uses this.Dima Dorfman2001-05-241-0/+1
| | | | | | | Pointy hat to: dd Notes: svn path=/head/; revision=77106
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-3/+5
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.Dag-Erling Smørgrav1998-04-171-1/+1
| | | | Notes: svn path=/head/; revision=35256
* Fixed nonblocking mode. It was per-device instead of per-file.Bruce Evans1997-11-181-1/+0
| | | | Notes: svn path=/head/; revision=31281
* Only export ioctl-related stuff to applications. Include prerequisiteBruce Evans1997-03-191-10/+15
| | | | | | | | | headers (like most other ioctl-related headers). Didn't fix spelling errors and other warts. Notes: svn path=/head/; revision=24034
* A Major staticize sweep. Generates a couple of warnings that I'll dealPoul-Henning Kamp1995-12-141-1/+0
| | | | | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed. Notes: svn path=/head/; revision=12819
* Moved prototypes for devswitch functions from conf.c and driver sourcesBruce Evans1995-11-041-6/+0
| | | | | | | | | | to <machine/conf.h>. conf.h was mechanically generated by `grep ^d_ conf.c >conf.h'. This accounts for part of its ugliness. The prototypes should be moved back to the driver sources when the functions are staticalized. Notes: svn path=/head/; revision=12071
* Fix benign type mismatches in devsw functions. 82 out of 299 devswBruce Evans1995-09-081-2/+2
| | | | | | | functions were wrong. Notes: svn path=/head/; revision=10624
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8876
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'Bruce Evans1995-03-281-3/+17
| | | | | | | | (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before. Notes: svn path=/head/; revision=7430
* sameUgen J.S. Antsilevich1995-02-271-6/+7
| | | | Notes: svn path=/head/; revision=6774
* (a) remove the pointer to each driver's tty structure array from cdevswPaul Traina1995-02-251-23/+6
| | | | | | | | | | | | (b) add a function callback vector to tty drivers that will return a pointer to a valid tty structure based upon a dev_t (c) make syscons structures the same size whether or not APM is enabled so utilities don't crash if NAPM changes (and make the damn kernel compile!) (d) rewrite /dev/snp ioctl interface so that it is device driver and i386 independant Notes: svn path=/head/; revision=6712
* More changes to support user calls.Ugen J.S. Antsilevich1995-02-151-1/+15
| | | | Notes: svn path=/head/; revision=6453
* Add more flags to snoop deviceUgen J.S. Antsilevich1995-02-151-2/+11
| | | | Notes: svn path=/head/; revision=6446
* TS_SNOOP flag added to identify tty is begin snooppedUgen J.S. Antsilevich1995-02-141-0/+64
snoop.h have all structures related to the snp device and stuff Notes: svn path=/head/; revision=6391