O_NOCTTY
(fd = open(devnam, O_RDWR | O_NONBLOCK | O_NOCTTY)) >= 0) {
mfd = open("/dev/ptmx", O_NOCTTY | O_RDWR);
tunfd = open(tunnam, O_RDWR | O_NOCTTY);
if ((tfd = open(dev, O_WRONLY|O_NOCTTY)) == -1) {
if ((p = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) {
if ((t = open(subsidname, O_RDWR | O_NOCTTY)) == -1)
if ((fd = open(devp, O_RDWR | O_NOCTTY | O_NONBLOCK | O_NDELAY)) < 0)
O_LARGEFILE | O_NOCTTY | O_NONBLOCK | O_NDELAY | O_RSYNC |
if ((syslog_logfd = open("/dev/conslog", O_WRONLY | O_NOCTTY)) == -1)
if ((syslog_msgfd = open("/dev/sysmsg", O_WRONLY | O_NOCTTY)) == -1)
if ((fd = open(SYSCON, O_RDWR | O_NOCTTY)) < 0 ||
fd = open(SYSCON, O_RDWR | O_NOCTTY);
fd = open("/dev/console", O_WRONLY | O_NOCTTY);
fd = open("/dev/console", O_WRONLY | O_NOCTTY);
if (dup2(open("/dev/console", O_WRONLY|O_NOCTTY), 1) == -1) {
O_CREAT | O_TRUNC | O_EXCL | O_NOCTTY | O_LARGEFILE
if (flags & O_NOCTTY)
if ((fd = open("/dev/console", O_WRONLY|O_NOCTTY)) != -1)
O_WRONLY|O_APPEND|O_NOCTTY);
O_WRONLY|O_APPEND|O_NOCTTY);
ttyf = open(w->dev, O_WRONLY|O_NOCTTY|O_NDELAY);
O_WRONLY|O_APPEND|O_NOCTTY|O_NONBLOCK :
O_WRONLY|O_APPEND|O_NOCTTY;
mode_t fmode, omode = O_WRONLY|O_APPEND|O_NOCTTY;
|O_EXCL|O_NOCTTY|O_LARGEFILE|O_RSYNC|O_XATTR|O_NOFOLLOW|O_NOLINKS\
if (arg & O_NOCTTY)
} else if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1) {
if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1)
if ((fd = open(pmptr->p_device, O_RDONLY|O_NONBLOCK|O_NOCTTY)) < 0) {
if ((fd = open(line, O_WRONLY|O_NOCTTY|O_NONBLOCK)) == -1) {
if ((fd = open(s, O_WRONLY|O_NOCTTY|O_NONBLOCK)) == -1) {
if ((fildes = open(term, O_WRONLY|O_NOCTTY)) < 0)
fd = open(name, O_RDONLY | O_NOCTTY);
fd = open(name, O_RDONLY | O_NOCTTY);
if ((managerfd = open(conspath, O_RDWR | O_NOCTTY)) != -1) {
if ((subfd = open(conspath, O_RDWR | O_NOCTTY)) != -1) {
if ((managerfd = open(conspath, O_RDWR | O_NOCTTY)) == -1) {
if ((subfd = open(conspath, O_RDWR | O_NOCTTY)) == -1) {
managerfd = open(conspath, O_RDWR|O_NONBLOCK|O_NOCTTY);
O_RDWR | O_NOCTTY
flags |= O_NOCTTY | O_NOFOLLOW;
flags |= O_NOCTTY | O_NOFOLLOW;
oflags = O_RDONLY | O_NOCTTY | O_NDELAY;
oflags = O_RDWR | O_NOCTTY | O_NDELAY;
if ((fd = open(IPPCTL_DEVICE, O_RDWR | O_NOCTTY)) == -1) {
if ((fd = open(dev, O_WRONLY|O_NOCTTY)) == -1) {
if (flag & O_NOCTTY) {
int mfd = posix_openpt(O_RDWR | O_NOCTTY);
sfd = open(name, O_RDWR | O_NOCTTY);
if ((mngr = posix_openpt(O_RDWR | O_NOCTTY)) < 0) {
if ((alt_mngr = posix_openpt(O_RDWR | O_NOCTTY)) < 0) {
if ((fd = open(term, O_WRONLY|O_NOCTTY)) == -1) {