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
4-100
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-100.c
932
utf_8
73c9aed8ba92489c023c08792a6ba9aa
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP to the signal mask of SIGTRAP 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
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-1.c
1,738
utf_8
a77275382a89deaf4155d55af67cfc40
/* * 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
6-22
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-22.c
1,392
utf_8
a6452d525d34487986e36ba5ab2a014a
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGTRAP 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
13-24
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/13-24.c
1,718
utf_8
454b0bcebe7b37e1bdde29544a308390
/* * 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-9
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-9.c
1,985
utf_8
c03e20a351bc49f6152c0d903e3ed351
/* * 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-103
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-103.c
932
utf_8
32fcb7b57dfd6479297738238582f118
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP 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
6-20
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-20.c
1,392
utf_8
4c2865a6b5e2fbe8e9f62e8867a724ca
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGPROF 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-57
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-57.c
932
utf_8
8b5d9f7be86eb0ed602b290df5c0303f
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGKILL to the signal mask of SIGCONT 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
1-20
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/1-20.c
1,512
utf_8
7b4f41c85eac2072f59b9d7e9fcc8fed
/* * 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-91
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-91.c
932
utf_8
a1c077a234dabfe957871331ed98477c
/* * source tree. Test case for assertion #4 of the sigaction system call that shows that attempting to add SIGSTOP to the signal mask of SIGTERM 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-22
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-22.c
1,515
utf_8
b1cd613660eaa7d8634398732e09bf43
/* * 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 SIGTRAP to use handler1 2. Call sigaction again to set handler for SIGTRAP to use handler2, ...
google
android
4-35
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-35.c
2,007
utf_8
e2bff164a6355217246f4db18641e28f
/* * 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 SIGINT with SIGSTOP added to ...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-1.c
1,924
utf_8
b59eff40ff5b24d82ce95c6021a79969
/* * 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 SIGABRT with SIGKILL added to ...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-1.c
1,392
utf_8
ae4c848ecf69db6f7c2b6efa6aa39410
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGABRT 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-25
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-25.c
1,988
utf_8
9abd032141c3331a4c6330405a3c79bd
/* * 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-25
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/28-25.c
2,965
utf_8
25782d2c5fe1bdf01538f4b23345dff5
/* * 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 SIGXCPU wit...
google
android
2-15
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-15.c
1,515
utf_8
0abaafa50fddb564ebb8cda6e15a1aa2
/* * 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 SIGTTIN to use handler1 2. Call sigaction again to set handler for SIGTTIN to use handler2, ...
google
android
2-21
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-21.c
1,511
utf_8
a11afa3484e1605c719e12c7d16e78cc
/* * 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 SIGSYS to use handler1 2. Call sigaction again to set handler for SIGSYS to use handler2, ...
google
android
2-23
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/2-23.c
1,511
utf_8
31e3c7f752554303beeac5cab0a309d6
/* * 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 SIGURG to use handler1 2. Call sigaction again to set handler for SIGURG to use handler2, ...
google
android
22-11
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/22-11.c
2,501
utf_8
b189629fb29231587402128b515e7f94
/* * 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-12
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/3-12.c
1,559
utf_8
ee1c815d494702e45306852b0ec80785
/* * 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 SIGSEGV to handler 3. Call sigacti...
google
android
4-28
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-28.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
6-12
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/6-12.c
1,392
utf_8
67bf9111918127c2f5cae62ef2244290
/* * source tree. Test case for assertion #5 of the sigaction system call that verifies setting the SA_INFO bit in the signal mask for SIGSEGV 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-49
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-49.c
2,007
utf_8
16730bc00837f9021cbd5b48f02e962c
/* * 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 SIGURG with SIGSTOP added to ...
google
android
8-17
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/8-17.c
1,738
utf_8
f21933090ef67636c79e229c6b81fc06
/* * 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
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/2-1.c
1,096
utf_8
fb079810e64800da66da7d6c93b41e02
/* * * * Test that the scheduling parameters are returned for the calling process * when pid = 0. */ #include <stdio.h> #include <sched.h> #include <errno.h> #include <unistd.h> #include "posixtest.h" int main(void) { struct sched_param param0; struct sched_param param1; int result0; int result1; param0.sched...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/3-1.c
1,000
utf_8
41ad00ff8520f790b4d1394d86f21f0a
/* * * * Test that sched_getparam() returns 0 on success */ #include <stdio.h> #include <sched.h> #include <errno.h> #include "posixtest.h" int main(void) { struct sched_param param; int result = -1; param.sched_priority = -1; result = sched_getparam(0, &param); if (result == 0 && param.sched_priority != -1 &&...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/1-1.c
1,261
utf_8
291bf0e2bedd3b9cf90fd5e607c89c0d
/* * * * Test that sched_getparam() function return the scheduling parameters of a * process specified by pid in the sched_param structure pointed to by param. */ #include <stdio.h> #include <sched.h> #include <errno.h> #include <unistd.h> #include "posixtest.h" int main(void) { struct sched_param param; int res...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/4-1.c
1,563
utf_8
cb8c6e3f14a7c4df716b31e9b0cc41c4
/* * * * Test that sched_getparam() returns -1 on failure. * * The test create a child process which exit immediately and call * sched_getparam with the pid of defunct child. */ #include <stdio.h> #include <sched.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <sys/wait.h> #include "posixt...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/6-1.c
2,541
utf_8
c69a71c750d938b34ba2712caeb9e432
/* * * On Linux, e.g, the kernel makes no check on user permission to call this * API. So basically we don't know on what condition a system should return * EPERM. It is implementation defined. */ #include <sys/types.h> #include <errno.h> #include <pwd.h> #include <sched.h> #include <stdio.h> #include <string...
google
android
7-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/speculative/7-1.c
1,165
utf_8
f14fab5293f142433a17b758fcf5855e
/* * * * Test if sched_getparam() sets errno == EFAULT or EINVAL if param points to * NULL. * * This behavior is not specified in the specs, so this test is speculative. */ #include <stdio.h> #include <sched.h> #include <errno.h> #include "posixtest.h" int main(void) { int result = -1; result = sched_getparam(...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/5-1.c
1,187
utf_8
799317fbd8571cb572f65dce3dc78853
/* * * Test that mlock return a value of zero upon successful completion. * */ #include <sys/mman.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "posixtest.h" #define BUFSIZE 8 int main(void) { int result; void *ptr; ptr = malloc(BUFSIZE); if (ptr == NULL) { printf("Can not allocate mem...
google
android
10-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/10-1.c
1,774
utf_8
29f5f15d02a41deaa2b9cb8cb932a55a
/* * * Test that mlock() set errno = EINVAL when addr is not a multiple of * {PAGESIZE} if the implementation requires that addr be a multiple of * {PAGESIZE}. */ #include <sys/mman.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #include "posixtest.h" int main(void) { int result;...
google
android
12-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/12-1.c
2,512
utf_8
0a6778ab7db5a8f045892f36cdfaa693
/* */ #include <sys/mman.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <pwd.h> #include <string.h> #include <sys/resource.h> #include "posixtest.h" #define BUFSIZE 8 /** Set the euid of this process to a non-root uid */ static int set_nonroot() { stru...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/8-1.c
1,865
utf_8
f783c78701fa98e11771c2ce21d4d91a
/* * * Test that the mlock() function sets errno = ENOMEM if some or all of the * address range specified by the addr and len arguments does not correspond to * valid mapped pages in the address space of the process. * * Assume that the value LONG_MAX is an invalid pointer. * * aarch64 linux versions v5.4-rc1 u...
google
android
12-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/speculative/12-1.c
2,577
utf_8
65061e90dc79ab84245bf8ac95a47101
/* */ #define _GNU_SOURCE 1 /* XXX: Read baloney below about CAP_* */ #include <sys/mman.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <pwd.h> #include <string.h> #include <sys/resource.h> #include "posixtest.h" #define BUFSIZE 8 /** Set the euid of t...
google
android
3-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprotocol/3-2.c
1,139
utf_8
9eecc3dcb1e020990ed7b1d1b8b866d0
/* * source tree. * Test that pthread_mutexattr_setprotocol() * * It may fail if: * [EINVAL] The value specified by 'attr' is invalid. * * Steps: * 1. Call pthread_mutexattr_setprotocol with an uninitialized pthread_mutexattr_t object. */ #include <pthread.h> #include <stdio.h> #include <sched.h> #include <er...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprotocol/3-1.c
1,308
utf_8
cbf6e96a3d937bfe2c3f4252b559426b
/* * source tree. * Test that pthread_mutexattr_setprotocol() * * It Shall fail if: * [ENOTSUP] The value specified by protocol is an unsupported value. * It may fail if: * [EINVAL] 'protocol' is invalid */ #include <pthread.h> #include <stdio.h> #include <sched.h> #include <errno.h> #include "posixtest....
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprotocol/1-1.c
1,922
utf_8
ac70a1bfb95df44faffa34ecdebe26ff
/* * source tree. * Test that pthread_mutexattr_setprotocol() * * Sets the protocol attribute of a mutexattr object (which was prev. created * by the function pthread_mutexattr_init()). * * Steps: * 1. In a for loop, call pthread_mutexattr_setprotocol with all the valid 'protocol' values. * 2. In the for loop,...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/2-1.c
1,738
utf_8
4bab8b07b2da156d1c654a7a0544b6f6
/* * source tree. * * If there are no mappings in the specified address range, then munmap() has * no effect. To get a valid address range which is safe to call munmap() on * we first map some arbitrary memory allowing the OS to select the address * then unmap it. We then call munmap() on the same address again t...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/9-1.c
1,821
utf_8
1f07f84715856e1611f1a4b438fefaa1
/* * source tree. * * The munmap() function shall fail if: * [EINVAL] The len argument is 0. * */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #include <fcntl.h> #include <string.h> #include...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-2.c
2,359
utf_8
c991631df7ee30ce505d13376457246e
/* * source tree. * * The munmap() function shall remove any mappings for those * entire pages containing any part of the address space of * the process starting at addr and continuing for len bytes. * Further references to these pages shall result in the * generation of a SIGSEGV signal to the process. * * Te...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/3-1.c
2,035
utf_8
182f7805427430abd902b1de1b18067c
/* * source tree. * * The implementation shall require that addr be a multiple * of the page size {PAGESIZE}. * * Test step: * Try to call unmap, with addr NOT a multiple of page size. * Should get EINVAL. */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/mman.h> ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-1.c
2,648
utf_8
68851c49428863c704383d7f3653b662
/* * source tree. * * The munmap() function shall remove any mappings for those * entire pages containing any part of the address space of * the process starting at addr and continuing for len bytes. * Further references to these pages shall result in the * generation of a SIGSEGV signal to the process. * * Te...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/8-1.c
1,009
utf_8
ea6b805ca730ba22ea43a8fdf48a720c
/* * source tree. * * The munmap() function shall fail if: * [EINVAL] Addresses in the range [addr,addr+len) * are outside the valid range for the * address space of a process. * */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/mman.h> #include <sys/types.h> #incl...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/4-1.c
2,514
utf_8
7df9bcc433e4a6cb38454cdaa24bcf1e
/* * source tree. * * * If a mapping to be removed was private, any modifications * made in this address range shall be discarded. * * Test Step: * 1. mmap a file into memory. Set flag as MAP_PRIVATE; * 2. Modify the mapped memory, and call msync to try to synchronize the change with * the file; * 3. munm...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/3-1.c
986
utf_8
c2c37a571390b49f25fcb973cdfd7701
/* * source tree. * * pthread_barrier_init() * * * The pthread_barrier_init() function shall fail if: * [EINVAL] The value specified by count is equal to zero. * */ #define COUNT 0 #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <errno.h> #include <s...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/1-1.c
2,143
utf_8
52ea1b0025ec50712a0b675c637c9725
/* * source tree. * * pthread_barrier_init() * * * The pthread_barrier_init() function shall allocate any resources * required to use the barrier referenced by barrier and shall initialize * the barrier with attributes referenced by attr. If attr is NULL, * the default barrier attributes shall be used; * the ...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/4-1.c
3,431
utf_8
0bb041b8821463f5a31572d99e2b6f3e
/* * source tree. * * pthread_barrier_init() * * The pthread_barrier_init() function may fail if: * [EBUSY] The implementation has detected an attempt to reinitialize a barrier while it is * in use (for example, while being used in a pthread_barrier_wait() call) by * another thread. * * NOTE: This case will a...
google
android
1-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/1-5.c
1,800
utf_8
9496ad88e1441c31f6e4b2abf3555c37
/* * source tree. * Test that pthread_mutexattr_gettype() * * Gets the mutex 'type' attribute. This attribute is set in the 'type' parameter to * these functions. The default value is PTHREAD_MUTEX_DEFAULT. * * Testing the PTHREAD_MUTEX_RECURSIVE type. * * Steps: * 1. Initialize a pthread_mutexattr_t objec...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/1-2.c
1,792
utf_8
4abc8659b89a2324747d84f0be0f0f82
/* * source tree. * Test that pthread_mutexattr_gettype() * * Gets the mutex 'type' attribute. This attribute is set in the 'type' parameter to * these functions. The default value is PTHREAD_MUTEX_DEFAULT. * * Testing the PTHREAD_MUTEX_DEFAULT type. * * Steps: * 1. Initialize a pthread_mutexattr_t object ...
google
android
1-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/1-3.c
1,776
utf_8
94760a53d2f5c56ada1e1be9ae43385b
/* * source tree. * Test that pthread_mutexattr_gettype() * * Gets the mutex 'type' attribute. This attribute is set in the 'type' parameter to * these functions. The default value is PTHREAD_MUTEX_DEFAULT. * * Testing the PTHREAD_MUTEX_NORMAL type. * * Steps: * 1. Initialize a pthread_mutexattr_t object w...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/1-1.c
1,462
utf_8
3b4d1e2ea50bf89e0bd9928d801bcb29
/* * source tree. * Test that pthread_mutexattr_gettype() * * Gets the mutex 'type' attribute. This attribute is set in the 'type' parameter to * these functions. The default value is PTHREAD_MUTEX_DEFAULT. * * Testing the default 'type' value. * * Steps: * 1. Initialize a pthread_mutexattr_t object with p...
google
android
1-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/1-4.c
1,808
utf_8
d817cab476e2af20673f8d57dff8b6a6
/* * source tree. * Test that pthread_mutexattr_gettype() * * Gets the mutex 'type' attribute. This attribute is set in the 'type' parameter to * these functions. The default value is PTHREAD_MUTEX_DEFAULT. * * Testing the PTHREAD_MUTEX_ERRORCHECK type. * * Steps: * 1. Initialize a pthread_mutexattr_t obje...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/speculative/3-1.c
1,161
utf_8
d339ad03f860c7933a025c6408ebc340
/* * source tree. * Test that pthread_mutexattr_gettype() * * It shall fail if: * * [EINVAL] - The value specified by 'attr' is invalid. * * * Steps: * 1. Initialize a pthread_mutexattr_t object with pthread_mutexattr_init() * 2. Call pthread_mutexattr_gettype() with an invalid 'attr'. * */ #include <pth...
google
android
7-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/7-1.c
607
utf_8
17e1959415809733e725ae59fc65bb9d
/* * source tree. Test that clock_gettime() returns -1 on failure. */ #include <stdio.h> #include <time.h> #include "posixtest.h" #define INVALIDCLOCK 9999 int main(void) { struct timespec tp; if (clock_gettime(INVALIDCLOCK, &tp) == -1) { printf("Test PASSED\n"); return PTS_PASS; } printf("Test FAILED\n");...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/2-1.c
1,399
utf_8
a2c3487aad91af5c46af889c6ee41726
/* * source tree. * Test that parameter CLOCK_REALTIME returns seconds since the * Epoch. (This test is similar to other tests written, but rewritten * here for completeness.) * Validity is compared with gettimeofday(). See rationale.txt for * more info. * If the clocks are within a few seconds of each other, ...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/1-2.c
1,375
utf_8
12b0baa3d867077e662a1db56a4dcccc
/* * source tree. General test that clock_gettime() returns a valid tp for a given clock_id (the clock_id chosen for this test is CLOCK_REALTIME). Validity is compared with gettimeofday(). See rationale.txt for more info. If the clocks are within ACCEPTABLEDELTA of each other, the test is a pass. *...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/3-1.c
1,694
utf_8
74cd08f0b047f0c934e4b35de23169e1
/* * source tree. Test that parameter CLOCK_MONOTONIC returns seconds since the an unspecified point that cannot change. Validity is checked by ensuring that the time returned is always increasing. */ #include <stdio.h> #include <time.h> #include <sys/time.h> #include <unistd.h> #include "posixtest.h" int...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/1-1.c
884
utf_8
b88d008f5e2d11d3ea1981091def3fe5
/* * source tree. General test that clock_gettime() returns a non-empty tp for a given clock_id (the clock_id chosen for this test is CLOCK_REALTIME). */ #include <stdio.h> #include <time.h> #include "posixtest.h" int main(void) { struct timespec tp; //Initialize tp tp.tv_sec = 0; tp.tv_nsec = 0; if (clock...
google
android
8-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
1,589
utf_8
977346f4e5afd86b8bf8fac4c4e47f3e
/* * source tree. * Error condition API test of the clock_gettime() function. * Test calling clock_gettime() with the following values: * - Boundary values for integers (TBD if clock_id is an integer) * MIN INT = INT32_MIN * MAX INT = INT32_MAX * MIN INT - 1 = 2147483647 (this is what gcc will set to) * ...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-1.c
834
utf_8
61cb94815acb3ecd10695352b29300c5
/* * source tree. Test that clock_gettime() sets errno to EINVAL if clock_id does not specify a known clock. */ #include <stdio.h> #include <time.h> #include <errno.h> #include "posixtest.h" #define INVALIDCLOCK 9999 int main(void) { struct timespec tp; if (clock_gettime(INVALIDCLOCK, &tp) == -1) { if (EINV...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/4-1.c
2,056
utf_8
1c18220d828c27543b718a6620736fa0
/* * source tree. Test that parameter CLOCK_PROCESS_CPUTIME_ID returns the CPU time of the calling process. Validity is checked by ensuring that the time returned is always increasing. This is only supported if _POSIX_CPUTIME is defined. */ #include <stdio.h> #include <time.h> #include <errno.h> #inclu...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setcanceltype/2-1.c
4,404
utf_8
b54c935462ed32e26d8bad58ca91c1e0
/* * source tree. * Test pthread_setcanceltype The cancelability type of a newly created thread is PTHREAD_CANCEL_DEFERRED. * * STEPS: * 1. Setup a mutex and lock it in main() * 2. Create a thread. Without setting the cancel type, the default should be * PTHREAD_CANCEL_DEFERRED. * 3. Setup a cleanup handle...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setcanceltype/1-2.c
4,624
utf_8
c3a32a3a0f9fd119a6575e029be603d6
/* * source tree. * Test pthread_setcanceltype * Atomically sets the cancelability type to 'type' and returns the old * cancelability type in the location referenced by 'oldtype'. * 'state' can either be PTHREAD_CANCEL_DEFERRED, or PTHREAD_CANCEL_ASYNCHRONOUS. * * Test when a thread is PTHREAD_CANCEL_DEFERRED *...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setcanceltype/1-1.c
3,934
utf_8
826d2fcda0223c20a576df1ed870afb4
/* * source tree. * Test pthread_setcanceltype * Atomically sets the cancelability type to 'type' and returns the old * cancelability type in the location referenced by 'oldtype'. * 'state' can either be PTHREAD_CANCEL_DEFERRED, or PTHREAD_CANCEL_ASYNCHRONOUS. * * Test when a thread is PTHREAD_CANCEL_ASYNCHRONOU...
google
android
4-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-2.c
6,941
utf_8
613303f4dab2121f57abc816bdaa6a22
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * The function does not return an error code of EINTR * The steps are: * * -> Create some threads which wait for a condition. * -> Create a worker thread which broadcasts this condition. * ...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-1.c
3,675
utf_8
904add24771a45664cd6d575c780a2d7
/* * source tree. * Test that pthread_cond_broadcast() * When each thread unblocked as a result of pthread_cond_signal() * returns from its call to pthread_cond_wait(), the thread shall * own the mutex with which it called pthread_cond_wait(). */ #include <pthread.h> #include <stdlib.h> #include <stdio.h> #...
google
android
2-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-3.c
14,546
utf_8
3f7a28325595ac26461a0fb9a96968b4
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This file tests the following assertion: * * The pthread_cond_broadcast function unblocks all the threads blocked on the * conditional variable. * The steps are: * -> Create N threads which will wait on a condition variable * -> broadcast the ...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/1-2.c
17,513
utf_8
5301d0341420acd12c035f0b4e1673ff
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This file tests the following assertion: * * The pthread_cond_broadcast function unblocks all the threads blocked on the * conditional variable. * The steps are: * -> Create as many threads as possible which will wait on a condition * varia...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/1-1.c
3,380
utf_8
96b2b0453ce334e9084d38d177d11b6b
/* * source tree. * Test that pthread_cond_broadcast() * shall unblock all threads currently blocked on the specified condition * variable cond. */ #include <pthread.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include "posixtest.h" #define THREAD_NUM 3 static struct testdata { pthread_mute...
google
android
2-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-2.c
3,986
utf_8
2584dd1f72565e71497025ccec7df0f1
/* * source tree. * Test that pthread_cond_broadcast() * When each thread unblocked as a result of pthread_cond_signal() * returns from its call to pthread_cond_timedwait(), the thread shall * own the mutex with which it called pthread_cond_timedwait(). */ #include <pthread.h> #include <stdio.h> #include <s...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-1.c
3,482
utf_8
34332c3d9713585af17f1b3995ca343c
/* * source tree. * Test that pthread_cond_broadcast() * Upon successful completion, a value of zero shall be returned. */ #include <pthread.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #include "posixtest.h" #define THREAD_NUM 5 static struct testdata { pthread_mutex_t mutex...
google
android
4-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/4-2.c
2,629
utf_8
908fb5ab888b0701f9cb4253ec671de0
/* * source tree. * * Test that if clock_settime() changes the value for CLOCK_REALTIME, * an absolute timer which would now have expired in the past * will expire immediately (with no error). * * Steps: * - get time T0 * - create/enable a timer to expire at T1 = T0 + TIMEROFFSET * - set time forward to T1 + ...
google
android
17-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
1,812
utf_8
c29ac7cbaaa2938370a52dccb3fa7878
/* * source tree. * * Error condition API test for the clock_id parameter of the * clock_settime() function. * * Test calling clock_settime() with the following clock_id values: * MIN INT = INT32_MIN * MAX INT = INT32_MAX * MIN INT - 1 = 2147483647 (this is what gcc will set to) * MAX INT + 1 = -2147...
google
android
5-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/5-2.c
3,277
utf_8
267f934f15ccaeba6266c39946a67bdf
/* * source tree. * * Test that if clock_settime() changes the value for CLOCK_REALTIME, * then any relative timers still expire when the time interval * has elapsed. [Test where clock_settime() sets timer forward in time.] * * Steps: * - set a timer to expire in TIMERSEC * - set the clock forward CLOCKOFFSET ...
google
android
20-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/20-1.c
1,162
utf_8
557eefd2928a419785f1d0fa510472c2
/* * source tree. * * Test that clock_settime() sets errno = EINVAL if clock_id is * CLOCK_MONOTONIC. * * The date chosen is Nov 12, 2002 ~11:13am. */ #include <errno.h> #include <stdio.h> #include <time.h> #include <unistd.h> #include "posixtest.h" #define TESTTIME 1037128358 int main(void) { #ifdef CLOCK_MONOT...
google
android
7-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/7-1.c
2,895
utf_8
dfd974ab2a262153b7a5c69cfb725b4d
/* * source tree. * * Test that if clock_settime() changes the time for CLOCK_REALTIME, * then any threads blocked on clock_nanosleep() for the CLOCK_REALTIME * clock will use the new time for expiration. * * Steps: * - get time T0 * - in child: set clock_nanosleep() to sleep until time * T1 = T0 + SLEEPOF...
google
android
17-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-1.c
1,084
utf_8
340abd44f1a03873e81265459d2ff77f
/* * source tree. * * Test that clock_settime() sets errno to EINVAL if clock_id does not * specify a known clock. * * The date chosen is Nov 12, 2002 ~11:13am (date when test was first * written). */ #include <errno.h> #include <stdio.h> #include <time.h> #include <unistd.h> #include "posixtest.h" #define TEST...
google
android
19-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/19-1.c
2,229
utf_8
7cab1efe9e934151f2f44156da21b736
/* * source tree. * * Test that clock_settime() sets errno=EINVAL if tp has a nsec value < 0 or * >= 1000 million. * * Test calling clock_settime() with the following tp.tv_nsec values: * MIN INT = INT32_MIN * MAX INT = INT32_MAX * MIN INT - 1 = 2147483647 (this is what gcc will set to) * MAX INT + 1...
google
android
7-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/7-2.c
2,946
utf_8
6ef12deebe7cf803cb21a059986c7509
/* * source tree. * * Test that if clock_settime() changes the time for CLOCK_REALTIME, * then any threads blocked on clock_nanosleep() for the CLOCK_REALTIME * clock that would now have expired in the past will expire immediately. * * Steps: * - get time T0 * - in child: set clock_nanosleep() to sleep until ...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/5-1.c
3,315
utf_8
b9d2d36e7d4f47619e54fe54b42ba8e6
/* * source tree. * * Test that if clock_settime() changes the value for CLOCK_REALTIME, * then any relative timers still expire when the time interval * has elapsed. [Test where clock_settime() sets the clock _back_ in time.] * * Steps: * - set a timer to expire in TIMERSEC * - set the clock back CLOCKOFFSET ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/1-1.c
1,966
utf_8
d9d08b16f8b5d77cdb55dc6cc03e3058
/* * source tree. * Test that clock_settime() sets clock_id to tp. * * The clock_id chosen for this test is CLOCK_REALTIME. * The date chosen is Nov 12, 2002 ~11:13am (date when test was first * written). */ #include <stdio.h> #include <time.h> #include <unistd.h> #include <errno.h> #include "posixtest.h" #inclu...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/8-1.c
2,826
utf_8
4e6aa6febd0436b844205f80877da0b0
/* * source tree. * * Test that clock_settime() does not affect clock_nanosleep() * relative timers expiration times. * * Steps: * - get time T0 * - in child: set clock_nanosleep() to sleep for SLEEPSEC seconds * - in parent: sleep SMALLTIME (< SLEEPSEC) * - in parent: set time back to T0 * - in child: e...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/4-1.c
3,367
utf_8
ca687c44a7c2a2d8c1d8f5e0b1e86009
/* * source tree. * * Test that if clock_settime() changes the value for CLOCK_REALTIME, * then any absolute timers will use the new time for expiration. * * Steps: * - get time T0 * - create/enable a timer to expire at T1 = T0 + TIMEROFFSET * - sleep SLEEPTIME seconds (SLEEPTIME should be < TIMEROFFSET, * ...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/6-1.c
974
utf_8
188b71677199654a694024ab69eacb57
/* * source tree. * Test that clock_settime() cannot set the monotonic clock CLOCK_MONOTONIC, * and will fail if invoked with clock CLOCK_MONOTONIC. * * The date chosen is Nov 12, 2002 ~11:13am. */ #include <stdio.h> #include <time.h> #include "posixtest.h" #define TESTTIME 1037128358 int main(void) { #ifdef CLOC...
google
android
4-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/speculative/4-3.c
3,621
utf_8
2011b34e42046f0733482b1d1b98a116
/* * source tree. * * Test that if clock_settime() changes the value for CLOCK_REALTIME, * an absolute timer which would now have expired in the past * will expire immediately (with no error). * Test with a repeating absolute timer and set the clock forward past * > 1 expirations of that timer. * * Steps: * -...
google
android
4-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/speculative/4-4.c
3,614
utf_8
0b35614558775dcbd9234714d951d554
/* * source tree. * * Note: This test is not based on the POSIX spec, but is a speculation * about behavior for an assertion where the POSIX spec does not make a * statement about the behavior in either case. * * Test that if clock_settime() changes the value for CLOCK_REALTIME, * a repeating absolute timer us...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_init/3-1.c
1,227
utf_8
86a8d730414df460f40dab3dd31f62f2
/* * source tree. * Test that pthread_condattr_init() * Upon successful completion, pthread_condattr_init() shall return a value of 0. * Steps: * 1. Initialize a pthread_condattr_t object with pthread_condattr_init() * 2. ENOMEM is the only error it returns, so if it doesn't return that error, * the retu...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_init/1-1.c
1,716
utf_8
dd519677c84e844948725fcb19529f5e
/* * source tree. * Test that pthread_condattr_init() * shall initialize a condition variable attribute object 'attr' with the default * value for all of the attributes defined by the implementation. * Steps: * 1. Initialize a pthread_condattr_t object with pthread_condattr_init() * 2. Call pthread_condatt...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-2.c
2,119
utf_8
e06776b7f950b33b1d6f66fd257a23aa
/* * source tree. * pthread_attr_setschedparam() * 1. Create a pthread_attr object and initialize it * 2. Set the policy and priority in that object * 3. Create a thread with this object * Test SCHED_RR */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "posixtest.h" #defi...
google
android
1-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-3.c
2,801
utf_8
b6b056c1026dcdd3f4490820a269c66a
/* * source tree. * Test that pthread_create(pthread_attr) * shall create a thread with the pthread_attr settings passed to it * Steps: * 1. Create a pthread_attr structure and set policy and priority in it * 2. Create a thread using this attr * 3. In the thread, check these settings. */ #include <pthread.h> ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-1.c
2,125
utf_8
3369b778e6bd62bd614e7324e4c45d66
/* * source tree. * pthread_attr_setschedparam() * 1. Create a pthread_attr object and initialize it * 2. Set the policy and priority in that object * 3. Create a thread with this object * Test SCHED_FIFO */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "posixtest.h" #de...
google
android
1-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-4.c
2,867
utf_8
37e7f2638520dc9664d4e5b07274a705
/* * source tree. * Test that pthread_create(pthread_attr) * shall create a thread with the pthread_attr settings passed to it * * Steps: * 1. Create a pthread_attr structure and set policy and priority in it * 2. Create a thread using this attr * 3. In the thread, check these settings. * */ #include <pthre...
google
android
3-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/speculative/3-2.c
1,518
utf_8
5f84ef30bfed743bcf798097d526ac01
/* * source tree. * pthread_attr_setschedparam() * 1. Create a pthread_attr object and initialize it * 2. Set the policy and an invalid priority in that object */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "posixtest.h" #define TEST "3-2" #define FUNCTION "pthread_attr_...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/speculative/3-1.c
1,530
utf_8
db3ca4f75348c2fe942c4655a428bb6b
/* * source tree. * pthread_attr_setschedparam() * 1. Create a pthread_attr object and initialize it * 2. Set the policy and an invalid priority in that object */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include "posixtest.h" #define TEST "3-1" #define FUNCTION "pthread_attr_...
google
android
2-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-4.c
2,403
utf_8
1fcad02b0e5b65c2c5c12b55000543bd
/* * source tree. * Test that pthread_attr_setinheritsched() sets the inheritance of * policy and priority. * Steps: * 1. Create a pthread_attr struct using pthread_attr_init * 2. Change main's priority and policy * 3. Set the inherit sched in it by calling pthread_attr_setinheritsched * 4. Create a new thr...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-1.c
2,560
utf_8
549bd5a8a2d3bf186eebca4ec6f94f06
/* * source tree. * Test pthread_attr_setinheritsched() * * Steps: * 1. Initialize pthread_attr_t object (attr) * 2. Set schedule policy (policy) in attr to SCHED_FIFO * 3. Set inheritsched to PTHREAD_INHERIT_SCHED in attr * 4. Call pthread_create with attr * 5. Call pthread_getschedparam in the created t...
google
android
2-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-3.c
2,386
utf_8
f60142af0356f73d3984f6652281a100
/* * source tree. * Test that pthread_attr_setinheritsched() sets the inheritance of * policy and priority. * Steps: * 1. Create a pthread_attr struct using pthread_attr_init * 2. Set the inherit sched in it by calling pthread_attr_setinheritsched * 3. Change main's priority and policy * 4. Create a new thr...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/1-1.c
2,128
utf_8
d12d040d0ac031b187f2031516b992fa
/* * source tree. * Test pthread_attr_setinheritsched() * * Steps: * 1. Initialize a pthread_attr_t object using pthread_attr_init() * 2. Call pthread_attr_setinheritsched with inheritsched parameter * 3. Call pthread_attr_getinheritsched to get the inheritsched * */ #include <pthread.h> #include <stdio.h> ...