Searched refs:rc (Results 1 - 25 of 29) sorted by relevance

12

/bionic/libc/bionic/
H A Dclose.cpp35 int rc = ___close(fd); local
36 if (rc == -1 && errno == EINTR) {
55 return rc;
H A Dsched_getcpu.cpp36 int rc = __getcpu(&cpu, NULL, NULL); local
37 if (rc == -1) {
H A Dsched_getaffinity.cpp36 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 Dstatvfs.cpp52 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 Ddl_iterate_phdr_static.cpp57 int rc = cb(&exe_info, sizeof(exe_info), data); local
58 if (rc != 0) {
59 return rc;
66 return rc;
H A Dgetcwd.cpp61 int rc = __getcwd(buf, allocated_size); local
62 if (rc == -1) {
H A Dtmpfile.cpp66 int rc = fstat(fd, &sb); local
67 if (rc == -1) {
H A Dnetinet_in.cpp64 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin))); local
65 if (rc >= 0) return rc;
H A Dlibgen.cpp162 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 Dmmap.cpp66 int rc = madvise(result, size, MADV_MERGEABLE); local
67 if (rc == -1 && errno == EINVAL) {
H A Dposix_timers.cpp155 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 Dnet_if.cpp55 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 Ddirent.cpp101 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 Dndk_cruft.cpp205 int rc = vdprintf(fd, fmt, ap); local
207 return rc;
H A Dpthread_create.cpp312 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.cpp63 int rc = __set_thread_area(&tls_descriptor); local
64 if (rc != -1) {
72 return rc;
/bionic/tests/
H A Dsys_sendfile_test.cpp34 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 Dlibgen_test.cpp46 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 Dsys_ptrace_test.cpp447 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 Dunistd_test.cpp671 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 Dfcntl_test.cpp43 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 Dstdio_test.cpp112 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 Dcontexts_split.cpp155 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 Dsystem_properties.cpp334 int rc; local
335 if ((rc = __futex_wait(serial_ptr, old_serial, relative_timeout)) != 0 && rc == -ETIMEDOUT) {
/bionic/linker/
H A Dlinker_phdr.cpp191 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));

Completed in 229 milliseconds

12