Home | History | Annotate | Download | only in pppd

Lines Matching refs:sfd

2552     int i, mfd, sfd = -1;
2571 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0)
2577 if (sfd < 0) {
2585 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
2586 if (sfd >= 0) {
2587 fchown(sfd, uid, -1);
2588 fchmod(sfd, S_IRUSR | S_IWUSR);
2596 if (sfd < 0)
2601 *slave_fdp = sfd;
2602 if (tcgetattr(sfd, &tios) == 0) {
2608 if (tcsetattr(sfd, TCSAFLUSH, &tios) < 0)