2020-02-05 17:43:02 +01:00
|
|
|
/*
|
2021-02-17 22:17:01 +01:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2020-02-05 17:43:02 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2021-02-17 22:17:01 +01:00
|
|
|
#include <iostream>
|
|
|
|
|
|
2020-02-05 17:43:02 +01:00
|
|
|
namespace NEO {
|
|
|
|
|
namespace SysCalls {
|
|
|
|
|
int close(int fileDescriptor);
|
2020-02-07 14:32:02 +01:00
|
|
|
int open(const char *file, int flags);
|
2021-02-23 14:03:54 +01:00
|
|
|
void *dlopen(const char *filename, int flag);
|
2020-02-13 13:26:40 +01:00
|
|
|
int ioctl(int fileDescriptor, unsigned long int request, void *arg);
|
2021-02-17 22:17:01 +01:00
|
|
|
int getDevicePath(int deviceFd, char *buf, size_t &bufSize);
|
|
|
|
|
int access(const char *pathname, int mode);
|
|
|
|
|
int readlink(const char *path, char *buf, size_t bufsize);
|
2020-02-07 14:32:02 +01:00
|
|
|
} // namespace SysCalls
|
2020-02-05 17:43:02 +01:00
|
|
|
} // namespace NEO
|