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

Function creat

outdated/sys/wince/celib.c:144–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144int __cdecl creat(const char *fname, int mode)
145{
146 HANDLE f;
147 TCHAR wbuf[MAX_PATH + 1];
148 ZeroMemory(wbuf, sizeof(wbuf));
149 NH_A2W(fname, wbuf, MAX_PATH);
150
151 f = CreateFile(wbuf, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
152 FILE_ATTRIBUTE_NORMAL, NULL);
153
154 if (f == INVALID_HANDLE_VALUE)
155 return -1;
156 else
157 return alloc_file_handle(f);
158}
159
160int __cdecl eof(int f)
161{

Callers 12

getlockFunction · 0.85
getlockFunction · 0.85
vms_creatFunction · 0.85
getlockFunction · 0.85
pcunix.cFile · 0.85
create_levelfileFunction · 0.85
create_bonesfileFunction · 0.85
create_savefileFunction · 0.85
getlockFunction · 0.85
getlockFunction · 0.85
create_dstfileFunction · 0.85
create_savefileFunction · 0.85

Calls 1

alloc_file_handleFunction · 0.85

Tested by

no test coverage detected