Lines Matching defs:ofd
378 int ofd,
396 written = sss_atomic_write_s(ofd, buf, cnt);
415 ret = fchown(ofd, uid, gid);
425 ret = fchmod(ofd, mode);
452 int ofd = -1;
463 ofd = openat(dest_dir_fd, file_name,
466 if (ofd < 0 && errno != EEXIST) {
474 ret = copy_file_contents(ifd, ofd, statp->st_mode, uid, gid);
478 ret = sss_futime_set(ofd, statp);
487 if (ofd != -1) close(ofd);
499 int ofd = -1;
516 ofd = open(dest, dest_flags, mode);
517 if (ofd < 0) {
532 ret = copy_file_contents(ifd, ofd, mode, uid, gid);
536 if (ofd != -1) close(ofd);