Home
last modified time | relevance | path

Searched refs:freopen (Results 1 - 25 of 41) sorted by relevance

12

/third_party/libwebsockets/lib/misc/
H A Ddaemonize.c211 if (!freopen("/dev/null", "r", stdin)) in lws_daemonize()
212 fprintf(stderr, "unable to freopen() stdin, code %d (%s)", in lws_daemonize()
215 if (!freopen("/dev/null", "w", stdout)) in lws_daemonize()
216 fprintf(stderr, "unable to freopen() stdout, code %d (%s)", in lws_daemonize()
219 if (!freopen("/dev/null", "w", stderr)) in lws_daemonize()
220 fprintf(stderr, "unable to freopen() stderr, code %d (%s)", in lws_daemonize()
/third_party/musl/porting/linux/user/src/stdio/
H A Dfreopen.c10 * lock, via flockfile or otherwise, when freopen is called, and in that
11 * case, freopen cannot act until the lock is released. */
13 FILE *freopen(const char *restrict filename, const char *restrict mode, FILE *restrict f) in freopen() function
60 weak_alias(freopen, freopen64);
/third_party/musl/src/stdio/
H A Dfreopen.c10 * lock, via flockfile or otherwise, when freopen is called, and in that
11 * case, freopen cannot act until the lock is released. */
13 FILE *freopen(const char *restrict filename, const char *restrict mode, FILE *restrict f) in freopen() function
57 weak_alias(freopen, freopen64);
/third_party/vk-gl-cts/external/amber/src/samples/
H A Dandroid_helper.cc37 freopen(stdout_file_cstr, "w", stdout); in Java_com_google_amber_Amber_androidHelper()
38 freopen(stderr_file_cstr, "w", stderr); in Java_com_google_amber_Amber_androidHelper()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dfreopen.c28 FILE_ABSOLUTE_PATH("freopen.txt", ptr); in freopen_0100()
31 fp = freopen(ptr, "w+", stdin); in freopen_0100()
H A D_flushlbf.c37 FILE *fp = freopen("/data/test.txt", "r", stdin); in flushlbf_0100()
H A Dgetchar_unlocked.c39 FILE *fp = freopen(path, "r", stdin); in getchar_unlocked_0100()
41 t_error("%s freopen failed\n", __func__); in getchar_unlocked_0100()
H A Dgetchar.c39 FILE *fp = freopen(path, "r", stdin); in getchar_0100()
41 t_error("%s freopen failed\n", __func__); in getchar_0100()
/third_party/curl/src/
H A Dtool_stderr.c52 subsequent freopen will fail. */ in tool_set_stderr_file()
60 /* freopen the actual stderr (stdio.h stderr) instead of tool_stderr since in tool_set_stderr_file()
63 fp = freopen(filename, FOPEN_WRITETEXT, stderr); in tool_set_stderr_file()
65 /* stderr may have been closed by freopen. there is nothing to be done. */ in tool_set_stderr_file()
/third_party/node/test/wasi/c/
H A Dfreopen.c7 FILE* file_new = freopen("/sandbox/input2.txt", "r", file_orig); in main()
/third_party/musl/porting/liteos_m/kernel/include/
H A Dstdio.h69 FILE *freopen(const char *__restrict, const char *__restrict, FILE *__restrict);
209 #define freopen64 freopen
/third_party/musl/porting/liteos_a/kernel/include/
H A Dstdio.h71 FILE *freopen(const char *__restrict, const char *__restrict, FILE *__restrict);
210 #define freopen64 freopen
/third_party/musl/porting/linux/user/include/
H A Dstdio.h72 FILE *freopen(const char *__restrict, const char *__restrict, FILE *__restrict);
216 #define freopen64 freopen
/third_party/musl/porting/uniproton/kernel/include/
H A Dstdio.h69 FILE *freopen(const char *__restrict, const char *__restrict, FILE *__restrict);
209 #define freopen64 freopen
/third_party/musl/include/
H A Dstdio.h72 FILE *freopen(const char *__restrict, const char *__restrict, FILE *__restrict);
216 #define freopen64 freopen
/third_party/ltp/testcases/kernel/fs/stream/
H A Dstream01.c24 >KEYS: < freopen()
25 >WHAT: < 1) check that freopen substitutes the named file in place of stream.
26 >HOW: < 1) open a stream, write something to it, perform freopen and
28 < the file specified by freopen.
76 if ((stream = freopen(tempfile2, "a+", stream)) == NULL) { in main()
77 tst_brkm(TFAIL | TERRNO, NULL, "freopen(%s) a+ failed", in main()
/third_party/ffmpeg/tests/
H A Drotozoom.c169 if (!freopen(argv[2], "wb", stdout)) in main()
H A Dvideogen.c162 if (!freopen(argv[1], "wb", stdout)) in main()
/third_party/json/tests/thirdparty/Fuzzer/afl/
H A Dafl_driver.cpp231 freopen(stderr_duplicate_filename, "a+", stderr); in maybe_duplicate_stderr()
/third_party/skia/third_party/externals/libpng/contrib/gregbook/
H A Drpng-win.c190 freopen("CONOUT$", "a", stderr); in WinMain()
191 freopen("CONOUT$", "a", stdout); in WinMain()
H A Drpng2-win.c307 freopen("CONOUT$", "a", stderr); in WinMain()
308 freopen("CONOUT$", "a", stdout); in WinMain()
/third_party/musl/libc-test/src/api/
H A Dstdio.c52 {FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen;} in f()
/third_party/ltp/tools/sparse/sparse-src/
H A Dlib.c411 if (!freopen(outfile, "w", stdout)) in sparse_initialize()
/third_party/nghttp2/src/
H A Dutil.cc1689 if (freopen("/dev/null", "r", stdin) == nullptr) { in daemonize()
1692 if (freopen("/dev/null", "w", stdout) == nullptr) { in daemonize()
1695 if (freopen("/dev/null", "w", stderr) == nullptr) { in daemonize()
/third_party/node/test/cctest/
H A Dtest_environment.cc81 USE(freopen(filename_, "w", stderr)); in RedirectStdErr()

Completed in 13 milliseconds

12