brintos

brintos / llvm-project-archived public Read only

0
0
Text · 799 B · f6739ab Raw
25 lines · c
1//===-- Implementation header for sched_setaffinity -------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_SRC_SCHED_SCHED_SETAFFINITY_H10#define LLVM_LIBC_SRC_SCHED_SCHED_SETAFFINITY_H11 12#include "src/__support/macros/config.h"13 14#include "hdr/types/cpu_set_t.h"15#include "hdr/types/pid_t.h"16#include "hdr/types/size_t.h"17 18namespace LIBC_NAMESPACE_DECL {19 20int sched_setaffinity(pid_t pid, size_t cpuset_size, const cpu_set_t *mask);21 22} // namespace LIBC_NAMESPACE_DECL23 24#endif // LLVM_LIBC_SRC_SCHED_SCHED_SETAFFINITY_H25