Movatterモバイル変換


[0]ホーム

URL:


Google Git
Sign in
chromium /chromium /src /refs/heads/main /. /sandbox /linux /bpf_dsl /errorcode.h
blob: 2f7be3b98d16220dd40a54391f6152c9f13c17ad [file] [log] [blame] [edit]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SANDBOX_LINUX_BPF_DSL_ERRORCODE_H__
#define SANDBOX_LINUX_BPF_DSL_ERRORCODE_H__
#include"sandbox/sandbox_export.h"
namespace sandbox{
namespace bpf_dsl{
// TODO(mdempsky): Find a proper home for ERR_{MIN,MAX}_ERRNO and
// remove this header.
class SANDBOX_EXPORTErrorCode{
public:
enum{
ERR_MIN_ERRNO=0,
#if defined(__mips__)
// MIPS only supports errno up to 1133
ERR_MAX_ERRNO=1133,
#else
// TODO(markus): Android only supports errno up to 255
// (crbug.com/181647).
ERR_MAX_ERRNO=4095,
#endif
};
ErrorCode()=delete;
ErrorCode(constErrorCode&)=delete;
ErrorCode&operator=(constErrorCode&)=delete;
};
}// namespace bpf_dsl
}// namespace sandbox
#endif// SANDBOX_LINUX_BPF_DSL_ERRORCODE_H__

[8]ページ先頭

©2009-2025 Movatter.jp