dm_pipe_open Function

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

Uses

  • proc~~dm_pipe_open~~UsesGraph proc~dm_pipe_open dm_pipe_open module~dm_c dm_c proc~dm_pipe_open->module~dm_c module~dm_kind dm_kind module~dm_c->module~dm_kind unix unix module~dm_c->unix iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env

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_f_c_string dm_f_c_string proc~dm_pipe_open->proc~dm_f_c_string proc~dm_pipe_is_connected dm_pipe_is_connected proc~dm_pipe_open->proc~dm_pipe_is_connected

Called by

proc~~dm_pipe_open~~CalledByGraph proc~dm_pipe_open dm_pipe_open proc~dm_freebsd_disk_free dm_freebsd_disk_free proc~dm_freebsd_disk_free->proc~dm_pipe_open proc~dm_freebsd_vmstat dm_freebsd_vmstat proc~dm_freebsd_vmstat->proc~dm_pipe_open proc~dm_linux_disk_free dm_linux_disk_free proc~dm_linux_disk_free->proc~dm_pipe_open proc~dm_pipe_execute dm_pipe_execute proc~dm_pipe_execute->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_freebsd_uptime_load_average dm_freebsd_uptime_load_average proc~dm_freebsd_uptime_load_average->proc~dm_pipe_execute proc~dm_freebsd_vmstat_cpu_idle dm_freebsd_vmstat_cpu_idle proc~dm_freebsd_vmstat_cpu_idle->proc~dm_freebsd_vmstat proc~dm_gm_get_dimensions dm_gm_get_dimensions proc~dm_gm_get_dimensions->proc~dm_pipe_execute proc~dm_gm_get_directory dm_gm_get_directory proc~dm_gm_get_directory->proc~dm_pipe_execute proc~dm_gm_get_file_extension dm_gm_get_file_extension proc~dm_gm_get_file_extension->proc~dm_pipe_execute proc~dm_gm_get_file_format dm_gm_get_file_format proc~dm_gm_get_file_format->proc~dm_pipe_execute proc~dm_gm_get_file_name dm_gm_get_file_name proc~dm_gm_get_file_name->proc~dm_pipe_execute 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 proc~dm_gm_get_mime dm_gm_get_mime proc~dm_gm_get_mime->proc~dm_gm_get_file_format proc~dm_system_load_average dm_system_load_average proc~dm_system_load_average->proc~dm_freebsd_uptime_load_average