Searched refs:dir_fd (Results 1 - 3 of 3) sorted by relevance
/freebsd-current/stand/userboot/test/ |
H A D | test.c | 118 int comp_fd, dir_fd, error; local 141 dir_fd = open(host_base, O_RDONLY); 142 if (dir_fd < 0) 146 tf->tf_u.dir = fdopendir(dir_fd); 148 if (fstat(dir_fd, &tf->tf_stat) < 0) { 174 dir_fd = dirfd(tf->tf_u.dir); 184 if (fstatat(dir_fd, component, &tf->tf_stat, 202 comp_fd = openat(dir_fd, component, O_RDONLY); 231 slen = readlinkat(dir_fd, component, linkpath,
|
/freebsd-current/contrib/tcsh/ |
H A D | sh.file.c | 475 getitem(DIR *dir_fd, int looking_for_lognames) argument 489 if ((dirp = readdir(dir_fd)) != NULL) 500 DIR *dir_fd; local 516 dir_fd = NULL; 526 dir_fd = opendir(*tilded_dir ? short2str(tilded_dir) : "."); 527 if (dir_fd == NULL) 535 while ((item = getitem(dir_fd, looking_for_lognames)) != NULL) { 559 rewinddir(dir_fd); 568 xclosedir(dir_fd);
|
/freebsd-current/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 1676 int dir_fd, i, logcnt, max_logcnt; local 1707 dir_fd = dirfd(dirp); 1709 if (validate_old_timelog(dir_fd, dp, base, &tm) == 0) 1757 else if (unlinkat(dir_fd, oldlogs[i].fname, 0) != 0) { 2520 int dir_fd; local 2548 dir_fd = dirfd(dirp); 2551 if (validate_old_timelog(dir_fd, dp, logfname, &tm) == 0) 2554 if (fstatat(dir_fd, dp->d_name, &sb, AT_SYMLINK_NOFOLLOW) == -1) {
|
Completed in 75 milliseconds