Home
last modified time | relevance | path

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

/linux/samples/seccomp/
H A Dbpf-direct.c83 if (write(STDOUT_FILENO, "[ERR] ", 6) > 0) { in emulator()
84 bytes = write(STDOUT_FILENO, buf, len); in emulator()
137 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, STDOUT_FILENO, 1, 0), in install_filter()
172 syscall(__NR_write, STDOUT_FILENO, in main()
175 syscall(__NR_write, STDOUT_FILENO, payload("HELLO, ")); in main()
176 syscall(__NR_write, STDOUT_FILENO, buf, bytes); in main()
H A Dbpf-fancy.c55 JEQ(STDOUT_FILENO, JUMP(&l, write_buf)), in main()
97 syscall(__NR_write, STDOUT_FILENO, msg1, strlen(msg1)); in main()
/linux/tools/testing/selftests/size/
H A Dget_size.c33 #define STDOUT_FILENO 1 macro
42 return syscall(SYS_write, STDOUT_FILENO, s, len); in print()
/linux/tools/power/acpi/tools/acpidbg/
H A Dacpidbg.c304 maxfd = acpi_aml_set_fd(STDOUT_FILENO, maxfd, &wfds); in acpi_aml_loop()
326 if (FD_ISSET(STDOUT_FILENO, &wfds)) { in acpi_aml_loop()
328 ACPI_AML_BATCH_DO(STDOUT_FILENO, write, log, ret); in acpi_aml_loop()
330 ACPI_AML_DO(STDOUT_FILENO, write, log, ret); in acpi_aml_loop()
429 acpi_aml_set_fl(STDOUT_FILENO, O_NONBLOCK); in main()
/linux/tools/testing/selftests/powerpc/dexcr/
H A Dhashchk_test.c112 count = write(STDOUT_FILENO, hash_values, sizeof(hash_values)); in hashchk_exec_child()
136 if (dup2(pipefd[1], STDOUT_FILENO) == -1) in hashchk_exec_random_key_test()
/linux/tools/include/linux/
H A Dkallsyms.h29 dprintf(STDOUT_FILENO, "%s\n", *name); in print_ip_sym()
/linux/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c141 ASSERT_NE(dup2(pipefd[1], STDOUT_FILENO), -1); in TEST_F()
242 if (write(STDOUT_FILENO, &val, sizeof(int)) == -1) in exec_child()
/linux/tools/testing/selftests/splice/
H A Dsplice_read.c48 spliced = splice(fd, NULL, STDOUT_FILENO, NULL, in main()
/linux/tools/include/nolibc/
H A Dunistd.h17 #define STDOUT_FILENO 1 macro
H A Dstdio.h38 static __attribute__((unused)) FILE* const stdout = (FILE*)(intptr_t)~STDOUT_FILENO;
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bprm_opts.c41 dup2(null_fd, STDOUT_FILENO); in run_set_secureexec()
H A Dtest_local_storage.c34 dup2(null_fd, STDOUT_FILENO); in run_self_unlink()
/linux/samples/pidfd/
H A Dpidfd-metadata.c112 bytes = write(STDOUT_FILENO, buf, bytes); in main()
/linux/tools/perf/util/
H A Dtrace-event-read.c39 int retw = write(STDOUT_FILENO, buf, ret); in __do_read()
122 int retw = write(STDOUT_FILENO, &c, 1); in read_string()
H A Ddata.c186 STDIN_FILENO : STDOUT_FILENO; in check_pipe()
H A Dheader.c4563 int retw = write(STDOUT_FILENO, buf, padding); in perf_event__process_tracing_data()
/linux/tools/virtio/virtio-trace/
H A Dtrace-agent-rw.c65 rw_ti->out_fd = STDOUT_FILENO; in rw_thread_init()
/linux/tools/perf/ui/tui/
H A Dsetup.c111 backtrace_symbols_fd(stackdump, size, STDOUT_FILENO); in ui__signal_backtrace()
/linux/tools/testing/selftests/filesystems/
H A Ddevpts_pts.c35 if (!terminal_dup2(fd, (int[]){STDIN_FILENO, STDOUT_FILENO, in terminal_set_stdfds()
/linux/tools/thermal/tmon/
H A Dtmon.c366 close(STDOUT_FILENO); in start_daemon_mode()
/linux/tools/testing/selftests/arm64/pauth/
H A Dpac.c137 dup2(new_stdout[1], STDOUT_FILENO); in exec_sign_all()
/linux/tools/perf/bench/
H A Dinject-buildid.c305 dup2(data->output_pipe[1], STDOUT_FILENO); in setup_injection()
/linux/tools/testing/selftests/resctrl/
H A Dresctrlfs.c808 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg()
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c1355 close(STDOUT_FILENO); in run_protection()