MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / acquireOutputStream

Function acquireOutputStream

test_conformance/printf/test_printf.cpp:138–148  ·  view source on GitHub ↗

----------------------------------------- acquireOutputStream -----------------------------------------

Source from the content-addressed store, hash-verified

136// acquireOutputStream
137//-----------------------------------------
138int acquireOutputStream(int* error)
139{
140 int fd = streamDup(fileno(stdout));
141 *error = 0;
142 if (!freopen(gFileName, "w", stdout))
143 {
144 releaseOutputStream(fd);
145 *error = -1;
146 }
147 return fd;
148}
149
150//-----------------------------------------
151// releaseOutputStream

Callers 2

doTestFunction · 0.85
InitCLFunction · 0.85

Calls 1

releaseOutputStreamFunction · 0.85

Tested by

no test coverage detected