MCPcopy Create free account
hub / github.com/F-Stack/f-stack / writev

Function writev

app/redis-6.2.6/src/anet_ff.c:323–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323ssize_t
324writev(int sockfd, const struct iovec *iov, int iovcnt)
325{
326 if (unlikely(inited == 0)) {
327 INIT_FUNCTION(writev);
328 return real_writev(sockfd, iov, iovcnt);
329 }
330
331 if (ff_fdisused(sockfd)) {
332 return ff_writev(sockfd, iov, iovcnt);
333 } else {
334 return real_writev(sockfd, iov, iovcnt);
335 }
336}
337
338ssize_t read(int sockfd, void *buf, size_t count)
339{

Callers 1

SendCacheTcpMethod · 0.50

Calls 2

ff_fdisusedFunction · 0.85
ff_writevFunction · 0.85

Tested by

no test coverage detected