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