Abstraction layer for named pipe (FIFO) access on Unix.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | FIFO_PERM | = | int(o'0644') |
Default permissions. |
Opaque named pipe (FIFO) type.
Reads from named pipe and returns number of bytes read. The read
string is returned in bytes
. Argument error
is set to
E_NULL
if fifo
is not connected.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fifo_type), | intent(inout) | :: | fifo |
FIFO type. |
||
character(len=:), | intent(out), | allocatable | :: | bytes |
Bytes read from FIFO. |
|
integer, | intent(out), | optional | :: | error |
Error code. |
Closes named pipe.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fifo_type), | intent(inout) | :: | fifo |
FIFO type. |
Creates new named pipe.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fifo_type), | intent(inout) | :: | fifo |
FIFO type. |
||
character(len=*), | intent(in) | :: | file_path |
Path of FIFO. |
||
integer, | intent(in), | optional | :: | perm |
File permissions. |
|
integer, | intent(out), | optional | :: | error |
Error code. |
Opens named pipe.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fifo_type), | intent(inout) | :: | fifo |
FIFO type. |
||
integer, | intent(out), | optional | :: | error |
Error code. |