File: lin.x

package info (click to toggle)
clif 0.90.2-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,336 kB
  • ctags: 2,815
  • sloc: ansic: 29,914; yacc: 4,338; lex: 644; makefile: 373; sh: 48
file content (23 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
typedef string devicetype<>;
typedef char cbuf[256];

struct remote_o_struct {
	devicetype device;
	int flags;
	int mode;
	};

struct remote_r_w_struct {
	int fd;
	cbuf buf;
	int bytes;
	};

program REMOTEDEVICE {
	version REMOTEVERS {
	int REMOTE_OPEN(remote_o_struct)=1;
	int REMOTE_CLOSE(int)=2;
	remote_r_w_struct REMOTE_READ(remote_r_w_struct)=3;
	int REMOTE_WRITE(remote_r_w_struct)=4;
	}=1;
}=99;