Home
last modified time | relevance | path

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

/freebsd/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()
/freebsd/contrib/xz/src/xz/
H A Dfile_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()
H A Dfile_io.h61 int dir_fd; member
/freebsd/usr.sbin/newsyslog/
H A Dnewsyslog.c1666 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local
1697 dir_fd = dirfd(dirp); in delete_oldest_timelog()
1699 if (validate_old_timelog(dir_fd, dp, base, &tm) == 0) in delete_oldest_timelog()
1747 else if (unlinkat(dir_fd, oldlogs[i].fname, 0) != 0) { in delete_oldest_timelog()
2510 int dir_fd; in mtime_old_timelog() local
2538 dir_fd = dirfd(dirp); in mtime_old_timelog()
2541 if (validate_old_timelog(dir_fd, dp, logfname, &tm) == 0) in mtime_old_timelog()
2544 if (fstatat(dir_fd, dp->d_name, &sb, AT_SYMLINK_NOFOLLOW) == -1) { in mtime_old_timelog()