Files
compute-runtime/unit_tests/os_interface/linux/sys_calls_linux_ult.cpp
Jablonski, Mateusz 807586aafd Linux: discover devices in DeviceFactory::getDevices
Related-To: NEO-4208
Change-Id: Ia4405745d1ae22f03ce344a92f2b664ef6e1b957
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-02-10 15:53:37 +01:00

28 lines
463 B
C++

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/os_interface/linux/sys_calls.h"
#include <cstdint>
namespace NEO {
namespace SysCalls {
uint32_t closeFuncCalled = 0u;
int closeFuncArgPassed = 0;
int close(int fileDescriptor) {
closeFuncCalled++;
closeFuncArgPassed = fileDescriptor;
return 0;
}
int open(const char *file, int flags) {
return 0;
}
} // namespace SysCalls
} // namespace NEO