Home
last modified time | relevance | path

Searched refs:signum (Results 1 – 25 of 141) sorted by relevance

123456

/external/valgrind/coregrind/
Dm_libcsignal.c100 Int VG_(sigaddset)( vki_sigset_t* set, Int signum ) in VG_()
104 if (signum < 1 || signum > _VKI_NSIG) in VG_()
106 signum--; in VG_()
107 set->sig[signum / _VKI_NSIG_BPW] |= (1ULL << (signum % _VKI_NSIG_BPW)); in VG_()
111 Int VG_(sigdelset)( vki_sigset_t* set, Int signum ) in VG_()
115 if (signum < 1 || signum > _VKI_NSIG) in VG_()
117 signum--; in VG_()
118 set->sig[signum / _VKI_NSIG_BPW] &= ~(1ULL << (signum % _VKI_NSIG_BPW)); in VG_()
122 Int VG_(sigismember) ( const vki_sigset_t* set, Int signum ) in VG_()
126 if (signum < 1 || signum > _VKI_NSIG) in VG_()
[all …]
Dpub_core_libcsignal.h54 extern Int VG_(sigaddset) ( vki_sigset_t* set, Int signum );
55 extern Int VG_(sigdelset) ( vki_sigset_t* set, Int signum );
56 extern Int VG_(sigismember) ( const vki_sigset_t* set, Int signum );
66 extern Int VG_(sigaction) ( Int signum,
/external/compiler-rt/test/asan/TestCases/Posix/
Dallow_user_segv.cc14 void User_OnSIGSEGV(int signum, siginfo_t *siginfo, void *context) { in User_OnSIGSEGV() argument
17 if (signum == SIGBUS) in User_OnSIGSEGV()
19 else if (signum == SIGSEGV) in User_OnSIGSEGV()
26 original_sigaction.sa_sigaction(signum, siginfo, context); in User_OnSIGSEGV()
28 original_sigaction.sa_handler(signum); in User_OnSIGSEGV()
36 int InstallHandler(int signum, struct sigaction *original_sigaction) { in InstallHandler() argument
40 if (sigaction(signum, &user_sigaction, original_sigaction)) { in InstallHandler()
/external/toybox/toys/posix/
Dkill.c59 int signum; local
66 int signum = sig_to_num(*args); local
69 if (signum>=0) s = num_to_sig(signum&127);
84 if (!arg || -1 == (signum = sig_to_num(arg)))
86 } else signum = SIGTERM;
128 kill(procpid, signum);
148 if (*tmp || kill(pid, signum) < 0) error_msg("unknown pid '%s'", arg);
/external/e2fsprogs/e2fsck/
Dsigcatcher.c333 static void die_signal_handler(int signum, siginfo_t *siginfo, in die_signal_handler() argument
340 fprintf(stderr, "Signal (%d) %s ", signum, in die_signal_handler()
341 lookup_table_fallback(signum, sig_table)); in die_signal_handler()
347 else if (signum == SIGILL) in die_signal_handler()
351 else if (signum == SIGFPE) in die_signal_handler()
355 else if (signum == SIGSEGV) in die_signal_handler()
359 else if (signum == SIGBUS) in die_signal_handler()
363 else if (signum == SIGCHLD) in die_signal_handler()
370 (signum == SIGILL || signum == SIGFPE || in die_signal_handler()
371 signum == SIGSEGV || signum == SIGBUS)) in die_signal_handler()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DUVProjectionGenerator.java143 float sgn1 = Math.signum(triangle.get1().x-cx); in tubeProjection()
144 float sgn2 = Math.signum(triangle.get2().x-cx); in tubeProjection()
145 float sgn3 = Math.signum(triangle.get3().x-cx); in tubeProjection()
147 float ySideFactor = Math.signum(triangle.get1().y-cy)+ in tubeProjection()
148 Math.signum(triangle.get2().y-cy)+ in tubeProjection()
149 Math.signum(triangle.get3().y-cy); in tubeProjection()
204 float sgn1 = Math.signum(triangle.get1().x-cx); in sphereProjection()
205 float sgn2 = Math.signum(triangle.get2().x-cx); in sphereProjection()
206 float sgn3 = Math.signum(triangle.get3().x-cx); in sphereProjection()
208 float ySideFactor = Math.signum(triangle.get1().y-cy)+ in sphereProjection()
[all …]
/external/toybox/toys/lsb/
Dkillall.c30 int signum;
48 kill(pid, TT.signum);
58 printf("Killed %s(%d) with signal %d\n", name, pid, TT.signum);
68 TT.signum = SIGTERM; in killall_main()
76 if (0 > (TT.signum = sig_to_num(TT.sig ? TT.sig : (*TT.names)+1))) { in killall_main()
/external/ltrace/
Dhandle_event.c66 static char *shortsignal(struct process *proc, int signum);
123 shortsignal(event->proc, event->e_un.signum), in handle_event()
124 event->e_un.signum); in handle_event()
140 shortsignal(event->proc, event->e_un.signum), in handle_event()
141 event->e_un.signum); in handle_event()
337 shortsignal(struct process *proc, int signum) in shortsignal() argument
350 debug(DEBUG_FUNCTION, "shortsignal(pid=%d, signum=%d)", proc->pid, signum); in shortsignal()
353 if (signum < 0 || signum >= nsignals[proc->personality]) { in shortsignal()
356 return signalents[proc->personality][signum]; in shortsignal()
413 debug(DEBUG_FUNCTION, "handle_signal(pid=%d, signum=%d)", event->proc->pid, event->e_un.signum); in handle_signal()
[all …]
/external/toybox/toys/pending/
Dpgrep.c66 int signum=0, eval=0, ret=1; in pgrep_main() local
90 if (!arg || (signum = sig_to_num(arg)) == -1) in pgrep_main()
92 } else signum = SIGTERM; in pgrep_main()
152 } else exec_action(pid, cmdline, signum); in pgrep_main()
159 exec_action(latest_pid, latest_cmdline, signum); in pgrep_main()
/external/lldb/test/unittest2/
Dsignals.py14 def __call__(self, signum, frame): argument
19 self.default_handler(signum, frame)
22 self.default_handler(signum, frame)
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cc159 static void MaybeInstallSigaction(int signum, in MaybeInstallSigaction() argument
161 if (!IsDeadlySignal(signum)) in MaybeInstallSigaction()
170 CHECK_EQ(0, internal_sigaction(signum, &sigact, 0)); in MaybeInstallSigaction()
171 VReport(1, "Installed the sigaction for signal %d\n", signum); in MaybeInstallSigaction()
Dsanitizer_mac.cc129 int internal_sigaction(int signum, const void *act, void *oldact) { in internal_sigaction() argument
130 return sigaction(signum, in internal_sigaction()
288 bool IsDeadlySignal(int signum) { in IsDeadlySignal() argument
289 return (signum == SIGSEGV || signum == SIGBUS) && common_flags()->handle_segv; in IsDeadlySignal()
Dsanitizer_linux.h45 int internal_sigaction_norestorer(int signum, const void *act, void *oldact);
46 void internal_sigdelset(__sanitizer_sigset_t *set, int signum);
Dsanitizer_linux.cc564 int internal_sigaction_norestorer(int signum, const void *act, void *oldact) { in internal_sigaction_norestorer() argument
588 uptr result = internal_syscall(SYSCALL(rt_sigaction), (uptr)signum, in internal_sigaction_norestorer()
623 void internal_sigdelset(__sanitizer_sigset_t *set, int signum) { in internal_sigdelset() argument
624 signum -= 1; in internal_sigdelset()
625 CHECK_GE(signum, 0); in internal_sigdelset()
626 CHECK_LT(signum, sizeof(*set) * 8); in internal_sigdelset()
628 const uptr idx = signum / (sizeof(k_set->sig[0]) * 8); in internal_sigdelset()
629 const uptr bit = signum % (sizeof(k_set->sig[0]) * 8); in internal_sigdelset()
909 bool IsDeadlySignal(int signum) { in IsDeadlySignal() argument
910 return (signum == SIGSEGV || signum == SIGBUS) && common_flags()->handle_segv; in IsDeadlySignal()
Dsanitizer_stoptheworld_linux_libcdep.cc210 static void TracerThreadSignalHandler(int signum, void *siginfo, void *uctx) { in TracerThreadSignalHandler() argument
213 signum, ctx.addr, ctx.pc, ctx.sp); in TracerThreadSignalHandler()
216 if (signum == SIGABRT) in TracerThreadSignalHandler()
225 internal__exit((signum == SIGABRT) ? 1 : 2); in TracerThreadSignalHandler()
/external/lldb/source/Plugins/Process/POSIX/
DProcessMessage.h88 static ProcessMessage Signal(lldb::tid_t tid, int signum) { in Signal() argument
89 return ProcessMessage(tid, eSignalMessage, signum); in Signal()
94 static ProcessMessage SignalDelivered(lldb::tid_t tid, int signum) { in SignalDelivered() argument
95 return ProcessMessage(tid, eSignalDeliveredMessage, signum); in SignalDelivered()
/external/crcalc/src/com/hp/creals/
DCR.java367 if (max_appr.signum() >= 0) { in known_msd()
509 public int signum(int a) { in signum() method in CR
511 int quick_try = max_appr.signum(); in signum()
516 return this_appr.signum(); in signum()
527 public int signum() { in signum() method in CR
530 int result = signum(a); in signum()
595 if (scaled_int.signum() < 0) { in toString()
657 int sign = scaled_int.signum(); in toStringFloatRep()
664 sign = scaled_int.signum(); in toStringFloatRep()
855 if (rough_appr.signum() < 0) return negate().exp().inverse(); in exp()
[all …]
/external/compiler-rt/lib/asan/
Dasan_interceptors.cc260 INTERCEPTOR(void*, bsd_signal, int signum, void *handler) { in INTERCEPTOR() argument
261 if (!IsDeadlySignal(signum) || common_flags()->allow_user_segv_handler) { in INTERCEPTOR()
262 return REAL(bsd_signal)(signum, handler); in INTERCEPTOR()
267 INTERCEPTOR(void*, signal, int signum, void *handler) {
268 if (!IsDeadlySignal(signum) || common_flags()->allow_user_segv_handler) {
269 return REAL(signal)(signum, handler);
275 INTERCEPTOR(int, sigaction, int signum, const struct sigaction *act, in INTERCEPTOR() argument
277 if (!IsDeadlySignal(signum) || common_flags()->allow_user_segv_handler) { in INTERCEPTOR()
278 return REAL(sigaction)(signum, act, oldact); in INTERCEPTOR()
284 int real_sigaction(int signum, const void *act, void *oldact) { in real_sigaction() argument
[all …]
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DIntMath.java176 int signum = 1 | ((p ^ q) >> (Integer.SIZE - 1)); in divide() local
189 increment = signum > 0; in divide()
192 increment = signum < 0; in divide()
210 return increment ? div + signum : div; in divide()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECAlgorithms.java198 return k.signum() < 0 ? q.negate() : q; in referenceMultiply()
251 boolean negK = k.signum() < 0, negL = l.signum() < 0; in implShamirsTrickWNaf()
275 boolean negK = k.signum() < 0, negL = l.signum() < 0;
359 BigInteger ki = ks[i]; negs[i] = ki.signum() < 0; ki = ki.abs(); in implSumOfMultiplies()
413 BigInteger kj0 = ks[j0]; negs[j0] = kj0.signum() < 0; kj0 = kj0.abs();
414 BigInteger kj1 = ks[j1]; negs[j1] = kj1.signum() < 0; kj1 = kj1.abs();
DWNafUtil.java21 if (k.signum() == 0) in generateCompactNaf()
73 if (k.signum() == 0) in generateCompactWindowNaf()
187 if (k.signum() == 0) in generateNaf()
236 if (k.signum() == 0) in generateWindowNaf()
289 if (k.signum() == 0) in getNafWeight()
/external/mdnsresponder/mDNSPosix/
DmDNSPosix.h80 extern mStatus mDNSPosixListenForSignalInEventLoop( int signum);
81 extern mStatus mDNSPosixIgnoreSignalInEventLoop( int signum);
/external/crcalc/tests/src/com/hp/creals/
DCRTest.java72 check(one.signum() == 1, "signum(1) failed"); in testCR()
73 check(one.negate().signum() == -1, "signum(-1) failed"); in testCR()
74 check(zero.signum(-100) == 0, "signum(0) failed"); in testCR()
89 check(one.negate().signum() == -1, "signum(-1) failed"); in testCR()
/external/guava/guava/src/com/google/common/math/
DMathPreconditions.java45 if (x.signum() <= 0) { in checkPositive()
66 if (x.signum() < 0) { in checkNonNegative()
DIntMath.java297 int signum = 1 | ((p ^ q) >> (Integer.SIZE - 1)); in divide() local
310 increment = signum > 0; in divide()
313 increment = signum < 0; in divide()
331 return increment ? div + signum : div; in divide()

123456