MCPcopy Create free account
hub / github.com/apache/arrow / FileClose

Function FileClose

cpp/src/arrow/util/io_util.cc:1565–1578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1563//
1564
1565Status FileClose(int fd) {
1566 int ret;
1567
1568#if defined(_WIN32)
1569 ret = static_cast<int>(_close(fd));
1570#else
1571 ret = static_cast<int>(close(fd));
1572#endif
1573
1574 if (ret == -1) {
1575 return Status::IOError("error closing file");
1576 }
1577 return Status::OK();
1578}
1579
1580//
1581// Seeking and telling

Callers 4

~BackgroundReaderMethod · 0.85
OpenOutputStreamGenericFunction · 0.85
CloseFromDestructorMethod · 0.85
CloseMethod · 0.85

Calls 3

_closeFunction · 0.85
IOErrorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected