dm_pipe_read_line Function

public function dm_pipe_read_line(pipe, output, n) result(rc)

Reads line string from pipe to buffer output and removes new-line and null-termination.

The function returns the following error codes:

  • E_INVALID if pipe is not connected or write-only.
  • E_READ if reading from pipe failed.

Arguments

Type IntentOptional Attributes Name
type(pipe_type), intent(inout) :: pipe

Bi-directional pipe.

character(len=*), intent(inout) :: output

Output buffer.

integer, intent(out), optional :: n

Bytes read.

Return Value integer


Calls

proc~~dm_pipe_read_line~~CallsGraph proc~dm_pipe_read_line dm_pipe_read_line c_fgets c_fgets proc~dm_pipe_read_line->c_fgets proc~dm_pipe_is_connected dm_pipe_is_connected proc~dm_pipe_read_line->proc~dm_pipe_is_connected

Called by

proc~~dm_pipe_read_line~~CalledByGraph proc~dm_pipe_read_line dm_pipe_read_line proc~dm_freebsd_disk_free dm_freebsd_disk_free proc~dm_freebsd_disk_free->proc~dm_pipe_read_line proc~dm_freebsd_vmstat dm_freebsd_vmstat proc~dm_freebsd_vmstat->proc~dm_pipe_read_line proc~dm_linux_disk_free dm_linux_disk_free proc~dm_linux_disk_free->proc~dm_pipe_read_line proc~dm_freebsd_vmstat_cpu_idle dm_freebsd_vmstat_cpu_idle proc~dm_freebsd_vmstat_cpu_idle->proc~dm_freebsd_vmstat proc~dm_system_disk_free dm_system_disk_free proc~dm_system_disk_free->proc~dm_freebsd_disk_free proc~dm_system_disk_free->proc~dm_linux_disk_free