Home
last modified time | relevance | path

Searched refs:dir_fd (Results 1 – 6 of 6) sorted by relevance

/src/stand/userboot/test/
H A Dtest.c118 int comp_fd, dir_fd, error; in test_open_internal() local
141 dir_fd = open(host_base, O_RDONLY); in test_open_internal()
142 if (dir_fd < 0) in test_open_internal()
146 tf->tf_u.dir = fdopendir(dir_fd); in test_open_internal()
148 if (fstat(dir_fd, &tf->tf_stat) < 0) { in test_open_internal()
174 dir_fd = dirfd(tf->tf_u.dir); in test_open_internal()
184 if (fstatat(dir_fd, component, &tf->tf_stat, in test_open_internal()
202 comp_fd = openat(dir_fd, component, O_RDONLY); in test_open_internal()
231 slen = readlinkat(dir_fd, component, linkpath, in test_open_internal()
/src/contrib/tcsh/
H A Dsh.file.c475 getitem(DIR *dir_fd, int looking_for_lognames) in getitem() argument
489 if ((dirp = readdir(dir_fd)) != NULL) in getitem()
500 DIR *dir_fd; in tsearch() local
516 dir_fd = NULL; in tsearch()
526 dir_fd = opendir(*tilded_dir ? short2str(tilded_dir) : "."); in tsearch()
527 if (dir_fd == NULL) in tsearch()
535 while ((item = getitem(dir_fd, looking_for_lognames)) != NULL) { in tsearch()
559 rewinddir(dir_fd); in tsearch()
568 xclosedir(dir_fd); in tsearch()
H A Dtw.parse.c1347 DIR *dir_fd) in tw_collect() argument
1360 (*tw_start_entry[looking])(dir_fd, pat); in tw_collect()
1522 DIR *dir_fd = NULL; in t_search() local
1640 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search()
1662 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search()
1670 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search()
1680 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search()
1688 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search()
1696 if ((dir_fd = opendir(short2str(exp_dir.s))) == NULL) { in t_search()
1776 flags, dir_fd); in t_search()
/src/contrib/xz/src/xz/
H A Dfile_io.c498 if (fsync(pair->dir_fd)) { in io_sync_dest()
779 .dir_fd = -1, in io_open_src()
905 pair->dir_fd = open(dir_name, O_SEARCH | O_DIRECTORY in io_open_dest_real()
907 if (pair->dir_fd == -1) { in io_open_dest_real()
1091 if (pair->dir_fd != -1) { in io_open_dest_real()
1092 (void)close(pair->dir_fd); in io_open_dest_real()
1093 pair->dir_fd = -1; in io_open_dest_real()
1144 if (pair->dir_fd != -1) in io_close_dest()
1145 (void)close(pair->dir_fd); in io_close_dest()
H A Dfile_io.h61 int dir_fd; member
/src/usr.sbin/newsyslog/
H A Dnewsyslog.c1662 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local
1693 dir_fd = dirfd(dirp); in delete_oldest_timelog()
1695 if (validate_old_timelog(dir_fd, dp, base, &tm) == 0) in delete_oldest_timelog()
1743 else if (unlinkat(dir_fd, oldlogs[i].fname, 0) != 0) { in delete_oldest_timelog()
2506 int dir_fd; in mtime_old_timelog() local
2534 dir_fd = dirfd(dirp); in mtime_old_timelog()
2537 if (validate_old_timelog(dir_fd, dp, logfname, &tm) == 0) in mtime_old_timelog()
2540 if (fstatat(dir_fd, dp->d_name, &sb, AT_SYMLINK_NOFOLLOW) == -1) { in mtime_old_timelog()