20
20
grantpt(p); /* chmod+chown corresponding slave pty */
21
21
unlockpt(p); /* (what does this do?) */
30
32
/* find out the name of slave pty */
31
33
if (ptsname_r(p, line, GETPTY_BUFSIZE-1) != 0) {
32
34
bb_perror_msg_and_die("ptsname error (is /dev/pts mounted?)");
34
36
line[GETPTY_BUFSIZE-1] = '\0';