| /plan9/sys/src/9/port/ |
| H A D | sdscsi.c | 15 r->write = 0; in scsitest() 45 r->write = 0; in scsiverify() 98 r->write = 0; in scsiverify() 203 r->write = 0; in scsionline() 257 scsiexec(SDunit* unit, int write, uchar* cmd, int clen, void* data, int* dlen) in scsiexec() argument 266 r->write = write; in scsiexec() 307 scsifmt10(SDreq *r, int write, int lun, ulong nb, uvlong bno) in scsifmt10() argument 312 if(write == 0) in scsifmt10() 330 scsifmt16(SDreq *r, int write, int lun, ulong nb, uvlong bno) in scsifmt16() argument 335 if(write == 0) in scsifmt16() [all …]
|
| /plan9/sys/src/ape/lib/ap/gen/ |
| H A D | _assert.c | 9 write(2, "assertion failed: file ", 23); in _assert() 11 write(2, f, p-f); in _assert() 12 write(2, ":", 7); in _assert() 15 write(2, s, &buf[20] - s); in _assert()
|
| /plan9/sys/src/cmd/ |
| H A D | rx.c | 118 write(fd, cmd, strlen(cmd)+1); in rex() 122 if(write(1, buf, n)!=n) in rex() 142 if(write(fd, "", 1)<0 || write(fd, u, strlen(u)+1)<0 in tcpexec() 143 || write(fd, ru, strlen(ru)+1)<0 || write(fd, cmd, strlen(cmd)+1)<0){ in tcpexec() 157 write(2, buf, 1); in tcpexec() 183 if(write(1, buf, n)!=n) in tcpexec() 227 if(write(fd, buf, n)!=n) in send() 230 write(fd, buf, 0); in send()
|
| /plan9/sys/src/cmd/scuzz/ |
| H A D | cdr.c | 22 rp->data.write = 1; in SRblank() 37 rp->data.write = 1; in SRsynccache() 56 rp->data.write = 0; in SRTOC() 73 rp->data.write = 0; in SRrdiscinfo() 95 rp->data.write = 0; in SRrtrackinfo() 113 rp->data.write = 0; in SRfwaddr() 138 rp->data.write = 1; in SRtreserve() 155 rp->data.write = 0; in SRtinfo() 180 rp->data.write = 1; in SRwtrack() 200 rp->data.write = 1; in SRmload() [all …]
|
| H A D | scsireq.c | 34 rp->data.write = 1; in SRready() 49 rp->data.write = 1; in SRrewind() 80 req.data.write = 0; in SRreqsense() 97 rp->data.write = 0; in SRformat() 112 rp->data.write = 0; in SRrblimits() 178 rp->data.write = 0; in SRread() 246 rp->data.write = 1; in SRwrite() 304 rp->data.write = 1; in SRseek() 323 rp->data.write = 1; in SRfilemark() 340 rp->data.write = 1; in SRspace() [all …]
|
| H A D | cdaudio.c | 21 rp->data.write = 1; in SRcdpause() 36 rp->data.write = 1; in SRcdstop() 59 rp->data.write = 1; in _SRcdplay() 123 rp->data.write = 1; in SRcdload() 140 rp->data.write = 0; in SRcdstatus() 157 rp->data.write = 0; in SRgetconf()
|
| /plan9/sys/src/cmd/gs/zlib/ |
| H A D | inffast.c | 79 unsigned write; /* window write index */ local 103 write = state->write; 182 if (write == 0) { /* very common case */ 192 else if (write < op) { /* wrap around window */ 193 from += wsize + write - op; 194 op -= write; 201 if (write < len) { /* some from start of window */ 202 op = write; 212 from += write - op;
|
| /plan9/sys/src/cmd/postscript/tcpostio/ |
| H A D | tcpostio.c | 190 if (write(pipefd, Req_stat, 1) != 1) { in readprinter() 214 if (write(pipefd, Fatal_error, 1) != 1) { in readprinter() 267 if (write(pipefd, Over_and_out, 1) != 1) { in readprinter() 303 if (write(pipefd, Fatal_error, 1) != 1) { in readprinter() 314 if (write(pipefd, Over_and_out, 1) != 1) { in readprinter() 335 if (write(pipefd, Send_data, 1) != 1) { in readprinter() 371 if (write(printerfd, "\004", 1)!=1) { in sendfile() 408 if (write(printerfd, buf, bytesread)!=bytesread) { in sendfile() 411 } else if (write(pipefd, Sent_data, 1)!=1) { in sendfile() 424 if (write(printerfd, "\004", 1)!=1) { in sendfile() [all …]
|
| /plan9/sys/src/cmd/page/ |
| H A D | gs.c | 55 write(fd, buf, n); in spawnwriter() 85 write(1, buf, n); in spawnreader() 86 write(pfd[0], buf, n); in spawnreader() 91 write(1, buf, n); in spawnreader() 92 write(fd, buf, n); in spawnreader() 130 write(out, xbuf, n); in spawnmonitor() 241 write(2, buf, n); in gscmd() 244 if(write(gs->gsfd, buf, n) != 0) in gscmd() 329 if(chatty) write(2, p, Blinelen(b)-1); in waitgs()
|
| H A D | util.c | 83 if(write(fd, ibuf, in) != in){ in spooltodisk() 89 if(write(fd, buf, n) != n){ in spooltodisk() 125 write(p[1], ibuf, in); in stdinpipe() 127 write(p[1], buf, n); in stdinpipe() 146 write(fd, label, strlen(label)); in setlabel()
|
| /plan9/sys/src/cmd/usb/disk/ |
| H A D | scsireq.c | 84 rp->data.write = 1; in SRready() 99 rp->data.write = 1; in SRrewind() 132 req.data.write = 0; in SRreqsense() 151 rp->data.write = 0; in SRformat() 166 rp->data.write = 0; in SRrblimits() 234 rp->data.write = 0; in SRread() 298 rp->data.write = 1; in SRwrite() 356 rp->data.write = 1; in SRseek() 377 rp->data.write = 1; in SRfilemark() 394 rp->data.write = 1; in SRspace() [all …]
|
| /plan9/sys/src/ape/lib/bsd/ |
| H A D | rcmd.c | 78 if(write(fd, buf, strlen(buf)+1) < 0){ in rcmd() 85 if(write(fd, "", 1) < 0){ in rcmd() 92 if(write(fd, luser, strlen(luser)+1) < 0 in rcmd() 93 || write(fd, ruser, strlen(ruser)+1) < 0 in rcmd() 94 || write(fd, cmd, strlen(cmd)+1) < 0){ in rcmd()
|
| /plan9/sys/src/cmd/con/ |
| H A D | con.c | 182 if(write(net, "", 1)<0 in rlogin() 183 || write(net, localuser, strlen(localuser)+1)<0 in rlogin() 184 || write(net, remuser, strlen(remuser)+1)<0 in rlogin() 185 || write(net, p, strlen(p)+1)<0){ in rlogin() 194 write(2, buf, 1); in rlogin() 278 write(consctl, "rawon", 5); in rawon() 298 write(consctl, "rawoff", 6); in rawoff() 338 write(net, buf, 1); in menu() 343 write(ctl, "k", 1); in menu() 375 if(write(f, buf, strlen(buf)) != strlen(buf)) in post() [all …]
|
| H A D | xms.c | 25 write(1, buf, 1); in errorout() 27 write(ctl, "rawoff", 6); in errorout() 90 write(ctl, "rawon", 5); in main() 156 write(ctl, "rawoff", 6); in main() 173 if(write(1, buf, len) != len) in send()
|
| H A D | xmr.c | 39 write(fd, "rawon", 5); in main() 68 if(write(1, &c, 1) != 1){ in send() 141 write(dfd, (char*)buf+3, 128); in receive() 164 if(write(fd, buf+3, 128) != 128){ in receive()
|
| /plan9/sys/src/cmd/auth/secstore/ |
| H A D | secstored.c | 42 conn->write(conn, (uchar*)s, strlen(s)); in getdir() 50 conn->write(conn, msg, n); in getdir() 77 conn->write(conn, (uchar*)"-1", 2); in getfile() 84 conn->write(conn, (uchar*)"-1", 2); in getfile() 93 conn->write(conn, (uchar*)"-1", 2); in getfile() 99 conn->write(conn, (uchar*)"-3", 2); in getfile() 103 conn->write(conn, (uchar*)s, strlen(s)); in getfile() 113 conn->write(conn, (uchar*)s, n); in getfile() 155 nw = write(pd, s, n); in putfile() 246 conn->write(conn, (uchar*)"STA", 3); in dologin() [all …]
|
| H A D | secstore.c | 41 conn->write(conn, (uchar*)s, strlen(s)); in getfile() 77 write(1, s, n); in getfile() 118 nw = write(fd, ibr, n); in getfile() 167 conn->write(conn, (uchar*)s, strlen(s)); in putfile() 187 conn->write(conn, (uchar*)s, strlen(s)); in putfile() 217 conn->write(conn, b, Maxmsg); in putfile() 221 conn->write(conn, b, n); in putfile() 242 conn->write(conn, (uchar*)buf, strlen(buf)); in removefile() 266 write(1, memcur, memnext-memcur+1); in cmd() 270 write(1, memcur, len); in cmd() [all …]
|
| /plan9/sys/src/cmd/unix/drawterm/libc/ |
| H A D | sysfatal.c | 14 #undef write in _sysfatalimpl() 15 write(2, buf, strlen(buf)); in _sysfatalimpl() 16 write(2, "\n", 1); in _sysfatalimpl()
|
| /plan9/sys/src/cmd/lp/ |
| H A D | lpsend.c | 37 #define ACK(a) write(a, "", 1) 38 #define NAK(a) write(a, "\001", 1) 148 } else if((write(outfd, jobbuf, rv)) != rv) { in pass() 170 } else if((write(inpfd, jobbuf, rv)) != rv) { in prereadfile() 256 if (write(netfd, lnbuf, i) != i) { in main() 264 if ((rv=write(netfd, lnbuf, i)) != i) { in main() 303 if((write(1, jobbuf, rv)) != rv) { in main()
|
| H A D | lpdsend.c | 68 if (write(out, sendbuf, n) != n) { in copyfile() 115 if (write(printerfd, strbuf, strlength) != strlength) { in killjob() 130 if (write(printerfd, strbuf, strlength) != strlength) { in checkqueue() 170 if (write(printerfd, strbuf, strlength) != strlength) { in sendctrl() 175 if (write(printerfd, cntrlstrbuf, cntrlen) != cntrlen) { in sendctrl() 179 if (write(printerfd, "\0", 1) != 1) { in sendctrl() 194 if (write(printerfd, strbuf, strlength) != strlength) { in senddata() 203 if (write(printerfd, "\0", 1) != 1) { in senddata() 223 if (write(printerfd, strbuf, strlength) != strlength) { in sendjob()
|
| /plan9/sys/src/cmd/aux/ |
| H A D | rdwr.c | 39 write(1, buf, n); in main() 46 if(write(fd, buf, n-1) != n-1) /* n-1: no newline */ in main() 53 write(1, buf, n); in main()
|
| /plan9/sys/src/cmd/aquarela/ |
| H A D | smblisten.c | 22 SMBCIFSWRITEFN *write; member 63 (*s->write)(s, nil, -1); in tcpreader() 77 if ((*s->write)(s, buf + 4, length) != 0) { in tcpreader() 93 if (!(*tcp.accept)(s, &s->write)) { in createsession() 101 (*s->write)(s, nil, -1); in createsession()
|
| H A D | nbss.c | 25 NBSSWRITEFN *write; member 79 (*s->write)(s, nil, -1); in tcpreader() 99 if ((*s->write)(s, buf + 4, length) != 0) { in tcpreader() 153 write(s->fd, buf, 5); in tcpreader() 156 if (!(*l->accept)(l->magic, s, &s->write)) { in tcpreader() 164 if (write(s->fd, buf, 4) != 4) { in tcpreader() 273 if (write(s->fd, hdr, sizeof(hdr)) != sizeof(hdr)) in nbssgatherwrite() 277 if (write(s->fd, ap->p, ap->l) != ap->l) in nbssgatherwrite() 309 if (write(fd, msg, o) != o) { in nbssconnect()
|
| /plan9/sys/src/libdraw/ |
| H A D | event.c | 162 if(write(epipe[1], buf, r+1)!=r+1) in estartfn() 165 write(epipe[1], buf, 1); in estartfn() 191 while(write(epipe[1], t, 2) == 2); in etimer() 193 write(epipe[1], t, 1); in etimer() 221 if(write(epipe[1], t, 3) != 3) in ekeyslave() 226 write(epipe[1], t, 1); in ekeyslave() 258 write(ctl, "rawon", 5); in einit() 371 write(epipe[1], t, 1); in enote() 438 write(mousefd, buf, n); in emoveto() 447 write(cursorfd, curs, 0); in esetcursor() [all …]
|
| /plan9/sys/src/ape/cmd/pdksh/ |
| H A D | io.c | 409 coproc.read = coproc.readw = coproc.write = -1; in coproc_init() 446 if (coproc.write >= 0 && fd == coproc.write) { 447 close(coproc.write); 448 coproc.write = -1; 460 int fd = (mode & R_OK) ? coproc.read : coproc.write; 487 if (coproc.write >= 0) { 488 close(coproc.write); 489 coproc.write = -1;
|