Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/filesystems/
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-6.12.1/samples/uhid/
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-6.12.1/tools/power/acpi/tools/acpidbg/
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-6.12.1/samples/seccomp/
Dbpf-fancy.c46 JNE(STDIN_FILENO, DENY), in main()
98 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)-1); in main()
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-6.12.1/tools/firewire/
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-6.12.1/tools/power/acpi/os_specific/service_layers/
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-6.12.1/tools/include/nolibc/
Dunistd.h16 #define STDIN_FILENO 0 macro
Dstdio.h37 static __attribute__((unused)) FILE* const stdin = (FILE*)(intptr_t)~STDIN_FILENO;
/linux-6.12.1/Documentation/usb/
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-6.12.1/tools/thermal/tmon/
Dtmon.c365 close(STDIN_FILENO); in start_daemon_mode()
/linux-6.12.1/tools/testing/selftests/arm64/pauth/
Dpac.c131 dup2(new_stdin[0], STDIN_FILENO); in exec_sign_all()
/linux-6.12.1/tools/perf/bench/
Dinject-buildid.c303 dup2(data->input_pipe[0], STDIN_FILENO); in setup_injection()
/linux-6.12.1/tools/perf/
Dbuiltin-mem.c531 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in cmd_mem()
Dbuiltin-report.c1548 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in cmd_report()
Dbuiltin-stat.c2311 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) in __cmd_report()
/linux-6.12.1/tools/perf/util/
Ddata.c186 STDIN_FILENO : STDOUT_FILENO; in check_pipe()