popen support
This commit is contained in:
@@ -729,7 +729,15 @@ static YAP_Bool execute_command(void) {
|
||||
#endif /* UNIX code */
|
||||
}
|
||||
|
||||
/* execute a command as a detached process */
|
||||
/** @pred system(+ _S_)
|
||||
|
||||
Passes command _S_ to the Bourne shell (on UNIX environments) or the
|
||||
current command interpreter in WIN32 environments.
|
||||
|
||||
Note that it executes them command as a detached process. It requires
|
||||
`system` to be implemented by the system library.
|
||||
|
||||
*/
|
||||
static YAP_Bool do_system(void) {
|
||||
char *command = (char *)YAP_AtomName(YAP_AtomOfTerm(YAP_ARG1));
|
||||
#if HAVE_SYSTEM
|
||||
|
Reference in New Issue
Block a user