1
0
Files
irix-657m-src/eoe/man/man2/mkfifo.2
2022-09-29 17:59:04 +03:00

43 lines
908 B
Groff

'\"macro stdmacro
.if n .pH g2.mkfifo @(#)mkfifo 30.3 of 12/25/85
.TH MKFIFO 2
.SH NAME
mkfifo \- make a \s-1FIFO\s+1 special file
.SH C SYNOPSIS
.B #include <sys/types.h>
.br
.B #include <sys/stat.h>
.sp
.B "int mkfifo (const char \(**path, mode_t mode);"
.SH DESCRIPTION
The
.I mkfifo\^
routine creates a new
.SM FIFO
special file named by the pathname pointed to by
.I path.
.SM IRIX
implements it via the following
.I mknod
call:
.PP
.B " mknod(path, (mode | \s-1S_IFIFO\s+1), 0)"
.PP
where
.B \s-1S_IFIFO\s+1
is defined in <\f2sys/stat.h\fP>.
Refer to \f2mknod\fP(2) for details.
.SH "SEE ALSO"
mknod(2), chmod(2), exec(2), pipe(2), stat(2), umask(2).
.SH DIAGNOSTICS
Upon successful completion,
.I mkfifo\^
returns a value of 0. Otherwise, a value of \-1 is returned, no
.SM FIFO
is created, and
.I errno\^
is set to indicate the error.
.\" @(#)fork.2 6.2 of 9/6/83
.Ee
'\".so /pubs/tools/origin.att