Home
last modified time | relevance | path

Searched refs:olddirfd (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()
95 r = RET_NERRNO(unlinkat(olddirfd, oldpath, 0)); in rename_noreplace()
115 return RET_NERRNO(renameat(olddirfd, oldpath, newdirfd, newpath)); in rename_noreplace()
829 int olddirfd, const char *oldpath, in conservative_renameat() argument
842 old_fd = openat(olddirfd, oldpath, O_CLOEXEC|O_RDONLY|O_NOCTTY|O_NOFOLLOW); in conservative_renameat()
906 if (unlinkat(olddirfd, oldpath, 0) < 0) 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);