| /src/sys/fs/ptyfs/ |
| ptyfs_subr.c | 90 #include <sys/pty.h> 104 * the pty, ptyfs_type, and mount point uniquely 110 ptyfs_allocvp(struct mount *mp, struct vnode **vpp, ptyfstype type, int pty) 115 key.ptk_pty = pty; 146 ptyfs_get_node(ptyfstype type, int pty) 151 ppp = &ptyfs_node_tbl[PTYFS_FILENO(type, pty) & ptyfs_node_mask]; 155 if (pty == pp->ptyfs_pty && pp->ptyfs_type == type) { 163 pp->ptyfs_pty = pty; 165 pp->ptyfs_fileno = PTYFS_FILENO(type, pty); 192 * Mark this controlling pty as active [all...] |
| ptyfs.h | 82 PTYFSpts, /* The slave side of a pty */ 83 PTYFSptc, /* The controlling side of a pty */ 92 int ptk_pty; /* the pty index */ 143 #define PTYFS_FILENO(type, pty) \ 145 ((((pty) + 1) * 2 + (((type) == PTYFSpts) ? 1 : 2))))
|
| ptyfs_vfsops.c | 58 #include <sys/pty.h> 156 int pty = minor(dev); local 166 * if pty had been opened before PTYFS was mounted, 172 && ptyfs_next_active(mp, pty) != pty) 336 /* Point pty access to us */ 365 /* Restore where pty access was pointing */ 416 * Only for the slave side of a pty, caller assures 506 SYSCTL_DESCR("Pty file system"),
|
| ptyfs_vnops.c | 98 #include <sys/pty.h> 281 printf("tag VT_PTYFS, type %d, pty %d\n", 287 * support advisory locking on pty nodes 589 int pty, error; local 611 pty = atoi(pname, cnp->cn_namelen); 612 if (pty < 0 || ptyfs_next_active(dvp->v_mount, pty) != pty) 614 error = ptyfs_allocvp(dvp->v_mount, vpp, PTYFSpts, pty); 617 if (ptyfs_next_active(dvp->v_mount, pty) != pty) [all...] |
| /src/libexec/telnetd/ |
| global.c | 88 int pty, net; variable
|
| sys_term.c | 54 struct termios termbuf, termbuf2; /* pty control structure */ 80 (void) tcgetattr(pty, &termbuf); 102 (void) tcsetattr(pty, TCSANOW, &termbuf); 175 * Allocate a pty. As a side effect, the external character 178 * Returns the file descriptor of the opened pty. 228 (void) ioctl(pty, TIOCEXT, (char *)&on); 422 * Open the slave side of the pty, and do any initialization 502 if (pty > 2) { 503 (void) close(pty); 504 pty = -1 [all...] |
| ext.h | 73 extern int pty, net;
|
| telnetd.c | 671 * Get a pty, scan input lines. 689 * Find an available pty to use. 691 pty = getpty(&ptynum); 692 if (pty < 0) 733 telnet(net, pty); /* begin server processing */ 739 * Main loop. Select from pty and network, and 895 * We put the banner in the pty input buffer. This way, it 897 * other pty --> client data. 1010 * Something to read from the pty... 1028 * If ioctl from pty, pass it through ne [all...] |
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/ |
| new-ui.exp | 103 # Create the new PTY for the secondary console UI. 104 spawn -pty 173 spawn -pty
|
| new-ui-echo.exp | 50 # Create the new PTY for the secondary console UI. 51 spawn -pty
|
| new-ui-pending-input.exp | 41 spawn -pty
|
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
| new-ui.exp | 103 # Create the new PTY for the secondary console UI. 104 spawn -pty 173 spawn -pty
|
| new-ui-echo.exp | 50 # Create the new PTY for the secondary console UI. 51 spawn -pty
|
| new-ui-pending-input.exp | 41 spawn -pty
|
| /src/tests/kernel/ |
| t_pty.c | 4 * Allocates a pty(4) device, and sends the specified number of packets of the 60 int pty; local 68 "parent: started; opening PTY and spawning child\n"); 69 pty = pty_open(); 70 child = child_spawn(ptsname(pty)); 86 "parent: attempting to write %zu bytes to PTY\n", 88 if ((size = write(pty, dbuf, buffer_size)) == -1) { 93 (void)printf("parent: wrote %zd bytes to PTY\n", size); 104 (void)printf("parent: closing PTY\n"); 105 (void)close(pty); [all...] |
| /src/tests/lib/libc/ttyio/ |
| t_ptm.c | 77 ATF_REQUIRE_MSG(strncmp(ptm.cn, "/dev/pty", 8) == 0 128 char *pty; local 150 REQUIRE_ERRNO((pty = ptsname(fdm)), NULL); 152 REQUIRE_ERRNO((fds = open(pty, O_RDWR|O_NOCTTY)), -1);
|
| /src/usr.bin/rfcomm_sppd/ |
| rfcomm_sppd.c | 292 char pty[PATH_MAX], *slash; local 298 * Construct master PTY name. The slave tty name must be less than 302 if (strlcpy(pty, tty, sizeof(pty)) >= sizeof(pty)) 305 slash = strrchr(pty, '/'); 310 if (strcmp(pty, tty) == 0) 314 if ((master = open(pty, O_RDWR)) == -1) 315 err(EXIT_FAILURE, "Cannot open `%s'", pty); 326 err(EXIT_FAILURE, "Cannot chown `%s'", pty); [all...] |
| /src/sys/arch/atari/conf/ |
| SMALL030 | 43 pseudo-device pty # pseudo-terminals
|
| /src/sys/arch/playstation2/conf/ |
| config.playstation2 | 79 pseudo-device pty # pseudo-terminals
|
| /src/external/bsd/tmux/usr.bin/tmux/ |
| utempter.c | 201 addToUtmp(const char *pty __unused, const char *host, int fd) 215 removeLineFromUtmp(const char *pty __unused, int fd)
|
| /src/external/gpl3/gdb/dist/readline/readline/examples/rlfe/ |
| Makefile.in | 44 CFILES= rlfe.c pty.c 47 OFILES= rlfe.o pty.o 184 pty.o: pty.c config.h
|
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.server/ |
| multi-ui-errors.exp | 28 # The test-case uses "spawn -pty", which creates a pty on build, which gdb 57 # Create the new PTY for the secondary console UI, issue the 'new-ui' 59 spawn -pty
|
| /src/external/gpl3/gdb.old/dist/readline/readline/examples/rlfe/ |
| Makefile.in | 44 CFILES= rlfe.c pty.c 47 OFILES= rlfe.o pty.o 184 pty.o: pty.c config.h
|
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.server/ |
| multi-ui-errors.exp | 28 # The test-case uses "spawn -pty", which creates a pty on build, which gdb 57 # Create the new PTY for the secondary console UI, issue the 'new-ui' 59 spawn -pty
|
| /src/sys/kern/ |
| tty_bsdpty.c | 36 /* bsd tty implementation for pty multiplexor driver /dev/ptm{,x} */ 53 #include <sys/pty.h> 58 * ptc == /dev/pty[pqrs]?
|