| /netbsd-src/sys/fs/ptyfs/ |
| H A D | ptyfs_subr.c | 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) in ptyfs_get_node() argument 151 ppp = &ptyfs_node_tbl[PTYFS_FILENO(type, pty) & ptyfs_node_mask]; in ptyfs_get_node() 155 if (pty == pp->ptyfs_pty && pp->ptyfs_type == type) { in ptyfs_get_node() 163 pp->ptyfs_pty = pty; in ptyfs_get_node() 165 pp->ptyfs_fileno = PTYFS_FILENO(type, pty); in ptyfs_get_node() 195 ptyfs_set_active(struct mount *mp, int pty) in ptyfs_set_active() argument 199 KASSERT(pty >= 0); in ptyfs_set_active() 201 if (pty >= pmnt->pmnt_bitmap_size * NBBY) { in ptyfs_set_active() [all …]
|
| H A D | ptyfs_vnops.c | 589 int pty, error; in ptyfs_lookup() local 611 pty = atoi(pname, cnp->cn_namelen); in ptyfs_lookup() 612 if (pty < 0 || ptyfs_next_active(dvp->v_mount, pty) != pty) in ptyfs_lookup() 614 error = ptyfs_allocvp(dvp->v_mount, vpp, PTYFSpts, pty); in ptyfs_lookup() 617 if (ptyfs_next_active(dvp->v_mount, pty) != pty) { in ptyfs_lookup()
|
| H A D | ptyfs.h | 143 #define PTYFS_FILENO(type, pty) \ argument 145 ((((pty) + 1) * 2 + (((type) == PTYFSpts) ? 1 : 2))))
|
| /netbsd-src/usr.bin/rfcomm_sppd/ |
| H A D | rfcomm_sppd.c | 292 char pty[PATH_MAX], *slash; in open_tty() local 302 if (strlcpy(pty, tty, sizeof(pty)) >= sizeof(pty)) in open_tty() 305 slash = strrchr(pty, '/'); in open_tty() 310 if (strcmp(pty, tty) == 0) in open_tty() 314 if ((master = open(pty, O_RDWR)) == -1) in open_tty() 315 err(EXIT_FAILURE, "Cannot open `%s'", pty); in open_tty() 326 err(EXIT_FAILURE, "Cannot chown `%s'", pty); in open_tty() 328 err(EXIT_FAILURE, "Cannot chmod `%s'", pty); in open_tty() 330 err(EXIT_FAILURE, "Cannot revoke `%s'", pty); in open_tty()
|
| /netbsd-src/external/gpl3/gdb.old/dist/readline/readline/examples/rlfe/ |
| H A D | ChangeLog | 3 * pty.c: Import from screen-4.0.2. 6 * rlfe.c: Use OpenPTY from pty.c instead of get_master_pty. 29 original code would leave the child process running on the slave pty 33 terminal ioctl calls on the master side of the pty.
|
| H A D | configure.in | 271 ], ptys=`echo /dev/ptyp??`, ptys=`echo $pdir/pty??`) 275 dnl ptys=`echo $pdir/pty??` 277 if test "$ptys" != "$pdir/pty??" ; then 284 dnl **** pty mode/group handling **** 287 AC_ARG_WITH(pty-mode, [ --with-pty-mode=mode default mode for ptys], [ ptymode="${withval}" ]) 288 AC_ARG_WITH(pty-group, [ --with-pty-group=group default group for ptys], [ ptygrp="${withval}" ]) 328 AC_NOTE([- pty mode: $ptymode, group: $ptygrp]) 359 AC_NOTE([- pty mode: $ptymode, group: $ptygrp])
|
| H A D | Makefile.in | 44 CFILES= rlfe.c pty.c 47 OFILES= rlfe.o pty.o 184 pty.o: pty.c config.h
|
| /netbsd-src/external/gpl3/gdb/dist/readline/readline/examples/rlfe/ |
| H A D | ChangeLog | 3 * pty.c: Import from screen-4.0.2. 6 * rlfe.c: Use OpenPTY from pty.c instead of get_master_pty. 29 original code would leave the child process running on the slave pty 33 terminal ioctl calls on the master side of the pty.
|
| H A D | configure.in | 271 ], ptys=`echo /dev/ptyp??`, ptys=`echo $pdir/pty??`) 275 dnl ptys=`echo $pdir/pty??` 277 if test "$ptys" != "$pdir/pty??" ; then 284 dnl **** pty mode/group handling **** 287 AC_ARG_WITH(pty-mode, [ --with-pty-mode=mode default mode for ptys], [ ptymode="${withval}" ]) 288 AC_ARG_WITH(pty-group, [ --with-pty-group=group default group for ptys], [ ptygrp="${withval}" ]) 328 AC_NOTE([- pty mode: $ptymode, group: $ptygrp]) 359 AC_NOTE([- pty mode: $ptymode, group: $ptygrp])
|
| H A D | Makefile.in | 44 CFILES= rlfe.c pty.c 47 OFILES= rlfe.o pty.o 184 pty.o: pty.c config.h
|
| /netbsd-src/tests/kernel/ |
| H A D | t_pty.c | 60 int pty; in run() local 69 pty = pty_open(); in run() 70 child = child_spawn(ptsname(pty)); in run() 88 if ((size = write(pty, dbuf, buffer_size)) == -1) { in run() 105 (void)close(pty); in run()
|
| /netbsd-src/sys/arch/pmax/conf/ |
| H A D | majors.pmax | 10 device-major pts char 4 pty 11 device-major ptc char 5 pty 24 device-major pts_ultrix char 20 pty 25 device-major ptc_ultrix char 21 pty
|
| /netbsd-src/libexec/telnetd/ |
| H A D | sys_term.c | 54 struct termios termbuf, termbuf2; /* pty control structure */ 80 (void) tcgetattr(pty, &termbuf); in init_termbuf() 102 (void) tcsetattr(pty, TCSANOW, &termbuf); in set_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); in tty_setlinemode() 422 * Open the slave side of the pty, and do any initialization 502 if (pty > 2) { in getptyslave() 503 (void) close(pty); in getptyslave() 504 pty in getptyslave() [all...] |
| H A D | telnetd.c | 671 * Get a pty, scan input lines. 689 * Find an available pty to use. in doit() 691 pty = getpty(&ptynum); in doit() 692 if (pty < 0) in doit() 733 telnet(net, pty); /* begin server processing */ in doit() 739 * Main loop. Select from pty and network, and 895 * We put the banner in the pty input buffer. This way, it in telnet() 897 * other pty --> client data. in telnet() 1010 * Something to read from the pty... in telnet() 1028 * If ioctl from pty, pas in telnet() [all...] |
| /netbsd-src/sys/conf/ |
| H A D | majors.std | 9 device-major pts char 244 pty 10 device-major ptc char 245 pty
|
| /netbsd-src/tests/lib/libc/ttyio/ |
| H A D | t_ptm.c | 128 char *pty; in ATF_TC_BODY() local 150 REQUIRE_ERRNO((pty = ptsname(fdm)), NULL); in ATF_TC_BODY() 152 REQUIRE_ERRNO((fds = open(pty, O_RDWR|O_NOCTTY)), -1); in ATF_TC_BODY()
|
| /netbsd-src/sys/arch/cesfic/conf/ |
| H A D | majors.cesfic | 10 device-major pts char 4 pty 11 device-major ptc char 5 pty
|
| /netbsd-src/sys/arch/virt68k/conf/ |
| H A D | majors.virt68k | 12 device-major pts char 4 pty 13 device-major ptc char 5 pty
|
| /netbsd-src/sys/arch/mipsco/conf/ |
| H A D | majors.mipsco | 13 device-major pts char 8 pty 14 device-major ptc char 9 pty
|
| /netbsd-src/sys/arch/ews4800mips/conf/ |
| H A D | majors.ews4800mips | 12 device-major ptc char 6 pty 13 device-major pts char 7 pty
|
| /netbsd-src/sys/arch/evbcf/conf/ |
| H A D | majors.evbcf | 10 device-major pts char 4 pty 11 device-major ptc char 5 pty
|
| /netbsd-src/sys/arch/emips/conf/ |
| H A D | majors.emips | 10 device-major pts char 4 pty 11 device-major ptc char 5 pty
|
| /netbsd-src/sys/arch/luna68k/conf/ |
| H A D | majors.luna68k | 10 device-major pts char 4 pty 11 device-major ptc char 5 pty
|
| /netbsd-src/sys/arch/news68k/conf/ |
| H A D | majors.news68k | 13 device-major pts char 8 pty 14 device-major ptc char 9 pty
|
| /netbsd-src/sys/arch/newsmips/conf/ |
| H A D | majors.newsmips | 13 device-major pts char 8 pty 14 device-major ptc char 9 pty
|