Home | History | Annotate | only in /src/sbin/mknod
History log of /src/sbin/mknod
RevisionDateAuthorComments
 1.13 11-Apr-2009  lukem Enable WARNS=4 by default except for:
dump dump_lfs fsck_ffs fsck_lfs fsdb mount_smbfs
newfs_ext2fs newfs_lfs resize_lfs setkey
 1.12 13-Feb-2009  lukem WARNS=4
 1.11 27-Jun-2005  christos branches: 1.11.30;
Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
 1.10 09-Feb-2005  xtraeme WARNS=3.
 1.9 08-Oct-2001  lukem cleanups suggested by simonb:
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
 1.8 08-Oct-2001  lukem - move parsing of format type and format handlers into format.c, for easier
use in other programs
- do a bit of KNF whilst here
- enable WARNS=2
 1.7 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.6 22-Dec-1994  cgd specify man pages the new way.
 1.5 23-Sep-1994  mycroft Merge with 4.4-Lite version.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 23-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.11.30.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2 08-Oct-2001  lukem cleanups suggested by simonb:
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
 1.1 08-Oct-2001  lukem - move parsing of format type and format handlers into format.c, for easier
use in other programs
- do a bit of KNF whilst here
- enable WARNS=2
 1.30 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.29 11-Sep-2016  sevan mknod appeared in V4
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man8/mknod.8
Bump date.
 1.28 17-Jun-2004  dsl Document 'mknod -l' (list drivers in kernel), and use of driver name
instead of major number.
(all done using sysctl kern.drivers)
 1.27 29-Dec-2003  atatat Fix spelo
 1.26 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.25 09-May-2003  wiz Use .Nm instead of .Xr mknod, and sort options in HISTORY (incl. mdoc and grammar nit fixes).
 1.24 08-May-2003  lukem 2.0, not 1.7
 1.23 08-May-2003  dsl Add -g gid -m mode -u uid so that MAKEDEV can run when chown/chmod are
not available.
Add -r and -R to do two (different) sensible things if node exists.
From a discussion with Lukem.
 1.22 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.21 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.20 08-Oct-2001  mycroft Fix a formatting error.
 1.19 05-Jun-2001  wiz Drop arguments of .Os.
 1.18 17-May-2000  fair To resolve PR 9451, wording and formatting adjusted to be more clear about
the -F option for making device nodes for other versions of UNIX.
 1.17 22-Mar-2000  simonb Arch-specific directories now live under .../sys/arch, not directly
under .../sys.
 1.16 24-Nov-1998  christos branches: 1.16.2;
- document 'p' file type.
- fix stale documentation about the location of the major/minor device
tables in the kernel.
 1.15 11-Sep-1998  mycroft Add isc, sco, and bsdos 3-field format.
 1.14 17-Jan-1998  mycroft Add a `bsdos' format.
 1.13 17-Jan-1998  mycroft Add a -F option to specify the device number format.
Also accept a single opaque device number.
 1.12 11-Oct-1997  enami Sort SEE ALSO list; first by section number, then alphabetical order.
 1.11 15-Sep-1997  lukem * cleanup for WARNS+1
* use .Nm correctly
 1.10 30-Jun-1997  phil Added mkfifo(1) and mkfifo(2) to the SEE ALSO list. (PR 1307)
 1.9 10-Aug-1995  jtc makedev(8) -> MAKEDEV(8); PR #1306
 1.8 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.7 23-Sep-1994  mycroft Merge with 4.4-Lite version.
 1.6 14-Jan-1994  jtc Fix spelling errors
 1.5 30-Nov-1993  jtc Use ".At v6" macro instead of spelling out "Version 6 AT&T UNIX".
 1.4 01-Aug-1993  mycroft Add RCS indentifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 23-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.16.2.2 22-May-2000  he Pull up revision 1.18 (requested by fair):
Document -F flag. Fixes PR#9451.
 1.16.2.1 29-Mar-2000  he Pull up revision 1.17 (requested by simonb):
In the example conf.c path, arch-specific directories now
live under sys/arch, not directly under sys.
 1.42 22-Aug-2014  mlelstv Accept driver names only in the two args form together with a minor number.

That's what the documentation says and also avoids the case where the driver
name converted to a major number is interpreted as a packed dev_t number.
 1.41 14-Jun-2013  tsutsui Remove old workaround for Cygwin.
http://mail-index.netbsd.org/source-changes/2003/05/08/0042.html

16bit dev_t for !__CYGWIN_USE_BIG_TYPES__ was removed in Cygwin 1.7.2
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.32
and __dev32_t has been removed since 1.7.19.
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.36
 1.40 27-Aug-2011  joerg branches: 1.40.2; 1.40.8;
static + __dead
 1.39 13-Feb-2009  lukem fix -Wsign-compare issues
 1.38 20-Jul-2008  lukem branches: 1.38.4;
Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
 1.37 28-Apr-2008  martin branches: 1.37.2;
Remove clause 3 and 4 from TNF licenses
 1.36 07-Jul-2007  dsl branches: 1.36.12; 1.36.14;
Use block minor (from device name) for block devices (not char minor).
Fixes PR bin/36614
 1.35 01-Oct-2005  christos fix setmode error handling.
 1.34 20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.33 17-Jun-2004  christos We only need sys/sysctl.h when we are building on NetBSD not as a host tool.
 1.32 17-Jun-2004  dsl Add support for specifying drivers by name and listing the drivers in the
current kernel.
Man page update in progress.
 1.31 11-May-2004  christos Constify.
 1.30 30-Jan-2004  ross Don't exit on error from pack_dev.c, but return an error string and
have the caller do cleanup and (potentially) report errors in context.
This is needed because mknod(8) is not the only user of pack_dev.[ch]
 1.29 05-Jan-2004  jmmv Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
 1.28 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.27 08-May-2003  christos deal with cygwin's dev_t (John Gordon)
 1.26 08-May-2003  dsl Add -g gid -m mode -u uid so that MAKEDEV can run when chown/chmod are
not available.
Add -r and -R to do two (different) sensible things if node exists.
From a discussion with Lukem.
 1.25 17-Apr-2003  lukem clear errno before strto(u)l() if we're going to test it for ERANGE afterwards
 1.24 08-Oct-2001  lukem cleanups suggested by simonb:
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
 1.23 08-Oct-2001  lukem improve arg clamping
 1.22 08-Oct-2001  lukem - move parsing of format type and format handlers into format.c, for easier
use in other programs
- do a bit of KNF whilst here
- enable WARNS=2
 1.21 19-Feb-2001  cgd convert to use getprogname()
 1.20 04-Feb-2001  christos fix nested extern
 1.19 03-Jul-2000  matt More include fixups and GCC 2.96 nonsense
 1.18 24-Nov-1998  christos Add mknod <name> p which creates a named pipe. There is no real reason for
a separate mkfifo program and there is prior art.
 1.17 13-Oct-1998  tron Print correct filename if mknod() fails.
 1.16 08-Oct-1998  wsanchez Init dev to quiet compiler.
 1.15 11-Sep-1998  mycroft Oops; update usage message.
 1.14 11-Sep-1998  mycroft Add isc, sco, and bsdos 3-field format.
 1.13 15-Aug-1998  mycroft Assign my copyrights to TNF.
 1.12 17-Jan-1998  mycroft Add a `bsdos' format.
 1.11 17-Jan-1998  mycroft Add a -F option to specify the device number format.
