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

Function io_flush

io.c:2136–2147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2134}
2135
2136void io_flush(int flush_type)
2137{
2138 if (iobuf.out.len > iobuf.out_empty_len) {
2139 if (flush_type == FULL_FLUSH) /* flush everything in the output buffers */
2140 perform_io(iobuf.out.size - iobuf.out_empty_len, PIO_NEED_OUTROOM);
2141 else if (flush_type == NORMAL_FLUSH) /* flush at least 1 byte */
2142 perform_io(iobuf.out.size - iobuf.out.len + 1, PIO_NEED_OUTROOM);
2143 /* MSG_FLUSH: flush iobuf.msg only */
2144 }
2145 if (iobuf.msg.len)
2146 perform_io(iobuf.msg.size, PIO_NEED_MSGROOM);
2147}
2148
2149void write_shortint(int f, unsigned short x)
2150{

Callers 14

option_errorFunction · 0.85
_exit_cleanupFunction · 0.85
io_end_buffering_outFunction · 0.85
maybe_flush_socketFunction · 0.85
maybe_send_keepaliveFunction · 0.85
read_a_msgFunction · 0.85
io_start_multiplex_outFunction · 0.85
io_end_multiplex_outFunction · 0.85
wait_process_with_flushFunction · 0.85
do_server_senderFunction · 0.85
do_recvFunction · 0.85
client_runFunction · 0.85

Calls 1

perform_ioFunction · 0.85

Tested by

no test coverage detected