Commit 6f00f97b authored by Max Kellermann's avatar Max Kellermann

thread/Util: rename ioprio_set() to linux_ioprio_set()

Juse in cas glibc gets a wrapper for the system call which would then conflict with ours.
parent 5acb978f
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#if defined(__linux__) && !defined(ANDROID) #if defined(__linux__) && !defined(ANDROID)
static int static int
ioprio_set(int which, int who, int ioprio) linux_ioprio_set(int which, int who, int ioprio)
{ {
return syscall(__NR_ioprio_set, which, who, ioprio); return syscall(__NR_ioprio_set, which, who, ioprio);
} }
...@@ -55,7 +55,7 @@ ioprio_set_idle() ...@@ -55,7 +55,7 @@ ioprio_set_idle()
static constexpr int _IOPRIO_IDLE = static constexpr int _IOPRIO_IDLE =
(_IOPRIO_CLASS_IDLE << _IOPRIO_CLASS_SHIFT) | 7; (_IOPRIO_CLASS_IDLE << _IOPRIO_CLASS_SHIFT) | 7;
ioprio_set(_IOPRIO_WHO_PROCESS, 0, _IOPRIO_IDLE); linux_ioprio_set(_IOPRIO_WHO_PROCESS, 0, _IOPRIO_IDLE);
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment