blob: 0f9c97551e88ba4b607717293e8452427e9864da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#include <string.h>
#include "bootlib.h"
#define SZ_CMD 2048
/* OS_CMD -- Send a command to the host system.
*/
int
os_cmd (char *cmd)
{
PKCHAR x_cmd[SZ_CMD+1];
PKCHAR nullstr[1];
XINT status;
extern int ZOSCMD();
strncpy ((char *)x_cmd, cmd, SZ_CMD);
nullstr[0] = 0;
/* Terminate the parent process if the OS command is interrupted.
*/
ZOSCMD (x_cmd, nullstr, nullstr, nullstr, &status);
return (status);
}
|