aboutsummaryrefslogtreecommitdiff
path: root/lib/libnet/libnet.code
blob: 36025438f76eb43f34b265e6d84481c79d3ad5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#include <netapps.h>

PRIM(NET_X2d_LOAD)
	int alen = TOS.n; POP;
	char *arg = TOS.a; POP;
	int blocksize = TOS.n; POP;
	int hugeload = TOS.n; POP;
	void *replybuf = TOS.a; POP;
	long maxlen = TOS.n; POP;
	void *loadaddr = TOS.a;
	TOS.n = netload(loadaddr, maxlen, replybuf, hugeload, blocksize,
			arg, alen);
MIRP

PRIM(NET_X2d_PING)
	int alen = TOS.n; POP;
	char *arg = TOS.a;
	TOS.n = ping(arg, alen);
MIRP