File: libnet.code

package info (click to toggle)
slof 20161019%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,808 kB
  • ctags: 4,738
  • sloc: ansic: 30,126; asm: 2,087; makefile: 1,135; pascal: 351; perl: 99; sh: 60
file content (20 lines) | stat: -rw-r--r-- 411 bytes parent folder | download
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