dm_pipe_open2 Function

public function dm_pipe_open2(stdin, stdout, stderr, command) result(rc)

Creates three anonymous pipes for bidirectional IPC (stdin, stdout, stderr).

The function returns the following error codes:

  • E_EXIST if one or more pipe is already conncted.
  • E_SYSTEM if opening pipes failed.

Arguments

Type IntentOptional Attributes Name
type(pipe_type), intent(out) :: stdin

Standard input handle.

type(pipe_type), intent(out) :: stdout

Standard output handle.

type(pipe_type), intent(out) :: stderr

Standard error handle.

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

Program to invoke.

Return Value integer


Calls

proc~~dm_pipe_open2~~CallsGraph proc~dm_pipe_open2 dm_pipe_open2 c_close c_close proc~dm_pipe_open2->c_close c_dup2 c_dup2 proc~dm_pipe_open2->c_dup2 c_execl c_execl proc~dm_pipe_open2->c_execl c_exit c_exit proc~dm_pipe_open2->c_exit c_fdopen c_fdopen proc~dm_pipe_open2->c_fdopen c_fork c_fork proc~dm_pipe_open2->c_fork c_pipe c_pipe proc~dm_pipe_open2->c_pipe proc~dm_pipe_connected dm_pipe_connected proc~dm_pipe_open2->proc~dm_pipe_connected

Called by

proc~~dm_pipe_open2~~CalledByGraph proc~dm_pipe_open2 dm_pipe_open2 proc~dm_plot_lines dm_plot_lines proc~dm_plot_lines->proc~dm_pipe_open2