cctools
sh_popen.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2022 The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 
8 #ifndef SH_POPEN_H
9 #define SH_POPEN_H
10 
11 #include <stdio.h>
12 #include "process.h"
13 
25 FILE *sh_popen(char *command);
26 
27 
32 int sh_pclose(FILE * file);
33 
34 
44 int sh_system(char* command);
45 
46 #endif
sh_system
int sh_system(char *command)
Non Terminal-Stealing system call sh_system opens a process for execution, and returns the exit statu...
process.h
sh_popen
FILE * sh_popen(char *command)
Non Terminal-Stealing popen sh_popen opens a process for execution, providing its output on a stream,...
sh_pclose
int sh_pclose(FILE *file)
Conclude a sh_popen stream.