MCPcopy Create free account
hub / github.com/RsyncProject/rsync / do_ftruncate

Function do_ftruncate

syscall.c:977–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975
976#ifdef HAVE_FTRUNCATE
977int do_ftruncate(int fd, OFF_T size)
978{
979 int ret;
980
981 if (dry_run) return 0;
982 RETURN_ERROR_IF_RO_OR_LO;
983
984 do {
985 ret = ftruncate(fd, size);
986 } while (ret < 0 && errno == EINTR);
987
988 return ret;
989}
990#endif
991
992void trim_trailing_slashes(char *name)

Callers 3

sparse_endFunction · 0.85
copy_fileFunction · 0.85
receive_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected