Home | History | Annotate | Download | only in utmp_update

Lines Matching defs:tty

83 	char tty[MAXPATHLEN];
136 (void)snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, utx->ut_line);
137 fd = open(tty, O_RDONLY|O_NONBLOCK, 0);
140 logerr(errno, "Cannot stat `%s'", tty);
142 logerr(0, "%s: Is not owned by you", tty);
144 logerr(0, "%s: Not a tty device", tty);
146 if (access(tty, W_OK|R_OK) == -1)
147 logerr(errno, "Can't access `%s'", tty);
153 * A daemon like ftpd that does not use a tty line?
157 logerr(errno, "Cannot open `%s'", tty);
165 "utmp pid %ld != parent %ld", tty,