GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave-popen2.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
#include "octave-popen2.h"

Go to the source code of this file.

Functions

pid_t octave_popen2 (const char *cmd, char *const *args, bool sync_mode, int *fildes, const char **errmsg)
 

Function Documentation

◆ octave_popen2()

pid_t octave_popen2 ( const char *  cmd,
char *const *  args,
bool  sync_mode,
int *  fildes,
const char **  errmsg 
)

Definition at line 171 of file octave-popen2.c.

References dup2(), execvp(), fcntl(), fork(), pipe(), and STDIN_FILENO.

Referenced by popen2().