/bionic/libc/include/ |
D | dlfcn.h | 71 #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)
|
D | assert.h | 49 #define __assert_no_op __BIONIC_CAST(static_cast, void, 0)
|
D | semaphore.h | 46 #define SEM_FAILED __BIONIC_CAST(reinterpret_cast, sem_t*, 0)
|
D | locale.h | 107 #define LC_GLOBAL_LOCALE __BIONIC_CAST(reinterpret_cast, locale_t, -1L)
|
D | signal.h | 49 #define SIG_HOLD __BIONIC_CAST(reinterpret_cast, sighandler_t, 2)
|
/bionic/libc/include/bits/ |
D | threads_inlines.h | 130 *__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()
|
D | termios_inlines.h | 49 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()
|
D | swab.h | 42 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()
|
D | sys_statvfs_inlines.h | 52 __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()
|
D | ctype_inlines.h | 87 return (__BIONIC_CAST(static_cast, unsigned, __ch) < ' ') || __ch == 0x7f; in iscntrl() 168 return __BIONIC_CAST(static_cast, unsigned, __ch) < 0x80; in isascii()
|
D | wctype.h | 38 #define WEOF __BIONIC_CAST(static_cast, wint_t, -1)
|
/bionic/libc/include/sys/ |
D | endian.h | 48 #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)))
|
D | socket.h | 116 __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()
|
D | mman.h | 43 #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
|
D | select.h | 63 #define __FDS_BITS(type,set) (__BIONIC_CAST(static_cast, type, set)->fds_bits)
|
D | cdefs.h | 58 #define __BIONIC_CAST(_k,_t,_v) (_k<_t>(_v)) macro 60 #define __BIONIC_CAST(_k,_t,_v) ((_t) (_v)) macro
|
/bionic/libc/include/android/ |
D | legacy_sys_wait_inlines.h | 42 return __BIONIC_CAST(static_cast, pid_t, syscall(__NR_wait4, pid, status, options, rusage)); in wait4()
|
D | legacy_stdlib_inlines.h | 68 return __BIONIC_CAST(static_cast, float, d); in strtof()
|
/bionic/libc/stdio/ |
D | local.h | 170 #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/ |
D | in6.h | 59 #define __bionic_s6_addr(a) __BIONIC_CAST(reinterpret_cast, const uint8_t*, a)
|
/bionic/libc/include/bits/fortify/ |
D | poll.h | 40 (fd_count) <= __BIONIC_CAST(static_cast, nfds_t, -1) / sizeof(*fds))
|