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

Function macclose

outdated/sys/mac/macfile.c:276–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276int
277macclose(int fd)
278{
279 if (IsHandleFile(fd)) {
280 CloseHandleFile(fd);
281 } else {
282 if (FSClose(fd)) {
283 return -1;
284 }
285 FlushVol((StringPtr) 0, theDirs.dataRefNum);
286 }
287 return 0;
288}
289
290int
291macread(int fd, void *ptr, unsigned len)

Callers 1

check_recordfileFunction · 0.85

Calls 2

IsHandleFileFunction · 0.85
CloseHandleFileFunction · 0.85

Tested by

no test coverage detected