Searched refs:dir_fd (Results 1 – 3 of 3) sorted by relevance
| /freebsd-12.1/contrib/tcsh/ |
| H A D | sh.file.c | 478 getitem(DIR *dir_fd, int looking_for_lognames) in getitem() argument 492 if ((dirp = readdir(dir_fd)) != NULL) in getitem() 503 DIR *dir_fd; in tsearch() local 519 dir_fd = NULL; in tsearch() 529 dir_fd = opendir(*tilded_dir ? short2str(tilded_dir) : "."); in tsearch() 530 if (dir_fd == NULL) in tsearch() 538 while ((item = getitem(dir_fd, looking_for_lognames)) != NULL) { in tsearch() 562 rewinddir(dir_fd); in tsearch() 571 xclosedir(dir_fd); in tsearch()
|
| H A D | tw.parse.c | 1351 DIR *dir_fd) in tw_collect() argument 1364 (*tw_start_entry[looking])(dir_fd, pat); in tw_collect() 1526 DIR *dir_fd = NULL; in t_search() local 1644 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search() 1666 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search() 1674 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search() 1684 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search() 1692 if ((res = expand_dir(dir.s, &exp_dir, &dir_fd, command)) != 0) in t_search() 1700 if ((dir_fd = opendir(short2str(exp_dir.s))) == NULL) { in t_search() 1780 flags, dir_fd); in t_search()
|
| /freebsd-12.1/usr.sbin/newsyslog/ |
| H A D | newsyslog.c | 1533 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local 1564 dir_fd = dirfd(dirp); in delete_oldest_timelog() 1566 if (validate_old_timelog(dir_fd, dp, base, &tm) == 0) in delete_oldest_timelog() 1614 else if (unlinkat(dir_fd, oldlogs[i].fname, 0) != 0) { in delete_oldest_timelog() 2370 int dir_fd; in mtime_old_timelog() local 2398 dir_fd = dirfd(dirp); in mtime_old_timelog() 2401 if (validate_old_timelog(dir_fd, dp, logfname, &tm) == 0) in mtime_old_timelog() 2404 if (fstatat(dir_fd, dp->d_name, &sb, AT_SYMLINK_NOFOLLOW) == -1) { in mtime_old_timelog()
|