Lines Matching defs:fd
435 int fd;
532 * from the vnode and pass /dev/fd/%d instead of the actual
537 error = falloc(p, &fp, &fd, imgp->ip_vfs_context);
547 procfdtbl_releasefd(p, fd, NULL);
548 fp_drop(p, fd, fp, 1);
552 imgp->ip_interp_sugid_fd = fd;
1536 * If there's an error, or we get the right fd by
1538 * reworking all the open code to preallocate fd
1547 * with the wrong fd; so now we've got to try to dup2
1557 * fd we wanted, the error will stop us.
1564 * Finally, close the original fd.
1566 ca.fd = origfd;
1582 * fd we wanted, the error will stop us.
1591 ca.fd = psfa->psfaa_filedes;
1599 int fd = psfa->psfaa_filedes;
1607 if ((error = fp_lookup(p, fd, &fp, 1)) == 0) {
1608 *fdflags(p, fd) &= ~UF_EXCLOSE;
1609 (void) fp_drop(p, fd, fp, 1);
1641 int fd = psfa->psfaa_filedes;
1645 fd = psfa->psfaa_openargs.psfao_oflag;
1649 *fdflags(p, fd) |= UF_INHERIT;
2807 char temp[19]; /* "/dev/fd/" + 10 digits + NUL */
2808 snprintf(temp, sizeof(temp), "/dev/fd/%d", imgp->ip_interp_sugid_fd);