console_fd 165 src/consaver/cons.saver.c int console_fd, vcsa_fd, console_minor, buffer_size; console_fd 187 src/consaver/cons.saver.c console_fd = open (tty_name, O_RDONLY); console_fd 188 src/consaver/cons.saver.c if (console_fd < 0) console_fd 190 src/consaver/cons.saver.c if (fstat (console_fd, &st) < 0 || !S_ISCHR (st.st_mode)) console_fd 238 src/consaver/cons.saver.c if (ioctl (console_fd, TIOCGWINSZ, &winsz) < 0 console_fd 260 src/consaver/cons.saver.c || fstat (console_fd, &st) < 0 || st.st_uid != uid console_fd 262 src/consaver/cons.saver.c || fstat (console_fd, &st) < 0 || st.st_uid != uid) console_fd 269 src/consaver/cons.saver.c && lseek (vcsa_fd, 0, 0) == 0 && fstat (console_fd, &st) >= 0 && st.st_uid == uid)