plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
8-16
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-16.c
1,738
utf_8
48143ecf62be9941288aab758b6d03b7
/* * source tree. Test case for assertion #8 of the sigaction system call that verifies that if signals in the sa_mask (passed in the sigaction struct of the sigaction function call) are added to the process signal mask during execution of the signal-catching function. */ #include <signal.h> #include <stdio.h>...
google
android
18-11
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-11.c
2,165
utf_8
69681276e8a8cd06055aecc7c973704b
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGQUIT without SA_SIGINFO, and a known function * ...
google
android
18-22
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-22.c
2,165
utf_8
3ebb2c647468b85215b6b2fc935a4ca1
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGTRAP without SA_SIGINFO, and a known function * ...
google
android
4-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-3.c
1,920
utf_8
f306af0a1a5ad8a30c5522efa8cac787
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGBUS with SIGKILL added to ...
google
android
2-14
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-14.c
1,515
utf_8
0246108a07a7da62434753fbef7b27d3
/* * source tree. Test case for assertion #2 of the sigaction system call that shows sigaction (when used with a non-null oact pointer) changes the action for a signal. Steps: 1. Call sigaction to set handler for SIGTSTP to use handler1 2. Call sigaction again to set handler for SIGTSTP to use handler2, ...
google
android
3-10
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-10.c
1,559
utf_8
c571b0d81770dae5e9a1b9e771912375
/* * source tree. Test case for assertion #3 of the sigaction system call that shows calling sigaction with a null act argument does not change the signal handler. Steps: 1. Initialize global variable to indicate handler has not been called 2. Set the signal handler for SIGPIPE to handler 3. Call sigacti...
google
android
4-14
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-14.c
1,924
utf_8
e9a48ceb84333ed7fa46293a1a51f71e
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGTSTP with SIGKILL added to ...
google
android
23-16
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/23-16.c
4,236
utf_8
228cd6a06105a387b1bbd1fc5d0c10df
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertions: * * If SA_NODEFER is not set in sa_flags, the caught signal is added to the * thread's signal mask during the handler execution. * The steps are: * -> register a signal handler for SIGTTOU * -> ra...
google
android
2-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-5.c
1,515
utf_8
e026a8b2f130ba2a12954c1b4bc5164e
/* * source tree. Test case for assertion #2 of the sigaction system call that shows sigaction (when used with a non-null oact pointer) changes the action for a signal. Steps: 1. Call sigaction to set handler for SIGCONT to use handler1 2. Call sigaction again to set handler for SIGCONT to use handler2, ...
google
android
8-15
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-15.c
1,738
utf_8
81db27671b71a70b1a45b48a98058474
/* * source tree. Test case for assertion #8 of the sigaction system call that verifies that if signals in the sa_mask (passed in the sigaction struct of the sigaction function call) are added to the process signal mask during execution of the signal-catching function. */ #include <signal.h> #include <stdio.h>...
google
android
12-28
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-28.c
1,765
utf_8
24aef6afa8ecca3d527e12ac35f17641
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, but a new stack has not be set by sigaltstack(). NOTE: This te...
google
android
25-12
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/25-12.c
2,486
utf_8
ca1d35b6a42d998ecdbcaf5b91f5c264
/* * source tree. Test case for assertion #25 of the sigaction system call that verifies that when the sa_sigaction signal-catching function is entered, then the signal that was caught is added to the signal mask by raising that signal in the signal handler and verifying that the handler is not reentered. ...
google
android
4-10
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-10.c
1,924
utf_8
c07fc798d0781b67d048f4e991a6b45a
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGPIPE with SIGKILL added to ...
google
android
22-22
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-22.c
2,501
utf_8
917f327e9f19aa68f7c2698ed4bf73ff
/* * source tree. Test case for assertion #22 of the sigaction system call that verifies that if the SA_NODEFER flag is set for a given signal, then when the sa_sigaction signal-catching function is entered, then the signal that was caught is not added to the signal mask by raising that signal in the signal ...
google
android
22-16
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-16.c
2,501
utf_8
2333b255ef45bfcf8f7621510839c969
/* * source tree. Test case for assertion #22 of the sigaction system call that verifies that if the SA_NODEFER flag is set for a given signal, then when the sa_sigaction signal-catching function is entered, then the signal that was caught is not added to the signal mask by raising that signal in the signal ...
google
android
12-19
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-19.c
1,988
utf_8
36cd960c18fcdd8a7910ba7383a98806
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the alternate stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, and an alternate stack has been setup with sigaltstack(). ...
google
android
17-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/17-3.c
2,196
utf_8
2f033f011855063f60dcff1b2dfcdccc
/* * source tree. Test assertion #17 by verifying that select returns -1 with errno set to EINTR if a handler for the SIGBUS signal is setup with the SA_RESTART flag cleared. * 12/18/02 - Adding in include of sys/time.h per * rodrigc REMOVE-THIS AT attbi DOT com input that it needs * to ...
google
android
4-29
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-29.c
2,007
utf_8
d67b0c99fa398cedee9477374468d0f8
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGBUS with SIGSTOP added to ...
google
android
28-24
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/28-24.c
2,977
utf_8
0e7005c91fb3fd00035655d20c6330b9
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If the signal action was set with the signal() function, getting it into oact * then reinstalling it with act must be valid. * * The steps are: * -> register a signal handler for SIGVTALRM w...
google
android
19-17
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/19-17.c
2,595
utf_8
5806cae0f89b5e2372a0ae71e59a5905
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is set in sa_flags and Real Time Signals extension is supported, * sa_sigaction is used as the signal handling function. * * The steps are: * -> test for RTS extension * -> reg...
google
android
6-9
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-9.c
1,389
utf_8
78e090baa37d8c6e723d54a95e8c96da
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGINT will result in sa_sigaction identifying the signal-catching function. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd....
google
android
12-40
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-40.c
1,765
utf_8
32243ee5ebd95d4b0b1668364e9d46dc
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, but a new stack has not be set by sigaltstack(). NOTE: This te...
google
android
25-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/25-23.c
2,477
utf_8
01bcb06ea7c95adfab1dff57960fdeeb
/* * source tree. Test case for assertion #25 of the sigaction system call that verifies that when the sa_sigaction signal-catching function is entered, then the signal that was caught is added to the signal mask by raising that signal in the signal handler and verifying that the handler is not reentered. ...
google
android
2-19
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-19.c
1,515
utf_8
09d5bba78fff82aa52f0d178c5963296
/* * source tree. Test case for assertion #2 of the sigaction system call that shows sigaction (when used with a non-null oact pointer) changes the action for a signal. Steps: 1. Call sigaction to set handler for SIGALRM to use handler1 2. Call sigaction again to set handler for SIGALRM to use handler2, ...
google
android
4-44
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-44.c
2,011
utf_8
ac23e9bbfcf5a44b8b0ee40269f9f351
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGUSR2 with SIGSTOP added to ...
google
android
12-47
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-47.c
1,762
utf_8
7f9b977759757868991f6148205bd194
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, but a new stack has not be set by sigaltstack(). NOTE: This te...
google
android
4-22
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-22.c
1,924
utf_8
c3b971fb6e079759122df0cd9e042852
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGTRAP with SIGKILL added to ...
google
android
18-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-4.c
2,165
utf_8
e19028867dabf5eeccea637513bf9381
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGCHLD without SA_SIGINFO, and a known function * ...
google
android
12-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-23.c
1,985
utf_8
1c9d5d3be755275aafcf50fef1657958
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the alternate stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, and an alternate stack has been setup with sigaltstack(). ...
google
android
22-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-1.c
2,501
utf_8
7efe65eefe580f71210967592fef002b
/* * source tree. Test case for assertion #22 of the sigaction system call that verifies that if the SA_NODEFER flag is set for a given signal, then when the sa_sigaction signal-catching function is entered, then the signal that was caught is not added to the signal mask by raising that signal in the signal ...
google
android
19-18
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/19-18.c
2,595
utf_8
671c1816147f80e9db606bd7995ae925
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is set in sa_flags and Real Time Signals extension is supported, * sa_sigaction is used as the signal handling function. * * The steps are: * -> test for RTS extension * -> reg...
google
android
12-13
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-13.c
1,988
utf_8
fddf370eca81a91816c7da08044a53ce
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the alternate stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, and an alternate stack has been setup with sigaltstack(). ...
google
android
22-18
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-18.c
2,501
utf_8
e093d8f2f7dbefac97844e0ea2121784
/* * source tree. Test case for assertion #22 of the sigaction system call that verifies that if the SA_NODEFER flag is set for a given signal, then when the sa_sigaction signal-catching function is entered, then the signal that was caught is not added to the signal mask by raising that signal in the signal ...
google
android
6-15
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-15.c
1,392
utf_8
af7166b79b9bf3ab38fe9a0f9e22fc53
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGTTIN will result in sa_sigaction identifying the signal-catching function. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd...
google
android
6-13
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-13.c
1,392
utf_8
b66773af0a84347196a4842d4e990476
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGTERM will result in sa_sigaction identifying the signal-catching function. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd...
google
android
4-79
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-79.c
932
utf_8
b71c07731afd3b838d85100249e14724
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP to the signal mask of SIGABRT will not result in sigaction returning -1 */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include "posixtest.h...
google
android
4-11
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-11.c
1,924
utf_8
58edb4459cc9041a53c5dc6591d3a508
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGQUIT with SIGKILL added to ...
google
android
2-7
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-7.c
1,511
utf_8
90d06596ea525dc4c741586f5e042349
/* * source tree. Test case for assertion #2 of the sigaction system call that shows sigaction (when used with a non-null oact pointer) changes the action for a signal. Steps: 1. Call sigaction to set handler for SIGHUP to use handler1 2. Call sigaction again to set handler for SIGHUP to use handler2, ...
google
android
3-18
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-18.c
1,559
utf_8
ac4bb63df4ab7a7971a3e37d840d8e6e
/* * source tree. Test case for assertion #3 of the sigaction system call that shows calling sigaction with a null act argument does not change the signal handler. Steps: 1. Initialize global variable to indicate handler has not been called 2. Set the signal handler for SIGUSR2 to handler 3. Call sigacti...
google
android
4-95
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-95.c
932
utf_8
2c5054732bd313d2cce285481c37dab3
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP to the signal mask of SIGUSR1 will not result in sigaction returning -1 */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include "posixtest.h...
google
android
4-32
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-32.c
2,007
utf_8
2880a6985b9a9a6be06a03ee10982bd6
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGFPE with SIGSTOP added to ...
google
android
23-11
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/23-11.c
4,236
utf_8
96a48b1ea30bed7524d8f6ac6cee7b10
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertions: * * If SA_NODEFER is not set in sa_flags, the caught signal is added to the * thread's signal mask during the handler execution. * The steps are: * -> register a signal handler for SIGQUIT * -> ra...
google
android
22-9
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-9.c
2,492
utf_8
add9e0b0e3982ae1a08829bae11650e0
/* * source tree. Test case for assertion #22 of the sigaction system call that verifies that if the SA_NODEFER flag is set for a given signal, then when the sa_sigaction signal-catching function is entered, then the signal that was caught is not added to the signal mask by raising that signal in the signal ...
google
android
2-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-4.c
1,515
utf_8
47d56730704454d9aa4fdc4cb55ab894
/* * source tree. Test case for assertion #2 of the sigaction system call that shows sigaction (when used with a non-null oact pointer) changes the action for a signal. Steps: 1. Call sigaction to set handler for SIGCHLD to use handler1 2. Call sigaction again to set handler for SIGCHLD to use handler2, ...
google
android
13-14
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-14.c
1,712
utf_8
eb865db3a0be733ed2e07b1704b875a5
/* * source tree. Test case for assertion #13 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is cleared in the sigaction.sa_flags parameter to the sigaction function call. NOTE: This test case does not attempt to verify the proper...
google
android
4-69
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-69.c
932
utf_8
ae8f1e97a53d1f36db89f55acf02bee7
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGUSR1 will not result in sigaction returning -1 */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include "posixtest.h...
google
android
12-44
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-44.c
1,765
utf_8
24aef6afa8ecca3d527e12ac35f17641
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, but a new stack has not be set by sigaltstack(). NOTE: This te...
google
android
4-89
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-89.c
932
utf_8
b06ed9ddd6db3b574d665c48a6110150
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP to the signal mask of SIGQUIT will not result in sigaction returning -1 */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include "posixtest.h...
google
android
19-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/19-6.c
2,588
utf_8
7d19956cb1381ccff4833fbe759a932a
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is set in sa_flags and Real Time Signals extension is supported, * sa_sigaction is used as the signal handling function. * * The steps are: * -> test for RTS extension * -> reg...
google
android
3-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-2.c
1,559
utf_8
ac4bb63df4ab7a7971a3e37d840d8e6e
/* * source tree. Test case for assertion #3 of the sigaction system call that shows calling sigaction with a null act argument does not change the signal handler. Steps: 1. Initialize global variable to indicate handler has not been called 2. Set the signal handler for SIGUSR2 to handler 3. Call sigacti...
google
android
25-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/25-4.c
2,486
utf_8
ea780d59d3d6ddd6896a176bb883731d
/* * source tree. Test case for assertion #25 of the sigaction system call that verifies that when the sa_sigaction signal-catching function is entered, then the signal that was caught is added to the signal mask by raising that signal in the signal handler and verifying that the handler is not reentered. ...
google
android
17-9
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/17-9.c
2,196
utf_8
17e3931915fc2ce236aa1b872e4aa664
/* * source tree. Test assertion #17 by verifying that select returns -1 with errno set to EINTR if a handler for the SIGINT signal is setup with the SA_RESTART flag cleared. * 12/18/02 - Adding in include of sys/time.h per * rodrigc REMOVE-THIS AT attbi DOT com input that it needs * to ...
google
android
1-24
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/1-24.c
1,520
utf_8
ae82cf03838d823c33ab1ab9168aa3e0
/* * source tree. Test case for assertion #1 of the sigaction system call that shows sigaction (when used with a non-null act pointer) changes the action for a signal. Steps: 1. Initialize a global variable to indicate the signal handler has not been called. (A signal handler of the prototype "void...
google
android
22-17
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-17.c
2,501
utf_8
a2839214861383725f0188bdfcbb23a2
/* * source tree. Test case for assertion #22 of the sigaction system call that verifies that if the SA_NODEFER flag is set for a given signal, then when the sa_sigaction signal-catching function is entered, then the signal that was caught is not added to the signal mask by raising that signal in the signal ...
google
android
3-17
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-17.c
1,559
utf_8
914322513430b4a588d70b1e5b833dcf
/* * source tree. Test case for assertion #3 of the sigaction system call that shows calling sigaction with a null act argument does not change the signal handler. Steps: 1. Initialize global variable to indicate handler has not been called 2. Set the signal handler for SIGUSR1 to handler 3. Call sigacti...
google
android
3-16
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-16.c
1,559
utf_8
bf50cc865afae64fddd09c52d9ecd344
/* * source tree. Test case for assertion #3 of the sigaction system call that shows calling sigaction with a null act argument does not change the signal handler. Steps: 1. Initialize global variable to indicate handler has not been called 2. Set the signal handler for SIGTTOU to handler 3. Call sigacti...
google
android
1-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/1-23.c
1,508
utf_8
c4939abf7ac7d966d9880ef51429af9f
/* * source tree. Test case for assertion #1 of the sigaction system call that shows sigaction (when used with a non-null act pointer) changes the action for a signal. Steps: 1. Initialize a global variable to indicate the signal handler has not been called. (A signal handler of the prototype "void...
google
android
8-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-4.c
1,729
utf_8
b372dd41cfc151a1d206e5b32bcd629c
/* * source tree. Test case for assertion #8 of the sigaction system call that verifies that if signals in the sa_mask (passed in the sigaction struct of the sigaction function call) are added to the process signal mask during execution of the signal-catching function. */ #include <signal.h> #include <stdio.h>...
google
android
13-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-23.c
1,709
utf_8
653bd876be35aa9e3720025cb5b47bff
/* * source tree. Test case for assertion #13 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is cleared in the sigaction.sa_flags parameter to the sigaction function call. NOTE: This test case does not attempt to verify the proper...
google
android
12-22
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-22.c
1,988
utf_8
f1561c78a5c0fb3804e24a87edb80e6a
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the alternate stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, and an alternate stack has been setup with sigaltstack(). ...
google
android
4-76
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-76.c
936
utf_8
f4bb7425072a5b055bf20a5780713b99
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGVTALRM will not result in sigaction returning -1 */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include "posixtest...
google
android
4-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-6.c
1,920
utf_8
d9483623fa8013d2d9c779c118e4f050
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGFPE with SIGKILL added to ...
google
android
3-26
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-26.c
1,559
utf_8
d9e90f06bf54b9a080b0fed18eac8072
/* * source tree. Test case for assertion #3 of the sigaction system call that shows calling sigaction with a null act argument does not change the signal handler. Steps: 1. Initialize global variable to indicate handler has not been called 2. Set the signal handler for SIGXFSZ to handler 3. Call sigacti...
google
android
13-26
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-26.c
1,712
utf_8
ab393aff3e00de5d7908bb3e66dcde2d
/* * source tree. Test case for assertion #13 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is cleared in the sigaction.sa_flags parameter to the sigaction function call. NOTE: This test case does not attempt to verify the proper...
google
android
18-20
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-20.c
2,165
utf_8
cdfcec729be22808c68d81acfba6e581
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGPROF without SA_SIGINFO, and a known function * ...
google
android
1-13
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/1-13.c
1,512
utf_8
3769c59d284f505d522ac31ba0f8b767
/* * source tree. Test case for assertion #1 of the sigaction system call that shows sigaction (when used with a non-null act pointer) changes the action for a signal. Steps: 1. Initialize a global variable to indicate the signal handler has not been called. (A signal handler of the prototype "void...
google
android
23-19
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/23-19.c
3,748
utf_8
733f3e9bb8877d0f95577d0c19c35658
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertions: * * If SA_NODEFER is not set in sa_flags, the caught signal is added to the * thread's signal mask during the handler execution. * The steps are: * -> register a signal handler for SIGALRM * -> ra...
google
android
18-7
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-7.c
2,159
utf_8
508938a58ab06a7f2614b865c2f1fa67
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGHUP without SA_SIGINFO, and a known function * ...
google
android
12-43
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-43.c
1,765
utf_8
42c1d224f166a976013908189f3dbbac
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, but a new stack has not be set by sigaltstack(). NOTE: This te...
google
android
4-8
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-8.c
1,920
utf_8
b2ea3148aff8d684e98415008d02f60c
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL can not be added to the signal mask for a signal handler. Steps: 1. Fork a new process 2. (parent) wait for child 3. (child) Setup a signal handler for SIGILL with SIGKILL added to ...
google
android
22-12
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-12.c
2,501
utf_8
6915b10e379454015b34f4823a871bb4
/* * source tree. Test case for assertion #22 of the sigaction system call that verifies that if the SA_NODEFER flag is set for a given signal, then when the sa_sigaction signal-catching function is entered, then the signal that was caught is not added to the signal mask by raising that signal in the signal ...
google
android
12-34
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-34.c
1,762
utf_8
f7d6740318375863d1ce04ab75c433f7
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, but a new stack has not be set by sigaltstack(). NOTE: This te...
google
android
12-8
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-8.c
1,985
utf_8
8e5caac00a78278bdbcaa7828b183c86
/* * source tree. Test case for assertion #12 of the sigaction system call that verifies signal-catching functions are executed on the alternate stack if the SA_ONSTACK flag is set in the sigaction.sa_flags parameter to the sigaction function call, and an alternate stack has been setup with sigaltstack(). ...
google
android
4-54
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-54.c
932
utf_8
4b4fe22f044f995293633460479aeaf8
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGALRM will not result in sigaction returning -1 */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include "posixtest.h...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-1.c
1,515
utf_8
a04e4aa0fffbb62c31d1be890f0f7c2a
/* * source tree. Test case for assertion #2 of the sigaction system call that shows sigaction (when used with a non-null oact pointer) changes the action for a signal. Steps: 1. Call sigaction to set handler for SIGABRT to use handler1 2. Call sigaction again to set handler for SIGABRT to use handler2, ...
google
android
6-8
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-8.c
1,389
utf_8
7944f0698b2c46b7af9df9336b5d518c
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGILL will result in sa_sigaction identifying the signal-catching function. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd....
google
android
4-53
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-53.c
932
utf_8
7760bf7f2d28ca323da0ebad1a06e204
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGABRT will not result in sigaction returning -1 */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include "posixtest.h...
google
android
18-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-6.c
2,159
utf_8
4962f5c95b79f5fde4cb70d14adf67b3
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGFPE without SA_SIGINFO, and a known function * ...
google
android
2-8
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-8.c
1,511
utf_8
d21a872d96c6639476cd5de46c4e382c
/* * source tree. Test case for assertion #2 of the sigaction system call that shows sigaction (when used with a non-null oact pointer) changes the action for a signal. Steps: 1. Call sigaction to set handler for SIGILL to use handler1 2. Call sigaction again to set handler for SIGILL to use handler2, ...
google
android
3-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-6.c
1,554
utf_8
f9ce6a5d132841872987c1e1a7d7ce65
/* * source tree. Test case for assertion #3 of the sigaction system call that shows calling sigaction with a null act argument does not change the signal handler. Steps: 1. Initialize global variable to indicate handler has not been called 2. Set the signal handler for SIGFPE to handler 3. Call sigactio...
google
android
28-7
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/28-7.c
2,959
utf_8
9f089d5bbc8d2af8e41ca873f4c9dcee
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If the signal action was set with the signal() function, getting it into oact * then reinstalling it with act must be valid. * * The steps are: * -> register a signal handler for SIGHUP with...
google
android
19-12
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/19-12.c
2,595
utf_8
a3dde40127de8a4e6f298a0818e9d3fc
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is set in sa_flags and Real Time Signals extension is supported, * sa_sigaction is used as the signal handling function. * * The steps are: * -> test for RTS extension * -> reg...
google
android
18-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-5.c
2,165
utf_8
0cb0758f5da596d97a1b305f754be4c8
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGCONT without SA_SIGINFO, and a known function * ...
google
android
6-14
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-14.c
1,392
utf_8
71a51b97608507ecf271459a49fa1ede
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGTSTP will result in sa_sigaction identifying the signal-catching function. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd...
google
android
25-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/25-6.c
2,477
utf_8
f5627e0eb6f25549c333cbcd0be6118c
/* * source tree. Test case for assertion #25 of the sigaction system call that verifies that when the sa_sigaction signal-catching function is entered, then the signal that was caught is added to the signal mask by raising that signal in the signal handler and verifying that the handler is not reentered. ...
google
android
13-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-6.c
1,709
utf_8
dc5b39584f10a47a4f61c45b1ed2c236
/* * source tree. Test case for assertion #13 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is cleared in the sigaction.sa_flags parameter to the sigaction function call. NOTE: This test case does not attempt to verify the proper...
google
android
2-24
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-24.c
1,523
utf_8
217b4cdd6efacc19574d95e35832c0dd
/* * source tree. Test case for assertion #2 of the sigaction system call that shows sigaction (when used with a non-null oact pointer) changes the action for a signal. Steps: 1. Call sigaction to set handler for SIGVTALRM to use handler1 2. Call sigaction again to set handler for SIGVTALRM to use handler2...
google
android
22-26
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-26.c
2,501
utf_8
08b9d791d475a233f5a55e9b480a04fa
/* * source tree. Test case for assertion #22 of the sigaction system call that verifies that if the SA_NODEFER flag is set for a given signal, then when the sa_sigaction signal-catching function is entered, then the signal that was caught is not added to the signal mask by raising that signal in the signal ...
google
android
25-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/25-5.c
2,486
utf_8
877ba5e539246d7cfb80cc90a19c0bd1
/* * source tree. Test case for assertion #25 of the sigaction system call that verifies that when the sa_sigaction signal-catching function is entered, then the signal that was caught is added to the signal mask by raising that signal in the signal handler and verifying that the handler is not reentered. ...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/9-1.c
2,690
utf_8
d2abe59a1b259a35f16d29fc522199e8
/* */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/select.h> #include <sys/wait.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include "posixtest.h" #define NUMSTOPS 10 static volatile int child_stopped; static void handler(int signo PTS_ATTRIBUTE_UNUSED, siginfo_t *i...
google
android
8-24
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-24.c
1,739
utf_8
c4f4203d35dcebb41110a217bbcf5dbf
/* * source tree. Test case for assertion #8 of the sigaction system call that verifies that if signals in the sa_mask (passed in the sigaction struct of the sigaction function call) are added to the process signal mask during execution of the signal-catching function. */ #include <signal.h> #include <stdio.h>...
google
android
18-9
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-9.c
2,159
utf_8
9425437623e0c34f391b2d410cadc309
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGINT without SA_SIGINFO, and a known function * ...
google
android
4-71
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-71.c
932
utf_8
4b4fe22f044f995293633460479aeaf8
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGALRM will not result in sigaction returning -1 */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include "posixtest.h...
google
android
18-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-23.c
2,159
utf_8
27fa9bc99e78608912d7ad074a846c0c
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is not set in sa_flags, sa_handler is used as the signal * handling function. * * The steps are: * -> register a handler for SIGURG without SA_SIGINFO, and a known function * ...
google
android
11-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/11-1.c
3,895
utf_8
5039a7b746e39ca41079e0150d38233a
/* * source tree. Test assertion #11 by verifying that SIGCHLD signals are sent to a parent when their children are continued after being stopped. NOTE: This is only required to work if the XSI options are implemented. * 12/18/02 - Adding in include of sys/time.h per * rodrigc REMOVE-THIS AT attbi D...
google
android
16-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/16-1.c
4,945
utf_8
021405f4f70b74cffadaf11d6edd301c
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_RESTART is set in sa_flags, interruptible function interrupted * by signal shall restart silently. * */ /* This test tests for an XSI feature */ #include <pthread.h> #include <...
google
android
13-8
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-8.c
1,709
utf_8
c6452a39af45a5b7e033793e2ed0961d
/* * source tree. Test case for assertion #13 of the sigaction system call that verifies signal-catching functions are executed on the current stack if the SA_ONSTACK flag is cleared in the sigaction.sa_flags parameter to the sigaction function call. NOTE: This test case does not attempt to verify the proper...
google
android
19-19
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/19-19.c
2,595
utf_8
a9740e34d36770d363cd76d72c4040a0
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is set in sa_flags and Real Time Signals extension is supported, * sa_sigaction is used as the signal handling function. * * The steps are: * -> test for RTS extension * -> reg...
google
android
1-9
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/1-9.c
1,508
utf_8
7f5d01d1a5996653401b44a967c9631c
/* * source tree. Test case for assertion #1 of the sigaction system call that shows sigaction (when used with a non-null act pointer) changes the action for a signal. Steps: 1. Initialize a global variable to indicate the signal handler has not been called. (A signal handler of the prototype "void...
google
android
19-9
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/19-9.c
2,588
utf_8
517cf6badd990e1f4813b697516c813d
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertions: * * If SA_SIGINFO is set in sa_flags and Real Time Signals extension is supported, * sa_sigaction is used as the signal handling function. * * The steps are: * -> test for RTS extension * -> reg...