xref: /titanic_51/usr/src/man/man1m/mknod.1m (revision be468fc6d7266e97f1330ad9a761169925f5f3f1)
te
Copyright 1989 AT&T Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
MKNOD 1M "Sep 16, 1996"
NAME
mknod - make a special file
SYNOPSIS

mknod name b major minor

mknod name c major minor

mknod name p
DESCRIPTION

mknod makes a directory entry for a special file.

OPTIONS

The following options are supported: b

Create a block-type special file.

c

Create a character-type special file.

p

Create a FIFO (named pipe).

OPERANDS

The following operands are supported: major

The major device number.

minor

The minor device number; can be either decimal or octal. The assignment of major device numbers is specific to each system. You must be the super-user to use this form of the command.

name

A special file to be created.

USAGE

See largefile(5) for the description of the behavior of mknod when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).

SEE ALSO

ftp(1), in.ftpd(1M), mknod(2), symlink(2), attributes(5), largefile(5)

NOTES

If mknod(2) is used to create a device, the major and minor device numbers are always interpreted by the kernel running on that machine.

With the advent of physical device naming, it would be preferable to create a symbolic link to the physical name of the device (in the /devices subtree) rather than using mknod.