~ubuntu-branches/ubuntu/trusty/librep/trusty

« back to all changes in this revision

Viewing changes to src/unix_processes.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2007-01-25 11:09:23 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070125110923-2owlh6jsptg68pn5
Tags: 0.17+svn20070119-2ubuntu1
* Re-sync with Debian.  Following change kept:
  - Still building with --with-stack-direction=-1 for ppc/ia64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* unix_processes.c -- Subprocess handling for Unix
2
2
   Copyright (C) 1993, 1994 John Harper <john@dcs.warwick.ac.uk>
3
 
   $Id: unix_processes.c,v 1.79 2003/10/28 22:29:39 jsh Exp $
 
3
   $Id: unix_processes.c 2898 2005-04-07 18:19:53Z jsh $
4
4
 
5
5
   This file is part of Jade.
6
6
 
1117
1117
        return rep_mem_error();
1118
1118
}
1119
1119
 
 
1120
DEFUN("close-process", Fclose_process,
 
1121
      Sclose_process, (repv proc), rep_Subr1) /*
 
1122
::doc:rep.io.processes#close-process::
 
1123
close-processes [PROCESS]
 
1124
 
 
1125
Closes the stdin, stdout, and stderr streams of the asynchronous process-
 
1126
object PROCESS.
 
1127
::end:: */
 
1128
{
 
1129
    rep_DECLARE1(proc, PROCESSP);
 
1130
    close_proc_files(VPROC(proc));
 
1131
    return(Qnil); 
 
1132
}
 
1133
 
1120
1134
DEFUN("start-process", Fstart_process, Sstart_process, (repv arg_list), rep_SubrN) /*
1121
1135
::doc:rep.io.processes#start-process::
1122
1136
start-process [PROCESS] [PROGRAM] [ARGS...]
2072
2086
    rep_INTERN(socketpair);
2073
2087
 
2074
2088
    tem = rep_push_structure ("rep.io.processes");
 
2089
    rep_ADD_SUBR(Sclose_process);
2075
2090
    rep_ADD_SUBR(Smake_process);
2076
2091
    rep_ADD_SUBR(Sstart_process);
2077
2092
    rep_ADD_SUBR(Scall_process);