Home
last modified time | relevance | path

Searched refs:retv (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/ntp/libntp/
H A Dntp_calgps.c197 TNtpDatum retv; in _gpsntp_from_daytime() local
200 ZERO(retv); in _gpsntp_from_daytime()
201 retv.secs = ntpcal_date_to_daysec(jd); in _gpsntp_from_daytime()
202 gpsntp_add_offset(&retv, fofs); /* result is normalized */ in _gpsntp_from_daytime()
203 retv.days = pivot->days; in _gpsntp_from_daytime()
208 retv.days -= (retv.secs > lim || in _gpsntp_from_daytime()
209 (retv.secs == lim && retv.frac >= pivot->frac)); in _gpsntp_from_daytime()
212 retv.days += (retv.secs < lim || in _gpsntp_from_daytime()
213 (retv.secs == lim && retv.frac < pivot->frac)); in _gpsntp_from_daytime()
215 return warp ? _gpsntp_fix_gps_era(&retv) : retv; in _gpsntp_from_daytime()
[all …]
H A Dmsyslog.c597 int retv = 0; in change_iobufs() local
610 retv = 1; in change_iobufs()
612 retv = -1; in change_iobufs()
614 retv = -1; in change_iobufs()
622 return retv; in change_iobufs()
H A Dntp_calendar.c2061 int32_t retv; in basedate_set_day()
2070 retv = s_baseday; in basedate_set_day()
2086 return retv; in basedate_set_day()
2092 time_t retv; in basedate_get_eracenter()
2093 retv = (time_t)(s_baseday - NTP_TO_UNIX_DAYS); in basedate_get_eracenter() local
2094 retv *= SECSPERDAY; in basedate_get_eracenter()
2095 retv += (UINT32_C(1) << 31); in basedate_get_eracenter()
2096 return retv; in basedate_get_eracenter()
2102 time_t retv; in basedate_get_erabase()
2103 retv in basedate_get_erabase() local
2062 int32_t retv; basedate_set_day() local
[all...]
H A Dntp_intres.c974 dnsworker_ctx * retv; in get_worker_context()
987 retv = emalloc_zero(sizeof(dnsworker_ctx)); in get_worker_context()
988 dnsworker_contexts[idx] = retv; in get_worker_context()
989 } else if (NULL == (retv = dnsworker_contexts[idx])) { in get_worker_context()
990 retv = emalloc_zero(sizeof(dnsworker_ctx)); in get_worker_context()
991 dnsworker_contexts[idx] = retv; in get_worker_context()
996 ZERO(*retv); in get_worker_context()
997 retv->c = c; in get_worker_context()
998 return retv; in get_worker_context()
980 dnsworker_ctx * retv; get_worker_context() local
H A Dsystime.c600 char * retv; in tv_fmt_libbuf()
608 LIB_GETBUF(retv); in tv_fmt_libbuf()
609 snprintf(retv, LIB_BUFLENGTH, in tv_fmt_libbuf()
614 return retv; in tv_fmt_libbuf()
601 char * retv; tv_fmt_libbuf() local
/freebsd/contrib/libpcap/
H A Dpcap-libdlpi.c98 int retv; in pcap_activate_libdlpi() local
107 retv = dlpi_open(p->opt.device, &dh, DLPI_RAW|DLPI_PASSIVE); in pcap_activate_libdlpi()
108 if (retv != DLPI_SUCCESS) { in pcap_activate_libdlpi()
109 if (retv == DLPI_ELINKNAMEINVAL || retv == DLPI_ENOLINK) { in pcap_activate_libdlpi()
116 } else if (retv == DL_SYSERR && in pcap_activate_libdlpi()
124 pcap_libdlpi_err(p->opt.device, "dlpi_open", retv, in pcap_activate_libdlpi()
141 if ((retv = dlpi_bind(pd->dlpi_hd, DLPI_ANY_SAP, 0)) != DLPI_SUCCESS) { in pcap_activate_libdlpi()
143 pcap_libdlpi_err(p->opt.device, "dlpi_bind", retv, p->errbuf); in pcap_activate_libdlpi()
160 retv = dlpromiscon(p, DL_PROMISC_PHYS); in pcap_activate_libdlpi()
161 if (retv < 0) { in pcap_activate_libdlpi()
[all …]
H A Ddlpisubs.c228 int retv = 0; in pcap_process_mactype() local
308 retv = -1; in pcap_process_mactype()
311 return (retv); in pcap_process_mactype()
394 int retv; in strioctl() local
400 if ((retv = ioctl(fd, I_STR, &str)) < 0) in strioctl()
401 return (retv); in strioctl()
H A Dpcap-dlpi.c521 int retv; local
571 retv = dl_doattach(p->fd, ppa, p->errbuf);
572 if (retv < 0) {
573 status = retv;
578 retv = dl_doattach(pd->send_fd, ppa, p->errbuf);
579 if (retv < 0) {
580 status = retv;
696 retv = dlpromiscon(p, DL_PROMISC_PHYS);
697 if (retv < 0) {
698 if (retv == PCAP_ERROR_PERM_DENIED)
[all …]
H A Dpcap-bpf.c1887 int retv; local
2468 retv = monitor_mode(p, 1);
2469 if (retv != 0) {
2473 status = retv;
/freebsd/crypto/heimdal/lib/krb5/
H A Dacl.c41 char **retv; member
51 if (*acl->u.retv) in free_retv()
52 free(*acl->u.retv); in free_retv()
53 *acl->u.retv = NULL; in free_retv()
60 acl_free_list(struct acl_field *acl, int retv) in acl_free_list() argument
63 if (retv) in acl_free_list()
97 tmp->u.retv = va_arg(ap, char **); in acl_parse_format()
98 *tmp->u.retv = NULL; in acl_parse_format()
128 *field->u.retv = strdup(string); in acl_match_field()
/freebsd/contrib/ntp/tests/libntp/
H A Drealpath.c27 int retv = FALSE; in isValidAbsPath() local
32 retv = (sb.st_mode & S_IFMT) != S_IFLNK; in isValidAbsPath()
35 return retv; in isValidAbsPath()
/freebsd/contrib/mandoc/
H A Dmdoc_argv.c281 struct mdoc_argv **retv; in mdoc_argv() local
363 retv = &(*reta)->argv; in mdoc_argv()
364 *retv = mandoc_reallocarray(*retv, retc, sizeof(**retv)); in mdoc_argv()
365 memcpy(*retv + retc - 1, &tmpv, sizeof(**retv)); in mdoc_argv()
/freebsd/sys/dev/ath/ath_hal/ar9002/
H A Dar9285_cal.c214 HAL_BOOL retv = AH_TRUE; in ar9285_hw_clc() local
254 retv = ar9285_hw_cl_cal(ah, chan); in ar9285_hw_clc()
257 return retv; in ar9285_hw_clc()
/freebsd/contrib/ntp/ntpd/
H A Dntp_scanner.c339 int retv = FALSE; in lex_flush_stack() local
342 retv = !lex_stack->force_eof; in lex_flush_stack()
347 return retv; in lex_flush_stack()
H A Dntp_refclock.c109 u_int retv = pp->coderecv - pp->codeproc; in clk_cnt_sample()
110 if (retv > MAXSTAGE) in clk_cnt_sample()
111 retv += MAXSTAGE; in clk_cnt_sample() local
112 return retv; in clk_cnt_sample()
H A Dntp_util.c340 int retv; in allow_config()
345 retv = !(seen & mask); in allow_config() local
348 retv = FALSE; in allow_config()
350 return retv;
H A Drefclock_gpsdjson.c1416 BOOL retv = FALSE; in get_binary_time() local
1425 retv = TRUE; in get_binary_time()
1427 return retv; in get_binary_time()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clbio.c1656 int retv; in ncl_doio()
1660 retv = ncl_commit(vp, off, bp->b_dirtyend-bp->b_dirtyoff, in ncl_doio()
1662 if (NFSCL_FORCEDISM(vp->v_mount) || retv == 0) { in ncl_doio()
1669 if (retv == NFSERR_STALEWRITEVERF) { in ncl_doio()
1627 int retv; ncl_doio() local
H A Dnfs_clvnops.c2915 int error = 0, slptimeo = 0, slpflag = 0, retv, bvecpos; in ncl_flush() local
3051 retv = ncl_commit(vp, off, (int)(endoff - off), in ncl_flush()
3054 retv = 0; in ncl_flush()
3062 retv = ncl_commit(vp, off, (int)size, in ncl_flush()
3064 if (retv) break; in ncl_flush()
3068 if (retv == NFSERR_STALEWRITEVERF) in ncl_flush()
3079 if (!NFSCL_FORCEDISM(vp->v_mount) && retv) { in ncl_flush()
H A Dnfs_clrpcops.c6103 enum nfsclds_state retv; in nfsrpc_fillsa() local
6279 retv = nfscl_getsameserver(nmp, dsp, &tdsp, in nfsrpc_fillsa()
6281 NFSCL_DEBUG(3, "getsame ret=%d\n", retv); in nfsrpc_fillsa()
6282 if (retv == NFSDSP_USETHISSESSION && in nfsrpc_fillsa()
6297 if (retv == NFSDSP_NOTFOUND) in nfsrpc_fillsa()
/freebsd/sys/dev/sym/
H A Dsym_hipd.c2986 int retv = 0; in sym_reset_scsi_bus() local
3027 retv = 1; in sym_reset_scsi_bus()
3032 return retv; in sym_reset_scsi_bus()
7735 int retv; local
7738 retv = sym_scatter_sg_physical(np, cp, psegs, nsegs);
7740 retv = sym_fast_scatter_sg_physical(np,cp, psegs,nsegs);
7741 if (retv < 0) {
7807 int dir, retv; local
7829 retv = bus_dmamap_load_ccb(np->data_dmat, cp->dmamap,
7831 if (retv == EINPROGRESS) {
[all …]
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_atheros.c1999 int retv; in atheros_add_tspec() local
2007 retv = set80211priv(drv, IEEE80211_IOCTL_RES_REQ, &req, in atheros_add_tspec()
2009 if (retv < 0) { in atheros_add_tspec()
2011 "retv = %d", __func__, retv); in atheros_add_tspec()