/bionic/libc/bionic/ |
D | pipe.cpp | 36 int rc = __pipe2(pipefd, 0); in pipe() local 37 if (rc == 0) { in pipe() 41 return rc; in pipe() 45 int rc = __pipe2(pipefd, flags); in pipe2() local 46 if (rc == 0) { in pipe2() 50 return rc; in pipe2()
|
D | recvmsg.cpp | 69 ssize_t rc = __recvmsg(__fd, __msg, __flags); in recvmsg() local 70 if (rc == -1) { in recvmsg() 74 return rc; in recvmsg() 79 int rc = __recvmmsg(__fd, __msgs, __msg_count, __flags, __timeout); in recvmmsg() local 80 if (rc == -1) { in recvmmsg() 83 for (int i = 0; i < rc; ++i) { in recvmmsg() 86 return rc; in recvmmsg()
|
D | sys_statfs.cpp | 38 int rc = __fstatfs64(fd, sizeof(*result), result); in fstatfs() local 39 if (rc != 0) { in fstatfs() 40 return rc; in fstatfs() 48 int rc = __statfs64(path, sizeof(*result), result); in statfs() local 49 if (rc != 0) { in statfs() 50 return rc; in statfs()
|
D | sched_getaffinity.cpp | 36 int rc = __sched_getaffinity(pid, set_size, set); in sched_getaffinity() local 37 if (rc == -1) { in sched_getaffinity() 43 memset(reinterpret_cast<char*>(set) + rc, 0, set_size - rc); in sched_getaffinity()
|
D | fcntl.cpp | 47 int rc = __fcntl(fd, cmd, arg); in fcntl() local 49 return FDTRACK_CREATE_NAME("F_DUPFD", rc); in fcntl() 51 return FDTRACK_CREATE_NAME("F_DUPFD_CLOEXEC", rc); in fcntl() 53 return rc; in fcntl()
|
D | socketpair.cpp | 37 int rc = __socketpair(domain, type, protocol, sv); in socketpair() local 38 if (rc == 0) { in socketpair() 42 return rc; in socketpair()
|
D | dl_iterate_phdr_static.cpp | 76 int rc = cb(&exe_info, sizeof(exe_info), data); in dl_iterate_phdr() local 77 if (rc != 0) { in dl_iterate_phdr() 78 return rc; in dl_iterate_phdr() 85 return rc; in dl_iterate_phdr()
|
D | netinet_in.cpp | 64 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin))); in bindresvport() local 65 if (rc >= 0) return rc; in bindresvport()
|
D | posix_timers.cpp | 155 int rc = pthread_create(&timer->callback_thread, &thread_attributes, __timer_thread_start, timer); in timer_create() local 159 if (rc != 0) { in timer_create() 161 errno = rc; in timer_create() 186 int rc = __timer_delete(to_kernel_timer_id(id)); in timer_delete() local 187 if (rc == -1) { in timer_delete()
|
D | dirent.cpp | 109 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); in __fill_DIR() local 110 if (rc <= 0) { in __fill_DIR() 113 d->available_bytes_ = rc; in __fill_DIR() 170 int rc = android_fdsan_close_with_tag(fd, __get_dir_tag(d)); in closedir() local 172 return rc; in closedir()
|
D | libgen.cpp | 162 int rc = __basename_r(path, buf, sizeof(__get_bionic_tls().basename_buf)); in basename() local 163 return (rc < 0) ? nullptr : buf; in basename() 168 int rc = __dirname_r(path, buf, sizeof(__get_bionic_tls().dirname_buf)); in dirname() local 169 return (rc < 0) ? nullptr : buf; in dirname()
|
D | fdsan.cpp | 286 int rc = __close(fd); in android_fdsan_close_with_tag() local 288 if (expected_tag && rc == -1 && errno == EBADF) { in android_fdsan_close_with_tag() 291 return rc; in android_fdsan_close_with_tag() 390 int rc = android_fdsan_close_with_tag(fd, 0); in close() local 391 if (rc == -1 && errno == EINTR) { in close() 394 return rc; in close()
|
D | sched_getcpu.cpp | 36 int rc = __getcpu(&cpu, nullptr, nullptr); in sched_getcpu() local 37 if (rc == -1) { in sched_getcpu()
|
D | getcwd.cpp | 59 int rc = __getcwd(buf, allocated_size); in getcwd() local 60 if (rc == -1) { in getcwd()
|
D | mmap.cpp | 66 int rc = madvise(result, size, MADV_MERGEABLE); in mmap64() local 67 if (rc == -1 && errno == EINVAL) { in mmap64()
|
/bionic/tests/ |
D | libgen_test.cpp | 46 int rc = basename_r(in, buf, buf_size); in TestBasename() local 47 ASSERT_EQ(expected_rc, rc) << in; in TestBasename() 48 if (rc != -1 && buf != nullptr) { in TestBasename() 57 int rc = dirname_r(in, buf, buf_size); in TestDirname() local 58 ASSERT_EQ(expected_rc, rc) << in; in TestDirname() 59 if (rc != -1 && buf != nullptr) { in TestDirname()
|
D | sys_sendfile_test.cpp | 35 ssize_t rc = sendfile(dst_file.fd, src_file.fd, &offset, count); in TEST() local 36 ASSERT_EQ(2, rc); in TEST() 54 ssize_t rc = sendfile64(dst_file.fd, src_file.fd, &offset, count); in TEST() local 55 ASSERT_EQ(2, rc); in TEST()
|
D | fdsan_test.cpp | 200 pid_t rc = vfork(); in TEST_F() local 201 ASSERT_NE(-1, rc); in TEST_F() 203 if (rc == 0) { in TEST_F() 209 pid_t wait_result = waitpid(rc, &status, 0); in TEST_F() 210 ASSERT_EQ(wait_result, rc); in TEST_F()
|
D | sys_ptrace_test.cpp | 441 pid_t rc = TEMP_FAILURE_RETRY(waitpid(tracer, &result, 0)); in WaitForTracer() local 442 if (rc != tracer) { in WaitForTracer() 443 printf("waitpid returned %d (%s)\n", rc, strerror(errno)); in WaitForTracer() 468 pid_t rc = TEMP_FAILURE_RETRY(waitpid(worker, &result, WNOHANG)); in WaitForWorker() local 469 if (rc != 0) { in WaitForWorker() 476 rc = TEMP_FAILURE_RETRY(waitpid(worker, &result, 0)); in WaitForWorker() 477 if (rc != worker) { in WaitForWorker() 478 printf("waitpid for worker returned %d (%s)\n", rc, strerror(errno)); in WaitForWorker() 499 pid_t rc = TEMP_FAILURE_RETRY(waitpid(pid, &status, __WALL)); in wait_for_ptrace_stop() local 500 if (rc != pid) { in wait_for_ptrace_stop()
|
D | unistd_test.cpp | 447 pid_t rc = vfork(); in TEST() local 448 ASSERT_NE(-1, rc); in TEST() 449 if (rc == 0) { in TEST() 469 pid_t wait_result = waitpid(rc, &status, 0); in TEST() 470 ASSERT_EQ(wait_result, rc); in TEST() 757 long rc = 0L; in TEST() local 760 rc = pathconf(tf.path, _PC_ALLOC_SIZE_MIN); in TEST() 761 ASSERT_TRUE(rc > 0 && powerof2(rc)); in TEST() 762 rc = pathconf(tf.path, _PC_REC_MIN_XFER_SIZE); in TEST() 763 ASSERT_TRUE(rc > 0 && powerof2(rc)); in TEST() [all …]
|
D | fdtrack_test.cpp | 296 pid_t rc = vfork(); 297 ASSERT_NE(-1, rc); 299 if (rc == 0) { 305 pid_t wait_result = waitpid(rc, &status, 0); 306 ASSERT_EQ(wait_result, rc);
|
D | sys_stat_test.cpp | 109 int rc = statx(AT_FDCWD, "/proc/version", AT_STATX_SYNC_AS_STAT, STATX_ALL, &sx); in TEST() local 110 if (rc == -1 && errno == ENOSYS) { in TEST() 113 ASSERT_EQ(0, rc); in TEST()
|
/bionic/libc/arch-x86/bionic/ |
D | __set_tls.cpp | 63 int rc = __set_thread_area(&tls_descriptor); in __set_tls() local 64 if (rc != -1) { in __set_tls() 72 return rc; in __set_tls()
|
/bionic/libc/system_properties/ |
D | contexts_split.cpp | 153 int len, rc, items, entry_len = 0; in read_spec_entries() local 183 rc = read_spec_entry(spec_entry, &buf_p, &entry_len); in read_spec_entries() 184 if (rc < 0) { in read_spec_entries() 186 return rc; in read_spec_entries()
|
D | system_properties.cpp | 339 int rc; in Wait() local 340 if ((rc = __futex_wait(serial_ptr, old_serial, relative_timeout)) != 0 && rc == -ETIMEDOUT) { in Wait()
|