]> andersk Git - moira.git/blame - update/inst_001.c
do typed input on machine type
[moira.git] / update / inst_001.c
CommitLineData
de56407f 1/*
2 * $Source$
3 * $Header$
4 */
5
6#ifndef lint
7static char *rcsid_inst_001_c = "$Header$";
8#endif lint
9
10#include <stdio.h>
dd2e131e 11#include <gdb.h>
de56407f 12#include "kludge.h"
de56407f 13
14STRING instructions = { 0, 0 };
15extern CONNECTION conn;
16extern int have_instructions;
17extern int code;
18
19/*
20 * instruction sequence transmission:
21 * syntax:
22 * >>> (STRING) "inst_001"
23 * <<< (int)0
24 * >>> (STRING) instructions
25 * <<< (int)0
26 */
27
28inst_001(str)
29 char *str;
30{
31 if (send_ok())
32 lose("sending okay for inst_001");
33 code = receive_object(conn, (char *)&instructions, STRING_T);
34 if (code) {
35 report_error("reporting failure to receive instructions");
36 return;
37 }
38 have_instructions = 1;
39 if (send_ok())
40 lose("sending okay after instructions");
dd2e131e 41#ifdef DEBUG
42 printf("got instructions: %s\n", STRING_DATA(instructions));
43#endif
de56407f 44}
This page took 0.047513 seconds and 5 git commands to generate.