Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
41
cde/programs/dtdocbook/sgmls/dosproc.c
Normal file
41
cde/programs/dtdocbook/sgmls/dosproc.c
Normal file
@@ -0,0 +1,41 @@
|
||||
/* $XConsortium: dosproc.c /main/3 1996/06/19 17:14:34 drk $ */
|
||||
/* dosproc.c -
|
||||
|
||||
MS-DOS implementation of run_process().
|
||||
|
||||
Written by James Clark (jjc@jclark.com).
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef SUPPORT_SUBDOC
|
||||
|
||||
#include "std.h"
|
||||
#include "entity.h"
|
||||
#include "appl.h"
|
||||
|
||||
#include <process.h>
|
||||
|
||||
int run_process(argv)
|
||||
char **argv;
|
||||
{
|
||||
int ret;
|
||||
fflush(stdout);
|
||||
fflush(stderr);
|
||||
ret = spawnvp(P_WAIT, argv[0], argv);
|
||||
if (ret < 0)
|
||||
appl_error(E_EXEC, argv[0], strerror(errno));
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* SUPPORT_SUBDOC */
|
||||
|
||||
/*
|
||||
Local Variables:
|
||||
c-indent-level: 5
|
||||
c-continued-statement-offset: 5
|
||||
c-brace-offset: -5
|
||||
c-argdecl-indent: 0
|
||||
c-label-offset: -5
|
||||
End:
|
||||
*/
|
||||
Reference in New Issue
Block a user