Home
last modified time | relevance | path

Searched refs:pty (Results 1 – 25 of 377) sorted by relevance

12345678910>>...16

/netbsd-src/sys/fs/ptyfs/
H A Dptyfs_subr.c110 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 Dptyfs_vnops.c589 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 Dptyfs.h143 #define PTYFS_FILENO(type, pty) \ argument
145 ((((pty) + 1) * 2 + (((type) == PTYFSpts) ? 1 : 2))))
/netbsd-src/usr.bin/rfcomm_sppd/
H A Drfcomm_sppd.c292 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 DChangeLog3 * 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 Dconfigure.in271 ], 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 DMakefile.in44 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 DChangeLog3 * 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 Dconfigure.in271 ], 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 DMakefile.in44 CFILES= rlfe.c pty.c
47 OFILES= rlfe.o pty.o
184 pty.o: pty.c config.h
/netbsd-src/tests/kernel/
H A Dt_pty.c60 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 Dmajors.pmax10 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 Dsys_term.c54 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 Dtelnetd.c671 * 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 Dmajors.std9 device-major pts char 244 pty
10 device-major ptc char 245 pty
/netbsd-src/tests/lib/libc/ttyio/
H A Dt_ptm.c128 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 Dmajors.cesfic10 device-major pts char 4 pty
11 device-major ptc char 5 pty
/netbsd-src/sys/arch/virt68k/conf/
H A Dmajors.virt68k12 device-major pts char 4 pty
13 device-major ptc char 5 pty
/netbsd-src/sys/arch/mipsco/conf/
H A Dmajors.mipsco13 device-major pts char 8 pty
14 device-major ptc char 9 pty
/netbsd-src/sys/arch/ews4800mips/conf/
H A Dmajors.ews4800mips12 device-major ptc char 6 pty
13 device-major pts char 7 pty
/netbsd-src/sys/arch/evbcf/conf/
H A Dmajors.evbcf10 device-major pts char 4 pty
11 device-major ptc char 5 pty
/netbsd-src/sys/arch/emips/conf/
H A Dmajors.emips10 device-major pts char 4 pty
11 device-major ptc char 5 pty
/netbsd-src/sys/arch/luna68k/conf/
H A Dmajors.luna68k10 device-major pts char 4 pty
11 device-major ptc char 5 pty
/netbsd-src/sys/arch/news68k/conf/
H A Dmajors.news68k13 device-major pts char 8 pty
14 device-major ptc char 9 pty
/netbsd-src/sys/arch/newsmips/conf/
H A Dmajors.newsmips13 device-major pts char 8 pty
14 device-major ptc char 9 pty

12345678910>>...16