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

Function do_open

syscall.c:675–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673}
674
675int do_open(const char *pathname, int flags, mode_t mode)
676{
677 if (flags != O_RDONLY) {
678 RETURN_ERROR_IF(dry_run, 0);
679 RETURN_ERROR_IF_RO_OR_LO;
680 }
681
682#ifdef O_NOATIME
683 if (open_noatime)
684 flags |= O_NOATIME;
685#endif
686
687 return open(pathname, flags | O_BINARY, mode);
688}
689
690/*
691 Symlink-race-safe variant of do_open() for receiver-side use. See

Callers 7

open_batch_filesFunction · 0.85
do_open_atFunction · 0.85
do_mkstempFunction · 0.85
do_open_checklinksFunction · 0.85
create_pid_fileFunction · 0.85
secure_basis_openFunction · 0.85
recv_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected