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

Function CloseHandleFile

outdated/sys/mac/macfile.c:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static int
95CloseHandleFile(int fd)
96{
97 if (!IsHandleFile(fd)) {
98 return -1;
99 }
100 fd -= FIRST_HF;
101 ReleaseResource(theHandleFiles[fd].data);
102 theHandleFiles[fd].data = 0L;
103 return (0);
104}
105
106static int
107ReadHandleFile(int fd, void *ptr, unsigned len)

Callers 2

maccloseFunction · 0.85
rsrc_dlb_fcloseFunction · 0.85

Calls 1

IsHandleFileFunction · 0.85

Tested by

no test coverage detected