GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
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

◆ G_popen_clear()

void G_popen_clear ( struct Popen state)

Definition at line 56 of file popen.c.

References NULL, and state.

Referenced by G_open_mail(), and G_open_pager().

◆ G_popen_close()

void G_popen_close ( struct Popen state)

Definition at line 72 of file popen.c.

References G_wait(), and state.

Referenced by G_close_mail(), and G_close_pager().

◆ G_popen_read()

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

Definition at line 67 of file popen.c.

◆ G_popen_write()

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

Definition at line 62 of file popen.c.

Referenced by G_open_mail(), and G_open_pager().