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

Function lseek64_compat

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

Source from the content-addressed store, hash-verified

1041int FileDescriptor::Detach() { return fd_.exchange(-1); }
1042
1043static Result<int64_t> lseek64_compat(int fd, int64_t pos, int whence) {
1044#if defined(_WIN32)
1045 int64_t ret = _lseeki64(fd, pos, whence);
1046#else
1047 int64_t ret = lseek(fd, pos, whence);
1048#endif
1049 if (ret == -1) {
1050 return Status::IOError("lseek failed");
1051 }
1052 return ret;
1053}
1054
1055Result<FileDescriptor> FileOpenReadable(const PlatformFilename& file_name) {
1056 FileDescriptor fd;

Callers 3

FileOpenWritableFunction · 0.85
FileTellFunction · 0.85
FileSeekFunction · 0.85

Calls 1

IOErrorFunction · 0.85

Tested by

no test coverage detected