Searched refs:__BIONIC_CAST (Results 1 – 16 of 16) sorted by relevance
/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 | 45 #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 | 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 | 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 | 121 __BIONIC_CAST(reinterpret_cast, struct cmsghdr*, in __cmsg_nxthdr() 122 (__BIONIC_CAST(reinterpret_cast, char*, cmsg) + CMSG_ALIGN(cmsg->cmsg_len))); in __cmsg_nxthdr() 123 size_t len = __BIONIC_CAST(reinterpret_cast, char*, ptr + 1) - in __cmsg_nxthdr() 124 __BIONIC_CAST(reinterpret_cast, char*, msg->msg_control); in __cmsg_nxthdr()
|
D | mman.h | 42 #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
|
D | cdefs.h | 54 #define __BIONIC_CAST(_k,_t,_v) (_k<_t>(_v)) macro 56 #define __BIONIC_CAST(_k,_t,_v) ((_t) (_v)) macro
|
D | select.h | 51 #define __FDS_BITS(type,set) (__BIONIC_CAST(static_cast, type, set)->fds_bits)
|
/bionic/libc/include/android/ |
D | legacy_sys_wait_inlines.h | 43 return __BIONIC_CAST(static_cast, pid_t, syscall(__NR_wait4, pid, status, options, rusage)); in wait4()
|
D | legacy_stdlib_inlines.h | 67 return __BIONIC_CAST(static_cast, float, d); in strtof()
|
/bionic/libc/include/netinet/ |
D | in6.h | 59 #define __bionic_s6_addr(a) __BIONIC_CAST(reinterpret_cast, const uint8_t*, a)
|
/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); \
|