summaryrefslogtreecommitdiff
path: root/share/examples/kld/cdev/test/testcdev.c
Commit message (Collapse)AuthorAgeFilesLines
* share and pc-sysinstall: adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | | 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. Commit these apart because compile testing doesn't guarantee I didn't made some nasty mistake. No functional change intended. Notes: svn path=/head/; revision=326275
* Include unistd.h for read(), write() and stdlib.h for exit().Wojciech A. Koszek2010-01-181-3/+5
| | | | | | | Bump WARNS to 5 while being here. Notes: svn path=/head/; revision=202603
* Fix the cdev kld example.Martin Blapp2003-08-031-0/+1
| | | | | | | | | PR: 52954 Submitted by: Priit Piipuu <priit.piipuu@mail.ee> Reviewed by: phk Notes: svn path=/head/; revision=118385
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-1/+3
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* Fix cdev kld example after it has been broken for year or so. Also extend listMaxim Sobolev2000-10-021-1/+25
| | | | | | | | | | | of supported operations by example read() and write() operations. Inspired by: http://www.daemonnews.org/200010/blueprints.html PR: 16173 Submitted by: sobomax Notes: svn path=/head/; revision=66549
* * Tidy up a few things and fix some more warnings.Doug Rabson1999-06-271-1/+2
| | | | | | | | * Change the devsw declaration to standard form and add missing fields * Change the filename from cdev_mod.ko to cdev.ko Notes: svn path=/head/; revision=48275
* Sample modules for KLD.Doug Rabson1998-12-111-0/+95
PR: misc/8621 Submitted by: Rajesh Vaidheeswarran <rv@fore.com> Notes: svn path=/head/; revision=41681