MCPcopy Index your code
hub / github.com/RsyncProject/rsync / set_nonblocking

Function set_nonblocking

util1.c:49–59  ·  view source on GitHub ↗

Set a fd into nonblocking mode. */

Source from the content-addressed store, hash-verified

47
48/* Set a fd into nonblocking mode. */
49void set_nonblocking(int fd)
50{
51 int val;
52
53 if ((val = fcntl(fd, F_GETFL)) == -1)
54 return;
55 if (!(val & NONBLOCK_FLAG)) {
56 val |= NONBLOCK_FLAG;
57 fcntl(fd, F_SETFL, val);
58 }
59}
60
61/* Set a fd into blocking mode. */
62void set_blocking(int fd)

Callers 6

fd_pairFunction · 0.70
socketpair_tcpFunction · 0.70
start_serverFunction · 0.70
client_runFunction · 0.70
mainFunction · 0.70
start_daemonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected