MCPcopy Create free account
hub / github.com/NetHack/NetHack / bufoff

Function bufoff

src/sfstruct.c:435–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void
436bufoff(int fd)
437{
438 int idx = getidx(fd, NOFLG);
439
440 if (idx >= 0) {
441 bflush(fd);
442 bw_buffered[idx] = 0; /* just a flag that says "use write(fd)" */
443 }
444}
445
446void
447bclose(int fd)

Callers 4

recover_savefileFunction · 0.85
store_versionFunction · 0.85
store_plname_in_fileFunction · 0.85
bcloseFunction · 0.85

Calls 2

getidxFunction · 0.85
bflushFunction · 0.85

Tested by

no test coverage detected