Home
last modified time | relevance | path

Searched refs:O_NOCTTY (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-openpty.c71 #ifndef O_NOCTTY
72 #define O_NOCTTY 0 macro
87 if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) in openpty_streams()
104 if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) { in openpty_streams()
146 if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) { in openpty()
169 if (junk_ptyfd == -1 && (fd = open(_PATH_TTY, O_RDWR|O_NOCTTY)) >= 0) { in openpty()
185 if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1) in openpty()
189 if ((*aslave = open(ttname, O_RDWR | O_NOCTTY)) == -1) { in openpty()
212 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) { in openpty()
216 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) in openpty()
[all …]
/freebsd/crypto/openssh/
H A Dsshpty.c46 #ifndef O_NOCTTY
47 #define O_NOCTTY 0 macro
106 fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); in pty_make_controlling_tty()
119 fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); in pty_make_controlling_tty()
227 if ((fd = open(_PATH_TTY, O_RDWR | O_NOCTTY)) >= 0) { in disconnect_controlling_tty()
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DFileAction.cpp40 m_arg = O_NOCTTY | O_CREAT | O_RDWR; in Open()
42 m_arg = O_NOCTTY | O_RDONLY; in Open()
44 m_arg = O_NOCTTY | O_CREAT | O_WRONLY; in Open()
H A DProcessLaunchInfo.cpp211 int open_flags = O_RDWR | O_NOCTTY; in SetUpPtyRedirection()
/freebsd/tools/test/stress2/misc/
H A Dposix_openpt.sh69 if ((masterfd = posix_openpt(O_RDWR | O_NOCTTY)) == -1)
73 if ((slavefd = open(slave, O_RDWR|O_NOCTTY)) == -1)
H A Dposix_openpt2.sh120 if ((masterfd = posix_openpt(O_RDWR | O_NOCTTY)) == -1)
124 if ((slavefd = open(slave, O_RDWR|O_NOCTTY)) == -1)
H A Dsuj23.sh345 fd = open(bstg_pathstore_get(), O_RDWR | O_NONBLOCK | O_NOCTTY);
/freebsd/contrib/netbsd-tests/lib/libc/ttyio/
H A Dt_ptm.c132 if ((fdm = posix_openpt(O_RDWR|O_NOCTTY)) == -1) { in ATF_TC_BODY()
152 REQUIRE_ERRNO((fds = open(pty, O_RDWR|O_NOCTTY)), -1); in ATF_TC_BODY()
/freebsd/contrib/llvm-project/lldb/tools/driver/
H A DPlatform.h32 #define O_NOCTTY 0400 macro
/freebsd/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_project.c101 fd = open(name, O_RDONLY | O_NOCTTY); in zfs_project_load_projid()
126 fd = open(name, O_RDONLY | O_NOCTTY); in zfs_project_handle_one()
/freebsd/cddl/lib/libdtrace/
H A Dio.d102 inline int O_NOCTTY = 0x8000; variable
103 #pragma D binding "1.1" O_NOCTTY
/freebsd/lib/libutil/
H A Dpty.c53 master = posix_openpt(O_RDWR|O_NOCTTY); in openpty()
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c85 O_NOCTTY | O_NONBLOCK | O_NDELAY | O_SYNC | O_TRUNC | 0666); in main()
/freebsd/sys/sys/
H A Dfcntl.h109 #define O_NOCTTY 0x8000 /* don't assign controlling terminal */ macro
/freebsd/tests/sys/audit/
H A Dfile-close.c184 ATF_REQUIRE((filedesc = posix_openpt(O_RDWR | O_NOCTTY)) != -1); in ATF_TC_BODY()
/freebsd/crypto/heimdal/appl/telnet/telnetd/
H A Dsys_term.c945 #ifndef O_NOCTTY
946 #define O_NOCTTY 0 macro
976 t = open(line, O_RDWR|O_NOCTTY); in cleanopen()
992 t = open(line, O_RDWR|O_NOCTTY); in cleanopen()
/freebsd/contrib/ntp/ntpd/
H A Dntp_ppsdev.c64 static const int OModeF = O_CLOEXEC|O_RDONLY|O_NOCTTY;
H A Drefclock_arc.c473 #ifdef O_NOCTTY /* Good, we can avoid tty becoming controlling tty. */
474 #define OPEN_FLAGS (O_RDWR | O_NOCTTY)
H A Drefclock_nmea.c160 #ifndef O_NOCTTY
163 #define M_NOCTTY O_NOCTTY
H A Dntp_refclock.c971 #ifdef O_NOCTTY in refclock_open()
972 omode |= O_NOCTTY; in refclock_open()
H A Drefclock_parse.c3038 #ifndef O_NOCTTY in parse_start()
3039 #define O_NOCTTY 0 in parse_start() macro
3045 fd232 = tty_open(parsedev, O_RDWR | O_NOCTTY | O_NONBLOCK, 0777); in parse_start()
3168 parse->ppsfd = tty_open(parseppsdev, O_RDWR | O_NOCTTY | O_NONBLOCK, 0777); in parse_start()
/freebsd/tests/sys/fs/fusefs/
H A Dopen.cc251 test_ok(O_WRONLY | O_NOCTTY, O_WRONLY); in TEST_F()
/freebsd/contrib/pjdfstest/
H A Dpjdfstest.c323 #ifdef O_NOCTTY
324 { O_NOCTTY, "O_NOCTTY" },
/freebsd/sys/kern/
H A Dtty_pts.c840 if (uap->flags & ~(O_RDWR|O_NOCTTY|O_CLOEXEC)) in sys_posix_openpt()
/freebsd/sys/compat/linux/
H A Dlinux_file.c142 bsd_flags |= O_NOCTTY; in linux_common_openflags()
173 if (bsd_flags & O_NOCTTY) in linux_common_open()

12