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-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/2-2.c
7,315
utf_8
83f16eeb5880b993b4124b13ff936e33
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * pthread_detach() does not force a thread to terminate. * The steps are: * * -> Create a thread * -> detach the thread * -> wait for the thread to post a semaphore. * The test fails if...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/4-1.c
2,127
utf_8
70cae5ba45c5f19e95ff801658428c24
/* * source tree. * Test that pthread_detach() * * Upon failure, it shall return an error number: * -[EINVAL] The implemenation has detected that the value specified by * 'thread' does not refer to a joinable thread. * -[ESRCH] No thread could be found corresponding to that thread * It shall not return an error...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/1-1.c
2,516
utf_8
8c47d532c5a6226dd1aa6648137c7825
/* * * The pthread_getschedparam() function shall retrieve the scheduling * policy and scheduling parameters for the thread whose thread ID is * given by thread and shall store those values in * policy and param, respectively. The priority value returned from * pthread_getschedparam() shall be * the value specif...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/2-1.c
1,404
utf_8
15d8fd9eb7cd0438e2eb29329666d4b1
/* source tree. */ /* * When semaphore is locked, then the value returned by sem_getvalue is zero. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <limits.h> #include "posixtest.h" #define TEST "2-1" #define FUNCTION "sem_getva...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/5-1.c
1,518
utf_8
9a9b223b54e4cbeeaaf18df376fdb2c9
/* source tree. */ /* * This test case verifies that calling sem_getvalue doesn't change the * state of the semaphore. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <limits.h> #include "posixtest.h" #define TEST "5-1" #defin...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/1-1.c
1,430
utf_8
f6ecb40a4f27cfb28dd848b08395b1ee
/* source tree. */ /* * This test case will call sem_getvalue to update the location referenced * by the semaphpre without effecting the state of the semaphore. The * updated value represents the actual semaphore value when it was called. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <...
google
android
2-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/2-2.c
4,358
utf_8
23580eccbc485dcf68489b8ae7c8f397
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * If the semaphore is locked, the sval value is set to 0 or to a negative * value representing the number of waiters for the semaphore. * The steps are: * -> init a semaphore (value = 0) * -> cr...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/4-1.c
1,161
utf_8
27efb181639445317571aa7e95f9e3e7
/* source tree. */ /* * Upon successful completion of calling sem_getvalue, it shall return a value * of zero. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <limits.h> #include "posixtest.h" #define TEST "4-1" #define FUNCTI...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/1-2.c
5,504
utf_8
2b90b4a4f560da9daff5e59583454dcc
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The function sets the scheduling policy and parameter of the specified thread. * The steps are: * -> Create a new thread * -> create another thread which changes the scheduling policy of the 1s...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/5-1.c
7,455
utf_8
1ad44b52c7aab9d8b5591bcdf2223414
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * The function does not return EINTR * The steps are: * -> kill a thread which calls pthread_setschedparam * -> check that EINTR is never returned */ /********************************************...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/1-1.c
1,429
utf_8
5a65e66ddfa1a909d67d8ef392b4a099
/* * */ /* Set the sched parameter with pthread_setschedparam() then get */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include "posixtest.h" static void *a_thread_func() { struct sched_param sparam; int policy, priority, policy_1; int rc; policy = SCHED_FIFO; priority = sched_get_priority_min(...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/4-1.c
5,053
utf_8
16baec2ed19cef65792c4cca0733c754
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * This sample test aims to check the following assertion: * * If the function fails, the policy and parameter of the target thread * shall not be modified. * The steps are: * -> Create a new thread * -> Change its priority to a known valid value. * -> Cha...
google
android
10-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-2.c
1,727
utf_8
c53ccb4f72fd329f4fd5a16d1ae4fada
/* * * Test that the shm_unlink() function sets errno = ENAMETOOLONG if the length * of the name argument exceeds {PATH_MAX} (including the terminating null). * * The used name follow the scheme: * aaaaaa/aaaaaa/aaaaaa/aaa ... */ #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/2-1.c
1,337
utf_8
c07f56f7cb4a262358f0af1ea708c9ad
/* * * Test that the name is removed before shm_unlink() returns even if one or * more references to the shared memory object exist when the object is * unlinked. */ #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include "posixtest.h" #define SHM_NAME "posixte...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/9-1.c
2,338
utf_8
8dc84ab60e0643f1c2eac211af7bb68c
/* * * Test that shm_unlink() sets errno = EACCES if permission is denied to unlink * the named shared memory object. * * Steps: * 1. Create a shared memory object. * 2. Set his effective user id to an other user id which is not root. * 3. Try to unlink the name. * If it fail: set the effective user id ...
google
android
11-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/11-1.c
1,003
utf_8
cef682485a3db8de0541fde4ce65397a
/* * * Test that the shm_unlink() function sets errno = ENOENT if the named shared * memory object does not exist. */ #include <stdio.h> #include <sys/mman.h> #include <errno.h> #include "posixtest.h" #define SHM_NAME "posixtest_11-1" int main(void) { int result; /* Ensure that the name SHM_NAME is removed */ s...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/3-1.c
1,640
utf_8
119772223af82d68167141b8db6e5817
/* * * Test that the removal of the memory object contents is postponed until all * open and map references to the shared memory object have been removed. */ #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include "posixte...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/5-1.c
1,392
utf_8
bf38a11b40467a981e36d9526f01f703
/* * * Test that the reuse of the name subsequently causes shm_open() to * create a new shared memory object if O_CREAT is set even if the object * continues to exist after the last shm_unlink(), */ #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include "posix...
google
android
10-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-1.c
1,538
utf_8
114f28c578376b10b8023c88191eaae3
/* * * Test that the shm_unlink() function sets errno = ENAMETOOLONG if the length * of a pathname component is longer than {NAME_MAX} (not including the * terminating null). */ #include <stdio.h> #include <sys/mman.h> #include <errno.h> #include <limits.h> #include <unistd.h> #include <stdlib.h> #include "posixte...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/1-1.c
1,448
utf_8
73ce90d610fbcc55c6c8e2b9b195a445
/* * * Test that the shm_unlink() function remove the name of the shared memory * object named by the string pointed to by name. */ #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include "posixtest.h" #define SHM_NAME "posixtest_1-1" int mai...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/8-1.c
2,928
utf_8
1242af97e749d6e630924221fcd712b1
/* * * Test that the named shared memory object is not changed by this function * call when the process does not have permission to unlink the name. * * Steps: * 1. Create a shared memory object. * 2. Set his effective user id to an other user id which is not root. * 3. Try to unlink the name. * If it f...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/6-1.c
976
utf_8
a42cf06ba2a5e3e42a0040e40c633531
/* * * Test that the shm_unlink() function returns zero upon successful completion. */ #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include "posixtest.h" #define SHM_NAME "posixtest_6-1" int main(void) { int fd; fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); if...
google
android
7-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/7-1.c
2,260
utf_8
c1a8f150233701ffd110680370e4b7a0
/* * source tree. This program tests the assertion that if the ss_flags member is not set to SS_DISABLE, the stack shall be enabled, and the ss_sp and ss_size members specify the new address and size of the stack. Steps: - Set up a handler for signal SIGTOTEST and set the sa_flags member to SA_ONSTACK. - Allocat...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/2-1.c
2,758
utf_8
f3e0e53c21b5900fe4c9261249a0fd2f
/* * source tree. This program tests the assertion that if ss_flags is set to SS_DISABLE, then the alternate stack is disabled. Steps: - Set up a handler for signal SIGTOTEST and set the sa_flags member to SA_ONSTACK. - Using the first call to sigaltstack(), get the process's current stack info (original_s.) - A...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/9-1.c
2,383
utf_8
27f6e51ad5755fb455e4879b7e074d7b
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Author: Peter W. Morreale <pmorreale AT novell DOT com> * Date: 09.07.2011 * * * Test assertion 9-1 - Prove that an established alternate signal stack * is not available after an exec. * */ #include <stdio.h> #incl...
google
android
11-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/11-1.c
1,898
utf_8
71413958fc461b10321b1a286bff54a1
/* * source tree. This program tests the assertion that if the ss_flags member is set to something other than SS_DISABLE, and the ss argument is something other than a null pointer, then sigaltstack() shall return -1 and set errno to [EINVAL]. Steps: - Set up a dummy handler for signal SIGTOTEST and set the sa_fl...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/3-1.c
2,588
utf_8
a16bd660c8d88df75b07c17ea2cd6d76
/* * source tree. This program tests the assertion that if the ss_flags member is not set to SS_DISABLE, the stack shall be enabled, and the ss_sp and ss_size members specify the new address and size of the stack. Steps: - Set up a handler for signal SIGTOTEST and set the sa_flags member to SA_ONSTACK. - Allocat...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/5-1.c
1,819
utf_8
00a167c4e15a7a05760322f601c7206f
/* * source tree. This program tests the assertion that oss points to the alternate structure that was in effect prior to the call to sigaltstack. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include "posixtest.h" #define SIGTOTEST SIGUSR1 static void handler() { printf("Do nothing useful\n"); } i...
google
android
10-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/10-1.c
1,259
utf_8
bb125113e3275b1ad6e13abaa9ce0ac3
/* * source tree. This program tests the assertion that sigaltstack() returns 0 upon successful completion. */ #include <signal.h> #include <stdio.h> #include <stdlib.h> #include "posixtest.h" #define SIGTOTEST SIGUSR1 static stack_t alternate_s; static void handler() { printf("Just a dummy handler\n"); } int main(...
google
android
12-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/12-1.c
1,942
utf_8
7cc31cd90af807f4172df7bbac0d75f3
/* * source tree. This program tests the assertion that if the ss_size is equal to something smaller that MINSIGSTKSZ, then sigaltstack() shall return -1 and set errno to [ENOMEM]. Steps: - Set up a dummy handler for signal SIGTOTEST and set the sa_flags member to SA_ONSTACK. - Allocate memory for the alternate ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/1-1.c
2,209
utf_8
066f62ef7872749f8557613d5eef119b
/* * source tree. This program tests the assertion that a signal explicitly declared to execute on an alternate stack (using sigaltstack) shall be delivered on the alternate stack specified by ss. While it is easy to use a call like sigaltstack((stack_t *)0, &oss) to verify that the signal stack that the handler ...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/8-1.c
2,315
utf_8
83264ca72b2ed93834f1ca9409b332f9
/* * source tree. This program tests the assertion that if the ss_flags member is not set to SS_DISABLE, the stack shall be enabled, and the ss_sp and ss_size members specify the new address and size of the stack. Steps: - Set up a handler for signal SIGTOTEST and set the sa_flags member to SA_ONSTACK. - Allocat...
google
android
6-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/6-1.c
2,314
utf_8
7d8f72b8113bdfdf6308bfbbef38abf1
/* * source tree. This program tests the assertion that if the ss_flags member is not set to SS_DISABLE, the stack shall be enabled, and the ss_sp and ss_size members specify the new address and size of the stack. Steps: - Set up a handler for signal SIGTOTEST and set the sa_flags member to SA_ONSTACK. - Allocat...
google
android
14-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c
1,893
utf_8
98abbb2407b50b1b7214e8325dd77302
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/14-1.c" int main(void) { char...
google
android
8-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-3.c
2,129
utf_8
b8f604fd8115accf807b297e6e8eadf3
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/8-3.c" int main(void) { char ...
google
android
8-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-4.c
2,128
utf_8
643ee6c0b9e0ce1de96f0c84db79929e
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/8-4.c" int main(void) { char ...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/2-1.c
2,120
utf_8
ca6a608883e530908961a9e2cfbba487
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/2-1.c" #define BUF_SIZE 1024 i...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/9-1.c
2,098
utf_8
7f618c2e15b9537bca75226831abe5f9
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/9-1.c" int main(void) { char ...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/3-1.c
2,092
utf_8
4b6c88255211fc2b3e3b16ff0d9bac1c
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/3-1.c" #define BUF_SIZE 1024 i...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/5-1.c
2,099
utf_8
a477d8a9f8e215424c29cd253cfec7eb
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/5-1.c" #define BUF_SIZE 1024 i...
google
android
12-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/12-1.c
929
utf_8
11ff11b5ef7e18012a0ca46a594fb34b
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include "posixtest.h" #define TNAME "aio_fsync/12-1.c" int main(void) { struct aiocb aiocb; if (sysconf(_SC_ASYNCHR...
google
android
8-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-2.c
2,127
utf_8
8ce743aa50a61f4fc96998e05e67c4b4
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/8-2.c" int main(void) { char ...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/8-1.c
2,128
utf_8
387df38133afa5df4fbb34b9072c3e4a
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/8-1.c" int main(void) { char ...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/4-1.c
2,103
utf_8
75d55cbfe2d3882c28063980a225983f
/* * source tree. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <aio.h> #include <time.h> #include "posixtest.h" #include "tempfile.h" #define TNAME "aio_fsync/4-1.c" int main(void) { char ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getcpuclockid/1-1.c
1,351
utf_8
520f5a58be43165c51c2f5f4dd7f03bd
/* * source tree. * Test pthread_getcpuclockid() * * Steps: * 1. Create a thread * 2. Call the API to get the clockid in the created thread */ #include <pthread.h> #include <time.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/param.h> #include <errno.h> #include ...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getcpuclockid/speculative/3-1.c
1,468
utf_8
2b1dda69c2f8cd475ab4de1fe5585df3
/* * source tree. * Test pthread_getcpuclockid() * * Steps: * 1. Create a thread * 2. pthread_join the created thread * 3. Call the API to get the clockid of this thread, it may fail. */ #include <pthread.h> #include <time.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #inclu...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/2-1.c
2,002
utf_8
2c00d2bc0814e9de519e03c05a03637b
/* * source tree. */ /* * mq_notify() test plan: * Only one process may be registerd for notification by a message queue. * If the calling process or other process has already registered for the * notification, subsequent attempts to register for that message queue * will fail. * * 2/17/2004 call mq_cl...
google
android
9-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/9-1.c
2,016
utf_8
d1b34f746e9e27c7313dd33543a37789
/* * source tree. */ /* * mq_notify() test plan: * mq_notify will fail with EBUSY if a process is already registered for * notification by the message queue. * * 2/17/2004 call mq_close and mq_unlink before exit to release mq * resources */ #include <sys/stat.h> #include <sys/types.h> #include <sys/wait...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/3-1.c
2,422
utf_8
5f0f7446e445f82629fd21667ba0eb52
/* * source tree. */ /* * mq_notify() test plan: * If the notification is NULL and the process is currently registered * for notification by the specified message queue, the existing registration * will be removed. * * 4/11/2003 change sa_flags from SA_RESTART to 0 to avoid compile * error. * * 2/1...
google
android
5-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/5-1.c
3,086
utf_8
3d43ccbc655e6ff149c52f3fc36f6f85
/* * source tree. */ /* * mq_notify() test plan: * If a process has registered for notification of message arrival * at a message queue, while some thread is blocked in mq_receive * waiting to receive a message, the arriving message should satisfy * the appropriate mq_receive(). In this case, no notificatio...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/1-1.c
2,270
utf_8
880d33050b974f677cfffd4124b60cd5
/* * source tree. */ /* * mq_notify() test plan: * If the argument notification is not NULL, it will register the * calling process to be notified of message arrival at an empty * message queue. The notification will be sent to the process when * the message queue transitions from empty to non-empty. * * ...
google
android
8-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/8-1.c
1,244
utf_8
0988d40f4102a856e8f52944068bd6cd
/* * source tree. */ /* * mq_notify() test plan: * mq_notify() will fail with EBADF if the mqdes argument is not a * valid message queue descriptor. * * 2/17/2004 call mq_close and mq_unlink before exit to release mq * resources */ #include <stdio.h> #include <errno.h> #include <mqueue.h> #include <fcnt...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/4-1.c
2,286
utf_8
0d621a1a957dd444f5f596bf58600a19
/* * source tree. */ /* * mq_notify() test plan: * If the notification is sent to the registered process, its registration * will be removed, then, the message queue will be available for * next registration. * * 4/11/2003 change sa_flags from SA_RESTART to 0 to avoid compile * error. * * 2/17/2004...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/1-2.c
2,136
utf_8
6e4cc65adb4d09918e1ba92104e36547
/* * * The pthread_getschedparam() function shall retrieve the scheduling * policy and scheduling parameters for the thread whose thread ID is * given by thread and shall store those values in * policy and param, respectively. The priority value returned from * pthread_getschedparam() shall be * the value specif...
google
android
1-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/1-3.c
5,910
utf_8
d9ddd4ba6e3463e6a4a025a8e1fc6010
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This sample test aims to check the following assertion: * * The function gets the scheduling policy and parameter of * the specified thread. The priority value is the one last * set with pthread_setschedparam, pthread_setschedprio or * pthread_create ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/1-1.c
1,511
utf_8
044a98d15b04af9ef39496067823d2e2
/* * * The pthread_getschedparam() function shall retrieve the scheduling * policy and scheduling parameters for the thread whose thread ID is * given by thread and shall store those values in * policy and param, respectively. The priority value returned from * pthread_getschedparam() shall be * the value specif...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedpolicy/2-1.c
2,415
utf_8
d22cfae3d8d0f0daeb9effd40b3ebb8f
/* * source tree. * Test pthread_attr_getschedpolicy() * * Steps: * 1. Initialize a pthread_attr_t object using pthread_attr_init() * 2. Call pthread_attr_setschedpolicy with policy parameter * 3. Call pthread_attr_getschedpolicy to get the policy * */ #include <pthread.h> #include <stdio.h> #include <stdli...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/2-1.c
1,316
utf_8
6a8bfdd2ddff915abdf94c0675f265f3
/* * source tree. * Test that pthread_condattr_setclock() * It returns 0 upon success, and an error code if it fails: * * It may fail if: * * [EINVAL] - the 'attr' value is invalid * [EINVAL] - 'clock_id' doesn't refer to a known clock or is a CPU-time clock. * * Steps: * 1. Initialize a pthread_condattr_t ...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/1-2.c
1,501
utf_8
8f0abd688d1e681d20b4ec96d70312df
/* * source tree. * Test that pthread_condattr_setclock() * shall set the 'clock' attribute in an initialized attributes object referenced by * 'attr'. * * Steps: * 1. Initialize a pthread_condattr_t object * 2. Set the clock to CLOCK_MONOTONIC (if the kernel has that capability) * 3. Check that it was se...
google
android
1-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/1-3.c
1,639
utf_8
cdd9d32c0652702ff3f439ef88b3359e
/* * source tree. * Test that pthread_condattr_setclock() * * If it is called with a clock_id argument that refers to a CPU-time clock, the call * shall fail. * * Steps: * 1. Initialize a pthread_condattr_t object * 2. Get the cpu clock id * 3. Call pthread_condattr_setclock passing this clock id to it ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/1-1.c
1,114
utf_8
c95c212af2d1e83dd202d75176cb3885
/* * source tree. * Test that pthread_condattr_setclock() * shall set the 'clock' attribute in an initialized attributes object referenced by * 'attr'. * * Steps: * 1. Initialize a pthread_condattr_t object * 2. Set the clock to CLOCK_REALTIME * 3. Check that it was set successfully * */ #include <pthre...
google
android
3-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/3-2.c
1,417
utf_8
6c18e8a904179a2a093271ee23f32f3d
/* * source tree. * Test that pthread_mutexattr_setpshared() * * It MAY fail if: * * [EINVAL] - the new value pshared value is outside the range of legal values for that * attribute. * * Steps: * * 1. Pass to pthread_mutexattr_setpshared() a negative value in the 'pshared' parameter.. * 2. It may...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/2-1.c
1,263
utf_8
341159a2550a5b2a06c2f84178b0c08f
/* * source tree. * Test that pthread_mutexattr_setpshared() * * Upon success, it returns 0. * * Steps: * * 1. Initialized a mutexattr object. * 2. Set the attributes object to PTHREAD_PROCESS_PRIVATE. The error return code should be 0. * */ #include <pthread.h> #include <stdio.h> #include "posixtest.h" int ...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/1-2.c
1,613
utf_8
8abc11184d30e7855e2f8da3dc183799
/* * source tree. * Test that pthread_mutexattr_setpshared() * * The default value of the 'pshared' attribute is PTHREAD_PROCESS_PRIVATE. * * Steps: * 1. Initialize a pthread_mutexattr_t object with pthread_mutexattr_init() * 2. Call pthread_mutexattr_getpshared() to check if the process-shared * attribu...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/3-1.c
1,297
utf_8
3c459d68ef4d172134b8f0d1d9fb2d87
/* * source tree. * Test that pthread_mutexattr_setpshared() * * It MAY fail if: * * [EINVAL] - 'attr' is invalid. * * Steps: * * 1. Pass to pthread_mutexattr_setpshared() an uninitialized attributes object. * 2. It may return the value of EINVAL. * */ #include <pthread.h> #include <stdio.h> #include <errn...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/1-1.c
2,552
utf_8
382aa034e5138e6da04bef943bd97e53
/* * source tree. * Test that pthread_mutexattr_setpshared() * * It shall set the process-shared attribute in an initialized attributes object 'attr'. * The process-shared attribute is set to PTHREAD_PROCESS_SHARED to permit a mutex to be * operated upon by any thread that has access to the memory where the mute...
google
android
2-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/2-2.c
1,261
utf_8
f753c7c6e784a4d1d3994dbd9628235b
/* * source tree. * Test that pthread_mutexattr_setpshared() * * Upon success, it returns 0. * * Steps: * * 1. Initialized a mutexattr object. * 2. Set the attributes object to PTHREAD_PROCESS_SHARED. The error return code should be 0. * */ #include <pthread.h> #include <stdio.h> #include "posixtest.h" int m...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime/2-1.c
5,847
utf_8
4a9887d744a2005c0aa9817c13ccb206
/* * source tree. * * * Modified by the E or O indicate that an alternative format or * specification should be used rather than the one normally used by the * unmodified conversion specifier (1-1.c). */ #include <stdio.h> #include <stdlib.h> #include <locale.h> #include <langinfo.h> #include <time.h> #include "...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime/3-1.c
802
utf_8
9d40a414944b9c47472f0a3463e20593
/* * source tree. * * * strftime shall return the number of bytes placed into the array. * Otherwise, it should return 0. */ #include <time.h> #include <stdio.h> #include "posixtest.h" int main(void) { struct tm *tm_ptr; time_t the_time; char buf[256]; int result; (void)time(&the_time); tm_ptr = localtime(&...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime/1-1.c
9,862
utf_8
1698282c9fadb515b23647c8798b574a
/* * source tree. * * * This test case will cover all the conversion specifiers that are supported * in strftime(). */ #include <stdio.h> #include <stdlib.h> #include <locale.h> #include <langinfo.h> #include <time.h> #include "posixtest.h" int main(void) { /* current time */ time_t t = time(NULL); struct tm *...
google
android
4-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/4-3.c
1,539
utf_8
0eab6058ab244de201d0218222e83ce2
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Author: Peter W. Morreale <pmorreale AT novell DOT com> * * Date: 31/05/2011 * * Test assertion 4 - EBUSY is returned for re-initializing a * condition variable. Note the 0 (zero) may be returned */ #include <...
google
android
2-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/2-1.c
617
utf_8
f1c800ccb1a8170244ed4ed07dc37f43
/* * source tree. * Test that the macro PTHREAD_COND_INITIALIZER can be used to intiailize * condition variables that are statically allocated. * */ #include <pthread.h> #include <stdio.h> #include "posixtest.h" static pthread_cond_t cond PTS_ATTRIBUTE_UNUSED = PTHREAD_COND_INITIALIZER; int main(void) { printf("T...
google
android
3-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/3-1.c
1,128
utf_8
058504b5b87769b4f2e62f20d3035d99
/* * source tree. * Test that pthread_cond_init() * Upon succesful completion, it shall return a 0 * */ #include <pthread.h> #include <stdio.h> #include <string.h> #include <errno.h> #include "posixtest.h" #define ERR_MSG(f, rc) printf("Failed: func: %s rc: %s (%u)\n", \ f, strerror(rc), rc) int main(void) {...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/1-1.c
1,581
utf_8
b6e538f5dc1533e808f3a35d0a85858d
/* * source tree. * Test that pthread_cond_init() * shall initialize the condition variable referenced by cond with attributes * referenced by attr. If attr is NULL, the default condition variable * attributes shall be used; the effect is the same as passing the address * of a default condition variable a...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/4-1.c
3,331
utf_8
e251002fa69a14d69d6e5deef41f370d
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * * This sample test aims to check the following assertion: * The function fails and returns ENOMEM if there is not enough memory. * * The steps are: * * Fork * * New process sets its memory resource limit to a minimum value, then * -> Alloca...
google
android
17-6
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-6.c
3,468
utf_8
1486fefa2cd784ce6ac0c31eb0973cf2
/* * * * Test that the policy and scheduling parameters 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 sched_setscheduler(). * * Atempt to change the policy of the proce...
google
android
17-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-2.c
2,432
utf_8
ac42c32ad5790ed659c36de6ffd3cf8b
/* * * * Test that the policy and scheduling parameters remain unchanged when the * sched_ss_low_priority member is not within the inclusive priority range for * the sporadic server policy. * * Steps: * 1. Get the old policy and priority. * 2. Call sched_setscheduler with invalid args. * 3. Check that t...
google
android
22-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/22-2.c
2,602
utf_8
47163dff196b0302f984668fc9d3ef19
/* * * 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
21-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/21-1.c
1,860
utf_8
08b17bdf9c4f94eecd377ffa8952048f
/* * * * Test that sched_setscheduler() 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_setscheduler with the pid of defunct child. */ #include <sched.h> #include <stdio.h> #include <errno.h> #...
google
android
17-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-3.c
2,431
utf_8
bc8ea01755c4c504e5c382079cf93ef2
/* * * * Test that the policy and scheduling parameters remain unchanged when the * sched_ss_repl_period is not greater than or equal to the * sched_ss_init_budget member. * * Steps: * 1. Get the old policy and priority. * 2. Call sched_setscheduler with invalid args. * 3. Check that the policy and prio...
google
android
20-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/20-1.c
2,354
utf_8
207ba06e050119db918b328469d836bf
/* * * * Test that sched_setscheduler() 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 * sched_setscheduler(). * * Atempt to change the policy of the process whose ID i...
google
android
22-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/22-1.c
2,511
utf_8
081707d83892236d17f9a56be60c818a
/* * * 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
16-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/16-1.c
1,573
utf_8
7b04a44b930e246ae8333854c92179ce
/* * * * Test that the function return the former scheduling policy of the specified * process upon successful completion. * * Steps: * 1. Get the old policy. * 2. Set a new policy. * 3. Check that sched_setscheduler return the old policy. */ #include <sched.h> #include <stdio.h> #include <errno.h> #inc...
google
android
17-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-1.c
2,971
utf_8
68cab2fe4804c744d8b99c6d264f6845
/* * * * Test that the policy and scheduling parameters remain unchanged when the * sched_priority member is not within the inclusive priority range for the * scheduling policy. * * Test is done for all policy defined in the spec into a loop. * Steps (into loop): * 1. Get the old policy and priority. * 2....
google
android
17-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-4.c
2,425
utf_8
f4beba328030a9e64ff8a4a7e0d32fae
/* * * * Test that the policy and scheduling parameters remain unchanged when * the sched_ss_max_repl is not within the inclusive range [1,SS_REPL_MAX] * * Test with a sched_ss_max_repl value of 0. * Steps: * 1. Get the old policy and priority. * 2. Call sched_setscheduler with invalid args. * 3. Check ...
google
android
19-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-1.c
2,225
utf_8
c0724d29b9420f52dcc16c872faab52b
/* * * * Test that sched_setscheduler() sets errno == EINVAL when the sched_priority * member is not within the inclusive priority range for the scheduling policy. * * Test is done for all policy defined in the spec into a loop. */ #include <errno.h> #include <sched.h> #include <stdio.h> #include <unistd.h> #inc...
google
android
17-7
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-7.c
2,943
utf_8
0a0396e78948505f8a38ae4b51988c5b
/* * * * Test that the policy and scheduling parameters remain unchanged when no * process can be found corresponding to that specified by pid. * * The test create a child process which exit immediately and call * sched_setscheduler with the pid of defunct child. * Steps: * 1. Get the old policy and priority...
google
android
15-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/15-2.c
2,587
utf_8
35f4e697368666838333ecd09c64e7a2
/* * * 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
19-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-5.c
2,159
utf_8
c4a051cf14cb7a709ba9091e065accea
/* * * * Test that sched_setscheduler() sets errno == EINVAL when the policy value is * not defined in the sched.h header. * * Assume that the header does not defined a scheduling policy with a value * of -1. (It is more coherent with the specificationS of sched_getscheduler * and sched_setscheduler for which t...
google
android
17-5
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/17-5.c
2,333
utf_8
58c7af27d5c16167efa4bc8f23b1d268
/* * * * Test that the policy and scheduling parameters remain unchanged when the * policy value is not defined in the sched.h header. * * The test attempt to set the policy to a very improbable value. * Steps: * 1. Get the old policy and priority. * 2. Call sched_setscheduler with invalid args. * 3. Ch...
google
android
19-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-4.c
2,510
utf_8
efa4c244ed895ef43d7e019bb72be688
/* */ #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; int result_code = PTS_PASS; struct sched_param param; if (sched_getparam(0, &param) == -1) { perror("A...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/1-1.c
2,601
utf_8
498a4ef48b5e4300dc18f2820babd18a
/* * * * Test that sched_setscheduler() sets the scheduling policy and scheduling * parameters of the process specified by pid to policy and the parameters * specified in the sched_param structure pointed to by param, respectively. * * For all policy describe in the spec, the test will check the policy and the ...
google
android
15-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/15-1.c
2,357
utf_8
828f31689df98d46247c6f925e54a97e
/* * * Test that the underlying kernel-scheduled entities for the process * contention scope threads have their scheduling policy 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 *runne...
google
android
19-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-3.c
1,819
utf_8
118d902485cb61ea6b24b355c922bca3
/* */ #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
19-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/19-2.c
1,701
utf_8
813ab325b532ba11c7a711925e0b5630
/* */ #include <errno.h> #include <sched.h> #include <stdio.h> #include "posixtest.h" #if defined(_POSIX_SPORADIC_SERVER)&&(_POSIX_SPORADIC_SERVER != -1) int main(void) { int invalid_priority, result; struct sched_param param; invalid_priority = sched_get_priority_max(SCHED_SPORADIC); if (invalid_priority == -1) {...
google
android
4-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/4-1.c
2,475
utf_8
0856e3138bd83c34c415e24fcc4d6474
/* * * * 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; int old_policy, new_policy,...
google
android
1-2
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/1-2.c
1,469
utf_8
c3416b98fa1f8cb2d7a5e7296aaac5a6
/* * source tree. * * Test that sigdelset() will remove signo to the set signal set. * Test steps: * 1) Initialize an empty or full signal set. * 2) Add the SIGALRM signal to the empty signal set. * 3) Verify that SIGALRM is a member of the signal set. * 4) Remove the SIGALRM signal from the signal set. * ...
google
android
1-3
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/1-3.c
1,153
utf_8
7129d88933f3f873bd9fa30f211baf4c
/* * source tree. Test the error condition of calling sigdelset() to delete a signal not there. Test steps: 1) Initialize an empty signal set. 2) Verify the SIGCHLD signal is not in the empty signal set. 3) Attempt to remove the SIGCHLD signal from the signal set. 4) Verify the SIGCHLD signal ...
google
android
1-1
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/1-1.c
1,471
utf_8
2eaef1f56deafb1ab3268f789ff105bc
/* * source tree. * * Test that sigdelset() will remove signo to the set signal set. * Test steps: * 1) Initialize an empty or full signal set. * 2) Add the SIGALRM signal to the empty signal set. * 3) Verify that SIGALRM is a member of the signal set. * 4) Remove the SIGALRM signal from the signal set. * ...
google
android
1-4
.c
platform/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/1-4.c
1,250
utf_8
26078e6ec3900286fe4da5575a6e5581
/* Test the error condition of calling sigdelset() twice for the same signo. Test steps: 1) Initialize an empty signal set. 2) Add the SIGALRM signal to the empty signal set and verify. 3) Remove the SIGALRM signal from the signal set and verify removed. 4) Attempt to remove again and verify si...