Searched defs:doorfd (Results 1 - 19 of 19) sorted by relevance

/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_cache_door.c81 static int doorfd = -1; variable
106 if (doorfd == -1) {
110 if ((doorfd = open(LDAP_CACHE_DOOR, O_RDONLY, 0))
122 while (doorfd < 3) { /* we have a reserved fd */
123 tbc[i++] = doorfd;
124 if ((doorfd = dup(doorfd)) < 0) {
127 doorfd = -1;
139 (void) fcntl(doorfd, F_SETFD, FD_CLOEXEC);
140 if (door_info(doorfd,
[all...]
/illumos-gate/usr/src/lib/libtsol/common/
H A Dcall_labeld.c91 static int doorfd = -1; local
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,
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid.c258 int doorfd = -1; local
263 if ((doorfd = door_create(nfsmapid_func, NULL,
276 (void) close(doorfd);
288 if (fattach(doorfd, NFSMAPID_DOOR) == -1) {
291 (void) close(doorfd);
302 idmap_kcall(doorfd);
H A Dnfsmapid_test.c303 static int doorfd = -1; local
305 if (doorfd != -1)
306 return (doorfd);
308 if ((doorfd = open(NFSMAPID_DOOR, O_RDWR)) == -1) {
312 return (doorfd);
326 int doorfd; local
366 if ((doorfd = nfs_idmap_doorget()) == -1) {
377 if (door_call(doorfd, &door_args) == -1) {
429 int doorfd; local
452 if ((doorfd
500 int doorfd; local
604 int doorfd; local
[all...]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_door.c40 initdoor(void *buf, int *doorfd) argument
46 *doorfd = open64(NAME_SERVICE_DOOR, O_RDONLY, 0);
50 *doorfd);
52 if (*doorfd == -1) {
57 if (door_info(*doorfd, &doori) < 0 ||
62 * we should close doorfd because we just opened it
64 (void) close(*doorfd);
67 (me, "door %d not valid\n", *doorfd);
275 int doorfd; local
279 initdoor(*dptr, &doorfd);
[all...]
H A Dnscd_selfcred.c384 (me, "killing child process %d (doorfd %d)\n",
895 int doorfd,
906 if (doorfd == -1) {
913 "(uid = %d, gid = %d)\n", doorfd, cslot, uid, gid);
919 ret = _nscd_doorcall_fd(doorfd, NSCD_FORK|(_whoami&NSCD_WHOAMI),
924 doorfd, cslot, ret);
930 "status = %d, errno = %s, nscd status = %d\n", doorfd,
893 selfcred_fork( void *buf, int doorfd, int cslot, uid_t uid, gid_t gid) argument
/illumos-gate/usr/src/cmd/fs.d/reparsed/
H A Dreparsed.c314 int doorfd; local
317 if ((doorfd = door_create(reparsed_doorfunc, NULL,
329 (void) close(doorfd);
341 if (fattach(doorfd, REPARSED_DOOR) == -1) {
343 (void) close(doorfd);
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Ddoor_if.c124 int doorfd = -1; variable
626 if ((doorfd = door_create(nwamd_door_switch, NULL,
635 (void) door_revoke(doorfd);
636 doorfd = -1;
652 if (fattach(doorfd, NWAM_DOOR) < 0) {
654 (void) door_revoke(doorfd);
655 doorfd = -1;
663 if (doorfd != -1) {
665 (void) door_revoke(doorfd);
666 doorfd
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetxby_door.c107 int doorfd; member in struct:_nsc_door_t
249 if (dp->doorfd == -1 && dp == &nsc_door[0]) { /* open front door */
253 dp->doorfd = open64(NAME_SERVICE_DOOR, O_RDONLY, 0);
254 if (dp->doorfd == -1) {
265 while (dp->doorfd < 3) { /* we have a reserved fd */
266 tbc[i++] = dp->doorfd;
267 if ((dp->doorfd = dup(dp->doorfd)) < 0) {
270 dp->doorfd = -1;
282 (void) fcntl(dp->doorfd, F_SETF
[all...]
/illumos-gate/usr/src/cmd/pfexecd/
H A Dpfexecd.c54 static int doorfd = -1; variable
179 if (doorfd != -1)
180 (void) syscall(SYS_privsys, PRIVSYS_PFEXEC_UNREG, doorfd);
532 doorfd = door_create(callback, NULL, DOOR_REFUSE_DESC);
534 if (doorfd == -1 || register_pfexec(doorfd) != 0) {
535 perror("doorfd");
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_main.c913 int doorfd; local
918 if ((doorfd = door_create(autofs_doorfunc, NULL,
931 (void) close(doorfd);
943 if (fattach(doorfd, AUTOFS_DOOR) == -1) {
946 (void) close(doorfd);
954 autofs_setdoor(doorfd);
/illumos-gate/usr/src/cmd/vt/
H A Dvtdaemon.c1124 int doorfd = -1; local
1130 if ((doorfd = open(vt_door_path, O_CREAT|O_RDWR,
1135 if (fstat(doorfd, &st) < 0) {
1146 if (fcntl(doorfd, F_SETLK, &flock) < 0) {
1162 if (door_info(doorfd, &info) == 0 && info.di_target != -1) {
1168 (void) close(doorfd);
1175 (void) close(doorfd);
/illumos-gate/usr/src/cmd/auditd/
H A Ddoorway.c96 static int doorfd = -1; variable
448 doorfd = door_create((void(*)())input, 0,
450 if (doorfd < 0)
545 rc = auditdoor(doorfd);
565 if (doorfd == -1)
567 (void) door_revoke(doorfd);
568 doorfd = -1;
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr.c1411 static int doorfd = -1; local
1428 if (doorfd == -1) {
1430 if ((doorfd = open(NAME_SERVICE_DOOR, O_RDONLY, 0))
1436 if (door_info(doorfd, &my_door) == -1 ||
1440 * we should close doorfd because we just opened it
1442 (void) close(doorfd);
1443 doorfd = -1;
1449 * doorfd is cached. Double check just in case
1452 if (door_info(doorfd, &my_door) == -1 ||
1458 doorfd
[all...]
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c1446 int pstatus = 0, error = -1, lockfd, doorfd; local
1461 if ((doorfd = open(doorpath, O_RDONLY)) < 0) {
1471 if (door_info(doorfd, &info) == 0 &&
1501 (void) close(doorfd);
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dzoneadmd.c1688 int doorfd = -1; local
1700 if ((doorfd = open(zone_door_path, O_CREAT|O_RDWR,
1705 if (fstat(doorfd, &st) < 0) {
1716 if (fcntl(doorfd, F_SETLK, &flock) < 0) {
1732 if (door_info(doorfd, &info) == 0 && info.di_target != -1) {
1770 (void) close(doorfd);
1775 (void) close(doorfd);
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c154 int doorfd = -1; local
160 if ((doorfd = door_create(nfsauth_func, NULL,
173 (void) close(doorfd);
185 if (fattach(doorfd, MOUNTD_DOOR) == -1) {
188 (void) close(doorfd);
195 * Must pass the doorfd down to the kernel.
197 darg = doorfd;
221 int doorfd = -1; local
224 if ((doorfd = door_create(nfscmd_func, NULL,
231 * Must pass the doorfd dow
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dikeadm.c51 static int doorfd = -1; variable
355 if (doorfd >= 0)
356 (void) close(doorfd);
357 doorfd = open(DOORNM, O_RDONLY);
358 return (doorfd);
375 if (door_call(doorfd, &arg) < 0) {
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c7529 int doorfd, lockfd; local
7544 if ((doorfd = open(doorpath, O_RDONLY)) < 0) {
7550 if (door_info(doorfd, &info) == 0 &&
7553 (void) close(doorfd);
7556 (void) close(doorfd);
7613 int doorfd; local
7619 if ((doorfd = open(doorpath, O_RDONLY)) < 0) {
7622 if (door_info(doorfd, &info) == 0 &&
7624 (void) close(doorfd);
7627 (void) close(doorfd);
7636 int doorfd, result; local
[all...]

Completed in 102 milliseconds