Index: sandbox/linux/seccomp-bpf/kernel_return_value_helpers.h |
diff --git a/sandbox/linux/seccomp-bpf/kernel_return_value_helpers.h b/sandbox/linux/seccomp-bpf/kernel_return_value_helpers.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d11339cdf0d3f453a33ff6f11084fd0f93cd6227 |
--- /dev/null |
+++ b/sandbox/linux/seccomp-bpf/kernel_return_value_helpers.h |
@@ -0,0 +1,17 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef SANDBOX_LINUX_SERVICES_KERNEL_RETURN_VALUE_HELPERS_H |
jln (very slow on Chromium)
2014/05/28 00:06:57
Nit: the header guard requires a trailing "_"
nedeljko
2014/05/29 14:06:45
Done.
|
+#define SANDBOX_LINUX_SERVICES_KERNEL_RETURN_VALUE_HELPERS_H |
+ |
+#include <signal.h> |
+ |
+namespace sandbox { |
+ |
+int ErrnoToKernelRet(int kernel_ret); |
jln (very slow on Chromium)
2014/05/28 00:06:57
Please, document both function in this header file
nedeljko
2014/05/29 14:06:45
Done.
|
+void PutValueInUcontext(int ret_val, ucontext_t* ctx); |
+ |
+} // namespace sandbox |
+ |
+#endif // SANDBOX_LINUX_SERVICES_KERNEL_RETURN_VALUE_HELPERS_H |