Lines Matching refs:ftest
751 int i, a, result, ftest; in slave() local
763 ftest = -1; in slave()
785 if ((ftest = open(dp.fname, O_RDONLY | O_NONBLOCK)) < 0) { in slave()
792 P("fd=%d\n", ftest); in slave()
793 a = read(ftest, tmp, 16); in slave()
804 if ((ftest = open(dp.fname, O_WRONLY | O_NONBLOCK)) < 0) { in slave()
811 P("fd=%d\n", ftest); in slave()
812 if (write(ftest, phraseTest, len) < len) in slave()
824 if ((ftest = open(dp.fname, O_RDONLY | O_NONBLOCK)) < 0) { in slave()
832 P("fd=%d\n", ftest); in slave()
839 if (fcntl(ftest, F_SETLK, &request) < 0) { in slave()
851 if ((ftest = open(dp.fname, O_WRONLY | O_NONBLOCK)) < 0) { in slave()
859 P("fd=%d\n", ftest); in slave()
865 if (fcntl(ftest, F_SETLK, &request) < 0) { in slave()
888 if ((ftest = open(dp.fname, O_RDWR | O_NONBLOCK)) < 0) { in slave()
896 if (fcntl(ftest, F_SETLK, &request) < 0) { in slave()
904 a = lseek(ftest, request.l_start, SEEK_SET); in slave()
905 write(ftest, "=", 1); in slave()
921 close(ftest); in slave()