/proc/self/cwd/source/common/api/posix/os_sys_calls_impl_linux.cc
Line | Count | Source (jump to first uncovered line) |
1 | | #if !defined(__linux__) |
2 | | #error "Linux platform file is part of non-Linux build." |
3 | | #endif |
4 | | |
5 | | #include <sched.h> |
6 | | |
7 | | #include <cerrno> |
8 | | |
9 | | #include "source/common/api/os_sys_calls_impl_linux.h" |
10 | | |
11 | | namespace Envoy { |
12 | | namespace Api { |
13 | | |
14 | | SysCallIntResult LinuxOsSysCallsImpl::sched_getaffinity(pid_t pid, size_t cpusetsize, |
15 | 0 | cpu_set_t* mask) { |
16 | 0 | const int rc = ::sched_getaffinity(pid, cpusetsize, mask); |
17 | 0 | return {rc, errno}; |
18 | 0 | } |
19 | | |
20 | | } // namespace Api |
21 | | } // namespace Envoy |