Lines Matching refs:handle
16 int handle = open(router, O_RDWR, 0);
18 if(handle < 0)
20 return handle;
23 void r_close(int handle)
25 if(close(handle) < 0) E("error: %s\n", strerror(errno));
28 int r_read(int handle, char *buf, uint32 size)
30 int rc = read((int) handle, (void *)buf, size);
46 int r_write (int handle, const char *buf, uint32 size)
48 int rc = write(handle, (void *)buf, size);
64 int r_control(int handle, const uint32 cmd, void *arg)
66 return ioctl(handle, cmd, arg);