Home
last modified time | relevance | path

Searched refs:doorfd (Results 1 – 19 of 19) sorted by relevance

/titanic_50/usr/src/lib/libsldap/common/
H A Dns_cache_door.c81 static int doorfd = -1; variable
106 if (doorfd == -1) { in __ns_ldap_trydoorcall_getfd()
110 if ((doorfd = open(LDAP_CACHE_DOOR, O_RDONLY, 0)) in __ns_ldap_trydoorcall_getfd()
122 while (doorfd < 3) { /* we have a reserved fd */ in __ns_ldap_trydoorcall_getfd()
123 tbc[i++] = doorfd; in __ns_ldap_trydoorcall_getfd()
124 if ((doorfd = dup(doorfd)) < 0) { in __ns_ldap_trydoorcall_getfd()
127 doorfd = -1; in __ns_ldap_trydoorcall_getfd()
139 (void) fcntl(doorfd, F_SETFD, FD_CLOEXEC); in __ns_ldap_trydoorcall_getfd()
140 if (door_info(doorfd, &real_door) == -1 || in __ns_ldap_trydoorcall_getfd()
146 (void) close(doorfd); in __ns_ldap_trydoorcall_getfd()
[all …]
/titanic_50/usr/src/lib/libtsol/common/
H A Dcall_labeld.c91 static int doorfd = -1; in __call_labeld() local
118 if (doorfd == -1) { in __call_labeld()
124 if ((doorfd = open64(door_name, O_RDONLY, 0)) < 0) { in __call_labeld()
135 while (doorfd < 3) { /* we have a reserved fd */ in __call_labeld()
136 tbc[i++] = doorfd; in __call_labeld()
137 if ((doorfd = dup(doorfd)) < 0) { in __call_labeld()
141 doorfd = -1; in __call_labeld()
152 (void) fcntl(doorfd, F_SETFD, FD_CLOEXEC); in __call_labeld()
153 if (door_info(doorfd, &real_door) < 0) { in __call_labeld()
158 (void) close(doorfd); in __call_labeld()
[all …]
/titanic_50/usr/src/lib/libc/port/gen/
H A Dgetxby_door.c107 int doorfd; member
249 if (dp->doorfd == -1 && dp == &nsc_door[0]) { /* open front door */ in _nsc_initdoor_fp()
253 dp->doorfd = open64(NAME_SERVICE_DOOR, O_RDONLY, 0); in _nsc_initdoor_fp()
254 if (dp->doorfd == -1) { in _nsc_initdoor_fp()
265 while (dp->doorfd < 3) { /* we have a reserved fd */ in _nsc_initdoor_fp()
266 tbc[i++] = dp->doorfd; in _nsc_initdoor_fp()
267 if ((dp->doorfd = dup(dp->doorfd)) < 0) { in _nsc_initdoor_fp()
270 dp->doorfd = -1; in _nsc_initdoor_fp()
282 (void) fcntl(dp->doorfd, F_SETFD, FD_CLOEXEC); in _nsc_initdoor_fp()
283 if (__door_info(dp->doorfd, &dp->doori) < 0 || in _nsc_initdoor_fp()
[all …]
/titanic_50/usr/src/cmd/nscd/
H A Dnscd_door.c40 initdoor(void *buf, int *doorfd) in initdoor() argument
46 *doorfd = open64(NAME_SERVICE_DOOR, O_RDONLY, 0); in initdoor()
50 *doorfd); in initdoor()
52 if (*doorfd == -1) { in initdoor()
57 if (door_info(*doorfd, &doori) < 0 || in initdoor()
64 (void) close(*doorfd); in initdoor()
67 (me, "door %d not valid\n", *doorfd); in initdoor()
275 int doorfd; in send_doorfd() local
279 initdoor(*dptr, &doorfd); in send_doorfd()
289 ret = door_call(doorfd, &param); in send_doorfd()
[all …]
H A Dnscd_selfcred.c895 int doorfd, in selfcred_fork() argument
906 if (doorfd == -1) { in selfcred_fork()
913 "(uid = %d, gid = %d)\n", doorfd, cslot, uid, gid); in selfcred_fork()
919 ret = _nscd_doorcall_fd(doorfd, NSCD_FORK|(_whoami&NSCD_WHOAMI), in selfcred_fork()
924 doorfd, cslot, ret); in selfcred_fork()
930 "status = %d, errno = %s, nscd status = %d\n", doorfd, in selfcred_fork()
/titanic_50/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid_test.c303 static int doorfd = -1; in nfs_idmap_doorget() local
305 if (doorfd != -1) in nfs_idmap_doorget()
306 return (doorfd); in nfs_idmap_doorget()
308 if ((doorfd = open(NFSMAPID_DOOR, O_RDWR)) == -1) { in nfs_idmap_doorget()
312 return (doorfd); in nfs_idmap_doorget()
326 int doorfd; in nfs_idmap_str_uid() local
366 if ((doorfd = nfs_idmap_doorget()) == -1) { in nfs_idmap_str_uid()
377 if (door_call(doorfd, &door_args) == -1) { in nfs_idmap_str_uid()
429 int doorfd; in nfs_idmap_uid_str() local
452 if ((doorfd = nfs_idmap_doorget()) == -1) { in nfs_idmap_uid_str()
[all …]
H A Dnfsmapid.c258 int doorfd = -1; in start_svcs() local
263 if ((doorfd = door_create(nfsmapid_func, NULL, in start_svcs()
276 (void) close(doorfd); in start_svcs()
288 if (fattach(doorfd, NFSMAPID_DOOR) == -1) { in start_svcs()
291 (void) close(doorfd); in start_svcs()
302 idmap_kcall(doorfd); in start_svcs()
/titanic_50/usr/src/cmd/fs.d/reparsed/
H A Dreparsed.c314 int doorfd; in start_reparsed_svcs() local
317 if ((doorfd = door_create(reparsed_doorfunc, NULL, in start_reparsed_svcs()
329 (void) close(doorfd); in start_reparsed_svcs()
341 if (fattach(doorfd, REPARSED_DOOR) == -1) { in start_reparsed_svcs()
343 (void) close(doorfd); in start_reparsed_svcs()
/titanic_50/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, in nwamd_door_init()
635 (void) door_revoke(doorfd); in nwamd_door_init()
636 doorfd = -1; in nwamd_door_init()
652 if (fattach(doorfd, NWAM_DOOR) < 0) { in nwamd_door_init()
654 (void) door_revoke(doorfd); in nwamd_door_init()
655 doorfd = -1; in nwamd_door_init()
663 if (doorfd != -1) { in nwamd_door_fini()
665 (void) door_revoke(doorfd); in nwamd_door_fini()
666 doorfd = -1; in nwamd_door_fini()
/titanic_50/usr/src/cmd/pfexecd/
H A Dpfexecd.c54 static int doorfd = -1; variable
179 if (doorfd != -1) in unregister_pfexec()
180 (void) syscall(SYS_privsys, PRIVSYS_PFEXEC_UNREG, doorfd); in unregister_pfexec()
532 doorfd = door_create(callback, NULL, DOOR_REFUSE_DESC); in main()
534 if (doorfd == -1 || register_pfexec(doorfd) != 0) { in main()
/titanic_50/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 ||
1442 (void) close(doorfd);
1443 doorfd = -1;
1452 if (door_info(doorfd, &my_door) == -1 ||
1458 doorfd = -1;
1463 (void) close(doorfd);
1464 doorfd = -1; /* try and restart connection */
/titanic_50/usr/src/cmd/vt/
H A Dvtdaemon.c1124 int doorfd = -1; in make_daemon_exclusive() local
1130 if ((doorfd = open(vt_door_path, O_CREAT|O_RDWR, in make_daemon_exclusive()
1135 if (fstat(doorfd, &st) < 0) { in make_daemon_exclusive()
1146 if (fcntl(doorfd, F_SETLK, &flock) < 0) { in make_daemon_exclusive()
1162 if (door_info(doorfd, &info) == 0 && info.di_target != -1) { in make_daemon_exclusive()
1168 (void) close(doorfd); in make_daemon_exclusive()
1175 (void) close(doorfd); in make_daemon_exclusive()
/titanic_50/usr/src/cmd/fs.d/autofs/
H A Dautod_main.c913 int doorfd; in start_autofs_svcs() local
918 if ((doorfd = door_create(autofs_doorfunc, NULL, in start_autofs_svcs()
931 (void) close(doorfd); in start_autofs_svcs()
943 if (fattach(doorfd, AUTOFS_DOOR) == -1) { in start_autofs_svcs()
946 (void) close(doorfd); in start_autofs_svcs()
954 autofs_setdoor(doorfd); in start_autofs_svcs()
/titanic_50/usr/src/cmd/auditd/
H A Ddoorway.c96 static int doorfd = -1; variable
448 doorfd = door_create((void(*)())input, 0, in auditd_thread_init()
450 if (doorfd < 0) in auditd_thread_init()
545 rc = auditdoor(doorfd); in auditd_thread_init()
565 if (doorfd == -1) in auditd_thread_close()
567 (void) door_revoke(doorfd); in auditd_thread_close()
568 doorfd = -1; in auditd_thread_close()
/titanic_50/usr/src/cmd/zoneadmd/
H A Dzoneadmd.c1688 int doorfd = -1; in make_daemon_exclusive() local
1700 if ((doorfd = open(zone_door_path, O_CREAT|O_RDWR, in make_daemon_exclusive()
1705 if (fstat(doorfd, &st) < 0) { in make_daemon_exclusive()
1716 if (fcntl(doorfd, F_SETLK, &flock) < 0) { in make_daemon_exclusive()
1732 if (door_info(doorfd, &info) == 0 && info.di_target != -1) { in make_daemon_exclusive()
1770 (void) close(doorfd); in make_daemon_exclusive()
1775 (void) close(doorfd); in make_daemon_exclusive()
/titanic_50/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c154 int doorfd = -1; in nfsauth_svc() local
160 if ((doorfd = door_create(nfsauth_func, NULL, in nfsauth_svc()
173 (void) close(doorfd); in nfsauth_svc()
185 if (fattach(doorfd, MOUNTD_DOOR) == -1) { in nfsauth_svc()
188 (void) close(doorfd); in nfsauth_svc()
197 darg = doorfd; in nfsauth_svc()
221 int doorfd = -1; in cmd_svc() local
224 if ((doorfd = door_create(nfscmd_func, NULL, in cmd_svc()
233 darg = doorfd; in cmd_svc()
/titanic_50/usr/src/cmd/zlogin/
H A Dzlogin.c1446 int pstatus = 0, error = -1, lockfd, doorfd; in start_zoneadmd() local
1461 if ((doorfd = open(doorpath, O_RDONLY)) < 0) { in start_zoneadmd()
1471 if (door_info(doorfd, &info) == 0 && in start_zoneadmd()
1501 (void) close(doorfd); in start_zoneadmd()
/titanic_50/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c7314 int doorfd, lockfd; in start_zoneadmd() local
7329 if ((doorfd = open(doorpath, O_RDONLY)) < 0) { in start_zoneadmd()
7335 if (door_info(doorfd, &info) == 0 && in start_zoneadmd()
7338 (void) close(doorfd); in start_zoneadmd()
7341 (void) close(doorfd); in start_zoneadmd()
7398 int doorfd; in zonecfg_ping_zoneadmd() local
7404 if ((doorfd = open(doorpath, O_RDONLY)) < 0) { in zonecfg_ping_zoneadmd()
7407 if (door_info(doorfd, &info) == 0 && in zonecfg_ping_zoneadmd()
7409 (void) close(doorfd); in zonecfg_ping_zoneadmd()
7412 (void) close(doorfd); in zonecfg_ping_zoneadmd()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dikeadm.c51 static int doorfd = -1; variable
355 if (doorfd >= 0) in open_door()
356 (void) close(doorfd); in open_door()
357 doorfd = open(DOORNM, O_RDONLY); in open_door()
358 return (doorfd); in open_door()
375 if (door_call(doorfd, &arg) < 0) { in ikedoor_call()