-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmrud.c
40 lines (33 loc) · 1.11 KB
/
mrud.c
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
28
29
30
31
32
33
34
35
36
37
38
39
40
main() {
struct iocb * iocbp = 0;
struct ref_ptr * refp = 0;
int code;
char * buf = "Multics iox_$put_chars Rulez, UNIX Droolz";
c_ioa("Multics Rulez, UNIX Droolz");
/*
c_iox_find_iocb ("net_disk", & iocbp, & code);
printf ("find_iocb code %d ptr %lo\n", code, iocbp);
*/
/*
c_iox_attach_name ("net_disk", & iocbp, "rdisk_ d501 net_disk -dv dskb_01 -write", & refp, & code);
printf ("attach_name code %d\n", code);
if (code) c_com_err (code, "attach_name");
*/
/*
c_iox_attach_name ("net_disk", & iocbp, "syn_ user_i/o -inh close put_chars", & refp, & code);
printf ("attach_name code %d\n", code);
if (code) c_com_err (code, "attach_name");
*/
/*
c_iox_attach_ptr (iocbp, "syn_ user_i/o -inh close put_chars", & refp, & code);
printf ("attach_ptr code %d\n", code);
if (code) c_com_err (code, "attach_ptr");
c_iox_close (iocbp, & code);
if (code) c_com_err (code, "close");
*/
c_iox_find_iocb ("user_output", & iocbp, & code);
printf ("find_iocb code %d ptr %lo\n", code, iocbp);
c_iox_put_chars (iocbp, buf, strlen (buf), & code);
if (code) c_com_err (code, "put_chars");
return 0;
}