/external/valgrind/memcheck/tests/ |
sigaltstack.c | 4 #include <signal.h> 9 fprintf(stderr, "caught signal, local var is on %#" PRIxPTR "\n", 20 // since signal returning requires execution of code on the stack. 37 fprintf(stderr, "raising the signal\n"); 41 actually delivers the signal before the thread exits. */
|
/frameworks/base/libs/hwui/thread/ |
Signal.h | 27 class Signal { 29 explicit Signal(Condition::WakeUpType type = Condition::WAKE_UP_ALL) 31 ~Signal() {} 33 void signal() { function in class:android::uirenderer::Signal 38 mCondition.signal(mType);
|
/prebuilts/go/darwin-x86/misc/cgo/testcarchive/src/libgo3/ |
libgo3.go | 11 "os/signal" 17 var sigioChan chan os.Signal 22 sigioChan = make(chan os.Signal, 1) 23 signal.Notify(sigioChan, syscall.SIGIO) 29 signal.Reset(syscall.SIGIO)
|
/prebuilts/go/darwin-x86/src/runtime/testdata/testprognet/ |
signalexec.go | 8 // must not import anything (like net, but also like os/signal) 17 "os/signal" 34 c := make(chan os.Signal, tries) 35 signal.Notify(c, syscall.SIGWINCH) 61 signal.Stop(c)
|
/prebuilts/go/linux-x86/misc/cgo/testcarchive/src/libgo3/ |
libgo3.go | 11 "os/signal" 17 var sigioChan chan os.Signal 22 sigioChan = make(chan os.Signal, 1) 23 signal.Notify(sigioChan, syscall.SIGIO) 29 signal.Reset(syscall.SIGIO)
|
/prebuilts/go/linux-x86/src/runtime/testdata/testprognet/ |
signalexec.go | 8 // must not import anything (like net, but also like os/signal) 17 "os/signal" 34 c := make(chan os.Signal, tries) 35 signal.Notify(c, syscall.SIGWINCH) 61 signal.Stop(c)
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/support/ |
assert_checkpoint.h | 49 inline void checkpointSignalHandler(int signal) { 50 if (signal == SIGABRT) { 53 std::cerr << "Unexpected signal " << signal << " received\n"; local 62 HandlerT prev_h = std::signal(SIGABRT, checkpointSignalHandler);
|
/tools/test/connectivity/tools/lab/utils/ |
time_limit.py | 18 import signal 44 signal.signal(signal.SIGALRM, self.handle_timeout) 45 signal.alarm(self.seconds)
|
/external/ltp/testcases/kernel/syscalls/kill/ |
kill02.c | 38 TEST IDENTIFIER : kill02 Sending a signal to processes with the same process group ID. 50 1. Sending a signal to pid of zero sends to all processes whose process 53 2. Sending a signal to pid of zero does not send to processes in another process group. 58 kiltcs02 1 PASS The signal was sent to all processes in the process group. 59 kiltcs02 2 PASS The signal was not sent to selective processes that were not in the process group. 62 kiltcs02 1 FAIL The signal was not sent to all processes in the process group. 63 kiltcs02 2 FAIL The signal was sent to a process that was not in the process group. 67 kiltcs02 # BROK Setting to catch unexpected signal %d failed. Errno: %d, Error message %s. 68 kiltcs02 # BROK Setting to ignore signal %d failed. Errno: %d, Error message %s. 71 kiltcs02 0 WARN Unexpected signal X was caught [all...] |
/external/autotest/client/common_lib/cros/ |
session_manager.py | 80 """Prepares the listener to receive a new signal. 82 This resets the signal state and flushes any pending signals in order to 91 """Resets internal signal tracking state.""" 96 """Resets internal signal tracking state.""" 100 def listen_to_signal(self, callback, signal): 101 """Connect a callback to a given session_manager dbus signal. 103 Sets up a signal receiver for signal, and calls the provided callback 106 @param callback: a callable to call when signal is received. 107 @param signal: the signal to listen for [all...] |
/external/ltp/testcases/kernel/syscalls/sigaltstack/ |
sigaltstack01.c | 24 * Send a signal using the main stack. While executing the signal handler 29 * sigaltstack() should succeed to get/set signal alternate stack context. 33 * Setup signal handling. 73 #include <signal.h> 83 void *addr, *main_stk; /* address of main stack for signal */ 87 stack_t sigstk, osigstk; /* signal stack storing struct. */ 92 void sig_handler(int); /* signal catching function */ 97 void *alt_stk; /* address of alternate stack for signal */ 117 /* Set up the signal handler for 'SIGUSR1' * [all...] |
/external/flac/libFLAC/ |
md5.c | 272 * Convert the incoming audio signal to a byte stream 274 static void format_input_(FLAC__multibyte *mbuf, const FLAC__int32 * const signal[], unsigned channels, unsigned samples, unsigned bytes_per_sample) 291 *buf_++ = signal[0][sample]; 296 *buf_++ = signal[0][sample]; 297 *buf_++ = signal[1][sample]; 303 *buf_++ = signal[0][sample]; 304 *buf_++ = signal[1][sample]; 305 *buf_++ = signal[2][sample]; 306 *buf_++ = signal[3][sample]; 312 *buf_++ = signal[0][sample] [all...] |
/external/autotest/client/bin/ |
autotestd_monitor | 4 import sys, os, signal, time, subprocess, fcntl 15 os.kill(os.getpid(), signal.SIGTERM) 16 signal.signal(signal.SIGCHLD, kill_self) 51 exit_code = -signal.SIGKILL # autotestd was nuked 64 signal.signal(signal.SIGCHLD, signal.SIG_DFL [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
1-2.c | 19 * pthread_kill() sends the specified signal to the specified thread. 22 * -> set a signal handler 25 * -> Wait that the signal handler is called 26 * -> Check that the correct signal is received in the correct thread 28 * The test fails if a bad signal is received or bad thread receives it. 45 #include <signal.h> 86 /* Signal handler */ 93 ("The signal handler was not trigged in the killed thread"); 121 /* Set the signal handler */ 127 UNRESOLVED(ret, "Failed to empty signal set") [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/ |
6-1.c | 8 * Test that the raise(<signal>) function sends a non-zero value on 10 * 1) Raise an invalid signal. 14 #include <signal.h>
|
7-1.c | 8 * Test that the raise(<signal>) sets errno to indicate the error on 10 * 1) Raise an invalid signal. 15 #include <signal.h>
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
README | 5 where I want to do the same simple operation on each signal. 10 gentest.pl will generate a ASSERTIONID-COUNT.c for each signal specified 12 with the signal name.
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/ |
assertions.xml | 3 sigaddset() adds signal signo to signal set set. 17 If the value of the signo argument is an invalid or unsupported signal
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigismember/ |
3-1.c | 8 * Tests assertion 3 by filling a signal set and arbitrarily querying 12 #include <signal.h> 25 printf("sigismember doesn't confirm the signal was set\n");
|
4-1.c | 8 * Tests assertion 4 by emptying a signal set and querying it for 10 * the signal is not a member of the set. 14 #include <signal.h>
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigset/ |
4-1.c | 8 This program tests the assertion that the signal will be added to the 9 signal mask before its handler is executed. 15 #include <signal.h>
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/ |
6-1.c | 20 * only one is unblocked when the signal becomes pending. 29 * signal is raised. 46 #include <signal.h> 95 /* The signal is already masked, because inherited from the parent */ 97 /* wait for the signal */ 101 UNRESOLVED(ret, "failed to wait for signal in thread"); 119 /* Set the signal mask */ 123 UNRESOLVED(ret, "Failed to empty signal set"); 129 UNRESOLVED(ret, "failed to add SIGUSR1 to signal set"); 148 /* raise the signal */ [all...] |
7-1.c | 25 * -> sigwait a signal and check we get always teh lowest-ordered. 27 * The test fails if we select an unexpected signal. 44 #include <signal.h> 99 /* Set the signal mask */ 103 UNRESOLVED(ret, "Failed to empty signal set"); 112 UNRESOLVED(ret, "failed to add signal to signal set"); 128 UNRESOLVED(ret, "Failed to raise the signal"); 136 UNRESOLVED(ret, "Failed to raise the signal"); 144 UNRESOLVED(ret, "Failed to raise the signal"); [all...] |
/external/selinux/libsepol/include/sepol/ |
ibendports.h | 36 * -1 to signal an error condition, 37 * 1 to signal successful exit 38 * 0 to signal continue
|
ibpkeys.h | 36 * -1 to signal an error condition, 37 * 1 to signal successful exit 38 * 0 to signal continue
|