Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 1169) sorted by relevance

12345678910>>...47

/external/bison/lib/
Dsigprocmask.c67 signal_nothrow (int sig, handler_t handler) in signal_nothrow() argument
73 result = signal (sig, handler); in signal_nothrow()
95 ext_signal (int sig, handler_t handler) in ext_signal() argument
97 switch (sig) in ext_signal()
106 return signal (sig, handler); in ext_signal()
114 sigismember (const sigset_t *set, int sig) in sigismember() argument
116 if (sig >= 0 && sig < NSIG) in sigismember()
119 if (sig == SIGABRT_COMPAT) in sigismember()
120 sig = SIGABRT; in sigismember()
123 return (*set >> sig) & 1; in sigismember()
[all …]
Dsigaction.c84 sigaction_handler (int sig) in sigaction_handler() argument
90 if (sig < 0 || NSIG <= sig || !action_array[sig].sa_handler) in sigaction_handler()
93 if (sig == SIGABRT) in sigaction_handler()
106 handler = action_array[sig].sa_handler; in sigaction_handler()
107 if ((action_array[sig].sa_flags & SA_RESETHAND) == 0) in sigaction_handler()
108 signal (sig, sigaction_handler); in sigaction_handler()
110 action_array[sig].sa_handler = NULL; in sigaction_handler()
113 mask = action_array[sig].sa_mask; in sigaction_handler()
114 if ((action_array[sig].sa_flags & SA_NODEFER) == 0) in sigaction_handler()
115 sigaddset (&mask, sig); in sigaction_handler()
[all …]
/external/libevent/
Dsignal.c113 static void __cdecl evsig_handler(int sig);
123 evsig_base_n_signals_added = base->sig.ev_n_signals_added; in evsig_set_base()
124 evsig_base_fd = base->sig.ev_signal_pair[0]; in evsig_set_base()
154 ev_uint8_t sig = signals[i]; in evsig_cb() local
155 if (sig < NSIG) in evsig_cb()
156 ncaught[sig]++; in evsig_cb()
177 AF_UNIX, SOCK_STREAM, 0, base->sig.ev_signal_pair) == -1) { in evsig_init()
188 evutil_make_socket_closeonexec(base->sig.ev_signal_pair[0]); in evsig_init()
189 evutil_make_socket_closeonexec(base->sig.ev_signal_pair[1]); in evsig_init()
190 base->sig.sh_old = NULL; in evsig_init()
[all …]
/external/ltp/testcases/kernel/syscalls/sighold/
Dsighold02.c77 static int skip_sig(int sig) in skip_sig() argument
79 switch (sig) { in skip_sig()
94 int sig; in main() local
111 for (sig = 1; sig < NUMSIGS; sig++) { in main()
112 if (skip_sig(sig)) in main()
114 if (kill(pid, sig) < 0) { in main()
117 pid, sig, tst_strsig(sig)); in main()
140 static void handle_sigs(int sig) in handle_sigs() argument
142 sigs_map[sig] = 1; in handle_sigs()
149 int sig; in do_child() local
[all …]
/external/ltp/testcases/kernel/syscalls/waitpid/
Dwaitpid05.c78 int pid, npid, sig, nsig; in main() local
106 for (sig = 1; sig <= 15; sig++) { in main()
107 if (sig == SIGUSR1 || sig == SIGUSR2 || sig == SIGBUS) in main()
111 signal(sig, SIG_DFL); in main()
116 self_exec(av[0], "d", sig); in main()
120 do_child(sig); in main()
146 if ((sig == 1) || (sig == 2) || in main()
147 (sig == 9) || (sig == 13) || in main()
148 (sig == 14) || in main()
149 (sig == 15)) { in main()
[all …]
/external/ltp/testcases/kernel/syscalls/sigrelse/
Dsigrelse01.c127 static void timeout(int sig);
129 static void handler(int sig);
136 int choose_sig(int sig);
244 int sig; /* current signal number */ in parent() local
266 for (sig = 1; sig < NUMSIGS; sig++) { in parent()
267 if (choose_sig(sig)) { in parent()
268 if (kill(pid, sig) < 0) { in parent()
273 pid, sig, pid); in parent()
277 pid, sig, pid); in parent()
281 sig); in parent()
[all …]
/external/vboot_reference/tests/
Dvb20_rsa_padding_tests.c47 uint8_t sig[RSA1024NUMBYTES]; in test_signatures() local
55 Memcpy(sig, signatures[0], sizeof(sig)); in test_signatures()
56 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_signatures()
62 Memcpy(sig, signatures[i], sizeof(sig)); in test_signatures()
63 if (!vb2_rsa_verify_digest(key, sig, in test_signatures()
80 uint8_t sig[RSA1024NUMBYTES]; in test_verify_digest() local
86 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
87 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest()
90 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest()
91 vb2_workbuf_init(&wb, workbuf, sizeof(sig) * 3 - 1); in test_verify_digest()
[all …]
Dvb21_host_sig_tests.c46 struct vb2_signature *sig, *sig2; in sig_tests() local
82 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, NULL), in sig_tests()
84 TEST_PTR_NEQ(sig, NULL, " sig_ptr"); in sig_tests()
85 TEST_EQ(0, strcmp(vb2_common_desc(sig), test_desc), " desc"); in sig_tests()
86 TEST_EQ(0, memcmp(&sig->guid, &test_guid, sizeof(test_guid)), " guid"); in sig_tests()
87 TEST_EQ(sig->data_size, test_size, " data_size"); in sig_tests()
89 TEST_EQ(size, sig->c.total_size, " size"); in sig_tests()
90 TEST_SUCC(vb2_verify_data(test_data, test_size, sig, pubk, &wb), in sig_tests()
92 free(sig); in sig_tests()
94 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, in sig_tests()
[all …]
Dvboot_common2_tests.c48 VbSignature *sig; in VerifyDataTest() local
51 sig = CalculateSignature(test_data, test_size, private_key); in VerifyDataTest()
52 TEST_PTR_NEQ(sig, 0, "VerifyData() calculate signature"); in VerifyDataTest()
57 if (!sig || !rsa) in VerifyDataTest()
60 TEST_EQ(VerifyData(test_data, test_size, sig, rsa), 0, in VerifyDataTest()
63 sig->sig_size -= 16; in VerifyDataTest()
64 TEST_EQ(VerifyData(test_data, test_size, sig, rsa), 1, in VerifyDataTest()
66 sig->sig_size += 16; in VerifyDataTest()
68 TEST_EQ(VerifyData(test_data, test_size - 1, sig, rsa), 1, in VerifyDataTest()
71 GetSignatureData(sig)[0] ^= 0x5A; in VerifyDataTest() local
[all …]
/external/javassist/src/main/javassist/bytecode/
DSignatureAttribute.java71 public void setSignature(String sig) { in setSignature() argument
72 int index = getConstPool().addUtf8Info(sig); in setSignature()
89 String sig = renameClass(getSignature(), oldname, newname); in renameClass() local
90 setSignature(sig); in renameClass()
94 String sig = renameClass(getSignature(), classnames); in renameClass() local
95 setSignature(sig); in renameClass()
294 TypeParameter(String sig, int nb, int ne, ObjectType sc, ObjectType[] si) { in TypeParameter() argument
295 name = sig.substring(nb, ne); in TypeParameter()
587 TypeVariable(String sig, int begin, int end) { in TypeVariable() argument
588 name = sig.substring(begin, end); in TypeVariable()
[all …]
/external/vboot_reference/host/lib/
Dhost_signature.c25 VbSignature* sig = (VbSignature*)malloc(sizeof(VbSignature) + sig_size); in SignatureAlloc() local
26 if (!sig) in SignatureAlloc()
29 sig->sig_offset = sizeof(VbSignature); in SignatureAlloc()
30 sig->sig_size = sig_size; in SignatureAlloc()
31 sig->data_size = data_size; in SignatureAlloc()
32 return sig; in SignatureAlloc()
36 void SignatureInit(VbSignature* sig, uint8_t* sig_data, in SignatureInit() argument
38 sig->sig_offset = OffsetOf(sig, sig_data); in SignatureInit()
39 sig->sig_size = sig_size; in SignatureInit()
40 sig->data_size = data_size; in SignatureInit()
[all …]
/external/strace/tests-mx32/
Dsignal_receive.c15 handler(int sig) in handler() argument
22 int sig, pid = getpid(), uid = getuid(); in main() local
27 for (sig = 1; sig <= 31; sig++) { in main()
28 if( sig != SIGKILL && sig != SIGSTOP) { in main()
29 sigaction(sig, &act, NULL); in main()
30 sigaddset(&mask, sig); in main()
35 for (sig = 1; sig <= 31; sig++) { in main()
36 if(sig != SIGKILL && sig != SIGSTOP) { in main()
37 if (kill(pid, sig) != 0) in main()
38 perror_msg_and_fail("kill: %d", sig); in main()
[all …]
/external/strace/tests/
Dsignal_receive.c15 handler(int sig) in handler() argument
22 int sig, pid = getpid(), uid = getuid(); in main() local
27 for (sig = 1; sig <= 31; sig++) { in main()
28 if( sig != SIGKILL && sig != SIGSTOP) { in main()
29 sigaction(sig, &act, NULL); in main()
30 sigaddset(&mask, sig); in main()
35 for (sig = 1; sig <= 31; sig++) { in main()
36 if(sig != SIGKILL && sig != SIGSTOP) { in main()
37 if (kill(pid, sig) != 0) in main()
38 perror_msg_and_fail("kill: %d", sig); in main()
[all …]
/external/strace/tests-m32/
Dsignal_receive.c15 handler(int sig) in handler() argument
22 int sig, pid = getpid(), uid = getuid(); in main() local
27 for (sig = 1; sig <= 31; sig++) { in main()
28 if( sig != SIGKILL && sig != SIGSTOP) { in main()
29 sigaction(sig, &act, NULL); in main()
30 sigaddset(&mask, sig); in main()
35 for (sig = 1; sig <= 31; sig++) { in main()
36 if(sig != SIGKILL && sig != SIGSTOP) { in main()
37 if (kill(pid, sig) != 0) in main()
38 perror_msg_and_fail("kill: %d", sig); in main()
[all …]
/external/vboot_reference/firmware/lib20/
Dcommon.c14 uint8_t *vb2_signature_data(struct vb2_signature *sig) in vb2_signature_data() argument
16 return (uint8_t *)sig + sig->sig_offset; in vb2_signature_data()
60 const struct vb2_signature *sig) in vb2_verify_signature_inside() argument
63 sig, sizeof(*sig), in vb2_verify_signature_inside()
64 sig->sig_offset, sig->sig_size); in vb2_verify_signature_inside()
68 struct vb2_signature *sig, in vb2_verify_digest() argument
72 uint8_t *sig_data = vb2_signature_data(sig); in vb2_verify_digest()
74 if (sig->sig_size != vb2_rsa_sig_size(key->sig_alg)) { in vb2_verify_digest()
77 sig->sig_size, vb2_rsa_sig_size(key->sig_alg), in vb2_verify_digest()
87 struct vb2_signature *sig, in vb2_verify_data() argument
[all …]
/external/vboot_reference/firmware/lib/
Dvboot_common.c43 uint8_t *GetSignatureData(VbSignature *sig) in GetSignatureData() argument
45 return (uint8_t *)sig + sig->sig_offset; in GetSignatureData()
48 const uint8_t *GetSignatureDataC(const VbSignature *sig) in GetSignatureDataC() argument
50 return (const uint8_t *)sig + sig->sig_offset; in GetSignatureDataC()
96 const VbSignature *sig) in VerifySignatureInside() argument
99 sig, sizeof(VbSignature), in VerifySignatureInside()
100 sig->sig_offset, sig->sig_size); in VerifySignatureInside()
146 int VerifyData(const uint8_t *data, uint64_t size, const VbSignature *sig, in VerifyData() argument
150 (unsigned)sig->sig_size, siglen_map[key->algorithm], in VerifyData()
152 if (sig->sig_size != siglen_map[key->algorithm]) { in VerifyData()
[all …]
/external/vboot_reference/firmware/lib21/
Dcommon.c176 int vb2_verify_signature(const struct vb2_signature *sig, uint32_t size) in vb2_verify_signature() argument
183 if (sig->c.magic != VB2_MAGIC_SIGNATURE) in vb2_verify_signature()
187 rv = vb2_verify_common_header(sig, size); in vb2_verify_signature()
196 if (sig->c.struct_version_major != VB2_SIGNATURE_VERSION_MAJOR) in vb2_verify_signature()
200 if (sig->c.fixed_size < sizeof(*sig)) in vb2_verify_signature()
204 rv = vb2_verify_common_member(sig, &min_offset, in vb2_verify_signature()
205 sig->sig_offset, sig->sig_size); in vb2_verify_signature()
210 expect_sig_size = vb2_sig_size(sig->sig_alg, sig->hash_alg); in vb2_verify_signature()
213 if (sig->sig_size != expect_sig_size) in vb2_verify_signature()
222 static uint8_t *vb2_signature_data(struct vb2_signature *sig) in vb2_signature_data() argument
[all …]
Dapi.c46 const struct vb2_signature *sig = NULL; in vb2api_init_hash2() local
63 sig = (const struct vb2_signature *) in vb2api_init_hash2()
66 if (!memcmp(guid, &sig->guid, sizeof(*guid))) in vb2api_init_hash2()
69 hash_offset += sig->c.total_size; in vb2api_init_hash2()
90 sd->hash_tag = vb2_offset_of(ctx->workbuf, sig); in vb2api_init_hash2()
91 sd->hash_remaining_size = sig->data_size; in vb2api_init_hash2()
94 *size = sig->data_size; in vb2api_init_hash2()
97 rv = vb2ex_hwcrypto_digest_init(sig->hash_alg, sig->data_size); in vb2api_init_hash2()
100 sig->hash_alg); in vb2api_init_hash2()
101 dc->hash_alg = sig->hash_alg; in vb2api_init_hash2()
[all …]
/external/junit/src/main/java/org/junit/experimental/theories/internal/
DAllMembersSupplier.java65 public List<PotentialAssignment> getValueSources(ParameterSignature sig) throws Throwable { in getValueSources() argument
68 addSinglePointFields(sig, list); in getValueSources()
69 addMultiPointFields(sig, list); in getValueSources()
70 addSinglePointMethods(sig, list); in getValueSources()
71 addMultiPointMethods(sig, list); in getValueSources()
76 …private void addMultiPointMethods(ParameterSignature sig, List<PotentialAssignment> list) throws T… in addMultiPointMethods() argument
77 for (FrameworkMethod dataPointsMethod : getDataPointsMethods(sig)) { in addMultiPointMethods()
80 … if ((returnType.isArray() && sig.canPotentiallyAcceptType(returnType.getComponentType())) || in addMultiPointMethods()
83 addDataPointsValues(returnType, sig, dataPointsMethod.getName(), list, in addMultiPointMethods()
97 private void addSinglePointMethods(ParameterSignature sig, List<PotentialAssignment> list) { in addSinglePointMethods() argument
[all …]
/external/compiler-rt/lib/asan/
Dasan_posix.cc42 SignalContext sig = SignalContext::Create(siginfo, context); in AsanOnDeadlySignal() local
51 bool IsStackAccess = sig.addr >= (sig.sp & ~0xFFF) && in AsanOnDeadlySignal()
52 sig.addr < sig.sp + 0xFFFF; in AsanOnDeadlySignal()
54 bool IsStackAccess = sig.addr + 512 > sig.sp && sig.addr < sig.sp + 0xFFFF; in AsanOnDeadlySignal()
64 if (!IsStackAccess && IsAccessibleMemoryRange(sig.pc, 4)) { in AsanOnDeadlySignal()
65 u32 inst = *(unsigned *)sig.pc; in AsanOnDeadlySignal()
86 ReportStackOverflow(sig); in AsanOnDeadlySignal()
88 ReportDeadlySignal("FPE", sig); in AsanOnDeadlySignal()
90 ReportDeadlySignal("ILL", sig); in AsanOnDeadlySignal()
92 ReportDeadlySignal("SEGV", sig); in AsanOnDeadlySignal()
/external/boringssl/src/crypto/ecdsa/
Decdsa_asn1.c89 ECDSA_SIG *sig = OPENSSL_malloc(sizeof(ECDSA_SIG)); in ECDSA_SIG_new() local
90 if (sig == NULL) { in ECDSA_SIG_new()
93 sig->r = BN_new(); in ECDSA_SIG_new()
94 sig->s = BN_new(); in ECDSA_SIG_new()
95 if (sig->r == NULL || sig->s == NULL) { in ECDSA_SIG_new()
96 ECDSA_SIG_free(sig); in ECDSA_SIG_new()
99 return sig; in ECDSA_SIG_new()
102 void ECDSA_SIG_free(ECDSA_SIG *sig) { in ECDSA_SIG_free() argument
103 if (sig == NULL) { in ECDSA_SIG_free()
107 BN_free(sig->r); in ECDSA_SIG_free()
[all …]
/external/ltp/lib/
Dtst_sig.c94 int sig; in tst_sig() local
117 for (sig = 1; sig < NSIG; sig++) { in tst_sig()
126 if (sig >= sigrtmin && sig <= sigrtmax) in tst_sig()
130 switch (sig) { in tst_sig()
213 if (tst_setup_signal(sig, handler) == SIG_ERR) in tst_sig()
215 "signal failed for signal %d", sig); in tst_sig()
226 static void def_handler(int sig) in def_handler() argument
233 tst_strsig(sig), sig, getpid()); in def_handler()
240 static void (*tst_setup_signal(int sig, void (*handler) (int))) (int) { in tst_setup_signal() argument
248 ret = sigaction(sig, &my_act, &old_act); in tst_setup_signal()
/external/mesa3d/src/glsl/
Dir_function_detect_recursion.cpp136 function(ir_function_signature *sig) in function() argument
137 : sig(sig) in function()
162 ir_function_signature *sig; member in function
188 function *get_function(ir_function_signature *sig) in get_function() argument
190 function *f = (function *) hash_table_find(this->function_hash, sig); in get_function()
192 f = new(mem_ctx) function(sig); in get_function()
193 hash_table_insert(this->function_hash, f, sig); in get_function()
199 virtual ir_visitor_status visit_enter(ir_function_signature *sig) in visit_enter() argument
201 this->current = this->get_function(sig); in visit_enter()
205 virtual ir_visitor_status visit_leave(ir_function_signature *sig) in visit_leave() argument
[all …]
/external/v8/src/wasm/
Dwasm-opcodes.cc17 #define DECLARE_NAME_CASE(name, opcode, sig) \ in OpcodeName() argument
30 #define DECLARE_NAME_CASE(name, opcode, sig) \ in ShortOpcodeName() argument
53 std::ostream& operator<<(std::ostream& os, const FunctionSig& sig) { in operator <<() argument
54 if (sig.return_count() == 0) os << "v"; in operator <<()
55 for (size_t i = 0; i < sig.return_count(); ++i) { in operator <<()
56 os << WasmOpcodes::ShortNameOf(sig.GetReturn(i)); in operator <<()
59 if (sig.parameter_count() == 0) os << "v"; in operator <<()
60 for (size_t i = 0; i < sig.parameter_count(); ++i) { in operator <<()
61 os << WasmOpcodes::ShortNameOf(sig.GetParam(i)); in operator <<()
95 #define SET_SIG_TABLE(name, opcode, sig) \ in InitSigTables() argument
[all …]
/external/ltp/testcases/kernel/syscalls/sgetmask/
Dsgetmask01.c116 int sig; in main() local
127 for (sig = -3; sig <= SIGRTMAX + 1; sig++) { in main()
128 TEST(ltp_syscall(__NR_ssetmask, sig)); in main()
131 sig, TEST_RETURN); in main()
133 if (TEST_RETURN != sig) { in main()
136 sig, TEST_RETURN); in main()
140 sig, TEST_RETURN); in main()
141 if (sig == SIGRTMAX + 1) { in main()

12345678910>>...47