OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:Trap
(Results
1 - 4
of
4
) sorted by null
/external/chromium_org/sandbox/linux/seccomp-bpf/
trap.h
21
// The
Trap
class allows a BPF filter program to branch out to user space by
29
class
Trap
{
32
// user-space. The seccomp policy can request that a
trap
handler gets
46
// Registers a new
trap
handler and sets up the appropriate SIGSYS handler
62
// Returns the ErrorCode associate with a particular
trap
id.
68
~
Trap
();
90
static
Trap
*GetInstance();
103
static
Trap
*global_trap_;
115
DISALLOW_IMPLICIT_CONSTRUCTORS(
Trap
);
trap.cc
19
#include "sandbox/linux/seccomp-bpf/
trap
.h"
68
Trap
::
Trap
()
90
Trap
*
Trap
::GetInstance() {
94
// Also, this is not a normal singleton. Once created, the global
trap
97
global_trap_ = new
Trap
();
99
SANDBOX_DIE("Failed to allocate global
trap
handler");
105
void
Trap
::SigSysAction(int nr, siginfo_t *info, void *void_context) {
108
"for
Trap
() handling.")
313
Trap *
trap
= GetInstance();
local
[
all
...]
sandbox_bpf.cc
37
using playground2::
Trap
;
141
Trap
::ErrorCodeFromTrapId(insn->k & SECCOMP_RET_DATA);
149
// A
Trap
() handler that returns an "errno" value. The value is encoded
162
// it rewrites the instruction to instead call a
Trap
() handler that does
177
insn->k = sandbox->
Trap
(ReturnErrno,
197
return sandbox->
Trap
(ReturnErrno,
607
if (!
Trap
::EnableUnsafeTrapsInSigSysHandler()) {
[
all
...]
/external/mksh/src/
sh.h
735
EXTERN short trap_exstat; /* exit status before running a
trap
*/
842
*
trap
handlers
844
typedef struct
trap
{
struct
847
char *
trap
; /*
trap
command */
member in struct:trap
852
volatile sig_atomic_t set; /*
trap
pending */
853
}
Trap
;
855
/* values for
Trap
.flags */
857
#define TF_USER_SET BIT(1) /* user has (tried to) set
trap
*/
864
#define TF_CHANGED BIT(8) /* used by runtrap() to detect
trap
changes *
880
EXTERN volatile sig_atomic_t
trap
; \/*
trap
s pending? *\/
variable
[
all
...]
Completed in 96 milliseconds