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

Function copy_file

util1.c:367–480  ·  view source on GitHub ↗

Copy contents of file @source to file @dest with mode @mode. * * If @tmpfilefd is < 0, copy_file unlinks @dest and then opens a new * file with name @dest. * * Otherwise, copy_file writes to and closes the provided file * descriptor. * * In either case, if --xattrs are being preserved, the dest file will * have its xattrs set from the source file. * * This is used in conjunction with th

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

robust_renameFunction · 0.85
make_backupFunction · 0.85
copy_altdest_fileFunction · 0.85
recv_generatorFunction · 0.85

Calls 12

secure_relative_openFunction · 0.85
do_open_nofollowFunction · 0.85
full_fnameFunction · 0.85
unlink_and_reopenFunction · 0.85
do_fstatFunction · 0.85
do_fallocateFunction · 0.85
full_writeFunction · 0.85
do_ftruncateFunction · 0.85
rsyserrFunction · 0.70
safe_readFunction · 0.70
rprintfFunction · 0.70
copy_xattrsFunction · 0.70

Tested by

no test coverage detected