/src/lib/libutil/compat/ |
compat_login.c | 63 int tty; variable in typeref:typename:int 68 tty = ttyslot(); 69 if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) { 70 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
|
compat_login.c | 63 int tty; variable in typeref:typename:int 68 tty = ttyslot(); 69 if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) { 70 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
|
/src/lib/libutil/ |
login.c | 56 int tty; local in function:login 60 tty = ttyslot(); 61 if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) { 62 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
|
login.c | 56 int tty; local in function:login 60 tty = ttyslot(); 61 if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) { 62 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
|
/src/usr.bin/mesg/ |
mesg.c | 65 char *tty; local in function:main 79 if ((tty = ttyname(STDIN_FILENO)) == NULL && 80 (tty = ttyname(STDOUT_FILENO)) == NULL && 81 (tty = ttyname(STDERR_FILENO)) == NULL) 83 if (stat(tty, &sb) == -1) 84 err(2, "%s", tty); 97 if (chmod(tty, sb.st_mode | S_IWGRP) == -1) 98 err(2, "%s", tty); 101 if (chmod(tty, sb.st_mode & ~S_IWGRP) == -1) 102 err(2, "%s", tty); [all...] |
mesg.c | 65 char *tty; local in function:main 79 if ((tty = ttyname(STDIN_FILENO)) == NULL && 80 (tty = ttyname(STDOUT_FILENO)) == NULL && 81 (tty = ttyname(STDERR_FILENO)) == NULL) 83 if (stat(tty, &sb) == -1) 84 err(2, "%s", tty); 97 if (chmod(tty, sb.st_mode | S_IWGRP) == -1) 98 err(2, "%s", tty); 101 if (chmod(tty, sb.st_mode & ~S_IWGRP) == -1) 102 err(2, "%s", tty); [all...] |
/src/distrib/utils/more/ |
ttyin.c | 51 static int tty; variable in typeref:typename:int 60 tty = 2; 74 result = iread(tty, &c, 1);
|
ttyin.c | 51 static int tty; variable in typeref:typename:int 60 tty = 2; 74 result = iread(tty, &c, 1);
|
/src/lib/libpam/modules/pam_login_access/ |
pam_login_access.c | 64 const void *rhost, *tty, *user; local in function:pam_sm_acct_mgmt 81 pam_err = pam_get_item(pamh, PAM_TTY, &tty); 88 PAM_LOG("Checking login.access for user %s on tty %s", 89 (const char *)user, (const char *)tty); 90 if (login_access(user, tty) != 0) 93 (const char *)user, (const char *)tty);
|
pam_login_access.c | 64 const void *rhost, *tty, *user; local in function:pam_sm_acct_mgmt 81 pam_err = pam_get_item(pamh, PAM_TTY, &tty); 88 PAM_LOG("Checking login.access for user %s on tty %s", 89 (const char *)user, (const char *)tty); 90 if (login_access(user, tty) != 0) 93 (const char *)user, (const char *)tty);
|
/src/usr.bin/talk/ |
init_disp.c | 106 struct termios tty; local in function:set_edit_chars 108 tcgetattr(0, &tty); 109 my_win.cerase = tty.c_cc[VERASE]; 110 my_win.kill = tty.c_cc[VKILL]; 111 if (tty.c_cc[VWERASE] == (unsigned char) -1) 114 my_win.werase = tty.c_cc[VWERASE];
|
init_disp.c | 106 struct termios tty; local in function:set_edit_chars 108 tcgetattr(0, &tty); 109 my_win.cerase = tty.c_cc[VERASE]; 110 my_win.kill = tty.c_cc[VKILL]; 111 if (tty.c_cc[VWERASE] == (unsigned char) -1) 114 my_win.werase = tty.c_cc[VWERASE];
|
/src/lib/libpam/modules/pam_securetty/ |
pam_securetty.c | 68 const void *tty; local in function:pam_sm_acct_mgmt 88 pam_err = pam_get_item(pamh, PAM_TTY, &tty); 92 PAM_LOG("Got TTY: %s", (const char *)tty); 95 if (tty != NULL && strncmp(TTY_PREFIX, tty, sizeof(TTY_PREFIX)) == 0) { 97 tty = (const char *)tty + sizeof(TTY_PREFIX) - 1; 100 if (tty != NULL && (ty = getttynam(tty)) != NULL & [all...] |
pam_securetty.c | 68 const void *tty; local in function:pam_sm_acct_mgmt 88 pam_err = pam_get_item(pamh, PAM_TTY, &tty); 92 PAM_LOG("Got TTY: %s", (const char *)tty); 95 if (tty != NULL && strncmp(TTY_PREFIX, tty, sizeof(TTY_PREFIX)) == 0) { 97 tty = (const char *)tty + sizeof(TTY_PREFIX) - 1; 100 if (tty != NULL && (ty = getttynam(tty)) != NULL & [all...] |
/src/sbin/slattach/ |
slattach.c | 81 struct termios tty; local in function:main 129 tty.c_cflag = CREAD | CS8 | cflag; 130 tty.c_iflag = 0; 131 tty.c_lflag = 0; 132 tty.c_oflag = 0; 133 tty.c_cc[VMIN] = 1; 134 tty.c_cc[VTIME] = 0; 135 cfsetspeed(&tty, speed); 136 if (tcsetattr(fd, TCSADRAIN, &tty) < 0)
|
slattach.c | 81 struct termios tty; local in function:main 129 tty.c_cflag = CREAD | CS8 | cflag; 130 tty.c_iflag = 0; 131 tty.c_lflag = 0; 132 tty.c_oflag = 0; 133 tty.c_cc[VMIN] = 1; 134 tty.c_cc[VTIME] = 0; 135 cfsetspeed(&tty, speed); 136 if (tcsetattr(fd, TCSADRAIN, &tty) < 0)
|
/src/usr.sbin/irdaattach/ |
irdaattach.c | 57 struct termios tty; local in function:main 112 tty.c_cflag = CREAD | CS8 | cflag; 113 tty.c_iflag = 0; 114 tty.c_lflag = 0; 115 tty.c_oflag = 0; 116 tty.c_cc[VMIN] = 1; 117 tty.c_cc[VTIME] = 0; 118 cfsetspeed(&tty, 9600); 119 if (tcsetattr(fd, TCSADRAIN, &tty) < 0)
|
irdaattach.c | 57 struct termios tty; local in function:main 112 tty.c_cflag = CREAD | CS8 | cflag; 113 tty.c_iflag = 0; 114 tty.c_lflag = 0; 115 tty.c_oflag = 0; 116 tty.c_cc[VMIN] = 1; 117 tty.c_cc[VTIME] = 0; 118 cfsetspeed(&tty, 9600); 119 if (tcsetattr(fd, TCSADRAIN, &tty) < 0)
|
/src/usr.sbin/sti/ |
sti.c | 148 const char *tty; local in function:main 155 (void)fprintf(stderr, "Usage: %s <tty> [arg ...]\n", 163 tty = *argv++; 166 if (strncmp(tty, "/dev/", 5) == 0) 167 (void)snprintf(ttydev, sizeof(ttydev), "%s", tty); 168 else if (strncmp(tty, "tty", 3) == 0 || strncmp(tty, "pty", 3) == 0 || 169 strncmp(tty, "pts/", 4) == 0) 170 (void)snprintf(ttydev, sizeof(ttydev), "/dev/%s", tty); [all...] |
sti.c | 148 const char *tty; local in function:main 155 (void)fprintf(stderr, "Usage: %s <tty> [arg ...]\n", 163 tty = *argv++; 166 if (strncmp(tty, "/dev/", 5) == 0) 167 (void)snprintf(ttydev, sizeof(ttydev), "%s", tty); 168 else if (strncmp(tty, "tty", 3) == 0 || strncmp(tty, "pty", 3) == 0 || 169 strncmp(tty, "pts/", 4) == 0) 170 (void)snprintf(ttydev, sizeof(ttydev), "/dev/%s", tty); [all...] |
/src/usr.bin/rwall/ |
rwall.c | 161 const char *tty; local in function:makemsg 185 tty = ttyname(STDERR_FILENO); 186 if (tty == NULL) 187 tty = "??"; 188 (void)fprintf(fp, " (%s) at %d:%02d ...\n", tty, lt->tm_hour,
|
rwall.c | 161 const char *tty; local in function:makemsg 185 tty = ttyname(STDERR_FILENO); 186 if (tty == NULL) 187 tty = "??"; 188 (void)fprintf(fp, " (%s) at %d:%02d ...\n", tty, lt->tm_hour,
|
/src/libexec/utmp_update/ |
utmp_update.c | 83 char tty[MAXPATHLEN]; local in function:main 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); [all...] |
utmp_update.c | 83 char tty[MAXPATHLEN]; local in function:main 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); [all...] |
/src/lib/libc/gen/ |
getttyent.c | 69 getttynam(const char *tty) 73 _DIAGASSERT(tty != NULL); 77 if (!strcmp(tty, t->ty_name)) 86 static struct ttyent tty; local in function:getttyent 114 tty.ty_name = p; 116 if (*(tty.ty_getty = p) == '\0') 117 tty.ty_getty = tty.ty_type = NULL; 120 if (*(tty.ty_type = p) == '\0') 121 tty.ty_type = NULL [all...] |