| /src/sys/dev/sun/ |
| kbd_ms_ttyvar.h | 45 * driver as a `tty' device (line discipline). 48 struct tty; 54 struct tty *kmta_tp; /* tty to take over */
|
| /src/external/bsd/ppp/dist/pppd/ |
| session.h | 63 * const char* tty : 64 * The TTY the user is connected on. May safely be null. 74 session_start(const int flags, const char* user, const char* passwd, const char* tty, char** msg); 77 #define session_auth(user, pass, tty, msg) \ 78 session_start(SESS_AUTH, user, pass, tty, msg) 80 #define session_check(user, pass, tty, msg) \ 81 session_start(SESS_ACCT, user, pass, tty, msg) 83 #define session_full(user, pass, tty, msg) \ 84 session_start(SESS_ALL, user, pass, tty, msg) 92 * const char* tty [all...] |
| /src/external/bsd/tmux/dist/ |
| tty.c | 40 static void tty_set_italics(struct tty *); 41 static int tty_try_colour(struct tty *, int, const char *); 42 static void tty_force_cursor_colour(struct tty *, int); 43 static void tty_cursor_pane(struct tty *, const struct tty_ctx *, u_int, 45 static void tty_cursor_pane_unless_wrap(struct tty *, 47 static void tty_colours(struct tty *, const struct grid_cell *); 48 static void tty_check_fg(struct tty *, struct colour_palette *, 50 static void tty_check_bg(struct tty *, struct colour_palette *, 52 static void tty_check_us(struct tty *, struct colour_palette *, 54 static void tty_colours_fg(struct tty *, const struct grid_cell *) 176 struct tty *tty = data; local 201 struct tty *tty = data; local 251 struct tty *tty = data; local 314 struct tty *tty = data; local 3214 struct tty *tty = data; local [all...] |
| tty-acs.c | 205 tty_acs_needed(struct tty *tty) 207 if (tty == NULL) 220 if (tty_term_has(tty->term, TTYC_U8) && 221 tty_term_number(tty->term, TTYC_U8) == 0) 224 if (tty->client->flags & CLIENT_UTF8) 231 tty_acs_get(struct tty *tty, u_char ch) 236 if (tty_acs_needed(tty)) { 237 if (tty->term->acs[ch][0] == '\0' [all...] |
| tty-keys.c | 41 static void tty_keys_add(struct tty *, const char *, key_code); 45 static struct tty_key *tty_keys_find(struct tty *, const char *, size_t, 47 static int tty_keys_next1(struct tty *, const char *, size_t, key_code *, 50 static int tty_keys_extended_key(struct tty *, const char *, size_t, 52 static int tty_keys_mouse(struct tty *, const char *, size_t, size_t *, 54 static int tty_keys_clipboard(struct tty *, const char *, size_t, 56 static int tty_keys_device_attributes(struct tty *, const char *, size_t, 58 static int tty_keys_device_attributes2(struct tty *, const char *, size_t, 60 static int tty_keys_extended_device_attributes(struct tty *, const char *, 62 static int tty_keys_palette(struct tty *, const char *, size_t, size_t *) 1023 struct tty *tty = data; local [all...] |
| /src/lib/libcompat/4.1/ |
| gtty.c | 47 * Get tty modes. 49 * #define gtty(fd, tty) ioctl(fd, TIOCGETP, tty) 52 gtty(fd, tty) 54 struct sgttyb *tty; 58 _DIAGASSERT(tty != 0); 60 return (ioctl(fd, TIOCGETP, tty));
|
| stty.c | 47 * Set tty modes. 49 * #define stty(fd, tty) ioctl(fd, TIOCSETP, tty) 52 stty(fd, tty) 54 struct sgttyb *tty; 58 _DIAGASSERT(tty != 0); 60 return (ioctl(fd, TIOCSETP, tty));
|
| /src/usr.bin/tty/ |
| Makefile | 4 PROG= tty
|
| /src/sys/sys/ |
| tty.h | 1 /* $NetBSD: tty.h,v 1.104 2023/04/12 06:35:26 riastradh Exp $ */ 62 * @(#)tty.h 8.7 (Berkeley) 1/9/95 94 /* tty signal types */ 103 * Per-tty structure. 105 * Should be split in two, into device and tty drivers. 109 struct tty { struct 110 TAILQ_ENTRY(tty) tty_link; /* Link in global tty list. */ 128 int t_flags; /* Tty flags. */ 129 int t_qsize; /* Tty character queue size * [all...] |
| /src/etc/etc.sun2/ |
| ttyaction | 4 # tty action command... 5 kd * chown ${USER}:tty /dev/kbd /dev/mouse /dev/fb
|
| /src/etc/etc.sun3/ |
| ttyaction | 4 # tty action command... 5 kd * chown ${USER}:tty /dev/kbd /dev/mouse /dev/fb
|
| /src/distrib/utils/more/ |
| ttyin.c | 51 static int tty; variable 60 tty = 2; 74 result = iread(tty, &c, 1);
|
| /src/usr.bin/mesg/ |
| mesg.c | 65 char *tty; local 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/sys/compat/sys/ |
| ttycom.h | 42 struct tty; 61 int compat_60_ttioctl(struct tty *, u_long, void *, int, struct lwp *); 69 int compat_43_ttioctl(struct tty *, u_long, void *, int, struct lwp *);
|
| /src/external/bsd/tmux/usr.bin/tmux/ |
| utempter.c | 60 doutmpx(const char *username, const char *hostname, const char *tty, 71 (void)strncpy(ut.ut_line, tty, sizeof(ut.ut_line)); 74 t = tty + strlen(tty); 75 if ((size_t)(t - tty) >= sizeof(ut.ut_id)) 76 tty = t - sizeof(ut.ut_id); 77 (void)strncpy(ut.ut_id, tty, sizeof(ut.ut_id)); 82 login_utmpx(const char *username, const char *hostname, const char *tty, 85 doutmpx(username, hostname, tty, now, USER_PROCESS, getpid()); 89 logout_utmpx(const char *username, const char *tty, const struct timeval *now 123 char tty[128], *ttyp; local 147 char tty[128], *ttyp; local [all...] |
| /src/lib/libpam/modules/pam_securetty/ |
| pam_securetty.c | 68 const void *tty; local 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/external/mit/libuv/dist/docs/code/tty/ |
| main.c | 7 uv_tty_t tty; variable 16 uv_tty_init(loop, &tty, STDOUT_FILENO, 0); 17 uv_tty_set_mode(&tty, UV_TTY_MODE_NORMAL); 22 uv_write(&req1, (uv_stream_t*) &tty, &buf1, 1, NULL); 25 buf.base = "Hello TTY\n"; 27 uv_write(&req, (uv_stream_t*) &tty, &buf, 1, NULL);
|
| /src/external/mit/libuv/dist/docs/code/tty-gravity/ |
| main.c | 7 uv_tty_t tty; variable 12 char *message = " Hello TTY "; 23 uv_write(&write_req, (uv_stream_t*) &tty, &buf, 1, NULL); 35 uv_tty_init(loop, &tty, STDOUT_FILENO, 0); 36 uv_tty_set_mode(&tty, 0); 38 if (uv_tty_get_winsize(&tty, &width, &height)) { 39 fprintf(stderr, "Could not get TTY information\n");
|
| /src/sbin/slattach/ |
| slattach.c | 81 struct termios tty; local 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/lib/libpam/modules/pam_lastlog/ |
| pam_lastlog.c | 119 const char *user, *rhost, *tty, *nuser; local 152 tty = (const char *)vtty; 154 if (tty == NULL) { 164 if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0) 165 tty = tty + strlen(_PATH_DEV); 167 if (*tty == '\0') { 188 doutmpx(user, rhost, tty, ss, &now); 189 dolastlogx(pamh, quiet, pwd, rhost, tty, ss, &now); 193 doutmp(user, rhost, tty, &now) 208 const char *tty, *nuser; local [all...] |
| /src/crypto/external/bsd/openssh/dist/ |
| sshpty.c | 7 * Allocating a pseudo-terminal, and making it the controlling tty. 43 * descriptors for the pty and tty sides and the name of the tty side are 62 /* Releases the tty. Its ownership is returned to root, and permissions to 0666. */ 65 pty_release(const char *tty) 67 if (chown(tty, (uid_t) 0, (gid_t) 0) == -1) 68 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno)); 69 if (chmod(tty, (mode_t) 0666) == -1) 70 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno)); 73 /* Makes the tty the process's controlling tty and sets it to sane modes. * [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 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...] |
| /src/crypto/external/apache2/openssl/lib/libdes/ |
| oread_pwd.c | 138 #define TTY_get(tty,data) tcgetattr(tty,data) 139 #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) 146 #define TTY_get(tty,data) ioctl(tty,TCGETA,data) 147 #define TTY_set(tty,data) ioctl(tty,TCSETA,data) 154 #define TTY_get(tty,data) ioctl(tty,TIOCGETP,data 251 static FILE *tty; local [all...] |
| /src/crypto/external/bsd/openssl/lib/libdes/ |
| oread_pwd.c | 138 #define TTY_get(tty,data) tcgetattr(tty,data) 139 #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) 146 #define TTY_get(tty,data) ioctl(tty,TCGETA,data) 147 #define TTY_set(tty,data) ioctl(tty,TCSETA,data) 154 #define TTY_get(tty,data) ioctl(tty,TIOCGETP,data 251 static FILE *tty; local [all...] |
| /src/crypto/external/bsd/openssl.old/lib/libdes/ |
| oread_pwd.c | 138 #define TTY_get(tty,data) tcgetattr(tty,data) 139 #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) 146 #define TTY_get(tty,data) ioctl(tty,TCGETA,data) 147 #define TTY_set(tty,data) ioctl(tty,TCSETA,data) 154 #define TTY_get(tty,data) ioctl(tty,TIOCGETP,data 251 static FILE *tty; local [all...] |