summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-10-07 18:00:55 +0000
committerjh <jh@FreeBSD.org>2010-10-07 18:00:55 +0000
commitd93ad5245d40e2887d36fe6e876a870d16f1dc0d (patch)
treef6bd7f0b6ecbf4f251efb4a2bf7d3fa7096463ef /contrib/llvm/lib/CodeGen
parent81f0eaae12838513377191ff7dd13700a9b32dad (diff)
downloadFreeBSD-src-d93ad5245d40e2887d36fe6e876a870d16f1dc0d.zip
FreeBSD-src-d93ad5245d40e2887d36fe6e876a870d16f1dc0d.tar.gz
Check the device name validity on device registration.
A new function prep_devname() sanitizes a device name by removing leading and redundant sequential slashes. The function returns an error for names which already exist or are considered invalid. A new flag MAKEDEV_CHECKNAME for make_dev_p(9) and make_dev_credf(9) indicates that the caller is prepared to handle an error related to the device name. An invalid name triggers a panic if the flag is not specified. Document the MAKEDEV_CHECKNAME flag in the make_dev(9) manual page. Idea from: kib Reviewed by: kib
Diffstat (limited to 'contrib/llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud