taglinefilesource code
O_NOCTTY1066drivers/char/tty_io.cnoctty = filp->f_flags & O_NOCTTY;
O_NOCTTY453fs/open.cf->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);