// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sandbox/linux/services/resource_limits.h" #include "base/numerics/safe_math.h" #include <sys/resource.h> #include <sys/time.h> #include <errno.h> #include <algorithm> namespace sandbox { // static int ResourceLimits::Lower(int resource, rlim_t limit) { … } // static int ResourceLimits::LowerSoftAndHardLimits(int resource, rlim_t soft_limit, rlim_t hard_limit) { … } // static int ResourceLimits::AdjustCurrent(int resource, long long int change) { … } } // namespace sandbox