GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71942
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
popen.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <grass/gis.h>
#include <grass/spawn.h>
Include dependency graph for popen.c:

Go to the source code of this file.

Functions

void G_popen_clear (struct Popen *state)
 
FILE * G_popen_write (struct Popen *state, const char *program, const char **args)
 
FILE * G_popen_read (struct Popen *state, const char *program, const char **args)
 
void G_popen_close (struct Popen *state)
 

Function Documentation

void G_popen_clear ( struct Popen state)

Definition at line 59 of file popen.c.

References Popen::fp, NULL, and Popen::pid.

Referenced by G_open_mail(), and G_open_pager().

void G_popen_close ( struct Popen state)

Definition at line 75 of file popen.c.

References fclose(), Popen::fp, G_wait(), and Popen::pid.

Referenced by G_close_mail(), and G_close_pager().

FILE* G_popen_read ( struct Popen state,
const char *  program,
const char **  args 
)

Definition at line 70 of file popen.c.

FILE* G_popen_write ( struct Popen state,
const char *  program,
const char **  args 
)

Definition at line 65 of file popen.c.

Referenced by G_open_mail(), and G_open_pager().