Lines Matching defs:doorfd
91 static int doorfd = -1;
118 if (doorfd == -1) {
124 if ((doorfd = open64(door_name, O_RDONLY, 0)) < 0) {
135 while (doorfd < 3) { /* we have a reserved fd */
136 tbc[i++] = doorfd;
137 if ((doorfd = dup(doorfd)) < 0) {
141 doorfd = -1;
152 (void) fcntl(doorfd, F_SETFD, FD_CLOEXEC);
153 if (door_info(doorfd, &real_door) < 0) {
155 * we should close doorfd because we just opened it
158 (void) close(doorfd);
159 doorfd = -1;
163 if (fstat(doorfd, &st) < 0) {
198 (void) close(doorfd);
199 doorfd = -1;
204 if ((door_info(doorfd, &my_door) < 0) ||
211 doorfd = -1;
214 if (fstat(doorfd, &st) < 0) {
248 (void) close(doorfd); /* labeld exited .... */
249 doorfd = -1; /* try and restart connection */
262 if (door_call(doorfd, ¶m) < 0) {