Lines Matching refs:rw
88 int fd, olen, nlen, rw; in changestateif() local
110 rw = 0; in changestateif()
113 rw = 1; in changestateif()
117 rw = 1; in changestateif()
121 rw = 1; in changestateif()
125 rw = 1; in changestateif()
127 if (rw == 1) { in changestateif()
150 int fd, olen, nlen, rw; in changenatif() local
174 rw = 0; in changenatif()
177 rw = 1; in changenatif()
181 rw = 1; in changenatif()
183 if (rw == 1) { in changenatif()
203 int c, lock = -1, devfd = -1, err = 0, rw = -1, ns = -1, set = 0; in main() local
236 if ((ns >= 0) || dirname || (rw != -1) || set) in main()
242 if (dirname || (rw != -1) || (ns == -1)) in main()
244 rw = 0; in main()
248 rw = 2; in main()
252 if ((ns >= 0) || dirname || (rw != -1) || set) in main()
267 if (dirname || (rw != -1) || (ns == -1)) in main()
269 rw = 1; in main()
273 rw = 3; in main()
305 else if (rw >= 0) { in main()
306 if (rw & 1) { /* WRITE */ in main()
307 if (rw & 2) in main()
316 if (rw & 2) in main()