MCPcopy Create free account
hub / github.com/ReadyTalk/avian / makePipe

Function makePipe

classpath/java-lang.cpp:186–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185#if !defined(WINAPI_FAMILY) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
186void makePipe(JNIEnv* e, HANDLE p[2])
187{
188 SECURITY_ATTRIBUTES sa;
189 sa.nLength = sizeof(sa);
190 sa.bInheritHandle = 1;
191 sa.lpSecurityDescriptor = 0;
192
193 BOOL success = CreatePipe(p, p + 1, &sa, 0);
194 if (not success) {
195 throwNew(e, "java/io/IOException", getErrorStr(GetLastError()));
196 }
197}
198#endif
199
200int descriptor(JNIEnv* e, HANDLE h)

Callers 1

Calls 3

getErrorStrFunction · 0.85
throwNewErrnoFunction · 0.85
throwNewFunction · 0.70

Tested by

no test coverage detected