Lines Matching defs:dfd
197 int dfd = -1;
215 if ((dfd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, mode)) < 0) {
234 if ((cc = write(dfd, filebuf, buflen)) < 0) {
250 if (dfd != -1) {
253 err = close(dfd);
299 * unix_rename mulitplexes rename and renameat. If we dont HAVE_ATFUNCS, sfd and dfd
304 * @param dfd (r) same as sfd
307 int unix_rename(int sfd, const char *oldpath, int dfd, const char *newpath)
312 if (dfd == -1)
313 dfd = AT_FDCWD;
315 if (renameat(sfd, oldpath, dfd, newpath) < 0)