Lines Matching defs:fd
96 int proc_pidfdinfo(int pid, int flavor,int fd, user_addr_t buffer, uint32_t buffersize, int32_t * retval);
1402 proc_pidfdinfo(int pid, int flavor, int fd, user_addr_t buffer, uint32_t buffersize, int32_t * retval)
1458 if ((error = fp_getfvpandvid(p, fd, &fp, &vp, &vid)) !=0) {
1462 closeonexec = p->p_fd->fd_ofileflags[fd] & UF_EXCLOSE;
1471 if ((error = fp_getfvpandvid(p, fd, &fp, &vp, &vid)) !=0) {
1476 closeonexec = p->p_fd->fd_ofileflags[fd] & UF_EXCLOSE;
1484 if ((error = fp_getfsock(p, fd, &fp, &so)) !=0) {
1488 closeonexec = p->p_fd->fd_ofileflags[fd] & UF_EXCLOSE;
1496 if ((error = fp_getfpsem(p, fd, &fp, &psem)) !=0) {
1500 closeonexec = p->p_fd->fd_ofileflags[fd] & UF_EXCLOSE;
1508 if ((error = fp_getfpshm(p, fd, &fp, &pshm)) !=0) {
1512 closeonexec = p->p_fd->fd_ofileflags[fd] & UF_EXCLOSE;
1520 if ((error = fp_getfpipe(p, fd, &fp, &cpipe)) !=0) {
1524 closeonexec = p->p_fd->fd_ofileflags[fd] & UF_EXCLOSE;
1532 if ((error = fp_getfkq(p, fd, &fp, &kq)) !=0) {
1536 closeonexec = p->p_fd->fd_ofileflags[fd] & UF_EXCLOSE;
1545 if ((error = fp_getfatalk(p, fd, &fp, &at)) !=0) {
1550 closeonexec = p->p_fd->fd_ofileflags[fd] & UF_EXCLOSE;
1561 fp_drop(p, fd, fp , 0);