Home
last modified time | relevance | path

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

12

/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-openpty.c68 #ifndef O_NOCTTY
69 #define O_NOCTTY 0 macro
84 if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) in openpty_streams()
101 if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) { in openpty_streams()
143 if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) { in openpty()
166 if (junk_ptyfd == -1 && (fd = open(_PATH_TTY, O_RDWR|O_NOCTTY)) >= 0) { in openpty()
182 if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1) in openpty()
186 if ((*aslave = open(ttname, O_RDWR | O_NOCTTY)) == -1) { in openpty()
209 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) { in openpty()
213 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) in openpty()
[all …]
/freebsd/crypto/openssh/
H A Dsshpty.c42 #ifndef O_NOCTTY
43 #define O_NOCTTY 0 macro
102 fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); in pty_make_controlling_tty()
115 fd = open(_PATH_TTY, O_RDWR | O_NOCTTY); in pty_make_controlling_tty()
223 if ((fd = open(_PATH_TTY, O_RDWR | O_NOCTTY)) >= 0) { in disconnect_controlling_tty()
/freebsd/tests/sys/kern/tty/
H A Dtiocnotty.c27 master = posix_openpt(O_RDWR | O_NOCTTY); in main()
41 slave = open(ptsname(master), O_RDWR | O_NOCTTY); in main()
65 slave = open(ptsname(master), O_RDWR | O_NOCTTY); in main()
/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 | O_TRUNC; 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);
H A Dsyzkaller92.sh138 /*flags=O_TRUNC|O_NOCTTY|O_APPEND*/ 0x8408, /*mode=*/0);
/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/sys/sys/
H A Dfcntl.h109 #define O_NOCTTY 0x8000 /* don't assign controlling terminal */ macro
184 O_EXCL | O_NOCTTY | O_DIRECT | O_DIRECTORY | O_EXEC | O_TTY_INIT | \
/freebsd/contrib/llvm-project/lldb/tools/driver/
H A DPlatform.h32 #define O_NOCTTY 0400 macro
/freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/
H A Dfcntl-macros.h24 #define O_NOCTTY 00000400 macro
/freebsd/contrib/xz/src/xz/
H A Dfile_io.c68 #ifndef O_NOCTTY
69 # define O_NOCTTY 0 macro
561 int flags = O_RDONLY | O_BINARY | O_NOCTTY; in io_open_src_real()
907 | O_NOCTTY | O_NONBLOCK); in io_open_dest_real()
967 int flags = O_WRONLY | O_BINARY | O_NOCTTY in io_open_dest_real()
/freebsd/cddl/lib/libdtrace/
H A Dio.d102 inline int O_NOCTTY = 0x8000; variable
103 #pragma D binding "1.1" O_NOCTTY
/freebsd/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_project.c102 fd = open(name, O_RDONLY | O_NOCTTY); in zfs_project_load_projid()
127 fd = open(name, O_RDONLY | O_NOCTTY); in zfs_project_handle_one()
/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/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/tests/sys/fs/fusefs/
H A Dopen.cc251 test_ok(O_WRONLY | O_NOCTTY, O_WRONLY); in TEST_F()
/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
/freebsd/contrib/pjdfstest/
H A Dpjdfstest.c323 #ifdef O_NOCTTY
324 { O_NOCTTY, "O_NOCTTY" },

12