/bionic/libc/stdio/ |
D | tempnam.c | 48 char *f, *name; in tempnam() local 56 if (issetugid() == 0 && (f = getenv("TMPDIR"))) { in tempnam() 57 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f, in tempnam() 58 *(f + strlen(f) - 1) == '/'? "": "/", pfx); in tempnam() 59 if ((f = _mktemp(name))) in tempnam() 60 return(f); in tempnam() 63 if ((f = (char *)dir)) { in tempnam() 64 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f, in tempnam() 65 *(f + strlen(f) - 1) == '/'? "": "/", pfx); in tempnam() 66 if ((f = _mktemp(name))) in tempnam() [all …]
|
D | vasprintf.c | 29 FILE f; in vasprintf() local 33 _FILEEXT_SETUP(&f, &fext); in vasprintf() 34 f._file = -1; in vasprintf() 35 f._flags = __SWR | __SSTR | __SALC; in vasprintf() 36 f._bf._base = f._p = (unsigned char *)malloc(128); in vasprintf() 37 if (f._bf._base == NULL) in vasprintf() 39 f._bf._size = f._w = 127; /* Leave room for the NUL */ in vasprintf() 40 ret = vfprintf(&f, fmt, ap); in vasprintf() 43 *f._p = '\0'; in vasprintf() 44 _base = realloc(f._bf._base, ret + 1); in vasprintf() [all …]
|
D | vsprintf.c | 48 FILE f; in vsprintf() local 51 _FILEEXT_SETUP(&f, &fext); in vsprintf() 52 f._file = -1; in vsprintf() 53 f._flags = __SWR | __SSTR; in vsprintf() 54 f._bf._base = f._p = (unsigned char *)str; in vsprintf() 55 f._bf._size = f._w = INT_MAX; in vsprintf() 56 ret = vfprintf(&f, fmt, ap); in vsprintf() 57 *f._p = '\0'; in vsprintf()
|
D | vsscanf.c | 48 FILE f; in vsscanf() local 51 _FILEEXT_SETUP(&f, &fext); in vsscanf() 52 f._flags = __SRD; in vsscanf() 53 f._bf._base = f._p = (unsigned char *)str; in vsscanf() 54 f._bf._size = f._r = strlen(str); in vsscanf() 55 f._read = eofread; in vsscanf() 56 f._lb._base = NULL; in vsscanf() 57 return (vfscanf(&f, fmt, ap)); in vsscanf()
|
D | sprintf.c | 50 FILE f; in sprintf() local 53 _FILEEXT_SETUP(&f, &fext); in sprintf() 54 f._file = -1; in sprintf() 55 f._flags = __SWR | __SSTR; in sprintf() 56 f._bf._base = f._p = (unsigned char *)str; in sprintf() 57 f._bf._size = f._w = INT_MAX; in sprintf() 59 ret = vfprintf(&f, fmt, ap); in sprintf() 61 *f._p = '\0'; in sprintf()
|
D | asprintf.c | 31 FILE f; in asprintf() local 34 f._file = -1; in asprintf() 35 f._flags = __SWR | __SSTR | __SALC; in asprintf() 36 f._bf._base = f._p = (unsigned char *)malloc(128); in asprintf() 37 if (f._bf._base == NULL) in asprintf() 39 f._bf._size = f._w = 127; /* Leave room for the NUL */ in asprintf() 41 ret = vfprintf(&f, fmt, ap); in asprintf() 45 *f._p = '\0'; in asprintf() 46 _base = realloc(f._bf._base, ret + 1); in asprintf() 53 free(f._bf._base); in asprintf()
|
D | sscanf.c | 52 FILE f; in sscanf() local 55 _FILEEXT_SETUP(&f, &fext); in sscanf() 56 f._flags = __SRD; in sscanf() 57 f._bf._base = f._p = (unsigned char *)str; in sscanf() 58 f._bf._size = f._r = strlen(str); in sscanf() 59 f._read = eofread; in sscanf() 60 f._lb._base = NULL; in sscanf() 62 ret = vfscanf(&f, fmt, ap); in sscanf()
|
D | vsnprintf.c | 44 FILE f; in vsnprintf() local 47 _FILEEXT_SETUP(&f, &fext); in vsnprintf() 57 f._file = -1; in vsnprintf() 58 f._flags = __SWR | __SSTR; in vsnprintf() 59 f._bf._base = f._p = (unsigned char *)str; in vsnprintf() 60 f._bf._size = f._w = n - 1; in vsnprintf() 61 ret = vfprintf(&f, fmt, ap); in vsnprintf() 62 *f._p = '\0'; in vsnprintf()
|
D | snprintf.c | 46 FILE f; in snprintf() local 57 _FILEEXT_SETUP(&f, &fext); in snprintf() 58 f._file = -1; in snprintf() 59 f._flags = __SWR | __SSTR; in snprintf() 60 f._bf._base = f._p = (unsigned char *)str; in snprintf() 61 f._bf._size = f._w = n - 1; in snprintf() 63 ret = vfprintf(&f, fmt, ap); in snprintf() 65 *f._p = '\0'; in snprintf()
|
D | freopen.c | 51 int f; in freopen() local 87 f = open(file, oflags, DEFFILEMODE); in freopen() 88 if (f < 0 && isopen) { in freopen() 93 f = open(file, oflags, DEFFILEMODE); in freopen() 103 if (isopen && f != wantfd) in freopen() 121 if (f < 0) { /* did not get it after all */ in freopen() 132 if (wantfd >= 0 && f != wantfd) { in freopen() 133 if (dup2(f, wantfd) >= 0) { in freopen() 134 (void) close(f); in freopen() 135 f = wantfd; in freopen() [all …]
|
D | fileext.h | 50 #define _FILEEXT_SETUP(f, fext) \ argument 52 (f)->_ext._base = (unsigned char *)(fext); \ 53 _FILEEXT_INIT(f); \
|
/bionic/libc/bionic/ |
D | pututline.c | 35 FILE* f; in pututline() local 39 if (!(f = fopen(_PATH_UTMP, "w+"))) in pututline() 42 while (fread(&u, sizeof(struct utmp), 1, f) == 1) in pututline() 46 if ((i = ftell(f)) < 0) in pututline() 48 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0) in pututline() 50 fwrite(utmp, sizeof(struct utmp), 1, f); in pututline() 56 fclose(f); in pututline() 58 if (!(f = fopen(_PATH_UTMP, "w+"))) in pututline() 60 fwrite(utmp, sizeof(struct utmp), 1, f); in pututline() 63 fclose(f); in pututline()
|
/bionic/libm/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) if(k==0) return zero; else {dk=(float)k; in __ieee754_logf() 61 R = f*f*((float)0.5-(float)0.33333333333333333*f); in __ieee754_logf() 62 if(k==0) return f-R; else {dk=(float)k; in __ieee754_logf() 63 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_logf() 65 s = f/((float)2.0+f); in __ieee754_logf() 76 hfsq=(float)0.5*f*f; in __ieee754_logf() 77 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_logf() 78 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_logf() [all …]
|
D | e_log.c | 89 double hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_log() local 109 f = x-1.0; in __ieee754_log() 111 if(f==zero) if(k==0) return zero; else {dk=(double)k; in __ieee754_log() 113 R = f*f*(0.5-0.33333333333333333*f); in __ieee754_log() 114 if(k==0) return f-R; else {dk=(double)k; in __ieee754_log() 115 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_log() 117 s = f/(2.0+f); in __ieee754_log() 128 hfsq=0.5*f*f; in __ieee754_log() 129 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_log() 130 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_log() [all …]
|
D | s_log1pf.c | 40 float hfsq,f,c,s,z,R,u; in log1pf() local 60 k=0;f=x;hu=1;} /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1pf() 92 f = u-(float)1.0; in log1pf() 94 hfsq=(float)0.5*f*f; in log1pf() 96 if(f==zero) if(k==0) return zero; in log1pf() 98 R = hfsq*((float)1.0-(float)0.66666666666666666*f); in log1pf() 99 if(k==0) return f-R; else in log1pf() 100 return k*ln2_hi-((R-(k*ln2_lo+c))-f); in log1pf() 102 s = f/((float)2.0+f); in log1pf() 105 if(k==0) return f-(hfsq-s*(hfsq+R)); else in log1pf() [all …]
|
D | s_log1p.c | 102 double hfsq,f,c,s,z,R,u; in log1p() local 122 k=0;f=x;hu=1;} /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ in log1p() 153 f = u-1.0; in log1p() 155 hfsq=0.5*f*f; in log1p() 157 if(f==zero) if(k==0) return zero; in log1p() 159 R = hfsq*(1.0-0.66666666666666666*f); in log1p() 160 if(k==0) return f-R; else in log1p() 161 return k*ln2_hi-((R-(k*ln2_lo+c))-f); in log1p() 163 s = f/(2.0+f); in log1p() 166 if(k==0) return f-(hfsq-s*(hfsq+R)); else in log1p() [all …]
|
D | s_isfinite.c | 43 __isfinitef(float f) in __isfinitef() argument 47 u.f = f; in __isfinitef()
|
D | s_signbit.c | 43 __signbitf(float f) in __signbitf() argument 47 u.f = f; in __signbitf()
|
D | s_isnormal.c | 43 __isnormalf(float f) in __isnormalf() argument 47 u.f = f; in __isnormalf()
|
D | s_fmaxf.c | 39 u[0].f = x; in fmaxf() 40 u[1].f = y; in fmaxf() 50 return (u[u[0].bits.sign].f); in fmaxf()
|
D | s_fminf.c | 39 u[0].f = x; in fminf() 40 u[1].f = y; in fminf() 50 return (u[u[1].bits.sign].f); in fminf()
|
D | s_isnan.c | 46 isnanf(float f) in isnanf() argument 50 u.f = f; in isnanf()
|
/bionic/libc/kernel/common/asm-generic/bitops/ |
D | atomic.h | 20 #define _atomic_spin_lock_irqsave(l,f) do { local_irq_save(f); } while (0) argument 21 #define _atomic_spin_unlock_irqrestore(l,f) do { local_irq_restore(f); } while (0) argument
|
/bionic/libm/bsdsrc/ |
D | b_log.c | 369 double F, f, g, q, u, u2, v, zero = 0.0, one = 1.0; 392 f = g - F; 395 g = 1/(2*F+f); 396 u = 2*f*g; 412 u2 = (2.0*(f - F*u1) - u1*f) * g; 438 double F, f, g, q, u, v, u2; local 453 f = g - F; 455 g = 1/(2*F+f); 456 u = 2*f*g; 463 u2 = (2.0*(f - F*u1) - u1*f) * g;
|
/bionic/libc/kernel/common/linux/ |
D | workqueue.h | 34 #define __WORK_INITIALIZER(n, f, d) { .entry = { &(n).entry, &(n).entry }, .func = (f), .data… argument 36 #define DECLARE_WORK(n, f, d) struct work_struct n = __WORK_INITIALIZER(n, f, d) argument
|