O_NOCTTY
#ifndef O_NOCTTY
t = open(line, O_RDWR|O_NOCTTY);
t = open(line, O_RDWR|O_NOCTTY);
if ((fd = open(_PATH_TTY, O_RDONLY | O_NOCTTY)) >= 0) {
if ((*aslave = open(pts, O_RDWR | O_NOCTTY)) == -1) {
if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) {
if (junk_ptyfd == -1 && (fd = open(_PATH_TTY, O_RDWR|O_NOCTTY)) >= 0) {
if ((*amaster = open("/dev/ptc", O_RDWR | O_NOCTTY)) == -1)
if ((*aslave = open(ttname, O_RDWR | O_NOCTTY)) == -1) {
if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) {
if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1)
if ((*aslave = open(ttbuf, O_RDWR | O_NOCTTY)) == -1) {
#ifndef O_NOCTTY
if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1)
fd = open(_PATH_TTY, O_RDWR | O_NOCTTY);
fd = open(_PATH_TTY, O_RDWR | O_NOCTTY);
if ((fd = open(_PATH_TTY, O_RDWR | O_NOCTTY)) >= 0) {
#ifndef O_NOCTTY
master = posix_openpt(O_RDWR|O_NOCTTY);
bsd_flags |= O_NOCTTY;
if (bsd_flags & O_NOCTTY)
if (uap->flags & ~(O_RDWR|O_NOCTTY|O_CLOEXEC))
ATF_REQUIRE((filedesc = posix_openpt(O_RDWR | O_NOCTTY)) != -1);
ATF_REQUIRE((filedesc = posix_openpt(O_RDWR | O_NOCTTY)) != -1);
test_ok(O_WRONLY | O_NOCTTY, O_WRONLY);