Lines Matching defs:dfd
227 int dfd;
229 dfd = dirfd(d);
231 if (dfd < 0) return -1;
251 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
268 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) {
273 if (unlinkat(dfd, name, 0) < 0) {
306 int delete_dir_contents_fd(int dfd, const char *name)
311 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
625 int dfd;
630 dfd = dirfd(dir);
632 if (dfd < 0) return 0;
651 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
680 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) {
719 if (unlinkat(dfd, name, 0) < 0) {