// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/posix/can_lower_nice_to.h" #include <limits.h> #include <sys/resource.h> #include <sys/types.h> #include <unistd.h> #include "build/build_config.h" // Not defined on AIX by default. #if BUILDFLAG(IS_AIX) #if defined(RLIMIT_NICE) #error Assumption about OS_AIX is incorrect #endif #define RLIMIT_NICE … #endif namespace base { namespace internal { bool CanLowerNiceTo(int nice_value) { … } } // namespace internal } // namespace base