Searched refs:dfd (Results 1 – 3 of 3) sorted by relevance
| /xnu-8020.101.4/tests/ |
| H A D | netbsd_utimensat.c | 85 int dfd; variable 93 T_ASSERT_POSIX_SUCCESS((dfd = open(DIRPATH, O_RDONLY, 0)), NULL); 94 T_ASSERT_POSIX_ZERO(utimensat(dfd, BASEFILE, tptr, 0), NULL); 95 T_ASSERT_POSIX_ZERO(close(dfd), NULL); 137 int dfd; variable 140 T_ASSERT_POSIX_SUCCESS((dfd = open(DIRPATH, O_RDONLY, 0)), NULL); 141 T_ASSERT_EQ(utimensat(dfd, FILEERR, tptr, 0), -1, NULL); 142 T_ASSERT_POSIX_ZERO(close(dfd), NULL); 149 int dfd; variable 157 T_ASSERT_POSIX_SUCCESS((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)), NULL); [all …]
|
| /xnu-8020.101.4/bsd/sys/ |
| H A D | filedesc.h | 409 extern int dupfdopen(proc_t p, int indx, int dfd, int mode, int error);
|
| /xnu-8020.101.4/bsd/kern/ |
| H A D | kern_descrip.c | 1737 dupfdopen(proc_t p, int indx, int dfd, int flags, int error) in dupfdopen() argument 1756 if (dfd < 0 || dfd >= fdp->fd_nfiles || in dupfdopen() 1757 (wfp = fdp->fd_ofiles[dfd]) == NULL || wfp == fp || in dupfdopen() 1758 (fdp->fd_ofileflags[dfd] & UF_RESERVED)) { in dupfdopen() 1763 myerror = mac_file_check_dup(kauth_cred_get(), wfp->fp_glob, dfd); in dupfdopen()
|