Searched refs:rc (Results 1 - 25 of 30) 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 Draise.cpp34 int rc = pthread_kill(pthread_self(), sig); local
35 if (rc != 0) {
36 errno = 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 Dpthread_getschedparam.cpp42 int rc = sched_getparam(thread->tid, param); local
43 if (rc == -1) {
H A Dpthread_setschedparam.cpp42 int rc = sched_setscheduler(thread->tid, policy, param); local
43 if (rc == -1) {
H A Dnetinet_in.cpp63 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin))); local
64 if (rc >= 0) return rc;
H A Ddl_iterate_phdr_static.cpp58 int rc = cb(&exe_info, sizeof(exe_info), data); local
59 if (rc != 0) {
60 return rc;
67 return rc;
H A Dgetcwd.cpp62 int rc = __getcwd(buf, allocated_size); local
63 if (rc == -1) {
H A Dposix_timers.cpp84 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 Dlibgen.cpp165 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 Dmmap.cpp66 int rc = madvise(result, size, MADV_MERGEABLE); local
67 if (rc == -1 && errno == EINVAL) {
H A Dtmpfile.cpp81 int rc = fstat(fd, &sb); local
82 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.cpp96 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 Dndk_cruft.cpp202 int rc = vdprintf(fd, fmt, ap); local
204 return rc;
H A Dpthread_create.cpp257 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.c64 int rc = __set_thread_area(&tls_descriptor); local
65 if (rc != -1) {
73 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 Dunistd_test.cpp522 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 Dfcntl_test.cpp32 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 Dstdio_test.cpp65 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 Ddebugger.cpp105 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) {

Completed in 179 milliseconds

12