Home
last modified time | relevance | path

Searched refs:STDIN_FILENO (Results 1 – 24 of 24) sorted by relevance

/linux/tools/testing/selftests/filesystems/
H A Ddevpts_pts.c35 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 Dksft.h49 fd = STDIN_FILENO; in ksft_wait()
54 if (fd != STDIN_FILENO) in ksft_wait()
/linux/samples/uhid/
H A Duhid-example.c306 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 Dacpidbg.c290 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 Dbpf-fancy.c46 JNE(STDIN_FILENO, DENY), in main()
98 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)-1); in main()
H A Dbpf-direct.c132 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 Dxdp_helper.c
/linux/tools/firewire/
H A Dnosy-dump.c869 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 Dosunixxf.c92 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 Ddelaytop.c190 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 Dunistd.h19 #define STDIN_FILENO 0 macro
H A Dstdio.h44 static __attribute__((unused)) FILE* const stdin = (FILE*)(intptr_t)~STDIN_FILENO;
/linux/Documentation/usb/
H A Dgadget_hid.rst401 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 Dluo_test_utils.c193 close(STDIN_FILENO); in daemonize_and_wait()
/linux/tools/thermal/tmon/
H A Dtmon.c365 close(STDIN_FILENO); in start_daemon_mode()
/linux/tools/testing/selftests/mm/
H A Dprocess_madv.c279 ret = sys_process_madvise(STDIN_FILENO, &vec, 1, MADV_DONTNEED, 0); in TEST_F()
/linux/tools/testing/selftests/arm64/pauth/
H A Dpac.c131 dup2(new_stdin[0], STDIN_FILENO); in exec_sign_all()
/linux/tools/perf/
H A Dbuiltin-mem.c536 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in cmd_mem()
H A Dbuiltin-report.c1582 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in cmd_report()
H A Dbuiltin-stat.c2355 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in __cmd_report()
/linux/tools/perf/bench/
H A Dinject-buildid.c303 dup2(data->input_pipe[0], STDIN_FILENO); in setup_injection()
/linux/tools/perf/util/
H A Ddata.c166 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 Dkublk.c1322 close(STDIN_FILENO); in cmd_dev_add()
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c1351 CASE_TEST(fchdir_stdin); EXPECT_SYSER(1, fchdir(STDIN_FILENO), -1, ENOTDIR); break; in run_syscall()