Home
last modified time | relevance | path

Searched refs:newdirfd (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/basic/
Dfs-util.c78 int rename_noreplace(int olddirfd, const char *oldpath, int newdirfd, const char *newpath) { in rename_noreplace() argument
82 if (renameat2(olddirfd, oldpath, newdirfd, newpath, RENAME_NOREPLACE) >= 0) in rename_noreplace()
93 if (linkat(olddirfd, oldpath, newdirfd, newpath, 0) >= 0) { in rename_noreplace()
97 (void) unlinkat(newdirfd, newpath, 0); in rename_noreplace()
110 if (faccessat(newdirfd, newpath, F_OK, AT_SYMLINK_NOFOLLOW) >= 0) in rename_noreplace()
115 return RET_NERRNO(renameat(olddirfd, oldpath, newdirfd, newpath)); in rename_noreplace()
830 int newdirfd, const char *newpath) { in conservative_renameat() argument
846 new_fd = openat(newdirfd, newpath, O_CLOEXEC|O_RDONLY|O_NOCTTY|O_NOFOLLOW); in conservative_renameat()
912 if (renameat(olddirfd, oldpath, newdirfd, newpath) < 0) in conservative_renameat()
Dfs-util.h28 int rename_noreplace(int olddirfd, const char *oldpath, int newdirfd, const char *newpath);
103 int conservative_renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath);