Lines Matching refs:rw
113 int fd, olen, nlen, rw;
135 rw = 0;
138 rw = 1;
142 rw = 1;
144 if (rw == 1) {
168 int fd, olen, nlen, rw;
192 rw = 0;
195 rw = 1;
199 rw = 1;
201 if (rw == 1) {
223 int c, lock = -1, devfd = -1, err = 0, rw = -1, ns = -1, set = 0;
259 if ((ns >= 0) || dirname || (rw != -1) || set)
265 if (dirname || (rw != -1) || (ns == -1))
267 rw = 0;
271 rw = 2;
275 if ((ns >= 0) || dirname || (rw != -1) || set)
290 if (dirname || (rw != -1) || (ns == -1))
292 rw = 1;
296 rw = 3;
331 else if (rw >= 0) {
332 if (rw & 1) { /* WRITE */
333 if (rw & 2)
342 if (rw & 2)