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

Function write

src/foundation/mem_override_libc.c:276–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276ssize_t write(int fd, const void *buf, size_t n) {
277 ssize_t put = RESOLVED(r_write, "write")(fd, buf, n);
278 note_io(CBM_WORK_WRITE, SITE(), (long long)put, n);
279 ACC_LOAD(buf, put > 0 ? (size_t)put : 0);
280 return put;
281}
282
283ssize_t pread(int fd, void *buf, size_t n, off_t off) {
284 ssize_t got = RESOLVED(r_pread, "pread")(fd, buf, n, off);

Callers 15

write_allFunction · 0.70
diag_write_fileFunction · 0.70
parent_watchdog_threadFunction · 0.50
ha_deadline_exitFunction · 0.50
tpt_native_writeFunction · 0.50
config_write_allFunction · 0.50
posix_fd_write_allFunction · 0.50
posix_complete_writeFunction · 0.50

Calls 1

note_ioFunction · 0.85

Tested by 15

tpt_native_writeFunction · 0.40
cli_scope_host_childFunction · 0.40
hl_run_hookFunction · 0.40
frontend_eof_write_allFunction · 0.40
transferFunction · 0.40