dm_pipe_open Function

public function dm_pipe_open(pipe, command, access) result(rc)

Opens a process by creating a pipe, forking, and invoking the shell. Access mode has to be either PIPE_RDONLY or PIPE_WRONLY.

The function returns the following error codes:

  • E_EXIST if pipe is already connected.
  • E_INVALID if access mode is invalid.
  • E_SYSTEM if system call failed.

Arguments

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

Pipe type.

character(len=*), intent(in) :: command

Name or path of binary to open.

integer, intent(in) :: access

Open pipe for reading or writing.

Return Value integer


Calls

proc~~dm_pipe_open~~CallsGraph proc~dm_pipe_open dm_pipe_open c_popen c_popen proc~dm_pipe_open->c_popen proc~dm_pipe_connected dm_pipe_connected proc~dm_pipe_open->proc~dm_pipe_connected

Called by

proc~~dm_pipe_open~~CalledByGraph proc~dm_pipe_open dm_pipe_open proc~dm_gm_get_dimensions dm_gm_get_dimensions proc~dm_gm_get_dimensions->proc~dm_pipe_open proc~dm_gm_get_directory dm_gm_get_directory proc~dm_gm_get_directory->proc~dm_pipe_open proc~dm_gm_get_file_extension dm_gm_get_file_extension proc~dm_gm_get_file_extension->proc~dm_pipe_open proc~dm_gm_get_file_format dm_gm_get_file_format proc~dm_gm_get_file_format->proc~dm_pipe_open proc~dm_gm_get_file_name dm_gm_get_file_name proc~dm_gm_get_file_name->proc~dm_pipe_open proc~dm_plot_lines dm_plot_lines proc~dm_plot_lines->proc~dm_pipe_open proc~dm_plot_version dm_plot_version proc~dm_plot_version->proc~dm_pipe_open proc~dm_gm_get_mime dm_gm_get_mime proc~dm_gm_get_mime->proc~dm_gm_get_file_format