/libc/stdlib/ |
A D | rand_r.c | 28 int result; in rand_r() local 32 result = (unsigned int) (next / 65536) % 2048; in rand_r() 36 result <<= 10; in rand_r() 37 result ^= (unsigned int) (next / 65536) % 1024; in rand_r() 41 result <<= 10; in rand_r() 42 result ^= (unsigned int) (next / 65536) % 1024; in rand_r() 46 return result; in rand_r()
|
A D | ldiv.c | 27 ldiv_t result; in ldiv() local 29 result.quot = numer / denom; in ldiv() 30 result.rem = numer % denom; in ldiv() 48 if (numer >= 0 && result.rem < 0) in ldiv() 50 ++result.quot; in ldiv() 51 result.rem -= denom; in ldiv() 54 return result; in ldiv()
|
A D | lldiv.c | 27 lldiv_t result; in lldiv() local 29 result.quot = numer / denom; in lldiv() 30 result.rem = numer % denom; in lldiv() 48 if (numer >= 0 && result.rem < 0) in lldiv() 50 ++result.quot; in lldiv() 51 result.rem -= denom; in lldiv() 54 return result; in lldiv()
|
A D | div.c | 11 div_t result; in div() local 12 result.quot = numer / denom; in div() 13 result.rem = numer - (result.quot * denom); in div() 14 return(result); in div()
|
A D | drand48.c | 23 double result; in drand48() local 25 (void) erand48_r (__libc_drand48_data.__x, &__libc_drand48_data, &result); in drand48() 27 return result; in drand48()
|
A D | erand48.c | 23 double result; in erand48() local 25 (void) erand48_r (xsubi, &__libc_drand48_data, &result); in erand48() 27 return result; in erand48()
|
A D | jrand48.c | 23 long int result; in jrand48() local 25 (void) jrand48_r (xsubi, &__libc_drand48_data, &result); in jrand48() 27 return result; in jrand48()
|
A D | lrand48.c | 23 long int result; in lrand48() local 25 nrand48_r (__libc_drand48_data.__x, &__libc_drand48_data, &result); in lrand48() 27 return result; in lrand48()
|
A D | mrand48.c | 23 long int result; in mrand48() local 25 jrand48_r (__libc_drand48_data.__x, &__libc_drand48_data, &result); in mrand48() 27 return result; in mrand48()
|
A D | nrand48.c | 23 long int result; in nrand48() local 25 nrand48_r (xsubi, &__libc_drand48_data, &result); in nrand48() 27 return result; in nrand48()
|
A D | drand48-iter.c | 32 uint64_t result; in __drand48_iterate() local 48 result = X * buffer->__a + buffer->__c; in __drand48_iterate() 50 xsubi[0] = result & 0xffff; in __drand48_iterate() 51 xsubi[1] = (result >> 16) & 0xffff; in __drand48_iterate() 52 xsubi[2] = (result >> 32) & 0xffff; in __drand48_iterate()
|
A D | nrand48_r.c | 21 int nrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer, long int *result) in nrand48_r() argument 29 *result = xsubi[2] << 15 | xsubi[1] >> 1; in nrand48_r() 31 *result = xsubi[2] >> 1; in nrand48_r()
|
A D | l64a.c | 37 static char result[7]; in l64a() local 46 p = result; in l64a() 54 return result; in l64a()
|
/libc/sysdeps/linux/common/ |
A D | ulimit.c | 19 long int result = -1; in ulimit() local 25 result = limit.rlim_cur / 512; /* bytes to 512 byte blocksize */ in ulimit() 29 result = va_arg (va, long int); in ulimit() 30 if ((rlim_t) result > RLIM_INFINITY / 512) { in ulimit() 34 limit.rlim_cur = result * 512; in ulimit() 35 limit.rlim_max = result * 512; in ulimit() 37 result = setrlimit(RLIMIT_FSIZE, &limit); in ulimit() 40 result = sysconf(_SC_OPEN_MAX); in ulimit() 46 return result; in ulimit()
|
A D | setegid.c | 22 int result; in setegid() local 31 result = setresgid(-1, gid, -1); in setegid() 32 if (result == -1 && errno == ENOSYS) in setegid() 36 result = setregid(-1, gid); in setegid() 38 return result; in setegid()
|
A D | seteuid.c | 21 int result; in seteuid() local 30 result = setresuid(-1, uid, -1); in seteuid() 31 if (result == -1 && errno == ENOSYS) in seteuid() 35 result = setreuid(-1, uid); in seteuid() 37 return result; in seteuid()
|
A D | time.c | 18 time_t result; 25 result = (time_t) tv.tv_sec; 27 *t = result; 28 return result;
|
/libc/sysdeps/linux/powerpc/ |
A D | ioctl.c | 38 int result; in _syscall3() local 46 result = tcgetattr (fd, (struct termios *) arg); in _syscall3() 50 result = tcsetattr (fd, TCSANOW, (struct termios *) arg); in _syscall3() 54 result = tcsetattr (fd, TCSADRAIN, (struct termios *) arg); in _syscall3() 58 result = tcsetattr (fd, TCSAFLUSH, (struct termios *) arg); in _syscall3() 62 result = __syscall_ioctl (fd, request, arg); in _syscall3() 68 return result; in _syscall3()
|
/libc/stdlib/malloc/ |
A D | calloc.c | 27 void *result; in calloc() local 36 if ((result=malloc(size)) != NULL) { in calloc() 37 memset(result, 0, size); in calloc() 39 return result; in calloc()
|
/libc/sysdeps/linux/alpha/ |
A D | sigprocmask.c | 34 long result; in _syscall2() local 44 result = osf_sigprocmask(how, setval); in _syscall2() 45 if (result == -1) in _syscall2() 49 return result; in _syscall2() 57 oset->__val[0] = result; in _syscall2()
|
/libc/stdlib/malloc-simple/ |
A D | alloc.c | 26 void *result; in malloc() local 61 void *result; in calloc() local 74 if (result != NULL) { in calloc() 78 return result; in calloc() 158 void * result; in memalign() local 172 if (result == NULL) in memalign() 186 free(result); in memalign() 187 result = NULL; in memalign() 193 l->exact = result; in memalign() 194 result = l->aligned = (char *) result + alignment - adj; in memalign() [all …]
|
/libc/inet/ |
A D | getproto.c | 71 *result = NULL; in libc_hidden_def() 93 *result = result_buf; in libc_hidden_def() 114 struct protoent *result; in getprotoent() local 118 return result; in getprotoent() 123 struct protoent **result) in getprotobyname_r() argument 141 return *result ? 0 : ret; in getprotobyname_r() 147 struct protoent *result; in libc_hidden_def() local 151 return result; in libc_hidden_def() 169 return *result ? 0 : ret; in getprotobynumber_r() 175 struct protoent *result; in libc_hidden_def() local [all …]
|
A D | getservice.c | 73 *result = NULL; in libc_hidden_def() 96 *result = result_buf; in libc_hidden_def() 116 struct servent *result; in getservent() local 120 return result; in getservent() 125 struct servent **result) in getservbyname_r() argument 146 return *result ? 0 : ret; in getservbyname_r() 152 struct servent *result; in libc_hidden_def() local 156 return result; in libc_hidden_def() 177 return *result ? 0 : ret; in getservbyport_r() 183 struct servent *result; in libc_hidden_def() local [all …]
|
/libc/unistd/ |
A D | sleep.c | 96 unsigned int result; in sleep() local 122 result = nanosleep (&ts, &ts); in sleep() 123 if (result != 0) { in sleep() 125 result = (unsigned int) ts.tv_sec + (ts.tv_nsec >= 500000000L); in sleep() 136 return result; in sleep() 151 unsigned int result, remaining; in sleep() local 182 result = after - before; in sleep() 183 alarm(remaining > result ? remaining - result : 0); in sleep() 188 return result > seconds ? 0 : seconds - result; in sleep()
|
/libc/misc/file/ |
A D | isfdtype.c | 30 int result = fstat64 (fildes, &st); in isfdtype() local 32 if (result) in isfdtype() 33 return result; in isfdtype()
|