/bionic/libc/include/sys/ |
D | wait.h | 38 #define WEXITSTATUS(s) (((s) & 0xff00) >> 8) argument 39 #define WCOREDUMP(s) ((s) & 0x80) argument 40 #define WTERMSIG(s) ((s) & 0x7f) argument 41 #define WSTOPSIG(s) WEXITSTATUS(s) argument 43 #define WIFEXITED(s) (WTERMSIG(s) == 0) argument 44 #define WIFSTOPPED(s) (WTERMSIG(s) == 0x7f) argument 45 #define WIFSIGNALED(s) (WTERMSIG((s)+1) >= 2) argument
|
/bionic/libm/src/ |
D | s_erff.c | 102 float R,S,P,Q,s,y,z,r; in erff() local 119 s = one+z*(qq1+z*(qq2+z*(qq3+z*(qq4+z*qq5)))); in erff() 120 y = r/s; in erff() 124 s = fabsf(x)-one; in erff() 125 P = pa0+s*(pa1+s*(pa2+s*(pa3+s*(pa4+s*(pa5+s*pa6))))); in erff() 126 Q = one+s*(qa1+s*(qa2+s*(qa3+s*(qa4+s*(qa5+s*qa6))))); in erff() 133 s = one/(x*x); in erff() 135 R=ra0+s*(ra1+s*(ra2+s*(ra3+s*(ra4+s*( in erff() 136 ra5+s*(ra6+s*ra7)))))); in erff() 137 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*( in erff() [all …]
|
D | s_erf.c | 194 double R,S,P,Q,s,y,z,r; in erf() local 210 s = one+z*(qq1+z*(qq2+z*(qq3+z*(qq4+z*qq5)))); in erf() 211 y = r/s; in erf() 215 s = fabs(x)-one; in erf() 216 P = pa0+s*(pa1+s*(pa2+s*(pa3+s*(pa4+s*(pa5+s*pa6))))); in erf() 217 Q = one+s*(qa1+s*(qa2+s*(qa3+s*(qa4+s*(qa5+s*qa6))))); in erf() 224 s = one/(x*x); in erf() 226 R=ra0+s*(ra1+s*(ra2+s*(ra3+s*(ra4+s*( in erf() 227 ra5+s*(ra6+s*ra7)))))); in erf() 228 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*( in erf() [all …]
|
/bionic/libc/string/ |
D | strtotimeval.c | 36 char *s, *s0; in strtotimeval() local 39 ts->tv_sec = strtoumax(str, &s, 10); in strtotimeval() 42 if ( *s == '.' ) { in strtotimeval() 45 s0 = s+1; in strtotimeval() 50 while ( *s && isdigit(*s) ) in strtotimeval() 53 fs = fs*10 + (*s - '0'); in strtotimeval() 54 s++; in strtotimeval() 62 return s; in strtotimeval()
|
D | strtok.c | 33 strtok(char *s, const char *delim) in strtok() argument 37 return strtok_r(s, delim, &last); in strtok() 41 strtok_r(char *s, const char *delim, char **last) in strtok_r() argument 48 if (s == NULL && (s = *last) == NULL) in strtok_r() 55 c = *s++; in strtok_r() 65 tok = s - 1; in strtok_r() 72 c = *s++; in strtok_r() 77 s = NULL; in strtok_r() 79 s[-1] = 0; in strtok_r() 80 *last = s; in strtok_r()
|
D | strsep.c | 49 char *s; in strsep() local 54 if ((s = *stringp) == NULL) in strsep() 56 for (tok = s;;) { in strsep() 57 c = *s++; in strsep() 62 s = NULL; in strsep() 64 s[-1] = 0; in strsep() 65 *stringp = s; in strsep()
|
D | strlen.c | 41 const char *s; in strlen() local 43 for (s = str; *s; ++s) in strlen() 45 return (s - str); in strlen()
|
D | strcat.c | 44 strcat(char *s, const char *append) in strcat() argument 46 char *save = s; in strcat() 48 for (; *s; ++s); in strcat() 49 while ((*s++ = *append++) != '\0'); in strcat()
|
D | strstr.c | 40 strstr(const char *s, const char *find) in strstr() argument 49 if ((sc = *s++) == 0) in strstr() 52 } while (strncmp(s, find, len) != 0); in strstr() 53 s--; in strstr() 55 return ((char *)s); in strstr()
|
D | strlcat.c | 33 const char *s = src; in strlcat() local 44 return(dlen + strlen(s)); in strlcat() 45 while (*s != '\0') { in strlcat() 47 *d++ = *s; in strlcat() 50 s++; in strlcat() 54 return(dlen + (s - src)); /* count does not include NUL */ in strlcat()
|
D | strcasestr.c | 43 strcasestr(const char *s, const char *find) in strcasestr() argument 53 if ((sc = *s++) == 0) in strcasestr() 56 } while (strncasecmp(s, find, len) != 0); in strcasestr() 57 s--; in strcasestr() 59 return ((char *)s); in strcasestr()
|
D | strlcpy.c | 31 const char *s = src; in strlcpy() local 37 if ((*d++ = *s++) == '\0') in strlcpy() 46 while (*s++) in strlcpy() 50 return(s - src - 1); /* count does not include NUL */ in strlcpy()
|
/bionic/libc/include/ |
D | termios.h | 49 static __inline__ int tcgetattr(int fd, struct termios *s) in tcgetattr() argument 51 return ioctl(fd, TCGETS, s); in tcgetattr() 54 static __inline__ int tcsetattr(int fd, int __opt, const struct termios *s) in tcsetattr() argument 56 return ioctl(fd, __opt, (void *)s); in tcsetattr() 80 static __inline__ speed_t cfgetospeed(const struct termios *s) in cfgetospeed() argument 82 return (speed_t)(s->c_cflag & CBAUD); in cfgetospeed() 85 static __inline__ int cfsetospeed(struct termios *s, speed_t speed) in cfsetospeed() argument 87 s->c_cflag = (s->c_cflag & ~CBAUD) | (speed & CBAUD); in cfsetospeed() 91 static __inline__ speed_t cfgetispeed(const struct termios *s) in cfgetispeed() argument 93 return (speed_t)(s->c_cflag & CBAUD); in cfgetispeed() [all …]
|
/bionic/libc/stdlib/ |
D | strtoul.c | 45 const char *s; in strtoul() local 53 s = nptr; in strtoul() 55 c = (unsigned char) *s++; in strtoul() 59 c = *s++; in strtoul() 63 c = *s++; in strtoul() 66 c == '0' && (*s == 'x' || *s == 'X')) { in strtoul() 67 c = s[1]; in strtoul() 68 s += 2; in strtoul() 76 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoul() 100 *endptr = (char *) (any ? s - 1 : nptr); in strtoul()
|
D | strtoumax.c | 45 const char *s; in strtoumax() local 53 s = nptr; in strtoumax() 55 c = (unsigned char) *s++; in strtoumax() 59 c = *s++; in strtoumax() 63 c = *s++; in strtoumax() 66 c == '0' && (*s == 'x' || *s == 'X')) { in strtoumax() 67 c = s[1]; in strtoumax() 68 s += 2; in strtoumax() 89 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoumax() 113 *endptr = (char *) (any ? s - 1 : nptr); in strtoumax()
|
D | strtol.c | 46 const char *s; in strtol() local 56 s = nptr; in strtol() 58 c = (unsigned char) *s++; in strtol() 62 c = *s++; in strtol() 66 c = *s++; in strtol() 69 c == '0' && (*s == 'x' || *s == 'X')) { in strtol() 70 c = s[1]; in strtol() 71 s += 2; in strtol() 104 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtol() 138 *endptr = (char *) (any ? s - 1 : nptr); in strtol()
|
/bionic/libc/stdio/ |
D | gets.c | 43 char *s; in gets() local 45 for (s = buf; (c = getchar()) != '\n';) in gets() 47 if (s == buf) in gets() 52 *s++ = c; in gets() 53 *s = '\0'; in gets()
|
D | tmpnam.c | 45 tmpnam(char *s) in tmpnam() argument 50 if (s == NULL) in tmpnam() 51 s = buf; in tmpnam() 52 (void)snprintf(s, L_tmpnam, "%stmp.%lu.XXXXXXXXX", P_tmpdir, tmpcount); in tmpnam() 54 return (_mktemp(s)); in tmpnam()
|
D | fgets.c | 48 char *s; in fgets() local 55 s = buf; in fgets() 64 if (s == buf) in fgets() 85 (void)memcpy((void *)s, (void *)p, len); in fgets() 86 s[len] = '\0'; in fgets() 91 (void)memcpy((void *)s, (void *)p, len); in fgets() 92 s += len; in fgets() 95 *s = '\0'; in fgets()
|
/bionic/libc/netbsd/net/ |
D | getservbyport.c | 36 struct servent* s; in getservbyport() local 45 struct servent* s = getservent_r(rs); in getservbyport() local 46 if (s == NULL) in getservbyport() 48 if ( s->s_port == port && !strcmp( s->s_proto, proto ) ) in getservbyport() 49 return s; in getservbyport()
|
D | getservbyname.c | 37 struct servent* s; in getservbyname() local 46 struct servent* s = getservent_r(rs); in getservbyname() local 47 if (s == NULL) in getservbyname() 49 if ( !strcmp( s->s_name, name ) && !strcmp( s->s_proto, proto ) ) in getservbyname() 50 return s; in getservbyname()
|
/bionic/libc/private/isc/ |
D | memcluster.h | 27 #define memget(s) __memget_debug(s, __FILE__, __LINE__) argument 28 #define memput(p, s) __memput_debug(p, s, __FILE__, __LINE__) argument 31 #define memget(s) __memget_record(s, __FILE__, __LINE__) argument 32 #define memput(p, s) __memput_record(p, s, __FILE__, __LINE__) argument
|
/bionic/libc/include/net/ |
D | if_dl.h | 73 #define LLADDR(s) ((char *)((s)->sdl_data + (s)->sdl_nlen)) argument 74 #define CLLADDR(s) ((const char *)((s)->sdl_data + (s)->sdl_nlen)) argument
|
/bionic/libc/kernel/arch-x86/asm/ |
D | byteorder.h | 35 struct { __u32 a,b; } s; in ___arch__swab64() member 39 v.s.a = ___arch__swab32(v.s.a); in ___arch__swab64() 40 v.s.b = ___arch__swab32(v.s.b); in ___arch__swab64() 41 __asm__("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b)); in ___arch__swab64()
|
/bionic/linker/ |
D | debugger.c | 46 int s; in debugger_signal_handler() local 52 s = socket_local_client("android:debuggerd", in debugger_signal_handler() 55 if(s >= 0) { in debugger_signal_handler() 61 write(s, &tid, sizeof(unsigned)); in debugger_signal_handler() 63 read(s, &tid, 1); in debugger_signal_handler() 65 close(s); in debugger_signal_handler()
|