MCPcopy Index your code
hub / github.com/NetHack/NetHack / nhclose

Function nhclose

src/files.c:582–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580#endif /* !SFCTOOL */
581
582int
583nhclose(int fd)
584{
585 int retval = 0;
586
587 if (fd >= 0) {
588 if (close_check(fd))
589 bclose(fd);
590 else
591 retval = close(fd);
592 }
593 return retval;
594}
595
596/* ---------- BEGIN LEVEL FILE HANDLING ----------- */
597

Callers 8

getlockFunction · 0.85
getlockFunction · 0.85
pcunix.cFile · 0.85
init_nhfileFunction · 0.85
close_nhfileFunction · 0.85
unlock_fileFunction · 0.85
check_recordfileFunction · 0.85
mreadFunction · 0.85

Calls 3

close_checkFunction · 0.85
bcloseFunction · 0.85
closeFunction · 0.85

Tested by

no test coverage detected