File: lin.x

package info (click to toggle)
clif 0.93-9
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 4,228 kB
  • ctags: 3,284
  • sloc: ansic: 31,464; yacc: 5,067; lex: 819; makefile: 383; 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;