Searched refs:dir_fd (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/tcsh/ |
H A D | sh.file.c | 475 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 D | tw.parse.c | 1347 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/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 1689 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()
|