/bionic/libc/bionic/ |
H A D | close.cpp | 35 int rc = ___close(fd); local 36 if (rc == -1 && errno == EINTR) { 55 return rc;
|
H A D | sched_getcpu.cpp | 36 int rc = __getcpu(&cpu, NULL, NULL); local 37 if (rc == -1) {
|
H A D | sched_getaffinity.cpp | 36 int rc = __sched_getaffinity(pid, set_size, set); local 37 if (rc == -1) { 43 memset(reinterpret_cast<char*>(set) + rc, 0, set_size - rc);
|
H A D | statvfs.cpp | 52 int rc = __fstatfs64(fd, sizeof(*result), result); local 53 if (rc != 0) { 54 return rc; 62 int rc = __statfs64(path, sizeof(*result), result); local 63 if (rc != 0) { 64 return rc; 73 int rc = statfs(path, &tmp); local 74 if (rc != 0) { 75 return rc; 84 int rc local [all...] |
H A D | dl_iterate_phdr_static.cpp | 57 int rc = cb(&exe_info, sizeof(exe_info), data); local 58 if (rc != 0) { 59 return rc; 66 return rc;
|
H A D | getcwd.cpp | 61 int rc = __getcwd(buf, allocated_size); local 62 if (rc == -1) {
|
H A D | tmpfile.cpp | 66 int rc = fstat(fd, &sb); local 67 if (rc == -1) {
|
H A D | netinet_in.cpp | 64 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin))); local 65 if (rc >= 0) return rc;
|
H A D | libgen.cpp | 162 int rc = __basename_r(path, buf, sizeof(__get_bionic_tls().basename_buf)); local 163 return (rc < 0) ? NULL : buf; 168 int rc = __dirname_r(path, buf, sizeof(__get_bionic_tls().dirname_buf)); local 169 return (rc < 0) ? NULL : buf;
|
H A D | mmap.cpp | 66 int rc = madvise(result, size, MADV_MERGEABLE); local 67 if (rc == -1 && errno == EINVAL) {
|
H A D | posix_timers.cpp | 155 int rc = pthread_create(&timer->callback_thread, &thread_attributes, __timer_thread_start, timer); local 159 if (rc != 0) { 161 errno = rc; 186 int rc = __timer_delete(to_kernel_timer_id(id)); local 187 if (rc == -1) {
|
H A D | net_if.cpp | 55 int rc = ioctl(s, SIOCGIFNAME, &ifr); local 58 return (rc == -1) ? nullptr : strncpy(ifname, ifr.ifr_name, IFNAMSIZ); 70 int rc = ioctl(s, SIOCGIFINDEX, &ifr); local 73 return (rc == -1) ? 0 : ifr.ifr_ifindex;
|
H A D | dirent.cpp | 101 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); local 102 if (rc <= 0) { 105 d->available_bytes_ = rc;
|
H A D | ndk_cruft.cpp | 205 int rc = vdprintf(fd, fmt, ap); local 207 return rc;
|
H A D | pthread_create.cpp | 312 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid)); local 313 if (rc == -1) {
|
/bionic/libc/arch-x86/bionic/ |
H A D | __set_tls.cpp | 63 int rc = __set_thread_area(&tls_descriptor); local 64 if (rc != -1) { 72 return rc;
|
/bionic/tests/ |
H A D | sys_sendfile_test.cpp | 34 ssize_t rc = sendfile(dst_file.fd, src_file.fd, &offset, count); local 35 ASSERT_EQ(2, rc); 53 ssize_t rc = sendfile64(dst_file.fd, src_file.fd, &offset, count); local 54 ASSERT_EQ(2, rc);
|
H A D | libgen_test.cpp | 46 int rc = basename_r(in, buf, buf_size); local 47 ASSERT_EQ(expected_rc, rc) << in; 48 if (rc != -1 && buf != NULL) { 57 int rc = dirname_r(in, buf, buf_size); local 58 ASSERT_EQ(expected_rc, rc) << in; 59 if (rc != -1 && buf != NULL) {
|
H A D | sys_ptrace_test.cpp | 447 pid_t rc = TEMP_FAILURE_RETRY(waitpid(tracer, &result, 0)); local 448 if (rc != tracer) { 449 printf("waitpid returned %d (%s)\n", rc, strerror(errno)); 474 pid_t rc = TEMP_FAILURE_RETRY(waitpid(worker, &result, WNOHANG)); local 475 if (rc != 0) { 482 rc = TEMP_FAILURE_RETRY(waitpid(worker, &result, 0)); 483 if (rc != worker) { 484 printf("waitpid for worker returned %d (%s)\n", rc, strerror(errno)); 505 pid_t rc = TEMP_FAILURE_RETRY(waitpid(pid, &status, __WALL)); local 506 if (rc ! [all...] |
H A D | unistd_test.cpp | 671 long rc = 0L; local 674 rc = pathconf(tf.filename, _PC_ALLOC_SIZE_MIN); 675 ASSERT_TRUE(rc > 0 && powerof2(rc)); 676 rc = pathconf(tf.filename, _PC_REC_MIN_XFER_SIZE); 677 ASSERT_TRUE(rc > 0 && powerof2(rc)); 678 rc = pathconf(tf.filename, _PC_REC_XFER_ALIGN); 679 ASSERT_TRUE(rc > 0 && powerof2(rc)); [all...] |
H A D | fcntl_test.cpp | 43 int rc = fcntl(fd, F_SETFD, FD_CLOEXEC); local 44 ASSERT_EQ(0, rc); 162 int rc = fcntl(fd, F_GETLK64, &check_lock); local 163 ASSERT_EQ(0, rc);
|
H A D | stdio_test.cpp | 112 int rc = fstat(fd, &sb); local 113 ASSERT_NE(rc, -1); 116 rc = fprintf(fp, "hello\n"); 117 ASSERT_EQ(rc, 6); 132 int rc = dprintf(tf.fd, "hello\n"); local 133 ASSERT_EQ(rc, 6); 148 int rc = fprintf(fp, "%s", line_written); local 149 ASSERT_EQ(rc, static_cast<int>(strlen(line_written))); 220 int rc = fprintf(fp, "%s", line_written); local 221 ASSERT_EQ(rc, static_cas [all...] |
/bionic/libc/system_properties/ |
H A D | contexts_split.cpp | 155 int len, rc, items, entry_len = 0; local 185 rc = read_spec_entry(spec_entry, &buf_p, &entry_len); 186 if (rc < 0) { 188 return rc;
|
H A D | system_properties.cpp | 334 int rc; local 335 if ((rc = __futex_wait(serial_ptr, old_serial, relative_timeout)) != 0 && rc == -ETIMEDOUT) {
|
/bionic/linker/ |
H A D | linker_phdr.cpp | 191 ssize_t rc = TEMP_FAILURE_RETRY(pread64(fd_, &header_, sizeof(header_), file_offset_)); 192 if (rc < 0) { 197 if (rc != sizeof(header_)) { 199 static_cast<size_t>(rc));
|