Home
last modified time | relevance | path

Searched refs:ttyfd (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c99 int ttyfd; /* Serial port file descriptor */ variable
579 ttyfd = -1;
667 ttyfd = 0;
675 if ((ttyfd = sys_extra_fd()) < 0)
676 ttyfd = open(devnam, O_NONBLOCK | O_RDWR);
680 if (ttyfd >= 0)
690 if ((fdflags = fcntl(ttyfd, F_GETFL)) == -1
691 || fcntl(ttyfd, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
697 if (fstat(ttyfd, &statbuf) < 0
698 || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) {
[all …]
H A Dpppd.h195 extern int ttyfd; /* Serial device file descriptor */
H A Dsys-solaris.c3552 if (ttyfd == -1) { in sys_print_state()
3561 getbits(ttyfd, devnam, strptr); in sys_print_state()
3563 (fdmuxid = ioctl(pppfd, I_LINK, (void *)ttyfd)) == -1) in sys_print_state()
/illumos-gate/usr/src/cmd/bhyve/
H A Duart_emul.c122 struct ttyfd { struct
145 struct ttyfd tty; argument
172 ttyopen(struct ttyfd *tf) in ttyopen()
189 ttyread(struct ttyfd *tf) in ttyread()
200 ttywrite(struct ttyfd *tf, unsigned char wb) in ttywrite()