MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / __wrap_pwrite

Function __wrap_pwrite

src/foundation/mem_override_libc.c:517–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515 return got;
516}
517ssize_t __wrap_pwrite(int fd, const void *buf, size_t n, off_t off) {
518 ssize_t put = __real_pwrite(fd, buf, n, off);
519 note_io(CBM_WORK_PWRITE, SITE(), (long long)put, n);
520 ACC_LOAD(buf, put > 0 ? (size_t)put : 0);
521 return put;
522}
523ssize_t __wrap_pread64(int fd, void *buf, size_t n, off_t off) {
524 ssize_t got = __real_pread64(fd, buf, n, off);
525 note_io(CBM_WORK_PREAD, SITE(), (long long)got, n);

Callers

nothing calls this directly

Calls 1

note_ioFunction · 0.85

Tested by

no test coverage detected