Home
last modified time | relevance | path

Searched refs:res (Results 101 – 125 of 2447) sorted by relevance

12345678910>>...98

/freebsd/crypto/heimdal/lib/roken/
H A Dtimegm.c56 time_t res = 0; in rk_timegm() local
73 res += is_leap(i) ? 366 : 365; in rk_timegm()
76 res += ndays[is_leap(tm->tm_year)][i]; in rk_timegm()
77 res += tm->tm_mday - 1; in rk_timegm()
78 res *= 24; in rk_timegm()
79 res += tm->tm_hour; in rk_timegm()
80 res *= 60; in rk_timegm()
81 res += tm->tm_min; in rk_timegm()
82 res *= 60; in rk_timegm()
83 res += tm->tm_sec; in rk_timegm()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_posix.cpp387 return res; in TSAN_INTERCEPTOR()
394 return res; in TSAN_INTERCEPTOR()
401 return res; in TSAN_INTERCEPTOR()
473 int res; in setup_at_exit_wrapper() local
494 return res; in setup_at_exit_wrapper()
522 return res; in TSAN_INTERCEPTOR()
1335 if (res == 0 || res == errno_EBUSY) { in TSAN_INTERCEPTOR()
1347 if (res == 0 || res == errno_EOWNERDEAD) in TSAN_INTERCEPTOR()
1359 if (res == 0 || res == errno_EOWNERDEAD) in TSAN_INTERCEPTOR()
1392 if (res == 0 || res == errno_EOWNERDEAD) in TSAN_INTERCEPTOR()
[all …]
/freebsd/contrib/sendmail/test/
H A Dt_dropgid.c59 int res; local
78 res = setregid(realgid, realgid);
80 res < 0 ? "failure" : "ok");
84 res = setresgid(realgid, realgid, realgid);
86 res < 0 ? "failure" : "ok");
90 res = setegid(realgid);
91 printf("setegid(%d)=%d %s\n", (int) realgid, res,
92 res < 0 ? "failure" : "ok");
95 res = setgid(realgid);
96 printf("setgid(%d)=%d %s\n", (int) realgid, res,
[all …]
/freebsd/sys/dev/ofw/
H A Dofw_subr.c52 int pci, res; in get_addr_props() local
55 if (res == -1) in get_addr_props()
58 if (res == -1) in get_addr_props()
63 if (res != -1) { in get_addr_props()
89 int pci, pcib, res; in ofw_reg_to_paddr() local
105 if (res == -1) in ofw_reg_to_paddr()
107 if (res % sizeof(cell[0])) in ofw_reg_to_paddr()
109 res /= sizeof(cell[0]); in ofw_reg_to_paddr()
134 if (res < 1) in ofw_reg_to_paddr()
143 res /= sizeof(cell[0]); in ofw_reg_to_paddr()
[all …]
/freebsd/sys/dev/enic/
H A Denic.h27 struct resource *res; member
36 bus_space_write_8(res->bar.tag, res->bar.handle, \
37 res->bar.offset + (index), value)
39 bus_space_write_4(res->bar.tag, res->bar.handle, \
42 bus_space_write_region_4(res->bar.tag, res->bar.handle, \
46 bus_space_read_8(res->bar.tag, res->bar.handle, \
47 res->bar.offset + (index))
49 bus_space_read_4(res->bar.tag, res->bar.handle, \
50 res->bar.offset + (index))
52 bus_space_read_region_4(res->type.tag, res->type.handle, \
[all …]
/freebsd/bin/pax/
H A Dar_io.c410 int res; in ar_drain() local
504 int res = 0; in ar_read() local
566 if (res < 0) in ar_read()
570 return(res); in ar_read()
587 int res; in ar_write() local
606 if (res < 0) in ar_write()
613 if ((res > 0) && (res % BLKMULT)) { in ar_write()
669 if (res > 0) in ar_write()
680 return(res); in ar_write()
691 return(res); in ar_write()
[all …]
/freebsd/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_comp_zlib.c44 int fd, res; in main() local
56 if (res < 0) in main()
67 res = ioctl(fd, CIOCCRYPT, &co1); in main()
68 if (res < 0) in main()
79 res = inflateInit2(&z, -15); in main()
80 if (res != Z_OK) in main()
81 errx(1, "inflateInit: %d", res); in main()
83 res = inflate(&z, Z_SYNC_FLUSH); in main()
84 } while (res == Z_OK); in main()
85 if (res != Z_STREAM_END) in main()
[all …]
H A Dh_comp_zlib_rnd.c46 int fd, res; in main() local
61 if (res < 0) in main()
71 res = ioctl(fd, CIOCCRYPT, &co1); in main()
72 if (res < 0) in main()
83 res = inflateInit2(&z, -15); in main()
84 if (res != Z_OK) in main()
85 errx(1, "inflateInit: %d", res); in main()
87 res = inflate(&z, Z_SYNC_FLUSH); in main()
88 } while (res == Z_OK); in main()
89 if (res != Z_STREAM_END) in main()
[all …]
/freebsd/sys/arm64/linux/
H A Dlinux_vdso_gtod.c57 register long res asm ("x0"); in write()
61 : "=r" (res) in write()
64 return (res); in write()
73 register long res asm ("x0"); in __vdso_clock_gettime_fallback()
77 : "=r" (res) in __vdso_clock_gettime_fallback()
80 return (res); in __vdso_clock_gettime_fallback()
89 register long res asm ("x0"); in __vdso_gettimeofday_fallback()
93 : "=r" (res) in __vdso_gettimeofday_fallback()
96 return (res); in __vdso_gettimeofday_fallback()
109 : "=r" (res) in __vdso_clock_getres_fallback()
[all …]
/freebsd/contrib/tcsh/
H A Dsh.misc.c594 int res; in xcreat() local
599 return res; in xcreat()
606 int res; in xdup2() local
611 return res; in xdup2()
626 return res; in xgetgrgid()
640 return res; in xgetpwnam()
654 return res; in xgetpwuid()
660 int res; in xopen() local
680 return res; in xopen()
694 return res; in xread()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp54 return (void *)res; in MmapOrDie()
77 return (void *)res; in MmapOrDieOnFatalError()
96 uptr res = map_res; in MmapAlignedOrDieOnFatalError() local
102 uptr end = res + size; in MmapAlignedOrDieOnFatalError()
108 return (void*)res; in MmapAlignedOrDieOnFatalError()
190 *bytes_read = res; in ReadFromFile()
200 *bytes_written = res; in WriteToFile()
374 CHECK_EQ(0, res); in GetNamedMappingFd()
376 CHECK_EQ(0, res); in GetNamedMappingFd()
378 CHECK_EQ(0, res); in GetNamedMappingFd()
[all …]
H A Dsanitizer_common_interceptors.inc4437 if (res) write_mntent(ctx, res);
4451 if (res) write_mntent(ctx, res);
4607 if (res) COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, sizeof(*res));
6080 if (res) unpoison_file(res);
6088 if (res) unpoison_file(res);
6100 if (res) unpoison_file(res);
6153 if (res) unpoison_file(res);
6165 if (res) unpoison_file(res);
6214 if (res) unpoison_file(res);
9641 if (res) unpoison_file(res);
[all …]
/freebsd/contrib/libcbor/test/
H A Dnegint_test.c13 struct cbor_load_result res; variable
23 number = cbor_load(data1, 2, &res); in test_very_short_int()
29 assert_true(res.error.code == 0); in test_very_short_int()
30 assert_true(res.read == 1); in test_very_short_int()
43 assert_true(res.error.code == 0); in test_short_int()
44 assert_true(res.read == 2); in test_short_int()
57 assert_true(res.error.code == 0); in test_half_int()
58 assert_true(res.read == 3); in test_half_int()
71 assert_true(res.error.code == 0); in test_int()
72 assert_true(res.read == 5); in test_int()
[all …]
H A Dbytestring_test.c13 struct cbor_load_result res; variable
142 assert_true(res.read == 1); in test_empty_bs()
153 assert_true(res.read == 2); in test_embedded_bs()
172 assert_true(res.read == 3); in test_short_bs1()
185 assert_true(res.read == 257); in test_short_bs2()
197 assert_true(res.read == 258); in test_half_bs()
209 assert_true(res.read == 260); in test_int_bs()
221 assert_true(res.read == 264); in test_long_bs()
236 assert_true(res.read == 2); in test_zero_indef()
253 assert_true(res.read == 5); in test_short_indef()
[all …]
/freebsd/contrib/mandoc/
H A Dmansearch.c107 *res = NULL; in mansearch()
184 *res = mandoc_reallocarray(*res, in mansearch()
297 (char *)&res, sizeof(res.page), res.page); in manmerge_term()
346 for (res = ohash_first(h1, &slot1); res != NULL; in manmerge_and()
349 (char *)res, sizeof(res->page), in manmerge_and()
354 (char *)res, sizeof(res->page), in manmerge_and()
355 res->page), res); in manmerge_and()
360 for (res = ohash_first(h2, &slot2); res != NULL; in manmerge_and()
374 for (res = ohash_first(hand, &slot1); res != NULL; in manmerge_and()
377 (char *)res, sizeof(res->page), res->page); in manmerge_and()
[all …]
/freebsd/contrib/pf/libevent/
H A Devbuffer.c92 int res = 0; in bufferevent_readcb() local
120 if (res <= 0) in bufferevent_readcb()
155 int res = 0; in bufferevent_writecb() local
293 int res; in bufferevent_write() local
297 if (res == -1) in bufferevent_write()
298 return (res); in bufferevent_write()
304 return (res); in bufferevent_write()
310 int res; in bufferevent_write_buffer() local
316 return (res); in bufferevent_write_buffer()
405 int res; in bufferevent_base_set() local
[all …]
/freebsd/sys/kgssapi/
H A Dgss_acquire_cred.c54 struct acquire_cred_res res; in gss_acquire_cred() local
75 bzero(&res, sizeof(res)); in gss_acquire_cred()
76 stat = gssd_acquire_cred_1(&args, &res, cl); in gss_acquire_cred()
83 if (res.major_status != GSS_S_COMPLETE) { in gss_acquire_cred()
84 *minor_status = res.minor_status; in gss_acquire_cred()
85 return (res.major_status); in gss_acquire_cred()
89 cred->handle = res.output_cred; in gss_acquire_cred()
96 for (i = 0; i < res.actual_mechs->count; i++) { in gss_acquire_cred()
98 &res.actual_mechs->elements[i], actual_mechs); in gss_acquire_cred()
104 *time_rec = res.time_rec; in gss_acquire_cred()
[all …]
H A Dgss_display_status.c50 struct display_status_res res; in gss_display_status() local
65 bzero(&res, sizeof(res)); in gss_display_status()
66 stat = gssd_display_status_1(&args, &res, cl); in gss_display_status()
73 if (res.major_status != GSS_S_COMPLETE) { in gss_display_status()
74 *minor_status = res.minor_status; in gss_display_status()
75 return (res.major_status); in gss_display_status()
78 *message_context = res.message_context; in gss_display_status()
79 kgss_copy_buffer(&res.status_string, status_string); in gss_display_status()
80 xdr_free((xdrproc_t) xdr_display_status_res, &res); in gss_display_status()
/freebsd/lib/librpcsvc/
H A Dyp_update.c63 unsigned int res; in yp_update() local
133 res = YPERR_ACCESS; in yp_update()
135 res = YPERR_RPC; in yp_update()
150 res = YPERR_ACCESS; in yp_update()
152 res = YPERR_RPC; in yp_update()
165 res = YPERR_ACCESS; in yp_update()
167 res = YPERR_RPC; in yp_update()
182 res = YPERR_ACCESS; in yp_update()
184 res = YPERR_RPC; in yp_update()
189 res = YPERR_BADARGS; in yp_update()
[all …]
/freebsd/lib/libc/rpc/
H A Drtime.c71 int res; in rtime() local
97 res = _sendto(s, (char *)&thetime, sizeof(thetime), 0, in rtime()
99 if (res < 0) { in rtime()
106 res = _select(_rpc_dtablesize(), &readfds, in rtime()
108 } while (res < 0 && errno == EINTR); in rtime()
109 if (res <= 0) { in rtime()
110 if (res == 0) { in rtime()
120 if (res < 0) { in rtime()
128 res = _read(s, (char *)&thetime, sizeof(thetime)); in rtime()
130 if (res < 0) { in rtime()
[all …]
/freebsd/crypto/openssl/crypto/bio/
H A Dbio_sock.c48 BIO_ADDRINFO *res = NULL; in BIO_get_host_ip() local
57 if (BIO_ADDRINFO_family(res) != AF_INET) { in BIO_get_host_ip()
67 BIO_ADDRINFO_free(res); in BIO_get_host_ip()
77 BIO_ADDRINFO *res = NULL; in BIO_get_port() local
89 if (BIO_ADDRINFO_family(res) != AF_INET) { in BIO_get_port()
95 BIO_ADDRINFO_free(res); in BIO_get_port()
219 BIO_ADDRINFO *res = NULL; in BIO_get_accept_socket() local
230 if ((s = BIO_socket(BIO_ADDRINFO_family(res), BIO_ADDRINFO_socktype(res), in BIO_get_accept_socket()
243 BIO_ADDRINFO_free(res); in BIO_get_accept_socket()
252 BIO_ADDR res; in BIO_accept() local
[all …]
/freebsd/usr.sbin/rpc.statd/
H A Dstatd.c421 if (res == NULL) in create_service()
485 free(res->ai_addr); in create_service()
486 free(res); in create_service()
488 freeaddrinfo(res); in create_service()
508 free(res->ai_addr); in create_service()
509 free(res); in create_service()
511 freeaddrinfo(res); in create_service()
512 res = NULL; in create_service()
589 &res)) != 0) { in complete_service()
596 memcpy(servaddr.buf, res->ai_addr, res->ai_addrlen); in complete_service()
[all …]
/freebsd/sys/powerpc/powernv/
H A Dplatform_powernv.c139 int res, len, idx; in powernv_attach() local
201 if (res > 0 && strcmp(buf, "cpu") == 0) in powernv_attach()
209 if (res > 0) in powernv_attach()
286 int res; in powernv_timebase_freq() local
320 int a, res, tmp_cpuref_cnt; in powernv_cpuref_init() local
345 if (res > 0) { in powernv_cpuref_init()
347 interrupt_servers, res); in powernv_cpuref_init()
448 int res, nthreads; in powernv_smp_probe_threads() local
468 if (res >= 0) in powernv_smp_probe_threads()
469 nthreads = res / sizeof(cell_t); in powernv_smp_probe_threads()
[all …]
/freebsd/tests/sys/netinet/libalias/
H A Dutil.h66 int res; \
70 res = LibAliasOut(la, pip, len); \
71 ATF_CHECK_MSG(res == PKT_ALIAS_OK, \
78 int res; \
82 res = LibAliasOut(la, pip, len); \
83 ATF_CHECK_MSG(res != PKT_ALIAS_OK, \
90 int res; \
94 res = LibAliasIn(la, pip, len); \
95 ATF_CHECK_MSG(res == PKT_ALIAS_OK, \
102 int res; \
[all …]
/freebsd/usr.sbin/pmcstudy/
H A Dpmcstudy.c479 double un, par, res; in allocstall1() local
489 res = par/un; in allocstall1()
511 res = par/un; in allocstall2()
1189 double un, d1, res; in itlb_miss() local
1200 res = d1/un; in itlb_miss()
1256 res = (ic-d1)/un; in icache_miss()
1295 double un, d1, res; in lcp_stall() local
1306 res = d1/un; in lcp_stall()
1533 res = fpd/un; in fpassists()
1631 res = un/ot; in efficiency2()
[all …]

12345678910>>...98