| 131 | } |
| 132 | |
| 133 | int __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 | |
| 144 | int __cdecl creat(const char *fname, int mode) |
| 145 | { |
no outgoing calls
no test coverage detected