summaryrefslogtreecommitdiff
path: root/util/sbase/mknod.1
blob: 1206549c5639dbdd1df9e8b62e22ab60ccf082bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.Dd February 2, 2015
.Dt MKNOD 1
.Os sbase
.Sh NAME
.Nm mknod
.Nd create a special device file
.Sh SYNOPSIS
.Nm
.Op Fl m Ar mode
.Ar name
.Cm b Ns | Ns Cm c Ns | Ns Cm u
.Ar major
.Ar minor
.Nm
.Op Fl m Ar mode
.Ar name
.Cm p
.Sh DESCRIPTION
.Nm
creates a special file named
.Ar name .
.Pp
The following special file types are supported:
.Bl -tag -width Ds
.It Cm b
A block device.
.It Cm c | u
A character device.
.It Cm p
A named pipe.
.El
.Pp
Block and character devices are created with major number
.Ar major ,
and minor number
.Ar minor .
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl m
Set the mode of the new file based on the octal value of
.Ar mode .
.El
.Sh SEE ALSO
.Xr mknod 2