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
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/2-1.c
657
utf_8
2b363e8b38ca33cd776a99ee790602b5
/* * source tree. * * * The gmtime function shall return a pointer to struct tm. * */ #include <stdio.h> #include <time.h> #include <posixtest.h> int main(void) { struct tm *tm_ptr; time_t the_time; (void)time(&the_time); tm_ptr = NULL; tm_ptr = gmtime(&the_time); if (tm_ptr != NULL) { puts("Test PASSED")...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/1-1.c
2,412
utf_8
026d816096d2d0662259caedc9653936
/* * source tree. * * * The names in the broken-down tm structure should correspond to its values. * */ #include <stdio.h> #include <time.h> #include <posixtest.h> int main(void) { struct tm *tm_ptr; time_t the_time; int total_years; (void)time(&the_time); tm_ptr = gmtime(&the_time); printf("Raw time is %ld...
google
android
23-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/23-3.c
1,635
utf_8
b19c8598ad619d122ea7cb5142a7abc9
/* */ #include <sched.h> #include <stdio.h> #include <unistd.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(void) { int old_priority; struct sched_param param; if (sched_getparam(0, &param) == -1) { perror("An error occurs when calling sched_getparam()"); ...
google
android
21-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-1.c
2,439
utf_8
4a920ffb90b5ecad6610d4dfa75279f8
/* * * Test that the underlying kernel-scheduled entities for the process * contention scope threads that are created after this call completes inherit * their scheduling policy from the process. */ #include <sched.h> #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <errno.h> #include "posixtes...
google
android
20-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/20-1.c
2,414
utf_8
255916206e789c141b51119b33b40faf
/* * * Test that the underlying kernel-scheduled entities for the process * contention scope threads have their scheduling parameters changed to the * value specified in param. */ #include <sched.h> #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <errno.h> #include "posixtest.h" static void *r...
google
android
21-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-2.c
2,434
utf_8
1cd5387ec9a048b1883e3c664b826d2e
/* * * Test that the underlying kernel-scheduled entities for the process * contention scope threads that are created after this call completes inherit * their scheduling parameters from the process. */ #include <sched.h> #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <errno.h> #include "posi...
google
android
22-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/22-1.c
1,108
utf_8
dac0c1d632da39e14e8ea8870fc28864
/* * * * Test that the sched_setparam() function return zero on success. */ #include <sched.h> #include <stdio.h> #include <errno.h> #include "posixtest.h" int main(void) { int result; struct sched_param param; if (sched_getparam(0, &param) == -1) { perror("An error occurs when calling sched_getparam()"); re...
google
android
25-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-4.c
2,366
utf_8
a5c5327b368c1e2ff06cad0c14a08519
/* */ #include <sched.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(void) { int policy, result; int result_code = PTS_PASS; struct sched_param param; if (sched_getparam(0, &param) == -1) { perror("A...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-1.c
5,159
utf_8
d8e25c8c9fc2b5435de57f0e3538a5c8
/* * Steps: * 1. Get the number of CPUs. * 2. Set the scheduling policy to SCHED_FIFO with a mean priority. * 3. Lauch as many processes than CPU. The last process set its own priority * to the min value. * 4. Father process set its own priority to the max value. * 5. Both children and father increment ...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/9-1.c
5,654
utf_8
3a4de894e684da67bb00345b41d64531
/* * * * Test that the process specified by the pid argument preempt a lowest * priority running process, if the priority of the process specified by the * pid argument is set higher than that of the lowest priority running process * and if the specified process is ready to run. * * NO OTHER REALTIME PROCESS SH...
google
android
23-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/23-1.c
1,625
utf_8
9d9e42af2a8d4429951d60790d15bc35
/* * * * Test that the priority remain unchanged when the sched_priority * member is not within the inclusive priority range for the current * scheduling policy. */ #include <sched.h> #include <stdio.h> #include "posixtest.h" int main(void) { int policy, invalid_priority, old_priority; struct sched_param param;...
google
android
26-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/26-1.c
2,205
utf_8
aef974b589a9b86303f96872d8557d2a
/* * * * Test that sched_setparam() sets errno == EPERM when the requesting process * does not have permission to set the scheduling parameters for the specified * process, or does not have the appropriate privilege to invoke schedparam(). */ #include <sched.h> #include <stdio.h> #include <errno.h> #include <unis...
google
android
27-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/27-1.c
1,898
utf_8
be08a5d306b15c6a666a671b64454edf
/* * * * Test that sched_setparam() sets errno == ESRCH when no process can be found * corresponding to that specified by pid. * * The test create a child process which exit immediately and call * sched_setparam with the pid of defunct child. */ #include <sched.h> #include <stdio.h> #include <errno.h> #include ...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/5-1.c
1,874
utf_8
2808c856b67f423a305eb18d1b17958e
/* * * * Test that the scheduling policy and scheduling parameters are set for * the calling process when pid == 0. */ #include <sched.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include "posixtest.h" int main(void) { int result, new_priority, old_priority, max_prio, policy; struct sched_param ...
google
android
23-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/23-5.c
1,407
utf_8
fb44ad79a74fa33041ad69ce91f76244
/* */ #include <sched.h> #include <stdio.h> #include <unistd.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(void) { int old_priority; struct sched_param param; if (sched_getparam(0, &param) == -1) { perror("An error occurs when calling sched_getparam()"); ...
google
android
25-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-2.c
2,273
utf_8
fc88311b76a440fe52facb2675ab9d48
/* */ #include <sched.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(void) { int policy, invalid_priority, result; struct sched_param param; policy = sched_getscheduler(0); if (policy == -1) { perror...
google
android
25-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-3.c
1,841
utf_8
f38bdb70b1c593343180d38d032e444b
/* */ #include <errno.h> #include <sched.h> #include <stdio.h> #include <unistd.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(void) { int policy, result; struct sched_param param; if (sched_getparam(0, &param) != 0) { perror("An error occurs when calling sc...
google
android
23-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/23-2.c
2,075
utf_8
f1ee72e6e0792c31cbc59582bb467847
/* */ #include <sched.h> #include <stdio.h> #include <unistd.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER) && (_POSIX_SPORADIC_SERVER != -1) int main(void) { int policy, invalid_priority, old_priority; struct sched_param param; if (sched_getparam(0, &param) != 0) { perror("An error occurs when cal...
google
android
23-7
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/23-7.c
1,711
utf_8
ebc6c32f19d7e33ef2ea5a191be19cd8
/* * * * Test that sched_setparam() sets errno == ESRCH when no process can be found * corresponding to that specified by pid. */ #include <sched.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <sys/wait.h> #include "posixtest.h" int main(void) { struct sched_param param;...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/1-1.c
3,250
utf_8
f57d39a3d1987b66830267099efd6e11
/* * * * Test that sched_setparam() sets the scheduling parameters to the parameters * specified in the sched_param structure pointed to by param. */ #include <sched.h> #include <stdio.h> #include <signal.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include "posixtest.h" static void child_proc() ...
google
android
23-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/23-4.c
1,381
utf_8
b6ce70c87c1d0ee54be36a8de4ff90d3
/* */ #include <sched.h> #include <stdio.h> #include <unistd.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(void) { int old_priority; struct sched_param param; if (sched_getparam(0, &param) == -1) { perror("An error occurs when calling sched_getparam()"); ...
google
android
23-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/23-6.c
2,664
utf_8
3f22b8e545fe73c889974c5c7543446e
/* * * * Test that the priority remain unchanged when the requesting process * does not have permission to set the scheduling parameters for the specified * process, or does not have the appropriate privilege to invoke schedparam(). */ #include <stdio.h> #include <sched.h> #include <errno.h> #include <unistd.h> #...
google
android
2-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-2.c
5,228
utf_8
1391a7771eb5bed1a48bd9675028a291
/* * Steps: * 1. Get the number of CPUs. * 2. Set the scheduling policy to SCHED_RR with a mean priority. * 3. Lauch as many processes than CPU. The last process set its own priority * to the min value. * 4. Father process set its own priority to the max value. * 5. Both children and father increment a ...
google
android
25-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/25-1.c
1,622
utf_8
6ec4dbdcc346dcc5ff0f6c55c22bb23e
/* * * * Test that sched_setparam() sets errno == EINVAL when the sched_priority * member is not within the inclusive priority range for the current * scheduling policy. */ #include <sched.h> #include <stdio.h> #include <errno.h> #include "posixtest.h" int main(void) { int policy, invalid_priority, result; stru...
google
android
13-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-4.c
1,712
utf_8
d71d09d6357e066d4666515c6128dfea
/* * 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-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-2.c
1,924
utf_8
f1eb24d565023e17823c8d7522cce2c1
/* * 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 SIGUSR2 with SIGKILL added to ...
google
android
25-11
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/25-11.c
2,486
utf_8
decf088b6312e9d85978971a091c46c6
/* * 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
8-9
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-9.c
1,724
utf_8
ee2528ed194980ba67a4b4e66af42711
/* * 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-32
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-32.c
1,762
utf_8
f9276fd008f3b8e74d00e34062e99892
/* * 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
18-24
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-24.c
2,177
utf_8
655e5a36ed7a3873e03645a7875a8c63
/* * 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 SIGVTALRM without SA_SIGINFO, and a known function ...
google
android
8-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-6.c
1,733
utf_8
495d748b74a10c7e0474f3c434eb6315
/* * 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
1-8
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/1-8.c
1,508
utf_8
7882d8b6836c7410d592d9d39a4ddb4c
/* * 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
4-104
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-104.c
932
utf_8
d9964b8602e677f334d346333b7f3ed3
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP to the signal mask of SIGXFSZ 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
17-12
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/17-12.c
2,201
utf_8
ec3eec17e7833a2031c089fd5470b8a1
/* * source tree. Test assertion #17 by verifying that select returns -1 with errno set to EINTR if a handler for the SIGSEGV 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
12-51
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-51.c
1,765
utf_8
89c5167d1d4244a02b02363fa9390057
/* * 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
18-15
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-15.c
2,165
utf_8
16e44eaeed1ec4067e9d90a432c77731
/* * 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 SIGTTIN without SA_SIGINFO, and a known function * ...
google
android
4-55
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-55.c
930
utf_8
79baf168adff47c281b83b757adb3b5f
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGBUS 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-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-3.c
1,985
utf_8
f9ffbdd4f7bcf84e38dc3e9900287483
/* * 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-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-5.c
1,924
utf_8
c97aa9bf4bad3428f9fa2ff13c0daa76
/* * 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 SIGCONT with SIGKILL added to ...
google
android
12-35
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-35.c
1,762
utf_8
c62303023163c6ea071276526f56119c
/* * 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
23-15
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/23-15.c
4,236
utf_8
8cbd26c75e2df0211bb672f7a8970ddb
/* * 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 SIGTTIN * -> ra...
google
android
8-14
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-14.c
1,738
utf_8
717a034d0886207cb09ffe9cba4e7121
/* * 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
28-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/28-5.c
2,965
utf_8
262859753c1603f9f39d71ff89610f2b
/* * 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 SIGCONT wit...
google
android
13-18
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-18.c
1,712
utf_8
d6f4e0b4ec94e2c8fc801a33d0ed545f
/* * 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
8-11
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-11.c
1,738
utf_8
1b0e7d4a6f9eaa7cd72288a227910437
/* * 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
23-22
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/23-22.c
4,236
utf_8
c85b2f56bc84fa24c40053612b516857
/* * 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 SIGTRAP * -> ra...
google
android
8-18
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-18.c
1,738
utf_8
2194727f720a39a4fff38f5352891584
/* * 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
25-16
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/25-16.c
2,486
utf_8
2e7848d3b819aea24e83e5d24dd05a7c
/* * 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-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-6.c
1,511
utf_8
660cdd785c67ae978dce80cb8cd7a6bb
/* * 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 SIGFPE to use handler1 2. Call sigaction again to set handler for SIGFPE to use handler2, ...
google
android
4-63
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-63.c
932
utf_8
10828d429bc18b7c090f9d946aef995c
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL 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
23-13
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/23-13.c
4,236
utf_8
d6fcd30cbdd90446ea77375b381da51b
/* * 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 SIGTERM * -> ra...
google
android
2-11
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-11.c
1,515
utf_8
5cf977720605221ad42b0602727c8676
/* * 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 SIGQUIT to use handler1 2. Call sigaction again to set handler for SIGQUIT to use handler2, ...
google
android
3-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-23.c
1,554
utf_8
21cb8bf761c1b9a6acfed40f5c3b9764
/* * 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 SIGURG to handler 3. Call sigactio...
google
android
23-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/23-3.c
4,229
utf_8
2e479e9983f4ec0e4a56397b88517cf1
/* * 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 SIGBUS * -> rai...
google
android
17-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/17-23.c
2,196
utf_8
90ac2691992715e257f5043ca964119a
/* * source tree. Test assertion #17 by verifying that select returns -1 with errno set to EINTR if a handler for the SIGURG 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
2-18
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-18.c
1,515
utf_8
0f5341e228f885920f49cbafb0363f81
/* * 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 SIGUSR2 to use handler1 2. Call sigaction again to set handler for SIGUSR2 to use handler2, ...
google
android
4-97
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-97.c
932
utf_8
46d73061b311ae5083ee22fea5179beb
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP 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
4-41
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-41.c
2,011
utf_8
11f2aeac38dcc8b98853ffff3705a98b
/* * 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 SIGTTIN with SIGSTOP added to ...
google
android
23-26
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/23-26.c
4,236
utf_8
ea6b0edce2b4aa0d51dbc880386f600e
/* * 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 SIGXFSZ * -> ra...
google
android
4-45
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-45.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-52
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-52.c
1,765
utf_8
fbc6bb2f3ccb8d488ede59db0cdd529b
/* * 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-21
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-21.c
1,985
utf_8
6f09110d88b4f791bd799bfdb14b0542
/* * 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
8-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-23.c
1,733
utf_8
1d50a24ed3f85d39002483e027385656
/* * 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
17-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/17-6.c
2,196
utf_8
a3948035f2cebc9b4e4fbcc97330acad
/* * source tree. Test assertion #17 by verifying that select returns -1 with errno set to EINTR if a handler for the SIGFPE 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-87
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-87.c
930
utf_8
068a21a09aaef76cd174034fea4f0302
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP to the signal mask of SIGINT 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
13-17
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-17.c
1,712
utf_8
eb75d4f801e1d6bbe0c3d65c3746e4e6
/* * 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
6-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-3.c
1,389
utf_8
cabdad603786893fbc9b173bc88a9f47
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGBUS 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
3-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-3.c
1,554
utf_8
a514105b70d2b7286dad874cc027f7df
/* * 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 SIGBUS to handler 3. Call sigactio...
google
android
13-13
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-13.c
1,712
utf_8
9a3a5f4935f758ed4ce4c201315a831a
/* * 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-61
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-61.c
930
utf_8
e8b8a4f01dda1e02df8bfb4cf7dbcfd1
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGINT 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-20
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-20.c
1,515
utf_8
59df58c09ca92039adf73c6e06047ff7
/* * 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 SIGPROF to use handler1 2. Call sigaction again to set handler for SIGPROF to use handler2, ...
google
android
17-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/17-2.c
2,201
utf_8
47040df5a6729da68ba7b1715cb3c0b3
/* * source tree. Test assertion #17 by verifying that select returns -1 with errno set to EINTR if a handler for the SIGALRM 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-80
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-80.c
932
utf_8
46d73061b311ae5083ee22fea5179beb
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP 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
22-8
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-8.c
2,492
utf_8
ad3a63673707844848b42e94b0cf6975
/* * 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
18-16
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-16.c
2,165
utf_8
b7b04442bd5e94bcaaf5fb713e93a403
/* * 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 SIGTTOU without SA_SIGINFO, and a known function * ...
google
android
22-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-2.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
30-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/30-1.c
5,661
utf_8
d46a145499c18615dfa6b23d983c047f
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertions: * * sigaction returns -1 and errno is set to EINVAL if signal number is invalid * or an attempt to do an operation which is not allowed is made. * The steps are: * -> Try setting a signal handler ...
google
android
12-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-2.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
28-18
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/28-18.c
2,965
utf_8
1f9a46bb3603bf664859d91771879332
/* * 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 SIGUSR2 wit...
google
android
19-15
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/19-15.c
2,595
utf_8
1f735d5752be0000c5064e4a69956948
/* * 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
4-39
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-39.c
2,011
utf_8
cbcbed50fe77916427f84286cd1c4ad8
/* * 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 SIGTERM with SIGSTOP added to ...
google
android
18-8
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-8.c
2,159
utf_8
310ccc703e4bce18562fe7adef15df9b
/* * 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 SIGILL without SA_SIGINFO, and a known function * ...
google
android
21-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/21-1.c
986
utf_8
4ed476bd46c127b945fe4e3addd1179b
/* Test assertion #21 by verifying that adding a sigaction for SIGCHLD with the SA_NOCLDWAIT bit set in sigaction.sa_flags will result in a child process not transforming into a zombie after death. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include <...
google
android
6-18
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-18.c
1,392
utf_8
3cf05646c8d84f77a138e00d824edbed
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGUSR2 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
17-26
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/17-26.c
2,201
utf_8
8d6f06ee40e95e5935a86a863aa0c309
/* * source tree. Test assertion #17 by verifying that select returns -1 with errno set to EINTR if a handler for the SIGXFSZ 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
12-26
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-26.c
1,988
utf_8
457a2ef47e90a6e4d21aef5ca4b1b177
/* * 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-96
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-96.c
932
utf_8
55ba08ef4e5ceeb7b5be8e13fa93e992
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP to the signal mask of SIGUSR2 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-36
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-36.c
1,765
utf_8
5ac9658fb8b2eee6a935bbafe589ec5c
/* * 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
8-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-3.c
1,733
utf_8
f5133044085030cd17bf88a2a1d29054
/* * 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-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-5.c
1,988
utf_8
6d9732d77692f6a3835035af72e0d0f5
/* * 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-46
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-46.c
2,011
utf_8
95baa51dc4b49865680bf5bfacf18cf1
/* * 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 SIGPROF with SIGSTOP added to ...
google
android
28-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/28-3.c
2,959
utf_8
b27708f92f3d5b801a689a68dada6b28
/* * 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 SIGBUS with...
google
android
18-10
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/18-10.c
2,165
utf_8
f4c8187a73acacadb797799a84b0abc4
/* * 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 SIGPIPE without SA_SIGINFO, and a known function * ...
google
android
25-21
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/25-21.c
2,477
utf_8
a415610a682e938a2e9dfe97d4449684
/* * 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-12
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-12.c
1,924
utf_8
ebb9e7a9b1861eef73b019ac4ef401d7
/* * 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 SIGSEGV with SIGKILL added to ...
google
android
12-12
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-12.c
1,988
utf_8
ef611f2eab80773d4503d9e6612970fc
/* * 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-25
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-25.c
1,924
utf_8
e0b75d494b679a6f56de83e76cdad00b
/* * 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 SIGXCPU with SIGKILL added to ...
google
android
4-77
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-77.c
932
utf_8
f0ab693f13b1611616158e75bc056786
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGXCPU 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-45
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-45.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-62
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-62.c
932
utf_8
ba0926fe6e77e49c50267fa31a39b606
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGPIPE 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...