HomeSort by relevance Sort by last modified time
    Searched full:signal (Results 476 - 500 of 12319) sorted by null

<<11121314151617181920>>

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
1-9.c 10 for a signal.
13 1. Initialize a global variable to indicate the signal
14 handler has not been called. (A signal handler of the
17 2. Use sigaction to setup a signal handler for SIGINT
19 4. Verify the global indicates the signal was called.
22 #include <signal.h>
29-1.c 25 * -> install a handler for SIGRTMAX signal with SA_SIGINFO set.
26 * -> Mask this signal
27 * -> Generate the signal several imes with sigqueue and known user values.
28 * -> unmask the signal
50 #include <signal.h>
95 output("Received unexpected signal %d\n", info->si_signo);
100 output("Got signal %d, expected %d!\n",
102 FAILED("Wrong signal delivered -- no FIFO order?");
127 /* Set the signal handler */
135 UNRESOLVED(ret, "Failed to empty signal set")
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sighold/
1-1.c 9 1. Set up a handler for signal SIGABRT, such that it is called if signal is ever raised.
11 3. Raise a SIGABRT and verify that the signal handler was not called.
17 #include <signal.h>
57 printf("FAIL: Signal was not blocked\n");
61 printf("Test PASSED: signal was blocked\n");
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
2-1.c 8 * Test that if the signal is the null signal (0), no signal is sent.
9 * 1) Call sigqueue on the current process with the null signal.
11 * the test a pass (most likely no signal was sent).
16 #include <signal.h>
  /external/valgrind/none/tests/s390x/
test_sig.c 3 #include <signal.h>
5 #include <signal.h>
18 printf("Got signal %d\n", sig);
32 printf("Got signal %d\n", sig);
54 signal(SIGUSR1, handle_SIG);
55 signal(SIGSEGV, handle_SIG);
  /external/valgrind/none/tests/
sigstackgrowth.c 1 #include <signal.h>
7 /* What does this test do? It checks that valgrind's signal frame
8 building mechanism can create at least 4MB of signal delivery
12 It does this by getting into the signal handler, and then
13 recursively invoking the handler by sending itself the signal
19 wait till the handler exits before delivering the next signal, the
  /frameworks/base/tests/JankBench/app/src/main/jni/
WorkerPool.h 43 class Signal {
45 Signal();
46 ~Signal();
51 // returns true if the signal occured
67 Signal mCompleteSignal;
68 Signal *mLaunchSignals;
  /prebuilts/go/darwin-x86/misc/cgo/testsanitizers/src/
tsan12.go 8 // libc interceptor that writes signal handlers to a global variable within the
10 // syscall.runtime_AfterForkInChild corrupted TSAN's signal forwarding table
12 // invoke signal handlers.
18 "os/signal"
25 ch := make(chan os.Signal)
26 signal.Notify(ch, syscall.SIGUSR1)
  /prebuilts/go/linux-x86/misc/cgo/testsanitizers/src/
tsan12.go 8 // libc interceptor that writes signal handlers to a global variable within the
10 // syscall.runtime_AfterForkInChild corrupted TSAN's signal forwarding table
12 // invoke signal handlers.
18 "os/signal"
25 ch := make(chan os.Signal)
26 signal.Notify(ch, syscall.SIGUSR1)
  /external/strace/tests/
signal.c 2 * Check decoding of signal syscall.
36 # include <signal.h>
70 printf("signal(SIGUSR1, SIG_IGN) = %s\n", sprintrc(rc));
72 error_msg_and_fail("signal(SIGUSR1, SIG_IGN) = %#lx\n", rc);
74 printf("signal(SIGUSR1, SIG_IGN) = %#lx (SIG_DFL)\n", rc);
78 * If signal syscall failed to set SIGUSR1 handler to SIG_IGN,
92 printf("signal(SIGUSR1, SIG_DFL) = %s\n", sprintrc(rc));
94 error_msg_and_fail("signal(SIGUSR1, SIG_DFL) = %#lx\n", rc);
96 printf("signal(SIGUSR1, SIG_DFL) = %#lx (SIG_IGN)\n", rc);
103 printf("signal(SIGUSR1, %#llx) = %s\n"
    [all...]
  /external/strace/tests-m32/
signal.c 2 * Check decoding of signal syscall.
36 # include <signal.h>
70 printf("signal(SIGUSR1, SIG_IGN) = %s\n", sprintrc(rc));
72 error_msg_and_fail("signal(SIGUSR1, SIG_IGN) = %#lx\n", rc);
74 printf("signal(SIGUSR1, SIG_IGN) = %#lx (SIG_DFL)\n", rc);
78 * If signal syscall failed to set SIGUSR1 handler to SIG_IGN,
92 printf("signal(SIGUSR1, SIG_DFL) = %s\n", sprintrc(rc));
94 error_msg_and_fail("signal(SIGUSR1, SIG_DFL) = %#lx\n", rc);
96 printf("signal(SIGUSR1, SIG_DFL) = %#lx (SIG_IGN)\n", rc);
103 printf("signal(SIGUSR1, %#llx) = %s\n"
    [all...]
  /external/strace/tests-mx32/
signal.c 2 * Check decoding of signal syscall.
36 # include <signal.h>
70 printf("signal(SIGUSR1, SIG_IGN) = %s\n", sprintrc(rc));
72 error_msg_and_fail("signal(SIGUSR1, SIG_IGN) = %#lx\n", rc);
74 printf("signal(SIGUSR1, SIG_IGN) = %#lx (SIG_DFL)\n", rc);
78 * If signal syscall failed to set SIGUSR1 handler to SIG_IGN,
92 printf("signal(SIGUSR1, SIG_DFL) = %s\n", sprintrc(rc));
94 error_msg_and_fail("signal(SIGUSR1, SIG_DFL) = %#lx\n", rc);
96 printf("signal(SIGUSR1, SIG_DFL) = %#lx (SIG_IGN)\n", rc);
103 printf("signal(SIGUSR1, %#llx) = %s\n"
    [all...]
  /prebuilts/go/darwin-x86/pkg/darwin_amd64/os/
signal.a 12  signal ? |SGOROOTsrcossignal.go Ignore ? exec.go Signal String  sig·1 esc:0x1 ? Notify<c·1< sig·2 X Reset< Stop< <autogenerated>init
35 go19ldossyncsyscall?$"".(*handler).want?$runtime.panicindex?h? type.*"".handler?sig?type.int?~r1?type.bool?Tgclocals·e6397a44f8e1b6e77d0f200b4fba5269?Tgclocals·69c1753bd5f81501d95132d08af04464?Ngofile..$GOROOT/src/os/signal/signal.go?""".(*handler).set?Tgclocals·524d71b8d4b4126db12e7a6de3370d94?&"".(*handler).clear?"".cancel?"".handlers?$sync.(*Mutex).Lock?.sync.(*Mutex).Unlock·f?"runtime.deferproc?"".cancel.func1?&runtime.deferreturn?"".signum?0runtime.morestack_noctxt?sigs? type.[]os.Signal? action?type.func(int)?.autotmp_11?htype.noalg.struct { F uintptr; "".action func(int) }?.autotmp_19?type.*os.Signal?.autotmp_18?n?Tgclocals·37f72ab33be11dbd9bdb366cc7610157?Tgclocals·cc2a2bfdf6bbd2c3c533586f5869a942?"".Ignore?$"".ignoreSignal·f?"".Notify?Jtype.map[chan<- os.Signal]*"".handler?2runtime.mapaccess1_fast64?"".Notify.func1?type."".handler?"runtime.newobject?6runtime.mapassign_fast64ptr?(runtime.writeBarrier?,runtime.gcWriteBarrier?*runtime.makemap_small?type.string?"".statictmp_0?runtime.gopanic?c?*type.chan<- os.Signal?.autotmp_14?btype.noalg.struct { F uintptr; "".h *"".handler }?.autotmp_22?.autotmp_21?Tgclocals·a71566a4efa5254a1fba8e96d98f0bc9?Tgclocals·e6b7b885ac543a70040d029dd2e66856?"".Reset?&"".disableSignal·f?"".Stop?0runtime.mapdelete_fast64? "".disableSignal?(sync.(*Mutex).Unlock?,"".signalWaitUntilIdle? type."".stopping?,runtime.typedslicecopy?"runtime.growslice?$runtime.panicslice?.autotmp_26?type.*uint8?.autotmp_29?"type.*"".stopping?.autotmp_25?.autotmp_27?.autotmp_28?i?Tgclocals·30dc4a1cf5d268fcef4a8ccf2243acc1?Tgclocals·68608c32b63da42c5b6f517a29e85249?"".process? runtime.duffzero?&runtime.mapiterinit?&runtime.mapiternext?(runtime.selectnbsend?type.os.Signal?.autotmp_12?`type.noalg.map.iter[chan<- os.Signal]*"".handler?.autotmp_17?Tgclocals·49518350 (…)
    [all...]
  /prebuilts/go/linux-x86/pkg/linux_amd64/os/
signal.a 12  signal ? |SGOROOTsrcossignal.go Ignore ? exec.go Signal String  sig·1 esc:0x1 ? Notify<c·1< sig·2 X Reset< Stop< <autogenerated>init
35 go19ldossyncsyscall?$"".(*handler).want?$runtime.panicindex?h? type.*"".handler?sig?type.int?~r1?type.bool?Tgclocals·e6397a44f8e1b6e77d0f200b4fba5269?Tgclocals·69c1753bd5f81501d95132d08af04464?Ngofile..$GOROOT/src/os/signal/signal.go?""".(*handler).set?Tgclocals·524d71b8d4b4126db12e7a6de3370d94?&"".(*handler).clear?"".cancel?"".handlers?$sync.(*Mutex).Lock?.sync.(*Mutex).Unlock·f?"runtime.deferproc?"".cancel.func1?&runtime.deferreturn?"".signum?0runtime.morestack_noctxt?sigs? type.[]os.Signal? action?type.func(int)?.autotmp_11?htype.noalg.struct { F uintptr; "".action func(int) }?.autotmp_19?type.*os.Signal?.autotmp_18?n?Tgclocals·37f72ab33be11dbd9bdb366cc7610157?Tgclocals·cc2a2bfdf6bbd2c3c533586f5869a942?"".Ignore?$"".ignoreSignal·f?"".Notify?Jtype.map[chan<- os.Signal]*"".handler?2runtime.mapaccess1_fast64?"".Notify.func1?type."".handler?"runtime.newobject?6runtime.mapassign_fast64ptr?(runtime.writeBarrier?,runtime.gcWriteBarrier?*runtime.makemap_small?type.string?"".statictmp_0?runtime.gopanic?c?*type.chan<- os.Signal?.autotmp_14?btype.noalg.struct { F uintptr; "".h *"".handler }?.autotmp_22?.autotmp_21?Tgclocals·a71566a4efa5254a1fba8e96d98f0bc9?Tgclocals·e6b7b885ac543a70040d029dd2e66856?"".Reset?&"".disableSignal·f?"".Stop?0runtime.mapdelete_fast64? "".disableSignal?(sync.(*Mutex).Unlock?,"".signalWaitUntilIdle? type."".stopping?,runtime.typedslicecopy?"runtime.growslice?$runtime.panicslice?.autotmp_26?type.*uint8?.autotmp_29?"type.*"".stopping?.autotmp_25?.autotmp_27?.autotmp_28?i?Tgclocals·30dc4a1cf5d268fcef4a8ccf2243acc1?Tgclocals·68608c32b63da42c5b6f517a29e85249?"".process? runtime.duffzero?&runtime.mapiterinit?&runtime.mapiternext?(runtime.selectnbsend?type.os.Signal?.autotmp_12?`type.noalg.map.iter[chan<- os.Signal]*"".handler?.autotmp_17?Tgclocals·49518350 (…)
    [all...]
  /external/webrtc/webrtc/base/
sigslot_unittest.cc 40 void Connect(sigslot::signal0<signal_policy>* signal) {
41 if (!signal) return;
43 signal_ = signal;
44 signal->connect(this,
134 // MT signal (there are two separate SigslotReceiver which
146 void Signal() { SignalMTLoopback(); }
159 // ST slot, ST signal
166 // ST slot, MT signal
173 // ST slot, both ST and MT (separate) signal
198 // MT slot, ST signal
231 sigslot::signal0<>* signal = new sigslot::signal0<>; local
241 sigslot::signal0<>* signal = new sigslot::signal0<>; local
    [all...]
  /external/libunwind/doc/
unw_is_signal_frame.tex 8 \begin{Name}{3}{unw\_is\_signal\_frame}{David Mosberger-Tang}{Programming Library}{unw\_is\_signal\_frame}unw\_is\_signal\_frame -- check if current frame is a signal frame
20 if the current frame identified by \Var{cp} is a signal frame, and a
21 value of 0 otherwise. For the purpose of this discussion, a signal
24 frames are normally created by the kernel when delivering a signal.
25 In a kernel-environment, a signal frame might, for example, correspond
28 Signal frames are somewhat unusual because the asynchronous nature of
35 positive value if the current frame is a signal frame, or 0 if it is
39 \section{Thread and Signal Safety}
42 from a signal handler.
48 whether or not the current frame is a signal frame
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/
assertions.xml 3 The sigwaitinfo ( ) function selects the pending signal from the set specified by set.
6 The lowest pending signal should be selected first numbered one, if it is one of multiple
11 until it is interrupted by an unblocked, caught signal, if no signal in set is pending at
19 shall be equivalent to sigwait( ), except that the selected signal
24 shall be equivalent to sigwait( ), except that the cause of the signal shall be stored in the si_code member.
27 If the info argument is non-NULL, the selected signal's queued value - if any - shall be
31 The pending indication for that signal shall be reset, if no further signals are queued for the selected signal.
34 Upon successful completion sigwaitinfo ( ) returns the selected signal number
    [all...]
  /system/media/audio_utils/include/audio_utils/
power.h 30 * \brief Compute signal power on a scale of 0 dBFS.
41 * signal power of the samples in the buffer. It is possible to return negative infinity
48 * \brief Compute signal energy (sum of squared amplitudes).
59 * signal energy of the samples in the buffer (sum of squares) where each sample is
74 * \brief Returns the signal power from amplitude.
75 * \param amplitude the signal amplitude. A negative amplitude is treated
77 * \return signal power in dB. It is possible to return negative infinity
86 * \brief Returns the signal power from energy.
87 * \param energy the signal energy. This should be non-negative.
88 * \return signal power in dB. It is possible to return NaN if the input i
    [all...]
  /external/ltp/testcases/kernel/syscalls/vfork/
vfork02.c 28 * The signal which is pending in the parent should not be pending in the
33 * Setup signal handling.
76 #include <signal.h>
88 void sig_handler(); /* signal catching function */
95 sigset_t PendSig; /* variable to hold pending signal */
116 * Check whether the pending signal SIGUSR1
165 * This function installs signal handler for SIGUSR1, puts signal SIGUSR1
166 * on hold and then sends the signal SIGUSR1 to itself so that it is in
171 sigset_t PendSig; /* variable to hold pending signal */
    [all...]
  /external/tensorflow/tensorflow/contrib/signal/python/ops/
reconstruction_ops.py 15 """Signal reconstruction via overlapped addition of frames."""
21 from tensorflow.contrib.signal.python.ops import shape_ops
22 from tensorflow.contrib.signal.python.ops import util_ops
60 def overlap_and_add(signal, frame_step, name=None):
61 """Reconstructs a signal from a framed representation.
63 Adds potentially overlapping frames of a signal with shape
70 signal: A [..., frames, frame_length] `Tensor`. All dimensions may be
78 frames of `signal`'s inner-most two dimensions.
81 ValueError: If `signal`'s rank is less than 2, `frame_step` is not a scalar
84 with ops.name_scope(name, "overlap_and_add", [signal, frame_step])
    [all...]
shape_ops.py 22 from tensorflow.contrib.signal.python.ops import util_ops
30 def _infer_frame_shape(signal, frame_length, frame_step, pad_end, axis):
35 if signal.shape.ndims is None:
38 return [None] * (signal.shape.ndims + 1)
40 signal_shape = signal.shape.as_list()
56 def frame(signal, frame_length, frame_step, pad_end=False, pad_value=0, axis=-1,
58 """Expands `signal`'s `axis` dimension into frames of `frame_length`.
60 Slides a window of size `frame_length` over `signal`'s `axis` dimension
73 frames = tf.contrib.signal.frame(pcm, 512, 180)
79 signal: A `[..., samples, ...]` `Tensor`. The rank and dimension
    [all...]
  /external/linux-kselftest/tools/testing/selftests/powerpc/tm/
tm-signal-stack.c 5 * Test the kernel's signal delievery code to ensure that we don't
6 * trelaim twice in the kernel signal delivery code. This can happen
7 * if we trigger a signal when in a transaction and the stack pointer
22 #include <signal.h>
54 * 1) register a signal handler (so signal delievery occurs)
59 if (signal(SIGSEGV, signal_segv) == SIG_ERR)
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/
4-1.c 11 * After invalid signal sent, sigdelset() should return -1 and set
14 * 1) Initialize a full signal set.
15 * 2) Remove the invalid signal from the full signal set.
16 * 3) Verify that -1 is returned, the invalid signal is not a member of
17 * the signal set, and errno is set to indicate the error.
20 #include <signal.h>
  /packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
HeadsetAgIndicatorEnableState.java 24 public boolean signal; field in class:HeadsetAgIndicatorEnableState
31 signal = newSignal;
41 return service == other.service && roam == other.roam && signal == other.signal
50 if (signal) result += 4;
65 .append(", signal=")
66 .append(signal)
  /external/ltp/testcases/kernel/syscalls/rt_sigaction/
rt_sigaction01.c 25 /* of a particular signal. The action is specified by the */
26 /* sigaction structure. The previous action on the signal is */
34 #include <signal.h>
67 tst_resm(TINFO, "Signal Handler Called with signal number %d\n", sig);
86 int signal; local
99 for (signal = SIGRTMIN; signal <= SIGRTMAX; signal++) {
105 (signal, 0, test_flags[flag]))
116 kill(getpid(), signal); local
    [all...]

Completed in 648 milliseconds

<<11121314151617181920>>