| /linux/tools/testing/selftests/filesystems/ |
| H A D | devpts_pts.c | 35 if (!terminal_dup2(fd, (int[]){STDIN_FILENO, STDOUT_FILENO, in terminal_set_stdfds() 151 ret = resolve_procfd_symlink(STDIN_FILENO, buf, sizeof(buf)); in do_tiocgptpeer() 162 STDIN_FILENO, buf); in do_tiocgptpeer() 167 "symlink are valid: %s\n", STDIN_FILENO, buf); in do_tiocgptpeer() 284 if (!isatty(STDIN_FILENO)) { in main()
|
| /linux/tools/testing/selftests/net/lib/ |
| H A D | ksft.h | 49 fd = STDIN_FILENO; in ksft_wait() 54 if (fd != STDIN_FILENO) in ksft_wait()
|
| /linux/samples/uhid/ |
| H A D | uhid-example.c | 306 ret = read(STDIN_FILENO, buf, sizeof(buf)); in keyboard() 395 ret = tcgetattr(STDIN_FILENO, &state); in main() 401 ret = tcsetattr(STDIN_FILENO, TCSANOW, &state); in main() 429 pfds[0].fd = STDIN_FILENO; in main()
|
| /linux/tools/power/acpi/tools/acpidbg/ |
| H A D | acpidbg.c | 290 maxfd = acpi_aml_set_fd(STDIN_FILENO, maxfd, &rfds); in acpi_aml_loop() 293 ACPI_AML_BATCH_DO(STDIN_FILENO, read, cmd, ret); in acpi_aml_loop() 312 if (FD_ISSET(STDIN_FILENO, &rfds)) in acpi_aml_loop() 313 ACPI_AML_DO(STDIN_FILENO, read, cmd, ret); in acpi_aml_loop() 428 acpi_aml_set_fl(STDIN_FILENO, O_NONBLOCK); in main()
|
| /linux/samples/seccomp/ |
| H A D | bpf-fancy.c | 46 JNE(STDIN_FILENO, DENY), in main() 98 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)-1); in main()
|
| H A D | bpf-direct.c | 132 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, STDIN_FILENO, 4, 0), in install_filter() 174 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)); in main()
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | xdp_helper.c | |
| /linux/tools/firewire/ |
| H A D | nosy-dump.c | 869 tcsetattr(STDIN_FILENO, TCSANOW, &saved_attributes); in reset_input_mode() 878 if (!isatty(STDIN_FILENO)) { in set_input_mode() 884 tcgetattr(STDIN_FILENO, &saved_attributes); in set_input_mode() 888 tcgetattr(STDIN_FILENO, &tattr); in set_input_mode() 892 tcsetattr(STDIN_FILENO, TCSAFLUSH, &tattr); in set_input_mode() 970 pollfds[1].fd = STDIN_FILENO; in main() 981 read(STDIN_FILENO, &c, sizeof c); in main()
|
| /linux/tools/power/acpi/os_specific/service_layers/ |
| H A D | osunixxf.c | 92 if (!isatty(STDIN_FILENO)) { in os_enter_line_edit_mode() 98 if (tcgetattr(STDIN_FILENO, &original_term_attributes)) { in os_enter_line_edit_mode() 112 if (tcsetattr(STDIN_FILENO, TCSANOW, &local_term_attributes)) { in os_enter_line_edit_mode() 129 if (tcsetattr(STDIN_FILENO, TCSANOW, &original_term_attributes)) { in os_exit_line_edit_mode()
|
| /linux/tools/accounting/ |
| H A D | delaytop.c | 190 tcgetattr(STDIN_FILENO, &orig_termios); in enable_raw_mode() 193 tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw); in enable_raw_mode() 197 tcsetattr(STDIN_FILENO, TCSAFLUSH, &orig_termios); in disable_raw_mode() 1006 FD_SET(STDIN_FILENO, &readfds); in check_for_keypress() 1007 int r = select(STDIN_FILENO + 1, &readfds, NULL, NULL, &tv); in check_for_keypress() 1009 if (r > 0 && FD_ISSET(STDIN_FILENO, &readfds)) { in check_for_keypress() 1010 read(STDIN_FILENO, &ch, 1); in check_for_keypress()
|
| /linux/tools/include/nolibc/ |
| H A D | unistd.h | 19 #define STDIN_FILENO 0 macro
|
| H A D | stdio.h | 44 static __attribute__((unused)) FILE* const stdin = (FILE*)(intptr_t)~STDIN_FILENO;
|
| /linux/Documentation/usb/ |
| H A D | gadget_hid.rst | 401 FD_SET(STDIN_FILENO, &rfds); 420 if (FD_ISSET(STDIN_FILENO, &rfds)) { 422 cmd_len = read(STDIN_FILENO, buf, BUF_LEN - 1);
|
| /linux/tools/testing/selftests/liveupdate/ |
| H A D | luo_test_utils.c | 193 close(STDIN_FILENO); in daemonize_and_wait()
|
| /linux/tools/thermal/tmon/ |
| H A D | tmon.c | 365 close(STDIN_FILENO); in start_daemon_mode()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | process_madv.c | 279 ret = sys_process_madvise(STDIN_FILENO, &vec, 1, MADV_DONTNEED, 0); in TEST_F()
|
| /linux/tools/testing/selftests/arm64/pauth/ |
| H A D | pac.c | 131 dup2(new_stdin[0], STDIN_FILENO); in exec_sign_all()
|
| /linux/tools/perf/ |
| H A D | builtin-mem.c | 536 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in cmd_mem()
|
| H A D | builtin-report.c | 1582 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in cmd_report()
|
| H A D | builtin-stat.c | 2355 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in __cmd_report()
|
| /linux/tools/perf/bench/ |
| H A D | inject-buildid.c | 303 dup2(data->input_pipe[0], STDIN_FILENO); in setup_injection()
|
| /linux/tools/perf/util/ |
| H A D | data.c | 166 STDIN_FILENO : STDOUT_FILENO; in perf_data__update_dir() 190 * instead of STDIN_FILENO or STDOUT_FILENO in check_pipe()
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | kublk.c | 1322 close(STDIN_FILENO); in cmd_dev_add()
|
| /linux/tools/testing/selftests/nolibc/ |
| H A D | nolibc-test.c | 1351 CASE_TEST(fchdir_stdin); EXPECT_SYSER(1, fchdir(STDIN_FILENO), -1, ENOTDIR); break; in run_syscall()
|