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

Function IsHandleFile

outdated/sys/mac/macfile.c:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51MacDirs theDirs; /* also referenced in macwin.c */
52
53static HandleFile *
54IsHandleFile(int fd)
55{
56 HandleFile *hfp = NULL;
57
58 if (fd >= FIRST_HF && fd < FIRST_HF + MAX_HF) {
59 /* in valid range, check for data */
60 hfp = &theHandleFiles[fd - FIRST_HF];
61 if (!hfp->data)
62 hfp = NULL;
63 }
64 return hfp;
65}
66
67static int
68OpenHandleFile(const unsigned char *name, long fileType)

Callers 10

CloseHandleFileFunction · 0.85
ReadHandleFileFunction · 0.85
SetHandleFilePosFunction · 0.85
maccloseFunction · 0.85
macreadFunction · 0.85
macwriteFunction · 0.85
macseekFunction · 0.85
rsrc_dlb_fgetsFunction · 0.85
rsrc_dlb_fgetcFunction · 0.85
rsrc_dlb_ftellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected