History log of /freebsd-10.1-release/sbin/mknod/mknod.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 215704 22-Nov-2010 brucec

Fix some more warnings found by clang.


# 203277 31-Jan-2010 ed

Allow mknod(8) to be only invoked with a pathname as an argument.

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.


# 170692 14-Jun-2007 delphij

In the previous changeset a cast of myminor to u_int were
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


# 170653 13-Jun-2007 delphij

WARNS=6


# 128073 09-Apr-2004 markm

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp


# 55518 06-Jan-2000 obrien

The previous commit closes

PR: 14300
Submitted by: Chris Emerson <cemerson+freebsd@chiark.greenend.org.uk>


# 55496 06-Jan-2000 obrien

Add chown(8)-like functionality. This will allow us to not use chown(8)
in MAKEDEV(8) -- removing the need of having /usr mounted.


# 55479 05-Jan-2000 mjacob

Cast myminor/mymajor results to u_int so
comparisons to longs work correctly on
alpha.


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 46859 10-May-1999 phk

Fix mknod which overloaded a little too much on "minor" and "major"


# 37422 06-Jul-1998 charnier

Remove unused #include. Add usage().


# 26674 16-Jun-1997 charnier

Use err(3).


# 23811 12-Mar-1997 bde

Fixed checking for a non-numeric minor number.


# 22990 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

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.


# 17347 30-Jul-1996 bde

Use strtoul() more carefully.

Check that the major and minor are valid.

Don't print `.' at the end of error messages.

Fixed all warnings from "cc -Wall".


# 17302 27-Jul-1996 joerg

Finally use strtoul() to convert the major an minor numbers, so
proper error-checking can be done, and octal and hexadecimal
numbers are allowed.


# 1559 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1558,
which included commits to RCS files with non-trunk default branches.


# 1558 26-May-1994 rgrimes

BSD 4.4 Lite sbin Sources

Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.