Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 39) sorted by relevance

12

/bionic/libc/unistd/
Dgetpriority.c34 int result = __getpriority(which, who); in getpriority() local
36 return ( result < 0 ) ? result : 20-result; in getpriority()
Dgethostname.c36 int result = 0; in gethostname() local
38 result = uname(&name); in gethostname()
39 if (result != -1) in gethostname()
45 result = -1; in gethostname()
50 return result; in gethostname()
Dlseek64.c30 extern int __llseek(int fd, unsigned long offset_hi, unsigned long offset_lo, loff_t* result, in…
34 loff_t result; in lseek64() local
36 if ( __llseek(fd, (unsigned long)(off >> 32),(unsigned long)(off), &result, whence ) < 0 ) in lseek64()
39 return result; in lseek64()
Dsignal.c35 __sighandler_t result = SIG_ERR; in _signal() local
43 result = (__sighandler_t) sa.sa_handler; in _signal()
45 return result; in _signal()
Dpselect.c37 int result; in pselect() local
53 result = select( n, readfds, writefds, errfds, tv_timeout ); in pselect()
58 return result; in pselect()
/bionic/libc/tools/
Dgenserv.py28 result = "\\%0o%s" % (len(self.name),self.name)
29 result += "\\%0o\\%0o" % (((self.port >> 8) & 255), self.port & 255)
31 result += "t"
33 result += "u"
35 result += "\\%0o" % len(self.aliases)
37 result += "\\%0o%s" % (len(alias), alias)
39 return result
42 result = [] # list of Service objects
65 result.append(service)
67 return result
Dgensyscalls.py259 result = x86_header % t
262 result += " pushl " + x86_registers[r] + "\n"
266 result += " mov %d(%%esp), %s" % (stack_bias+r*4, x86_registers[r]) + "\n"
268 result += x86_call % t
271 result += " popl " + x86_registers[numparams-r-1] + "\n"
273 result += x86_return
274 return result
287 result = x86_header % t
291 result += " pushl %ebx" + "\n"
293 result += " pushl %ecx" + "\n"
[all …]
/bionic/libc/netbsd/net/
Dnsdispatch.c114 int i, result; in nsdispatch() local
133 result = 0; in nsdispatch()
138 result = 0; in nsdispatch()
141 result = (*cb)(retval, cb_data, ap); in nsdispatch()
145 if (result & srclist[i].flags) in nsdispatch()
149 result &= NS_STATUSMASK; /* clear private flags in result */ in nsdispatch()
151 return (result ? result : NS_NOTFOUND); in nsdispatch()
/bionic/libc/bionic/
Dbasename_r.c37 int len, result; in basename_r() local
67 result = len; in basename_r()
69 return result; in basename_r()
73 result = -1; in basename_r()
81 return result; in basename_r()
Ddirname_r.c37 int result, len; in dirname_r() local
69 result = len; in dirname_r()
75 return result; in dirname_r()
79 result = -1; in dirname_r()
87 return result; in dirname_r()
Dtime64.c60 # define LOCALTIME_R(clock, result) localtime_r(clock, result) argument
62 # define LOCALTIME_R(clock, result) fake_localtime_r(clock, result) argument
65 # define GMTIME_R(clock, result) gmtime_r(clock, result) argument
67 # define GMTIME_R(clock, result) fake_gmtime_r(clock, result) argument
432 struct tm * fake_localtime_r(const time_t *clock, struct tm *result) { in fake_localtime_r() argument
435 assert(result != NULL); in fake_localtime_r()
438 memset(result, 0, sizeof(*result)); in fake_localtime_r()
442 memcpy(result, static_result, sizeof(*result)); in fake_localtime_r()
443 return result; in fake_localtime_r()
450 struct tm * fake_gmtime_r(const time_t *clock, struct tm *result) { in fake_gmtime_r() argument
[all …]
Dmalloc_debug_common.c63 int result; in hash_entry_compare() local
70 result = (e2 == NULL) ? 0 : 1; in hash_entry_compare()
72 result = -1; in hash_entry_compare()
87 int result; in hash_entry_compare() local
89 result = -1; in hash_entry_compare()
91 result = 1; in hash_entry_compare()
94 result = -1; in hash_entry_compare()
96 result = 1; in hash_entry_compare()
98 result = 0; in hash_entry_compare()
102 return result; in hash_entry_compare()
/bionic/libc/tzcode/
Dasctime.c92 char result[MAX_ASCTIME_BUF_SIZE]; local
110 (void) sprintf(result,
116 if (strlen(result) < STD_ASCTIME_BUF_SIZE || buf == buf_asctime) {
117 (void) strcpy(buf, result);
Dstrptime.c412 int result = 0; in _conv_num() local
420 result *= 10; in _conv_num()
421 result += *(*buf)++ - '0'; in _conv_num()
423 } while ((result * 10 <= ulim) && rulim && **buf >= '0' && **buf <= '9'); in _conv_num()
425 if (result < llim || result > ulim) in _conv_num()
428 *dest = result; in _conv_num()
Dlocaltime.c294 register long result; local
297 result = (codep[0] & 0x80) ? ~0L : 0;
299 result = (result << 8) | (codep[i] & 0xff);
300 return result;
307 register time_t result; local
310 result = (codep[0] & 0x80) ? (~(int_fast64_t) 0) : 0;
312 result = result * 256 + (codep[i] & 0xff);
313 return result;
647 register int result; local
650 result = tzparse(&u.buf[1], &ts, FALSE);
[all …]
/bionic/libc/
DJamfile24 local result = ;
28 result += $(item) ;
31 return $(result) ;
38 local result = ;
42 result = $(item) $(result) ;
44 return $(result) ;
51 local result ;
58 result = $(dir:BS) $(result) ;
61 result = $(dir) $(result) ;
62 return $(result) ;
[all …]
/bionic/libc/arch-sh/bionic/
Datomics_sh.c45 int result;
52 result = 0;
54 result = 1;
57 return result;
/bionic/libc/stdlib/
Dwchar.c43 int result; in fwprintf() local
46 result = vfwprintf(stream, format, args); in fwprintf()
48 return result; in fwprintf()
54 int result; in wprintf() local
57 result = vwprintf(format, args); in wprintf()
59 return result; in wprintf()
65 int result; in swprintf() local
68 result = vswprintf(s, n, format, args); in swprintf()
70 return result; in swprintf()
99 int result; in wscanf() local
[all …]
/bionic/libc/kernel/tools/
Dcpp.py281 result = self.peekChar()
283 return result
287 result = self.nextChar()
288 if result == "0":
298 result += num
300 elif result == "x" or result == "X":
310 result += num
312 elif result == "u" or result == "U":
322 result += num
325 return result
[all …]
/bionic/linker/
Dlinker_format.c267 int result; in log_vprint() local
270 result = vformat_buffer(buf, sizeof buf, fmt, args); in log_vprint()
275 return result; in log_vprint()
293 return result; in log_vprint()
332 unsigned result = 0; in parse_decimal() local
341 result = result*10 + d; in parse_decimal()
345 return result; in parse_decimal()
654 utest_expect(const char* result, const char* format, ...) in utest_expect() argument
666 if (strcmp(result, buffer)) { in utest_expect()
667 printf("KO. got '%s' expecting '%s'\n", buffer, result); in utest_expect()
[all …]
/bionic/libc/netbsd/resolv/
Dres_debug.c557 const char *result; in p_type() local
560 result = sym_ntos(__p_type_syms, type, &success); in p_type()
562 return (result); in p_type()
593 const char *result; in p_class() local
596 result = sym_ntos(__p_class_syms, class, &success); in p_class()
598 return (result); in p_class()
1132 unsigned long result; in res_nametoclass() local
1136 result = sym_ston(__p_class_syms, buf, &success); in res_nametoclass()
1144 result = strtoul(buf + 5, &endptr, 10); in res_nametoclass()
1145 if (errno == 0 && *endptr == '\0' && result <= 0xffffU) in res_nametoclass()
[all …]
Dres_random.c235 u_int result; in res_randomid() local
246 result = permute15(ru_seed ^ pmod(ru_g, ru_seed2 + ru_x, RU_N)) | ru_msb; in res_randomid()
248 return result; in res_randomid()
/bionic/libc/include/
Dtime.h74 extern struct tm* localtime_r(const time_t *timep, struct tm *result);
77 extern struct tm* gmtime_r(const time_t *timep, struct tm *result);
Ddirent.h67 extern int readdir_r(DIR* dirp, struct dirent *entry, struct dirent **result);
/bionic/libc/netbsd/isc/
Dev_timers.c273 int result=0; in evConfigTimer() local
287 return (result); in evConfigTimer()
301 int result=0; in evResetTimer() local
332 result = heap_increased(ctx->timers, timer->index); in evResetTimer()
335 result = 0; in evResetTimer()
338 result = heap_decreased(ctx->timers, timer->index); in evResetTimer()
347 return (result); in evResetTimer()

12