Also accept a single opaque device number.
 1.10 05-Nov-1997  cgd lint
 1.9 15-Sep-1997  lukem * cleanup for WARNS+1
* use .Nm correctly
 1.8 11-Aug-1995  jtc Convert to use err(3)
 1.7 18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.6 18-Dec-1994  cgd -Wall cleanups from Jim Jegers
 1.5 23-Sep-1994  mycroft Merge with 4.4-Lite version.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 23-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.36.14.1 18-May-2008  yamt sync with head.
 1.36.12.2 28-Sep-2008  mjf Sync with HEAD.
 1.36.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.37.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.38.4.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.40.8.1 23-Jun-2013  tls resync from head
 1.40.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2 08-Oct-2001  lukem cleanups suggested by simonb:
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
 1.1 08-Oct-2001  lukem - move parsing of format type and format handlers into format.c, for easier
use in other programs
- do a bit of KNF whilst here
- enable WARNS=2
 1.12 14-Jun-2013  tsutsui Remove old workaround for Cygwin.
http://mail-index.netbsd.org/source-changes/2003/05/08/0042.html

16bit dev_t for !__CYGWIN_USE_BIG_TYPES__ was removed in Cygwin 1.7.2
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.32
and __dev32_t has been removed since 1.7.19.
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.36
 1.11 27-Aug-2011  joerg branches: 1.11.2; 1.11.8;
static + __dead
 1.10 13-Feb-2009  lukem fix -Wsign-compare issues
 1.9 28-Apr-2008  martin branches: 1.9.6;
Remove clause 3 and 4 from TNF licenses
 1.8 11-May-2004  christos branches: 1.8.26; 1.8.28;
Constify.
 1.7 30-Jan-2004  ross Don't exit on error from pack_dev.c, but return an error string and
have the caller do cleanup and (potentially) report errors in context.
This is needed because mknod(8) is not the only user of pack_dev.[ch]
 1.6 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.5 08-May-2003  christos deal with cygwin's dev_t (John Gordon)
 1.4 08-May-2003  lukem Move major_netbsd(), minor_netbsd(), and makedev_netbsd() from
pack_dev.c to pack_dev.h, so that #include-rs of the latter can use them.
 1.3 31-Jan-2002  tv Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
 1.2 29-Jan-2002  tv Add hooks to make mtree compilable from src/tools.
 1.1 08-Oct-2001  lukem cleanups suggested by simonb:
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
 1.8.28.1 18-May-2008  yamt sync with head.
 1.8.26.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.11.8.1 23-Jun-2013  tls resync from head
 1.11.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8 14-Jun-2013  tsutsui Remove old workaround for Cygwin.
http://mail-index.netbsd.org/source-changes/2003/05/08/0042.html

16bit dev_t for !__CYGWIN_USE_BIG_TYPES__ was removed in Cygwin 1.7.2
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.32
and __dev32_t has been removed since 1.7.19.
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.36
 1.7 28-Apr-2008  martin branches: 1.7.20; 1.7.26;
Remove clause 3 and 4 from TNF licenses
 1.6 11-May-2004  christos branches: 1.6.26; 1.6.28;
Constify.
 1.5 30-Jan-2004  ross Don't exit on error from pack_dev.c, but return an error string and
have the caller do cleanup and (potentially) report errors in context.
This is needed because mknod(8) is not the only user of pack_dev.[ch]
 1.4 08-May-2003  christos /sbin/wizd points out that it is CYGWIN not GYGWIN.
 1.3 08-May-2003  christos deal with cygwin's dev_t (John Gordon)
 1.2 08-May-2003  lukem Move major_netbsd(), minor_netbsd(), and makedev_netbsd() from
pack_dev.c to pack_dev.h, so that #include-rs of the latter can use them.
 1.1 08-Oct-2001  lukem cleanups suggested by simonb:
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
 1.6.28.1 18-May-2008  yamt sync with head.
 1.6.26.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.26.1 23-Jun-2013  tls resync from head
 1.7.20.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed