#include "sandbox/linux/services/proc_util.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <memory>
#include "base/check_op.h"
#include "base/posix/eintr_wrapper.h"
#include "base/strings/string_number_conversions.h"
namespace sandbox {
namespace {
struct DIRCloser { … };
ScopedDIR;
base::ScopedFD OpenDirectory(const char* path) { … }
}
int ProcUtil::CountOpenFds(int proc_fd) { … }
bool ProcUtil::HasOpenDirectory(int proc_fd) { … }
bool ProcUtil::HasOpenDirectory() { … }
base::ScopedFD ProcUtil::OpenProc() { … }
}