aboutsummaryrefslogtreecommitdiff
path: root/sbin/devfs/devfs.c
Commit message (Collapse)AuthorAgeFilesLines
* various: general 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. No functional change intended. Notes: svn path=/head/; revision=326276
* sbin/devfs: clarify usageEnji Cooper2017-03-081-1/+3
| | | | | | | | | | | | | | | | | - Note existence of -m option. - Note that -s applies to rule keyword, only, by adding usage text specifically for the `rule` and `ruleset` keywords. Don't go into any further detail in usage(..) -- it's best that one reads the manpage to get a better idea of how things work as there are a number of different option-specific keywords and arguments, as well as some rule grammar. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314924
* o Revert a previous delta as strlcpy(3) operates with NUL-terminatedMaxim Konovalov2006-06-141-1/+2
| | | | | | | | strings and cp is not. Fix logic in the original code and eliminate core dumps on lines without '\n'. Notes: svn path=/head/; revision=159605
* o Replace (an incorrect) string copy gymnastics with strlcpy(3).Maxim Konovalov2006-06-141-2/+1
| | | | | | | | | PR: bin/98905 Submitted by: Fabian Keil MFC after: 1 week Notes: svn path=/head/; revision=159604
* Userland signed char fixes for PPC build. Problems were using a charPeter Grehan2004-01-221-1/+1
| | | | | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe Notes: svn path=/head/; revision=124830
* Don't depend on pollution in <machine/limits.h> (by way ofMike Barcroft2002-07-291-0/+1
| | | | | | | <sys/param.h>) for definition of <stdint.h> macros. Notes: svn path=/head/; revision=100881
* Nuke whitespace at EOL.Dima Dorfman2002-07-281-2/+2
| | | | Notes: svn path=/head/; revision=100805
* Implement this (quoted from the updated man page): If the first tokenDima Dorfman2002-07-281-1/+90
| | | | | | | | of a rule specification is a single dash (``-''), rules are read from the standard input and the rest of the specification is ignored. Notes: svn path=/head/; revision=100799
* Introduce the DEVFS "rule" subsystem. DEVFS rules permit theDima Dorfman2002-07-171-0/+140
administrator to define certain properties of new devfs nodes before they become visible to the userland. Both static (e.g., /dev/speaker) and dynamic (e.g., /dev/bpf*, some removable devices) nodes are supported. Each DEVFS mount may have a different ruleset assigned to it, permitting different policies to be implemented for things like jails. Approved by: phk Notes: svn path=/head/; revision=100206