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

Function __wrap_write

src/foundation/mem_override_libc.c:505–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503 return got;
504}
505ssize_t __wrap_write(int fd, const void *buf, size_t n) {
506 ssize_t put = __real_write(fd, buf, n);
507 note_io(CBM_WORK_WRITE, SITE(), (long long)put, n);
508 ACC_LOAD(buf, put > 0 ? (size_t)put : 0);
509 return put;
510}
511ssize_t __wrap_pread(int fd, void *buf, size_t n, off_t off) {
512 ssize_t got = __real_pread(fd, buf, n, off);
513 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