/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
8-1.c | 33 int rc; local 38 rc = munmap(pa, 1); 39 if (rc == -1 && errno == EINVAL) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/ |
3-1.c | 29 int rc; local 34 rc = pthread_barrier_init(&barrier, NULL, COUNT); 36 if (rc != EINVAL) { 39 " return code %d, %s\n", rc, strerror(rc));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/ |
1-1.c | 26 int rc; local 31 rc = pthread_barrierattr_init(&ba); 32 if (rc != 0) { 50 rc = pthread_barrierattr_destroy(&ba); 51 if (rc != 0) { 53 "return code: %d, %s", rc, strerror(rc));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/ |
1-1.c | 27 int rc; local 32 rc = pthread_barrierattr_init(&ba); 33 if (rc != 0) { 54 rc = pthread_barrierattr_destroy(&ba); 55 if (rc != 0) { 57 "return code: %d, %s", rc, strerror(rc));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_setpshared/ |
1-1.c | 34 int rc; local 43 rc = pthread_barrierattr_setpshared(&ba, pshared); 44 if (rc != 0) { 62 rc = pthread_barrierattr_setpshared(&ba, pshared2); 63 if (rc != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/ |
4-3.c | 33 #define ERR_MSG(f, rc) printf("Failed: function: %s status: %s(%u)\n", \ 34 f, strerror(rc), rc) 40 int rc; local 44 rc = pthread_cond_init(&cond, NULL); 45 if (rc) { 46 ERR_MSG("pthread_cond_init()", rc); 50 rc = pthread_cond_init(&cond, NULL); 51 if (rc && rc != EBUSY) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getclock/ |
1-1.c | 28 int rc; local 31 if ((rc = pthread_condattr_init(&condattr)) != 0) { 32 fprintf(stderr, "Error at pthread_condattr_init(), rc=%d\n", 33 rc); 38 rc = pthread_condattr_getclock(&condattr, &clockid); 39 if (rc != 0) {
|
1-2.c | 29 int rc; local 32 if ((rc = pthread_condattr_init(&condattr)) != 0) { 33 fprintf(stderr, "Error at pthread_condattr_init(), rc=%d\n", 34 rc); 39 rc = pthread_condattr_setclock(&condattr, CLOCK_REALTIME); 40 if (rc != 0) { 45 rc = pthread_condattr_getclock(&condattr, &clockid); 46 if (rc != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/ |
1-2.c | 33 int rc; local 36 rc = clock_getres(CLOCK_MONOTONIC, &ts); 37 if (rc != 0) { 43 if ((rc = pthread_condattr_init(&condattr)) != 0) { 44 fprintf(stderr, "Error at pthread_condattr_init(), rc=%d\n", 45 rc); 50 rc = pthread_condattr_setclock(&condattr, CLOCK_MONOTONIC); 51 if (rc != 0) {
|
2-1.c | 35 int rc; local 38 if ((rc = pthread_condattr_init(&condattr)) != 0) { 39 fprintf(stderr, "Error at pthread_condattr_init(), rc=%d\n", 40 rc); 45 rc = pthread_condattr_setclock(&condattr, INVALID_CLOCKID); 46 if (rc != EINVAL) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
6-1.c | 38 int rc; local 40 rc = pthread_create(&child_thread, NULL, thread_function, NULL); 41 if (rc != 0) { 46 rc = pthread_join(child_thread, NULL); 47 if (rc != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/ |
1-1.c | 27 int rc; local 30 if ((rc = pthread_mutexattr_init(&mta)) != 0) { 31 fprintf(stderr, "Error at pthread_mutexattr_init(), rc=%d\n", 32 rc); 37 if ((rc = pthread_mutex_init(&mutex1, &mta)) != 0) { 38 fprintf(stderr, "Fail to initialize mutex1, rc=%d\n", rc); 44 if ((rc = pthread_mutex_init(&mutex2, NULL)) != 0) { 45 fprintf(stderr, "Fail to initialize mutex2, rc=%d\n", rc); [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
1-1.c | 26 int rc = 0; local 40 rc = pthread_rwlockattr_getpshared(&rwla, &pshared); 41 if (rc != 0) { 44 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_init/ |
1-1.c | 27 int rc; local 33 rc = pthread_rwlockattr_init(&rwa); 34 if (rc != 0) { 36 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_setpshared/ |
1-1.c | 28 int rc = 0; local 41 rc = pthread_rwlockattr_setpshared(&rwla, PTHREAD_PROCESS_PRIVATE); 42 if (rc != 0) { 45 rc); 61 rc = pthread_rwlockattr_setpshared(&rwla, PTHREAD_PROCESS_SHARED); 62 if (rc != 0) { 65 rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
1-1.c | 34 int rc = 0; local 43 rc = pthread_spin_init(&spinlock, pshared); 44 if (rc != 0) { 45 printf("Test FAILED: Error at pthread_spin_init(): %d\n", rc); 65 rc = pthread_spin_destroy(&spinlock); 66 if (rc != 0) { 67 printf("Error at pthread_spin_destroy(): %d\n", rc);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/ |
9-1.c | 41 int rc; local 54 rc = sigaltstack(&a, NULL); 55 if (rc) { 56 printf("Failed: sigaltstack() rc: %d errno: %s\n", 57 rc, strerror(errno)); 80 rc = sigaltstack(NULL, &a); 81 if (rc || a.ss_flags != SS_DISABLE) { 82 printf("Failed: sigaltstack() rc: %d ss_flags: %u\n", 83 rc, a.ss_flags);
|
/external/selinux/libsepol/cil/test/unit/ |
test_cil_parser.c | 41 int rc = 0; local 52 rc = cil_parser("policy.cil", data->buffer, data->file_size + 2, &test_parse_root); 53 CuAssertIntEquals(tc, SEPOL_OK, rc);
|
test_cil_tree.c | 57 int rc = cil_tree_init(&test_tree); local 59 CuAssertIntEquals(tc, SEPOL_OK, rc);
|
/external/strace/linux/aarch64/ |
set_scno.c | 17 int rc = ptrace(PTRACE_SETREGSET, tcp->pid, NT_ARM_SYSTEM_CALL, &io); local 18 if (rc && errno != ESRCH) 21 return rc;
|
/external/strace/tests/ |
fchownat.c | 49 long rc = syscall(__NR_fchownat, AT_FDCWD, sample, uid, gid, 0); local 51 sample, uid, gid, sprintrc(rc)); 56 rc = syscall(__NR_fchownat, AT_FDCWD, 59 sample, sprintrc(rc));
|
membarrier.c | 50 int rc = syscall(__NR_membarrier, 0, 0); local 52 assert(rc >= 0); 54 text_global = rc & 1 ? "MEMBARRIER_CMD_GLOBAL" : ""; 56 switch (rc & ~1) { 86 " the test have to be updated?", rc); 89 rc, text_global, text[0] && text_global[0] ? "|" : "",
|
netlink_audit.c | 39 long rc; local 46 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); 50 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
|
netlink_netfilter.c | 42 long rc; local 50 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); 54 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); 58 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); 63 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); 66 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0); 70 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
|
nfnetlink_ipset.c | 42 long rc; local 49 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); 54 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc)); 57 rc = sendto(fd, &nlh, nlh.nlmsg_len, MSG_DONTWAIT, NULL, 0); 62 fd, nlh.nlmsg_len, nlh.nlmsg_len, sprintrc(rc));
|