Home | History | Annotate | Download | only in ataricommon

Lines Matching refs:handle

42 static int handle = -1;
61 handle = open(mousedev, 0);
65 if (handle<0) {
66 handle = open(DEVICE_NAME, 0);
69 if (handle<0) {
70 handle = -1;
75 r = fcntl(handle, F_GETFL, 0);
77 close(handle);
78 handle = -1;
84 r = fcntl(handle, F_SETFL, r);
86 close(handle);
87 handle = -1;
97 if (handle>0) {
98 close(handle);
99 handle = -1;
123 if (handle<0) {
128 while (read(handle, buffer, sizeof(buffer))==sizeof(buffer)) {