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

Function close

outdated/sys/wince/celib.c:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133int __cdecl close(int f)
134{
135 int retval;
136 f -= MAGIC_OFFSET;
137 if (f < 0 || f >= FILE_TABLE_SIZE)
138 return -1;
139 retval = (CloseHandle(_nh_file_table[f]) ? 0 : -1);
140 _nh_file_table[f] = INVALID_HANDLE_VALUE;
141 return retval;
142}
143
144int __cdecl creat(const char *fname, int mode)
145{

Callers 15

tty_display_fileFunction · 0.85
getlockFunction · 0.85
real_getresuidFunction · 0.85
real_getresgidFunction · 0.85
veryoldFunction · 0.85
getlockFunction · 0.85
pcmainFunction · 0.85
crashreport_initFunction · 0.85
submit_web_reportFunction · 0.85
nhcloseFunction · 0.85
unlock_fileFunction · 0.85
assure_syscf_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected