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

Function read

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

Source from the content-addressed store, hash-verified

336}
337
338ssize_t read(int sockfd, void *buf, size_t count)
339{
340 if (unlikely(inited == 0)) {
341 INIT_FUNCTION(read);
342 return real_read(sockfd, buf, count);
343 }
344
345 if (ff_fdisused(sockfd)) {
346 return ff_read(sockfd, buf, count);
347 } else {
348 return real_read(sockfd, buf, count);
349 }
350}
351
352ssize_t
353readv(int sockfd, const struct iovec *iov, int iovcnt)

Callers 15

syncReadFunction · 0.70
readArgFromStdinFunction · 0.70
confirmWithYesFunction · 0.70
pipeModeFunction · 0.70
sendBulkToSlaveFunction · 0.70
rdbPipeReadHandlerFunction · 0.70
readOOMScoreAdjFunction · 0.70
rdbSaveToSlavesSocketsFunction · 0.70
connSocketReadFunction · 0.70
aofReadDiffFromParentFunction · 0.70

Calls 2

ff_fdisusedFunction · 0.85
ff_readFunction · 0.85

Tested by 15

test_pidfile_relativeFunction · 0.40
ztest_randomFunction · 0.40
child_mainFunction · 0.40
mainFunction · 0.40
do_writeFunction · 0.40
draid_generateFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
get_random_bytesFunction · 0.40
do_readFunction · 0.40