/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 | raise.cpp | 34 int rc = pthread_kill(pthread_self(), sig); local 35 if (rc != 0) { 36 errno = 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 | pthread_getschedparam.cpp | 42 int rc = sched_getparam(thread->tid, param); local 43 if (rc == -1) {
|
H A D | pthread_setschedparam.cpp | 42 int rc = sched_setscheduler(thread->tid, policy, param); local 43 if (rc == -1) {
|
H A D | netinet_in.cpp | 63 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin))); local 64 if (rc >= 0) return rc;
|
H A D | dl_iterate_phdr_static.cpp | 58 int rc = cb(&exe_info, sizeof(exe_info), data); local 59 if (rc != 0) { 60 return rc; 67 return rc;
|
H A D | getcwd.cpp | 62 int rc = __getcwd(buf, allocated_size); local 63 if (rc == -1) {
|
H A D | posix_timers.cpp | 84 int rc = __rt_sigtimedwait(sigset.get(), &si, NULL, sizeof(sigset)); local 85 if (rc == -1) { 158 int rc = pthread_create(&timer->callback_thread, &thread_attributes, __timer_thread_start, timer); local 162 if (rc != 0) { 164 errno = rc; 189 int rc = __timer_delete(to_kernel_timer_id(id)); local 190 if (rc == -1) {
|
H A D | libgen.cpp | 165 int rc = __basename_r(path, buf, g_basename_tls_buffer.size()); local 166 return (rc < 0) ? NULL : buf; 171 int rc = __dirname_r(path, buf, g_dirname_tls_buffer.size()); local 172 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 | tmpfile.cpp | 81 int rc = fstat(fd, &sb); local 82 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 | 96 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); local 97 if (rc <= 0) { 100 d->available_bytes_ = rc;
|
H A D | ndk_cruft.cpp | 202 int rc = vdprintf(fd, fmt, ap); local 204 return rc;
|
H A D | pthread_create.cpp | 257 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid)); local 258 if (rc == -1) {
|
/bionic/libc/arch-x86/bionic/ |
H A D | __set_tls.c | 64 int rc = __set_thread_area(&tls_descriptor); local 65 if (rc != -1) { 73 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 | unistd_test.cpp | 522 long rc = 0L; local 525 rc = pathconf(tf.filename, _PC_ALLOC_SIZE_MIN); 526 ASSERT_TRUE(rc > 0 && powerof2(rc)); 527 rc = pathconf(tf.filename, _PC_REC_MIN_XFER_SIZE); 528 ASSERT_TRUE(rc > 0 && powerof2(rc)); 529 rc = pathconf(tf.filename, _PC_REC_XFER_ALIGN); 530 ASSERT_TRUE(rc > 0 && powerof2(rc)); [all...] |
H A D | fcntl_test.cpp | 32 int rc = fcntl(fd, F_SETFD, FD_CLOEXEC); local 33 ASSERT_EQ(0, rc); 151 int rc = fcntl(fd, F_GETLK64, &check_lock); local 152 ASSERT_EQ(0, rc);
|
H A D | stdio_test.cpp | 65 int rc = fstat(fd, &sb); local 66 ASSERT_NE(rc, -1); 69 rc = fprintf(fp, "hello\n"); 70 ASSERT_EQ(rc, 6); 91 int rc = dprintf(tf.fd, "hello\n"); local 92 ASSERT_EQ(rc, 6); 111 int rc = fprintf(fp, "%s", line_written); local 112 ASSERT_EQ(rc, static_cast<int>(strlen(line_written))); 183 int rc = fprintf(fp, "%s", line_written); local 184 ASSERT_EQ(rc, static_cas [all...] |
/bionic/linker/ |
H A D | debugger.cpp | 105 int rc = TEMP_FAILURE_RETRY(connect(s, reinterpret_cast<sockaddr*>(&addr), alen)); local 106 if (rc == -1) { 294 int rc = syscall(SYS_rt_tgsigqueueinfo, getpid(), gettid(), signal_number, info); local 295 if (rc != 0) {
|