HomeSort by: relevance | last modified time | path
    Searched defs:pty (Results 1 - 6 of 6) sorted by relevancy

  /src/tests/lib/libc/ttyio/
t_ptm.c 77 ATF_REQUIRE_MSG(strncmp(ptm.cn, "/dev/pty", 8) == 0
128 char *pty; local in function:ATF_TC_BODY
150 REQUIRE_ERRNO((pty = ptsname(fdm)), NULL);
152 REQUIRE_ERRNO((fds = open(pty, O_RDWR|O_NOCTTY)), -1);
  /src/libexec/telnetd/
global.c 88 int pty, net; variable in typeref:typename:int
  /src/sys/fs/ptyfs/
ptyfs_vfsops.c 58 #include <sys/pty.h>
156 int pty = minor(dev); local in function:ptyfs__makename
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 in function:ptyfs_lookup
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/tests/kernel/
t_pty.c 4 * Allocates a pty(4) device, and sends the specified number of packets of the
60 int pty; local in function:run
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/usr.bin/rfcomm_sppd/
rfcomm_sppd.c 292 char pty[PATH_MAX], *slash; local in function:open_tty
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...]

Completed in 14 milliseconds