Searched refs:pty (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-11-stable/sys/modules/pty/
H A DMakefile1 # $FreeBSD: stable/11/sys/modules/pty/Makefile 319182 2017-05-30 04:11:12Z ngie $
3 .PATH: ${SRCTOP}/sys/dev/pty
5 KMOD= pty
6 SRCS= pty.c
/freebsd-11-stable/lib/libulog/
H A Dutempter.c66 addToUtmp(const char *pty __unused, const char *host, int fd)
80 removeLineFromUtmp(const char *pty __unused, int fd)
/freebsd-11-stable/lib/libutil/
H A DMakefile20 pidfile.c property.c pty.c pw_scan.c pw_util.c quotafile.c \
37 property.3 pty.3 quotafile.3 realhostname.3 realhostname_sa.3 \
64 MLINKS+=pty.3 forkpty.3 pty.3 openpty.3
/freebsd-11-stable/contrib/netbsd-tests/kernel/
H A Dt_pty.c4 * Allocates a pty(4) device, and sends the specified number of packets of the
58 int pty; local
67 pty = pty_open();
68 child = child_spawn(ptsname(pty));
86 if ((size = write(pty, dbuf, buffer_size)) == -1) {
103 (void)close(pty);
137 err(EXIT_FAILURE, "Couldn't pty(4) device");
320 atf_tc_set_md_var(tc, "descr", "Checks that writing to pty "
334 atf_tc_set_md_var(tc, "descr", "Checks that writing to pty "
/freebsd-11-stable/contrib/telnet/telnetd/
H A Dsys_term.c121 struct termios termbuf, termbuf2; /* pty control structure */
146 (void) ioctl(pty, TIOCGETP, (char *)&termbuf.sg);
147 (void) ioctl(pty, TIOCGETC, (char *)&termbuf.tc);
148 (void) ioctl(pty, TIOCGLTC, (char *)&termbuf.ltc);
150 (void) ioctl(pty, TIOCGSTATE, (char *)&termbuf.state);
153 (void) tcgetattr(pty, &termbuf);
178 (void) ioctl(pty, TIOCSETN, (char *)&termbuf.sg);
181 (void) ioctl(pty, TIOCSETC, (char *)&termbuf.tc);
184 (void) ioctl(pty, TIOCSLTC, (char *)&termbuf.ltc);
186 (void) ioctl(pty, TIOCLSE
[all...]
H A Dtelnetd.c653 * Get a pty, scan input lines.
662 * Find an available pty to use.
665 pty = getpty(&ptynum);
666 if (pty < 0)
675 if ((pty = open(lp, 2)) >= 0) {
718 telnet(net, pty, remote_hostname); /* begin server process */
724 * Main loop. Select from pty and network, and
896 * We put the banner in the pty input buffer. This way, it
898 * other pty --> client data.
1077 * Something to read from the pty
[all...]
H A Dext.h79 EXTERN int pty, net; variable
H A Dtermstat.c63 * based on the state of the pty driver. If the pty is set for
66 * in the pty to determine what editing the client should do.
91 * in the pty.
93 * In real linemode, this corresponds to whether the pty
148 * If alwayslinemode is on, and pty is changing to turn it off, then
207 * If the pty has echo turned off, then tell the client that
277 * Negotiate linemode on if pty state has changed to turn it on.
335 * Some things should be deferred until after the pty state has
538 (void) ioctl(pty, TIOCSWINS
[all...]
H A Dutility.c62 * also flush the pty input buffer (by dropping its data) if it becomes
109 fatalperror(pty, "select");
127 n = write(pty, pbackp, n);
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/ttyio/
H A Dt_ptm.c77 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);
/freebsd-11-stable/contrib/libreadline/examples/rlfe/
H A DMakefile.in44 CFILES= rlfe.c pty.c
47 OFILES= rlfe.o pty.o
176 pty.o: pty.c config.h
H A Dpty.c48 # include <sys/pty.h>
74 /* used for opening a new pty-pair: */
80 static char TtyProto[] = "/dev/pty/ttyXY";
365 /* Hack to ensure that the slave side of the pty is
/freebsd-11-stable/crypto/heimdal/appl/telnet/telnetd/
H A Dtelnetd.h122 #include <pty.h>
161 #include <sys/pty.h>
/freebsd-11-stable/usr.bin/bluetooth/rfcomm_sppd/
H A Drfcomm_sppd.c319 syslog(LOG_ERR, "Could not read master pty, " \
348 "pty, fd=%d, size=%d. %s",
372 char pty[PATH_MAX]; local
377 if (openpty(amaster, aslave, pty, &tio, NULL) == -1) {
382 if ((*tty = strdup(pty)) == NULL) {
/freebsd-11-stable/sys/dev/pty/
H A Dpty.c80 counted_warning(&pty_warningcnt, "is using legacy pty devices");
103 if (namelen != 5 || bcmp(name, "pty", 3) != 0)
106 /* Only catch /dev/pty[l-sL-S]X. */
111 /* Only catch /dev/pty[l-sL-S][0-9a-v]. */
164 DEV_MODULE(pty, pty_modevent, NULL);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/Darwin/
H A DDarwinProcessLauncher.cpp146 PseudoTerminal pty; local
149 *pid = static_cast<::pid_t>(pty.Fork(fork_error, sizeof(fork_error)));
193 // Release our master pty file descriptor so the pty class doesn't close
195 *pty_fd = pty.ReleaseMasterFileDescriptor();
/freebsd-11-stable/contrib/libreadline/examples/
H A Drlptytest.c23 #include <pty.h>
182 /* Input received through the pty: Handle it
188 /* Input received through the pty.
247 /* disable flow control; let ^S and ^Q through to pty */
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dbsd-openpty.c58 # include <pty.h>
79 * pty's automagically when needed
137 /* AIX-style pty code. */
162 snprintf(ptbuf, sizeof(ptbuf), "/dev/pty/%03d", i);
176 /* BSD-style pty code. */
187 snprintf(ptbuf, sizeof(ptbuf), "/dev/pty%c%c",
/freebsd-11-stable/libexec/rlogind/
H A Drlogind.c330 control(int pty, char *cp, int n) argument
342 (void)ioctl(pty, TIOCSWINSZ, &w);
359 * when we try and set slave pty's window shape
360 * (our controlling tty is the master pty).
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Drkpty.c48 #include <pty.h>
/freebsd-11-stable/crypto/openssh/
H A Dsshpty.c42 # include <pty.h>
57 * Allocates and opens a pty. Returns 0 if no pty could be allocated, or
58 * nonzero if a pty was successfully allocated. On success, open file
59 * descriptors for the pty and tty sides and the name of the tty side are
173 /* Changes the window size associated with the pty. */
/freebsd-11-stable/sys/teken/demo/
H A Dteken_demo.c43 #include <pty.h>
/freebsd-11-stable/sys/modules/
H A DMakefile325 pty \
/freebsd-11-stable/share/man/man4/
H A DMakefile442 pty.4 \
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DProcessGDBRemote.cpp808 PseudoTerminal pty;
829 pty.OpenFirstAvailableMaster(O_RDWR | O_NOCTTY, nullptr, 0)) {
830 FileSpec slave_name{pty.GetSlaveName(nullptr, 0)};
929 if (pty.GetMasterFileDescriptor() != PseudoTerminal::invalid_fd)
930 SetSTDIOFileDescriptor(pty.ReleaseMasterFileDescriptor());

Completed in 205 milliseconds

12