MCPcopy Index your code
hub / github.com/questdb/questdb / close

Method close

core/src/main/java/io/questdb/std/Files.java:109–116  ·  view source on GitHub ↗
(long fd)

Source from the content-addressed store, hash-verified

107 }
108
109 public static int close(long fd) {
110 // do not close `stdin` and `stdout`
111 if (fd > 0 && toOsFd(fd) > 2) {
112 return fdCache.close(fd);
113 }
114 // failed to close
115 return -1;
116 }
117
118 public static int closeDetached(int osFd) {
119 return close0(osFd);

Calls 2

toOsFdMethod · 0.95
closeMethod · 0.65

Tested by 15

testAllocateMethod · 0.76
testAllocateLoopMethod · 0.76
testDeleteOpenFileMethod · 0.76
testMixedIOConcurrentMethod · 0.76
testMmapInvalidMethod · 0.76
testMremapInvalidMethod · 0.76
testOpenCleanRWLoopMethod · 0.76