Home
last modified time | relevance | path

Searched refs:fdl (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/rpcbind/
H A Dcheck_bound.c85 check_bound(struct fdlist *fdl, char *uaddr) in check_bound() argument
92 if (fdl->check_binding == FALSE) in check_bound()
95 na = uaddr2taddr(fdl->nconf, uaddr); in check_bound()
101 (void) mutex_lock(&fdl->fd_lock); in check_bound()
102 fd = fdl->fd; in check_bound()
105 (void) mutex_unlock(&fdl->fd_lock); in check_bound()
110 (void) mutex_unlock(&fdl->fd_lock); in check_bound()
118 fdl->fd = t_open(fdl->nconf->nc_device, O_RDWR, NULL); in check_bound()
119 if (fdl->fd == -1) in check_bound()
120 fdl->check_binding = FALSE; in check_bound()
[all …]
/illumos-gate/usr/src/lib/pam_modules/unix_session/
H A Dunix_session.c90 int fdl; in pam_sm_open_session() local
132 if ((fdl = open(LASTLOG, O_RDWR|O_CREAT|O_DSYNC, 0444)) >= 0) { in pam_sm_open_session()
140 if (llseek(fdl, offset, SEEK_SET) != offset) { in pam_sm_open_session()
144 (void) close(fdl); in pam_sm_open_session()
181 if (write(fdl, (char *)&newll, sizeof (newll)) in pam_sm_open_session()
185 if (close(fdl) != 0) in pam_sm_open_session()
/illumos-gate/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c93 int fdl; in check_for_login_inactivity() local
100 if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) { in check_for_login_inactivity()
104 if (llseek(fdl, offset, SEEK_SET) != offset) { in check_for_login_inactivity()
109 (void) close(fdl); in check_for_login_inactivity()
113 retval = read(fdl, (char *)&ll, sizeof (ll)); in check_for_login_inactivity()
134 (void) close(fdl); in check_for_login_inactivity()
139 (void) close(fdl); in check_for_login_inactivity()
/illumos-gate/usr/src/cmd/bnu/
H A Dct.c148 int fdl; local
361 fdl = getto(_Flds);
362 if (fdl >= 0) {
372 _Fdl = fdopen(fdl, "r+");
388 strcpy(_Tty, dtnamer(dkminor(fdl)));
450 if ( fdl != 0 ) {
452 dup(fdl);
/illumos-gate/usr/src/cmd/login/
H A Dlogin.c1713 int fdl; in check_log() local
1718 if ((fdl = open(LASTLOG, O_RDWR|O_CREAT, 0444)) >= 0) { in check_log()
1719 if (llseek(fdl, offset, SEEK_SET) == offset && in check_log()
1720 read(fdl, (char *)&ll, sizeof (ll)) == sizeof (ll) && in check_log()
1723 (void) close(fdl); in check_log()