Home
last modified time | relevance | path

Searched refs:__BIONIC_CAST (Results 1 – 21 of 21) sorted by relevance

/bionic/libc/include/
Ddlfcn.h71 #define RTLD_DEFAULT __BIONIC_CAST(reinterpret_cast, void*, 0)
72 #define RTLD_NEXT __BIONIC_CAST(reinterpret_cast, void*, -1L)
74 #define RTLD_DEFAULT __BIONIC_CAST(reinterpret_cast, void*, 0xffffffff)
75 #define RTLD_NEXT __BIONIC_CAST(reinterpret_cast, void*, 0xfffffffe)
Dassert.h49 #define __assert_no_op __BIONIC_CAST(static_cast, void, 0)
Dsemaphore.h46 #define SEM_FAILED __BIONIC_CAST(reinterpret_cast, sem_t*, 0)
Dlocale.h107 #define LC_GLOBAL_LOCALE __BIONIC_CAST(reinterpret_cast, locale_t, -1L)
Dsignal.h49 #define SIG_HOLD __BIONIC_CAST(reinterpret_cast, sighandler_t, 2)
/bionic/libc/include/bits/
Dthreads_inlines.h130 *__BIONIC_CAST(static_cast, struct __bionic_thrd_data*, __arg); in __bionic_thrd_trampoline()
133 return __BIONIC_CAST(reinterpret_cast, void*, in __bionic_thrd_trampoline()
134 __BIONIC_CAST(static_cast, uintptr_t, __result)); in __bionic_thrd_trampoline()
141 __BIONIC_CAST(static_cast, struct __bionic_thrd_data*, in thrd_create()
165 pthread_exit(__BIONIC_CAST(reinterpret_cast, void*, in thrd_exit()
166 __BIONIC_CAST(static_cast, uintptr_t, __result))); in thrd_exit()
173 *__result = __BIONIC_CAST(reinterpret_cast, intptr_t, __pthread_result); in thrd_join()
Dtermios_inlines.h49 return __BIONIC_CAST(static_cast, speed_t, s->c_cflag & CBAUD); in cfgetspeed()
91 return ioctl(fd, TCSBRK, __BIONIC_CAST(static_cast, unsigned long, 1)); in tcdrain()
95 return ioctl(fd, TCXONC, __BIONIC_CAST(static_cast, unsigned long, action)); in tcflow()
99 return ioctl(fd, TCFLSH, __BIONIC_CAST(static_cast, unsigned long, queue)); in tcflush()
112 return ioctl(fd, TCSBRKP, __BIONIC_CAST(static_cast, unsigned long, duration)); in tcsendbreak()
Dswab.h42 const uint8_t* __src = __BIONIC_CAST(static_cast, const uint8_t*, __void_src); in swab()
43 uint8_t* __dst = __BIONIC_CAST(static_cast, uint8_t*, __void_dst); in swab()
Dsys_statvfs_inlines.h52 __BIONIC_CAST(static_cast, uint64_t, __src->f_fsid.__val[1]) << 32; in __bionic_statfs_to_statvfs()
81 return statvfs(__path, __BIONIC_CAST(reinterpret_cast, struct statvfs*, in statvfs64()
87 return fstatvfs(__fd, __BIONIC_CAST(reinterpret_cast, struct statvfs*, in fstatvfs64()
Dctype_inlines.h87 return (__BIONIC_CAST(static_cast, unsigned, __ch) < ' ') || __ch == 0x7f; in iscntrl()
168 return __BIONIC_CAST(static_cast, unsigned, __ch) < 0x80; in isascii()
Dwctype.h38 #define WEOF __BIONIC_CAST(static_cast, wint_t, -1)
/bionic/libc/include/sys/
Dendian.h48 #define __swap64(x) __BIONIC_CAST(static_cast,uint64_t,__builtin_bswap64(x))
73 #define NTOHL(x) (x) = ntohl(__BIONIC_CAST(static_cast,u_int32_t,(x)))
74 #define NTOHS(x) (x) = ntohs(__BIONIC_CAST(static_cast,u_int16_t,(x)))
75 #define HTONL(x) (x) = htonl(__BIONIC_CAST(static_cast,u_int32_t,(x)))
76 #define HTONS(x) (x) = htons(__BIONIC_CAST(static_cast,u_int16_t,(x)))
Dsocket.h116 __BIONIC_CAST(reinterpret_cast, struct cmsghdr*, in __cmsg_nxthdr()
117 (__BIONIC_CAST(reinterpret_cast, char*, cmsg) + CMSG_ALIGN(cmsg->cmsg_len))); in __cmsg_nxthdr()
118 size_t len = __BIONIC_CAST(reinterpret_cast, char*, ptr + 1) - in __cmsg_nxthdr()
119 __BIONIC_CAST(reinterpret_cast, char*, msg->msg_control); in __cmsg_nxthdr()
Dmman.h43 #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
Dselect.h63 #define __FDS_BITS(type,set) (__BIONIC_CAST(static_cast, type, set)->fds_bits)
Dcdefs.h58 #define __BIONIC_CAST(_k,_t,_v) (_k<_t>(_v)) macro
60 #define __BIONIC_CAST(_k,_t,_v) ((_t) (_v)) macro
/bionic/libc/include/android/
Dlegacy_sys_wait_inlines.h42 return __BIONIC_CAST(static_cast, pid_t, syscall(__NR_wait4, pid, status, options, rusage)); in wait4()
Dlegacy_stdlib_inlines.h68 return __BIONIC_CAST(static_cast, float, d); in strtof()
/bionic/libc/stdio/
Dlocal.h170 #define _EXT(fp) __BIONIC_CAST(reinterpret_cast, struct __sfileext*, (fp)->_ext._base)
177 (fp)->_ext._base = __BIONIC_CAST(reinterpret_cast, unsigned char*, fext); \
/bionic/libc/include/netinet/
Din6.h59 #define __bionic_s6_addr(a) __BIONIC_CAST(reinterpret_cast, const uint8_t*, a)
/bionic/libc/include/bits/fortify/
Dpoll.h40 (fd_count) <= __BIONIC_CAST(static_cast, nfds_t, -1) / sizeof(*fds))