Lines Matching +full:row +full:- +full:hold
6 * Allocating a pseudo-terminal, and making it the controlling tty.
61 * returned (the buffer must be able to hold at least 64 characters).
72 if (i == -1) { in pty_allocate()
90 if (chown(tty, (uid_t) 0, (gid_t) 0) == -1) in pty_release()
92 if (chmod(tty, (mode_t) 0666) == -1) in pty_release()
112 if (setsid() == -1) in pty_make_controlling_tty()
135 if (fd == -1) in pty_make_controlling_tty()
142 if (fd == -1) in pty_make_controlling_tty()
143 error("open /dev/tty failed - could not set controlling tty: %.100s", in pty_make_controlling_tty()
152 pty_change_window_size(int ptyfd, u_int row, u_int col, in pty_change_window_size() argument
157 /* may truncate u_int -> u_short */ in pty_change_window_size()
158 w.ws_row = row; in pty_change_window_size()
177 gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid; in pty_setowner()
182 * Warn but continue if filesystem is read-only and the uids match/ in pty_setowner()
185 if (stat(tty, &st) == -1) in pty_setowner()
190 ssh_selinux_setup_pty(pw->pw_name, tty); in pty_setowner()
193 if (st.st_uid != pw->pw_uid || st.st_gid != gid) { in pty_setowner()
194 if (chown(tty, pw->pw_uid, gid) == -1) { in pty_setowner()
196 (st.st_uid == pw->pw_uid || st.st_uid == 0)) in pty_setowner()
198 tty, (u_int)pw->pw_uid, (u_int)gid, in pty_setowner()
202 tty, (u_int)pw->pw_uid, (u_int)gid, in pty_setowner()
208 if (chmod(tty, mode) == -1) { in pty_setowner()