MCPcopy Create free account
hub / github.com/apache/trafficserver / fclose

Method fclose

src/api/InkAPIInternal.cc:344–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void
345FileImpl::fclose()
346{
347 if (m_fd != -1) {
348 fflush();
349
350 close(m_fd);
351 m_fd = -1;
352 m_mode = CLOSED;
353 }
354
355 ats_free(m_buf);
356 m_buf = nullptr;
357 m_bufsize = 0;
358 m_bufpos = 0;
359}
360
361ssize_t
362FileImpl::fread(void *buf, size_t length)

Callers 1

TSfcloseFunction · 0.80

Calls 1

ats_freeFunction · 0.85

Tested by

no test coverage detected