Lines Matching defs:dfd
186 int dfd = -1;
204 if ((dfd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, mode)) < 0) {
223 if ((cc = write(dfd, filebuf, buflen)) < 0) {
239 if (dfd != -1) {
242 err = close(dfd);
288 * unix_rename mulitplexes rename and renameat. If we dont HAVE_ATFUNCS, sfd and dfd
293 * @param dfd (r) same as sfd
296 int unix_rename(int sfd, const char *oldpath, int dfd, const char *newpath)
301 if (dfd == -1)
302 dfd = AT_FDCWD;
304 if (renameat(sfd, oldpath, dfd, newpath) < 0)