/bionic/tests/headers/posix/ |
D | math_h.c | 123 FUNCTION(acos, double (*f)(double)); in math_h() 124 FUNCTION(acosf, float (*f)(float)); in math_h() 125 FUNCTION(acosh, double (*f)(double)); in math_h() 126 FUNCTION(acoshf, float (*f)(float)); in math_h() 127 FUNCTION(acoshl, long double (*f)(long double)); in math_h() 128 FUNCTION(acosl, long double (*f)(long double)); in math_h() 130 FUNCTION(asin, double (*f)(double)); in math_h() 131 FUNCTION(asinf, float (*f)(float)); in math_h() 132 FUNCTION(asinh, double (*f)(double)); in math_h() 133 FUNCTION(asinhf, float (*f)(float)); in math_h() [all …]
|
D | stdlib_h.c | 70 FUNCTION(_Exit, void (*f)(int)); in stdlib_h() 72 FUNCTION(a64l, long (*f)(const char*)); in stdlib_h() 74 FUNCTION(abort, void (*f)(void)); in stdlib_h() 75 FUNCTION(abs, int (*f)(int)); in stdlib_h() 76 FUNCTION(atexit, int (*f)(void (*)(void))); in stdlib_h() 77 FUNCTION(atof, double (*f)(const char*)); in stdlib_h() 78 FUNCTION(atoi, int (*f)(const char*)); in stdlib_h() 79 FUNCTION(atol, long (*f)(const char*)); in stdlib_h() 80 FUNCTION(atoll, long long (*f)(const char*)); in stdlib_h() 81 …FUNCTION(bsearch, void* (*f)(const void*, const void*, size_t, size_t, int (*)(const void*, const … in stdlib_h() [all …]
|
D | pthread_h.c | 89 FUNCTION(pthread_atfork, int (*f)(void (*)(void), void (*)(void), void (*)(void))); in pthread_h() 90 FUNCTION(pthread_attr_destroy, int (*f)(pthread_attr_t*)); in pthread_h() 91 FUNCTION(pthread_attr_getdetachstate, int (*f)(const pthread_attr_t*, int*)); in pthread_h() 92 FUNCTION(pthread_attr_getguardsize, int (*f)(const pthread_attr_t*, size_t*)); in pthread_h() 93 FUNCTION(pthread_attr_getinheritsched, int (*f)(const pthread_attr_t*, int*)); in pthread_h() 94 FUNCTION(pthread_attr_getschedparam, int (*f)(const pthread_attr_t*, struct sched_param*)); in pthread_h() 95 FUNCTION(pthread_attr_getschedpolicy, int (*f)(const pthread_attr_t*, int*)); in pthread_h() 96 FUNCTION(pthread_attr_getscope, int (*f)(const pthread_attr_t*, int*)); in pthread_h() 97 FUNCTION(pthread_attr_getstack, int (*f)(const pthread_attr_t*, void**, size_t*)); in pthread_h() 98 FUNCTION(pthread_attr_getstacksize, int (*f)(const pthread_attr_t*, size_t*)); in pthread_h() [all …]
|
D | stdio_h.c | 78 FUNCTION(clearerr, void (*f)(FILE*)); in stdio_h() 79 FUNCTION(ctermid, char* (*f)(char*)); in stdio_h() 80 FUNCTION(dprintf, int (*f)(int, const char*, ...)); in stdio_h() 81 FUNCTION(fclose, int (*f)(FILE*)); in stdio_h() 82 FUNCTION(fdopen, FILE* (*f)(int, const char*)); in stdio_h() 83 FUNCTION(feof, int (*f)(FILE*)); in stdio_h() 84 FUNCTION(ferror, int (*f)(FILE*)); in stdio_h() 85 FUNCTION(fflush, int (*f)(FILE*)); in stdio_h() 86 FUNCTION(fgetc, int (*f)(FILE*)); in stdio_h() 87 FUNCTION(fgetpos, int (*f)(FILE*, fpos_t*)); in stdio_h() [all …]
|
D | complex_h.c | 54 FUNCTION(cabs, double (*f)(double complex)); in complex_h() 55 FUNCTION(cabsf, float (*f)(float complex)); in complex_h() 56 FUNCTION(cabsl, long double (*f)(long double complex)); in complex_h() 58 FUNCTION(cacos, double complex (*f)(double complex)); in complex_h() 59 FUNCTION(cacosf, float complex (*f)(float complex)); in complex_h() 60 FUNCTION(cacosl, long double complex (*f)(long double complex)); in complex_h() 62 FUNCTION(cacosh, double complex (*f)(double complex)); in complex_h() 63 FUNCTION(cacoshf, float complex (*f)(float complex)); in complex_h() 64 FUNCTION(cacoshl, long double complex (*f)(long double complex)); in complex_h() 66 FUNCTION(carg, double (*f)(double complex)); in complex_h() [all …]
|
D | wchar_h.c | 48 FUNCTION(btowc, wint_t (*f)(int)); in wchar_h() 49 FUNCTION(fgetwc, wint_t (*f)(FILE*)); in wchar_h() 50 FUNCTION(fgetws, wchar_t* (*f)(wchar_t*, int, FILE*)); in wchar_h() 51 FUNCTION(fputwc, wint_t (*f)(wchar_t, FILE*)); in wchar_h() 52 FUNCTION(fputws, int (*f)(const wchar_t*, FILE*)); in wchar_h() 53 FUNCTION(fwide, int (*f)(FILE*, int)); in wchar_h() 54 FUNCTION(fwprintf, int (*f)(FILE*, const wchar_t*, ...)); in wchar_h() 55 FUNCTION(fwscanf, int (*f)(FILE*, const wchar_t*, ...)); in wchar_h() 56 FUNCTION(getwc, wint_t (*f)(FILE*)); in wchar_h() 57 FUNCTION(getwchar, wint_t (*f)(void)); in wchar_h() [all …]
|
D | string_h.c | 38 FUNCTION(memccpy, void* (*f)(void*, const void*, int, size_t)); in string_h() 39 FUNCTION(memchr, void* (*f)(const void*, int, size_t)); in string_h() 40 FUNCTION(memcmp, int (*f)(const void*, const void*, size_t)); in string_h() 41 FUNCTION(memcpy, void* (*f)(void*, const void*, size_t)); in string_h() 42 FUNCTION(memmove, void* (*f)(void*, const void*, size_t)); in string_h() 43 FUNCTION(memset, void* (*f)(void*, int, size_t)); in string_h() 44 FUNCTION(stpcpy, char* (*f)(char*, const char*)); in string_h() 45 FUNCTION(stpncpy, char* (*f)(char*, const char*, size_t)); in string_h() 46 FUNCTION(strcat, char* (*f)(char*, const char*)); in string_h() 47 FUNCTION(strchr, char* (*f)(const char*, int)); in string_h() [all …]
|
D | ctype_h.c | 34 FUNCTION(isalnum, int (*f)(int)); in ctype_h() 35 FUNCTION(isalnum_l, int (*f)(int, locale_t)); in ctype_h() 36 FUNCTION(isalpha, int (*f)(int)); in ctype_h() 37 FUNCTION(isalpha_l, int (*f)(int, locale_t)); in ctype_h() 38 FUNCTION(isascii, int (*f)(int)); in ctype_h() 39 FUNCTION(isblank, int (*f)(int)); in ctype_h() 40 FUNCTION(isblank_l, int (*f)(int, locale_t)); in ctype_h() 41 FUNCTION(iscntrl, int (*f)(int)); in ctype_h() 42 FUNCTION(iscntrl_l, int (*f)(int, locale_t)); in ctype_h() 43 FUNCTION(isdigit, int (*f)(int)); in ctype_h() [all …]
|
D | wctype_h.c | 41 FUNCTION(iswalnum, int (*f)(wint_t)); in wctype_h() 42 FUNCTION(iswalnum_l, int (*f)(wint_t, locale_t)); in wctype_h() 43 FUNCTION(iswalpha, int (*f)(wint_t)); in wctype_h() 44 FUNCTION(iswalpha_l, int (*f)(wint_t, locale_t)); in wctype_h() 45 FUNCTION(iswblank, int (*f)(wint_t)); in wctype_h() 46 FUNCTION(iswblank_l, int (*f)(wint_t, locale_t)); in wctype_h() 47 FUNCTION(iswcntrl, int (*f)(wint_t)); in wctype_h() 48 FUNCTION(iswcntrl_l, int (*f)(wint_t, locale_t)); in wctype_h() 49 FUNCTION(iswctype, int (*f)(wint_t, wctype_t)); in wctype_h() 50 FUNCTION(iswctype_l, int (*f)(wint_t, wctype_t, locale_t)); in wctype_h() [all …]
|
D | unistd_h.c | 306 FUNCTION(access, int (*f)(const char*, int)); in unistd_h() 307 FUNCTION(alarm, unsigned (*f)(unsigned)); in unistd_h() 308 FUNCTION(chdir, int (*f)(const char*)); in unistd_h() 309 FUNCTION(chown, int (*f)(const char*, uid_t, gid_t)); in unistd_h() 310 FUNCTION(close, int (*f)(int)); in unistd_h() 312 FUNCTION(confstr, size_t (*f)(int, char*, size_t)); in unistd_h() 313 FUNCTION(crypt, char* (*f)(const char*, const char*)); in unistd_h() 315 FUNCTION(dup, int (*f)(int)); in unistd_h() 316 FUNCTION(dup2, int (*f)(int, int)); in unistd_h() 317 FUNCTION(_exit, void (*f)(int)); in unistd_h() [all …]
|
D | threads_h.c | 54 FUNCTION(call_once, void (*f)(once_flag*, void (*)(void))); in threads_h() 56 FUNCTION(cnd_broadcast, int (*f)(cnd_t*)); in threads_h() 57 FUNCTION(cnd_destroy, void (*f)(cnd_t*)); in threads_h() 58 FUNCTION(cnd_init, int (*f)(cnd_t*)); in threads_h() 59 FUNCTION(cnd_signal, int (*f)(cnd_t*)); in threads_h() 60 FUNCTION(cnd_timedwait, int (*f)(cnd_t*, mtx_t*, const struct timespec*)); in threads_h() 61 FUNCTION(cnd_wait, int (*f)(cnd_t*, mtx_t*)); in threads_h() 63 FUNCTION(mtx_destroy, void (*f)(mtx_t*)); in threads_h() 64 FUNCTION(mtx_init, int (*f)(mtx_t*, int)); in threads_h() 65 FUNCTION(mtx_lock, int (*f)(mtx_t*)); in threads_h() [all …]
|
D | time_h.c | 76 FUNCTION(asctime, char* (*f)(const struct tm*)); in time_h() 77 FUNCTION(asctime_r, char* (*f)(const struct tm*, char*)); in time_h() 78 FUNCTION(clock, clock_t (*f)(void)); in time_h() 79 FUNCTION(clock_getcpuclockid, int (*f)(pid_t, clockid_t*)); in time_h() 80 FUNCTION(clock_getres, int (*f)(clockid_t, struct timespec*)); in time_h() 81 FUNCTION(clock_gettime, int (*f)(clockid_t, struct timespec*)); in time_h() 82 FUNCTION(clock_nanosleep, int (*f)(clockid_t, int, const struct timespec*, struct timespec*)); in time_h() 83 FUNCTION(clock_settime, int (*f)(clockid_t, const struct timespec*)); in time_h() 84 FUNCTION(ctime, char* (*f)(const time_t*)); in time_h() 85 FUNCTION(ctime_r, char* (*f)(const time_t*, char*)); in time_h() [all …]
|
D | spawn_h.c | 51 …FUNCTION(posix_spawn, int (*f)(pid_t*, const char*, const posix_spawn_file_actions_t*, const posix… in spawn_h() 52 FUNCTION(posix_spawn_file_actions_addclose, int (*f)(posix_spawn_file_actions_t*, int)); in spawn_h() 53 FUNCTION(posix_spawn_file_actions_adddup2, int (*f)(posix_spawn_file_actions_t*, int, int)); in spawn_h() 54 …FUNCTION(posix_spawn_file_actions_addopen, int (*f)(posix_spawn_file_actions_t*, int, const char*,… in spawn_h() 55 FUNCTION(posix_spawn_file_actions_destroy, int (*f)(posix_spawn_file_actions_t*)); in spawn_h() 56 FUNCTION(posix_spawn_file_actions_init, int (*f)(posix_spawn_file_actions_t*)); in spawn_h() 57 FUNCTION(posix_spawnattr_destroy, int (*f)(posix_spawnattr_t*)); in spawn_h() 58 FUNCTION(posix_spawnattr_getflags, int (*f)(const posix_spawnattr_t*, short*)); in spawn_h() 59 FUNCTION(posix_spawnattr_getpgroup, int (*f)(const posix_spawnattr_t*, pid_t*)); in spawn_h() 60 FUNCTION(posix_spawnattr_getschedparam, int (*f)(const posix_spawnattr_t*, struct sched_param*)); in spawn_h() [all …]
|
D | netdb_h.c | 101 FUNCTION(endhostent, void (*f)(void)); in netdb_h() 102 FUNCTION(endnetent, void (*f)(void)); in netdb_h() 103 FUNCTION(endprotoent, void (*f)(void)); in netdb_h() 104 FUNCTION(endservent, void (*f)(void)); in netdb_h() 105 FUNCTION(freeaddrinfo, void (*f)(struct addrinfo*)); in netdb_h() 106 FUNCTION(gai_strerror, const char* (*f)(int)); in netdb_h() 107 …FUNCTION(getaddrinfo, int (*f)(const char*, const char*, const struct addrinfo*, struct addrinfo**… in netdb_h() 108 FUNCTION(gethostent, struct hostent* (*f)(void)); in netdb_h() 110 …FUNCTION(getnameinfo, int (*f)(const struct sockaddr*, socklen_t, char*, size_t, char*, size_t, in… in netdb_h() 112 …FUNCTION(getnameinfo, int (*f)(const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen… in netdb_h() [all …]
|
D | signal_h.c | 55 STRUCT_MEMBER_FUNCTION_POINTER(struct sigevent, void (*f)(union sigval), sigev_notify_function); in signal_h() 104 STRUCT_MEMBER_FUNCTION_POINTER(struct sigaction, void (*f)(int), sa_handler); in signal_h() 107 STRUCT_MEMBER_FUNCTION_POINTER(struct sigaction, void (*f)(int, siginfo_t*, void*), sa_sigaction); in signal_h() 201 FUNCTION(kill, int (*f)(pid_t, int)); in signal_h() 202 FUNCTION(killpg, int (*f)(pid_t, int)); in signal_h() 203 FUNCTION(psiginfo, void (*f)(const siginfo_t*, const char*)); in signal_h() 204 FUNCTION(psignal, void (*f)(int, const char*)); in signal_h() 205 FUNCTION(pthread_kill, int (*f)(pthread_t, int)); in signal_h() 206 FUNCTION(pthread_sigmask, int (*f)(int, const sigset_t*, sigset_t*)); in signal_h() 207 FUNCTION(raise, int (*f)(int)); in signal_h() [all …]
|
D | sys_mman_h.c | 74 FUNCTION(mlock, int (*f)(const void*, size_t)); in sys_mman_h() 75 FUNCTION(mlockall, int (*f)(int)); in sys_mman_h() 76 FUNCTION(mmap, void* (*f)(void*, size_t, int, int, int, off_t)); in sys_mman_h() 77 FUNCTION(mprotect, int (*f)(void*, size_t, int)); in sys_mman_h() 78 FUNCTION(msync, int (*f)(void*, size_t, int)); in sys_mman_h() 79 FUNCTION(munlock, int (*f)(const void*, size_t)); in sys_mman_h() 80 FUNCTION(munlockall, int (*f)(void)); in sys_mman_h() 81 FUNCTION(munmap, int (*f)(void*, size_t)); in sys_mman_h() 82 FUNCTION(posix_madvise, int (*f)(void*, size_t, int)); in sys_mman_h() 84 FUNCTION(posix_mem_offset, int (*f)(const void*, size_t, off_t*, size_t*, int*)); in sys_mman_h() [all …]
|
D | fenv_h.c | 52 FUNCTION(feclearexcept, int (*f)(int)); in fenv_h() 53 FUNCTION(fegetenv, int (*f)(fenv_t*)); in fenv_h() 54 FUNCTION(fegetexceptflag, int (*f)(fexcept_t*, int)); in fenv_h() 55 FUNCTION(fegetround, int (*f)(void)); in fenv_h() 56 FUNCTION(feholdexcept, int (*f)(fenv_t*)); in fenv_h() 57 FUNCTION(feraiseexcept, int (*f)(int)); in fenv_h() 58 FUNCTION(fesetenv, int (*f)(const fenv_t*)); in fenv_h() 59 FUNCTION(fesetexceptflag, int (*f)(const fexcept_t*, int)); in fenv_h() 60 FUNCTION(fesetround, int (*f)(int)); in fenv_h() 61 FUNCTION(fetestexcept, int (*f)(int)); in fenv_h() [all …]
|
/bionic/libc/private/ |
D | bionic_asm.h | 37 #define __bionic_asm_custom_entry(f) argument 38 #define __bionic_asm_custom_end(f) argument 54 #define ENTRY_NO_DWARF(f) \ argument 56 .globl f; \ 58 .type f, __bionic_asm_function_type; \ 59 f: \ 60 __bionic_asm_custom_entry(f); \ 62 #define ENTRY(f) \ argument 63 ENTRY_NO_DWARF(f) \ 66 #define END_NO_DWARF(f) \ argument [all …]
|
/bionic/libc/seccomp/ |
D | seccomp_policy.cpp | 103 inline void Allow(filter& f) { in Allow() argument 104 f.push_back(BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW)); in Allow() 107 inline void Disallow(filter& f) { in Disallow() argument 108 f.push_back(BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_TRAP)); in Disallow() 111 static void ExamineSyscall(filter& f) { in ExamineSyscall() argument 112 f.push_back(BPF_STMT(BPF_LD|BPF_W|BPF_ABS, syscall_nr)); in ExamineSyscall() 116 static bool SetValidateArchitectureJumpTarget(size_t offset, filter& f) { in SetValidateArchitectureJumpTarget() argument 117 size_t jump_length = f.size() - offset - 1; in SetValidateArchitectureJumpTarget() 124 f[offset] = BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, SECONDARY_ARCH, u8_jump_length, 0); in SetValidateArchitectureJumpTarget() 128 static size_t ValidateArchitectureAndJumpIfNeeded(filter& f) { in ValidateArchitectureAndJumpIfNeeded() argument [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vasprintf.c | 32 FILE f; in vasprintf() local 36 _FILEEXT_SETUP(&f, &fext); in vasprintf() 37 f._file = -1; in vasprintf() 38 f._flags = __SWR | __SSTR | __SALC; in vasprintf() 39 f._bf._base = f._p = malloc(INITIAL_SIZE); in vasprintf() 40 if (f._bf._base == NULL) in vasprintf() 42 f._bf._size = f._w = INITIAL_SIZE - 1; /* leave room for the NUL */ in vasprintf() 43 ret = __vfprintf(&f, fmt, ap); in vasprintf() 46 *f._p = '\0'; in vasprintf() 49 unsigned char *_base = recallocarray(f._bf._base, in vasprintf() [all …]
|
D | vswprintf.c | 44 FILE f; in vswprintf() local 55 _FILEEXT_SETUP(&f, &fext); in vswprintf() 56 f._file = -1; in vswprintf() 57 f._flags = __SWR | __SSTR | __SALC; in vswprintf() 58 f._bf._base = f._p = malloc(128); in vswprintf() 59 if (f._bf._base == NULL) { in vswprintf() 63 f._bf._size = f._w = 127; /* Leave room for the NUL */ in vswprintf() 64 ret = __vfwprintf(&f, fmt, ap); in vswprintf() 67 free(f._bf._base); in vswprintf() 73 free(f._bf._base); in vswprintf() [all …]
|
D | vdprintf.c | 53 FILE f; in vdprintf() local 58 _FILEEXT_SETUP(&f, &fext); in vdprintf() 60 f._p = buf; in vdprintf() 61 f._w = sizeof(buf); in vdprintf() 62 f._flags = __SWR; in vdprintf() 63 f._file = -1; in vdprintf() 64 f._bf._base = buf; in vdprintf() 65 f._bf._size = sizeof(buf); in vdprintf() 66 f._cookie = &fd; in vdprintf() 67 f._write = __dwrite; in vdprintf() [all …]
|
/bionic/benchmarks/linker_relocation/regen/ |
D | gen_bench.py | 150 print(f'error: {lib.soname}: unresolved relocation to {sym.name}') 182 out.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit manually\n') 183 out.write(f'#include "{g_benchmark_name}_asm.h"\n') 196 f'.globl {sym}\n' 197 f'.type {sym},%function\n' 198 f'{sym}:\n' 202 f'.globl {sym}\n' 203 f'.type {sym},%object\n' 204 f'{sym}:\n' 205 f'.space __SIZEOF_POINTER__\n') [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_logf.c | 38 float hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_logf() local 57 f = x-(float)1.0; in __ieee754_logf() 59 if(f==zero) { in __ieee754_logf() 67 R = f*f*((float)0.5-(float)0.33333333333333333*f); in __ieee754_logf() 68 if(k==0) return f-R; else {dk=(float)k; in __ieee754_logf() 69 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_logf() 71 s = f/((float)2.0+f); in __ieee754_logf() 82 hfsq=(float)0.5*f*f; in __ieee754_logf() 83 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_logf() 84 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_logf() [all …]
|
D | e_log.c | 91 double hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_log() local 111 f = x-1.0; in __ieee754_log() 113 if(f==zero) { in __ieee754_log() 121 R = f*f*(0.5-0.33333333333333333*f); in __ieee754_log() 122 if(k==0) return f-R; else {dk=(double)k; in __ieee754_log() 123 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_log() 125 s = f/(2.0+f); in __ieee754_log() 136 hfsq=0.5*f*f; in __ieee754_log() 137 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_log() 138 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_log() [all …]
|