Home
last modified time | relevance | path

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

/freebsd-head/stand/userboot/test/
HDtest.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()
/freebsd-head/contrib/tcsh/
HDsh.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()
HDtw.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()
/freebsd-head/contrib/xz/src/xz/
HDfile_io.c497 if (fsync(pair->dir_fd)) { in io_sync_dest()
778 .dir_fd = -1, in io_open_src()
904 pair->dir_fd = open(dir_name, O_SEARCH | O_DIRECTORY in io_open_dest_real()
906 if (pair->dir_fd == -1) { in io_open_dest_real()
1090 if (pair->dir_fd != -1) { in io_open_dest_real()
1091 (void)close(pair->dir_fd); in io_open_dest_real()
1092 pair->dir_fd = -1; in io_open_dest_real()
1143 if (pair->dir_fd != -1) in io_close_dest()
1144 (void)close(pair->dir_fd); in io_close_dest()
HDfile_io.h61 int dir_fd; member
/freebsd-head/usr.sbin/newsyslog/
HDnewsyslog.c1689 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local
1720 dir_fd = dirfd(dirp); in delete_oldest_timelog()
1722 if (validate_old_timelog(dir_fd, dp, base, &tm) == 0) in delete_oldest_timelog()
1770 else if (unlinkat(dir_fd, oldlogs[i].fname, 0) != 0) { in delete_oldest_timelog()
2533 int dir_fd; in mtime_old_timelog() local
2561 dir_fd = dirfd(dirp); in mtime_old_timelog()
2564 if (validate_old_timelog(dir_fd, dp, logfname, &tm) == 0) in mtime_old_timelog()
2567 if (fstatat(dir_fd, dp->d_name, &sb, AT_SYMLINK_NOFOLLOW) == -1) { in mtime_old_timelog()