summaryrefslogtreecommitdiffstats
path: root/sbin/mknod/mknod.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix some more warnings found by clang.brucec2010-11-221-1/+1
|
* Allow mknod(8) to be only invoked with a pathname as an argument.ed2010-01-311-24/+30
| | | | | | | | | In 99% of the cases people just want to recreate device nodes they removed from /dev. There is no reason to pass the additional "c 0 0" anymore. Also slightly improve the manpage. Remove references to non-existent device names and platforms.
* In the previous changeset a cast of myminor to u_int weredelphij2007-06-141-1/+1
| | | | | | | | | | | removed, which will cause problems on architectures where longs are longer than ints, for instance, "mknod foo c 0 0xffff00ff" would fail in such cases. Use a proper cast instead. Prompted by: bde
* WARNS=6delphij2007-06-131-11/+6
|
* Remove advertising clause from University of California Regent's license,markm2004-04-091-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Add chown(8)-like functionality. This will allow us to not use chown(8)obrien2000-01-061-5/+68
| | | | in MAKEDEV(8) -- removing the need of having /usr mounted.
* Cast myminor/mymajor results to u_int somjacob2000-01-051-1/+2
| | | | | comparisons to longs work correctly on alpha.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix mknod which overloaded a little too much on "minor" and "major"phk1999-05-101-6/+6
|
* Remove unused #include. Add usage().charnier1998-07-061-10/+12
|
* Use err(3).charnier1997-06-161-26/+12
|
* Fixed checking for a non-numeric minor number.bde1997-03-121-2/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Use strtoul() more carefully.bde1996-07-301-12/+34
| | | | | | | | Check that the major and minor are valid. Don't print `.' at the end of error messages. Fixed all warnings from "cc -Wall".
* Finally use strtoul() to convert the major an minor numbers, sojoerg1996-07-271-2/+16
| | | | | proper error-checking can be done, and octal and hexadecimal numbers are allowed.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+82
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud