10static void (*sigpipe)(int);
15 const char *program = getenv(
"GRASS_PAGER");
23 if (!isatty(STDOUT_FILENO))
27 sigpipe = signal(SIGPIPE, SIG_IGN);
32 return fp ? fp : stdout;
41 signal(SIGPIPE, sigpipe);
void G_popen_close(struct Popen *state)
void G_popen_clear(struct Popen *state)
FILE * G_popen_write(struct Popen *state, const char *program, const char **args)
const char * G_whoami(void)
Gets user's name.