Searched refs:atomicio (Results 1 – 5 of 5) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | socks.c | 112 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line() 190 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect() 194 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect() 249 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect() 258 cnt = atomicio(read, proxyfd, buf, 10); in socks_connect() 276 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect() 284 cnt = atomicio(read, proxyfd, buf, 8); in socks_connect() 310 cnt = atomicio(vwrite, proxyfd, buf, r); in socks_connect() 330 if ((cnt = atomicio(vwrite, proxyfd, buf, r)) != r) in socks_connect() 335 if ((r = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2) in socks_connect()
|
H A D | atomicio.h | 35 size_t atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
|
H A D | Makefile | 27 OBJS= atomicio.o netcat.o socks.o
|
H A D | atomicio.c | 42 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() function
|
H A D | netcat.c | 729 if (atomicio(vwrite, lfd, buf, n) != n) in readwrite() 749 if (atomicio(vwrite, nfd, buf, n) != n) in readwrite() 782 if (atomicio(vwrite, nfd, obuf, 3) != 3) in atelnet()
|