dm_fifo Module

Abstraction layer for named pipe (FIFO) access on Unix.


Uses

  • module~~dm_fifo~~UsesGraph module~dm_fifo dm_fifo module~dm_error dm_error module~dm_fifo->module~dm_error module~dm_file dm_file module~dm_fifo->module~dm_file module~dm_kind dm_kind module~dm_fifo->module~dm_kind unix unix module~dm_fifo->unix module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii module~dm_file->module~dm_error module~dm_file->module~dm_kind iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env

Used by

  • module~~dm_fifo~~UsedByGraph module~dm_fifo dm_fifo module~dmpack dmpack module~dmpack->module~dm_fifo

Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: FIFO_PERM = int(o'0644')

Default permissions.


Derived Types

type, public ::  fifo_type

Opaque named pipe (FIFO) type.


Functions

public function dm_fifo_read(fifo, bytes, error) result(nbytes)

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.

Arguments

Type IntentOptional 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.

Return Value integer(kind=i8)


Subroutines

public subroutine dm_fifo_close(fifo)

Closes named pipe.

Arguments

Type IntentOptional Attributes Name
type(fifo_type), intent(inout) :: fifo

FIFO type.

public subroutine dm_fifo_create(fifo, file_path, perm, error)

Creates new named pipe.

Read more…

Arguments

Type IntentOptional 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.

public subroutine dm_fifo_open(fifo, error)

Opens named pipe.

Read more…

Arguments

Type IntentOptional Attributes Name
type(fifo_type), intent(inout) :: fifo

FIFO type.

integer, intent(out), optional :: error

Error code.