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

Function io_printf

io.c:2425–2444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2423}
2424
2425void io_printf(int fd, const char *format, ...)
2426{
2427 va_list ap;
2428 char buf[BIGPATHBUFLEN];
2429 int len;
2430
2431 va_start(ap, format);
2432 len = vsnprintf(buf, sizeof buf, format, ap);
2433 va_end(ap);
2434
2435 if (len < 0)
2436 exit_cleanup(RERR_PROTOCOL);
2437
2438 if (len >= (int)sizeof buf) {
2439 rprintf(FERROR, "io_printf() was too long for the buffer.\n");
2440 exit_cleanup(RERR_PROTOCOL);
2441 }
2442
2443 write_sbuf(fd, buf);
2444}
2445
2446/* Setup for multiplexing a MSG_* stream with the data stream. */
2447void io_start_multiplex_out(int fd)

Callers 12

auth_serverFunction · 0.85
auth_clientFunction · 0.85
output_daemon_greetingFunction · 0.85
negotiate_daemon_authFunction · 0.85
exchange_protocolsFunction · 0.85
start_inband_exchangeFunction · 0.85
path_failureFunction · 0.85
add_a_groupFunction · 0.85
want_all_groupsFunction · 0.85
rsync_moduleFunction · 0.85
send_listingFunction · 0.85
start_daemonFunction · 0.85

Calls 2

write_sbufFunction · 0.85
rprintfFunction · 0.70

Tested by

no test coverage detected