File: mkfifo.3

package info (click to toggle)
manpages-es 1.24a-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,256 kB
  • ctags: 7
  • sloc: makefile: 66; sh: 62
file content (96 lines) | stat: -rw-r--r-- 3,859 bytes parent folder | download
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" This manpage is Copyright (C) 1995 James R. Van Zandt <jrv@vanzandt.mv.com>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\" 
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\" 
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" changed section from 2 to 3, aeb, 950919
.\"
.\" Translated into Spanish Wed Mar  4 10:55:46 CET 1998 by Gerardo
.\" Aburruzaga Garca <gerardo.aburruzagaca.es>
.\"
.TH MKFIFO 3 "4 Marzo 1998" "Linux 1.2.13" "Manual del Programador de Linux"
.SH NOMBRE
mkfifo \- construye un fichero especial FIFO (una tubera con nombre)
.SH SINOPSIS
.nf
.B #include <sys/types.h>
.B #include <sys/stat.h>
.sp
.BI "int mkfifo ( const char *" camino ", modo_t " modo " );"
.fi
.SH DESCRIPCIN
\fBmkfifo\fP construye un fichero especial FIFO con el nombre \fIcamino\fP.
\fImodo\fP especifica los permisos del FIFO. Son modificados por la mscara
\fBumask\fP del proceso de la forma habitual: los permisos del fichero
recin creado son \fB(\fP\fImodo\fP\fB & ~umask)\fP.
.PP
Un fichero especial FIFO es similar a una interconexin o tubera,
excepto en que se crea de una forma distinta. En vez de ser un canal
de comunicaciones annimo, un fichero especial FIFO se mete en el
sistema de ficheros mediante una llamada a \fBmkfifo\fP.
.PP
Una vez que Ud. ha creado un fichero especial FIFO de esta forma,
cualquier proceso puede abrirlo para lectura o escritura, de la misma
manera que con un fichero normal. Sin embargo, tiene que ser abierto
en los dos extremos simultneamente antes de que se pueda proceder a
cualquier operacin de entrada o salida. Abrir un FIFO para lectura
normalmente produce un bloqueo hasta que algn otro proceso abre el
mismo FIFO para escritura, y viceversa.
.SH "VALOR DEVUELTO"
El valor de retorno normal, si todo va bien, de \fImkfifo\fP, es \fB0\fP. En
caso de error, se devuelve \fB\-1\fP  (en este caso, \fIerrno\fP
toma un valor apropiado).
.SH ERRORES
.TP
.B EACCES
Uno de los directorios en \fIcamino\fP no tiene permiso de paso (ejecucin).
.TP
.B EEXIST
\fIcamino\fP ya existe.
.TP
.B ENAMETOOLONG
O la longitud total de \fIcamino\fP es mayor que
\fBPATH_MAX\fP, o un componente nombre de fichero individual tiene una
longitud superior a \fBNAME_MAX\fP.  En el sistema GNU, no hay un
lmite impuesto a la longitud total del nombre de un fichero, pero
algunos sistemas de ficheros pueden poner lmites en la longitud de un
componente.
.TP
.B ENOENT
Un componente directorio en \fIcamino\fP no existe o es un enlace
simblico colgante.
.TP
.B ENOSPC
El directorio o sistema de ficheros no tiene sitio para el nuevo fichero.
.TP
.B ENOTDIR
Un componente usado como directorio en \fIcamino\fP no es, de hecho,
un directorio.
.TP
.B EROFS
\fIcamino\fP se refiere a un sistema de ficheros de lectura exclusiva.
.SH "CONFORME A"
POSIX.1
.SH "VASE TAMBIN"
.BR mkfifo "(1), " read "(2), " write "(2), " open (2),
.BR close "(2), " stat "(2), " umask (2).