Lines Matching refs:fd
73 * logic is designed to be fast in the normal case (fd is already
77 * the application if it closes the fd and it is multi-threaded.
226 * If it's not validatable, reset fd and try again.
232 * forward another fd if desired.
236 _nsc_initdoor_fp(nsc_door_t *dp, char *db, int *fd)
241 *fd = -1;
288 while (dp->doorfd < 3) { /* we have a reserved fd */
326 * someone else has clobbered fd
355 *fd = dp->doorfd;
375 int fd;
382 ret = _nsc_initdoor_fp(dp, db, &fd);
392 ret = __door_call(fd, ¶m);
395 dp->doorfd != fd) {
446 * Retry on the alternate door fd if possible.
455 int fd;
539 fd = -1;
540 ret = _nsc_try1door(frontd, dptr, ndata, adata, &fd);
576 if (fd < 0)
587 /* set up back door fd */
588 backd->doorfd = fd;
744 int fd;
761 if ((fd = open(fname, O_RDONLY)) >= 0) {
762 ret = read(fd, &pinfo, sizeof (psinfo_t));
763 (void) close(fd);