mknod.2 (107788) | mknod.2 (108028) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)mknod.2 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)mknod.2 8.1 (Berkeley) 6/4/93 |
33.\" $FreeBSD: head/lib/libc/sys/mknod.2 107788 2002-12-12 17:26:04Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/mknod.2 108028 2002-12-18 09:22:32Z ru $ |
34.\" 35.Dd June 4, 1993 36.Dt MKNOD 2 37.Os 38.Sh NAME 39.Nm mknod 40.Nd make a special file node 41.Sh LIBRARY --- 14 unchanged lines hidden (view full) --- 56indicates a block or character special file, 57.Fa dev 58is a configuration dependent specification denoting a particular device 59on the system. 60Otherwise, 61.Fa dev 62is ignored. 63.Pp | 34.\" 35.Dd June 4, 1993 36.Dt MKNOD 2 37.Os 38.Sh NAME 39.Nm mknod 40.Nd make a special file node 41.Sh LIBRARY --- 14 unchanged lines hidden (view full) --- 56indicates a block or character special file, 57.Fa dev 58is a configuration dependent specification denoting a particular device 59on the system. 60Otherwise, 61.Fa dev 62is ignored. 63.Pp |
64.Fn Mknod | 64The 65.Fn mknod 66system call |
65requires super-user privileges. 66.Sh RETURN VALUES 67.Rv -std mknod 68.Sh ERRORS | 67requires super-user privileges. 68.Sh RETURN VALUES 69.Rv -std mknod 70.Sh ERRORS |
69.Fn Mknod | 71The 72.Fn mknod 73system call |
70will fail and the file will be not created if: 71.Bl -tag -width Er 72.It Bq Er ENOTDIR 73A component of the path prefix is not a directory. 74.It Bq Er ENAMETOOLONG 75A component of a pathname exceeded 255 characters, 76or an entire path name exceeded 1023 characters. 77.It Bq Er ENOENT --- 35 unchanged lines hidden (view full) --- 113is not supported. 114.El 115.Sh SEE ALSO 116.Xr chmod 2 , 117.Xr mkfifo 2 , 118.Xr stat 2 , 119.Xr umask 2 120.Sh HISTORY | 74will fail and the file will be not created if: 75.Bl -tag -width Er 76.It Bq Er ENOTDIR 77A component of the path prefix is not a directory. 78.It Bq Er ENAMETOOLONG 79A component of a pathname exceeded 255 characters, 80or an entire path name exceeded 1023 characters. 81.It Bq Er ENOENT --- 35 unchanged lines hidden (view full) --- 117is not supported. 118.El 119.Sh SEE ALSO 120.Xr chmod 2 , 121.Xr mkfifo 2 , 122.Xr stat 2 , 123.Xr umask 2 124.Sh HISTORY |
121A | 125The |
122.Fn mknod | 126.Fn mknod |
123function call appeared in | 127function appeared in |
124.At v6 . | 128.At v6 . |