/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_ulink.c | 142 pp->io.fd = fd; in ulink_start() 145 pp->io.fd = -1; in ulink_start() 149 pp->unitptr = up; in ulink_start() 174 up = pp->unitptr; in ulink_shutdown() 292 char_quality, &pp->year, &pp->day, in ulink_receive() 293 &pp->hour, &syncchar, &pp->minute, &pp->second, in ulink_receive() 364 char_quality, &pp->year, &pp->day, in ulink_receive() 365 &pp->hour, &syncchar, &pp->minute, &pp->second, in ulink_receive() 425 &pp->hour, &pp->minute, &pp->second, in ulink_receive() 556 if (pp->coderecv == pp->codeproc) { in ulink_poll() [all …]
|
H A D | refclock_hopfser.c | 256 (pp->minute < 0) || (pp->minute > 59) || (pp->second < 0) || in hopfserial_receive() 260 (pp->year < 0) || (pp->year > 99)) { in hopfserial_receive() 268 pp->day = ymd2yd(pp->year,month,day); in hopfserial_receive() 269 pp->leap=0; in hopfserial_receive() 280 snprintf(pp->a_lastcode, sizeof(pp->a_lastcode), in hopfserial_receive() 286 pp->year, in hopfserial_receive() 287 pp->hour, in hopfserial_receive() 288 pp->minute, in hopfserial_receive() 291 pp->lencode = strlen(pp->a_lastcode); in hopfserial_receive() 325 pp->lastref = pp->lastrec; in hopfserial_receive() [all …]
|
H A D | refclock_fg.c | 121 pp->unitptr = up; in fg_start() 125 pp->io.fd = fd; in fg_start() 128 pp->io.fd = -1; in fg_start() 196 pp->polls++; in fg_poll() 301 if ((pp->hour == 10) && (pp->minute == 10)) { in fg_receive() 305 snprintf(pp->a_lastcode, sizeof(pp->a_lastcode), in fg_receive() 306 "%d %d %d %d %d", pp->year, pp->day, pp->hour, in fg_receive() 307 pp->minute, pp->second); in fg_receive() 308 pp->lencode = strlen(pp->a_lastcode); in fg_receive() 314 pp->year, pp->day, pp->hour, pp->minute, pp->second); in fg_receive() [all …]
|
H A D | refclock_wwvb.c | 332 &syncchar, &pp->day, &pp->hour, &pp->minute, in wwvb_receive() 345 &syncchar, &qualchar, &pp->year, &pp->day, in wwvb_receive() 346 &pp->hour, &pp->minute, &pp->second, &pp->nsec, in wwvb_receive() 363 &syncchar, &pp->year, &month, &day, &pp->hour, in wwvb_receive() 366 pp->day = ymd2yd(pp->year, month, day); in wwvb_receive() 400 pp->lastref = pp->lastrec; in wwvb_receive() 441 if (!refclock_process_f(pp, pp->fudgetime2)) in wwvb_receive() 511 pp->polls++; in wwvb_poll() 517 if (pp->sloppyclockflag & CLK_FLAG4 && pp->hour < in wwvb_poll() 532 pp->coderecv = pp->codeproc; in wwvb_poll() [all …]
|
H A D | refclock_arc.c | 1166 || !get2(pp->a_lastcode + 1, &pp->hour) in arc_receive() 1167 || !get2(pp->a_lastcode + 3, &pp->minute) in arc_receive() 1168 || !get2(pp->a_lastcode + 5, &pp->second) in arc_receive() 1170 || !get2(pp->a_lastcode + 8, &pp->day) in arc_receive() 1192 if((pp->hour < 0) || (pp->hour > 23) || in arc_receive() 1193 (pp->minute < 0) || (pp->minute > 59) || in arc_receive() 1196 (pp->day < 1) || (pp->day > 31) || in arc_receive() 1198 (pp->year < 0) || (pp->year > 99)) { in arc_receive() 1235 pp->hour, pp->minute, pp->second, in arc_receive() 1374 pp->year,month,gmtp->tm_mday,pp->hour,pp->minute, in arc_receive() [all …]
|
H A D | refclock_as2201.c | 181 pp->io.fd = fd; in as2201_start() 184 pp->io.fd = -1; in as2201_start() 188 pp->unitptr = up; in as2201_start() 215 up = pp->unitptr; in as2201_shutdown() 242 up = pp->unitptr; in as2201_receive() 247 up->linect, pp->lencode, pp->a_lastcode); in as2201_receive() 270 memcpy(up->lastptr, pp->a_lastcode, 1 + pp->lencode); in as2201_receive() 302 &pp->day, &pp->hour, &pp->minute, &pp->second, &pp->nsec) in as2201_receive() 333 memcpy(up->lastptr, pp->a_lastcode, pp->lencode); in as2201_receive() 376 pp->polls++; in as2201_poll() [all …]
|
H A D | refclock_acts.c | 571 pp->lastref = pp->lastrec; in acts_timeout() 769 &mjd, &pp->year, &month, &day, &pp->hour, in acts_timecode() 775 pp->day = ymd2yd(pp->year, month, day); in acts_timecode() 793 &mjd, &pp->day, &pp->hour, &pp->minute, in acts_timecode() 815 &pp->second, &pp->year, &month, &day, &pp->hour, in acts_timecode() 828 pp->day = ymd2yd(pp->year, month, day); in acts_timecode() 839 &synchar, &pp->day, &pp->hour, &pp->minute, in acts_timecode() 856 &synchar, &qualchar, &pp->year, &pp->day, in acts_timecode() 857 &pp->hour, &pp->minute, &pp->second, &pp->nsec, in acts_timecode() 892 pp->lencode = strlen(pp->a_lastcode); in acts_timecode() [all …]
|
H A D | refclock_pst.c | 143 pp->io.fd = fd; in pst_start() 146 pp->io.fd = -1; in pst_start() 150 pp->unitptr = up; in pst_start() 175 up = pp->unitptr; in pst_shutdown() 206 up = pp->unitptr; in pst_receive() 219 pp->lencode = up->lastptr - pp->a_lastcode; in pst_receive() 239 &mchar, &pp->hour, &pp->minute, &pp->second, &pp->nsec, in pst_receive() 262 pp->lastref = pp->lastrec; in pst_receive() 297 up = pp->unitptr; in pst_poll() 302 if (pp->coderecv == pp->codeproc) { in pst_poll() [all …]
|
H A D | refclock_zyfer.c | 156 pp->io.fd = fd; in zyfer_start() 159 pp->io.fd = -1; in zyfer_start() 163 pp->unitptr = up; in zyfer_start() 191 up = pp->unitptr; in zyfer_shutdown() 221 up = pp->unitptr; in zyfer_receive() 243 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, in zyfer_receive() 248 memcpy(pp->a_lastcode + pp->lencode, p, rbufp->recv_length); in zyfer_receive() 250 pp->a_lastcode[pp->lencode] = '\0'; in zyfer_receive() 273 &pp->year, &pp->day, &pp->hour, &pp->minute, &pp->second, in zyfer_receive() 306 refclock_process_offset(pp, tfrac, pp->lastrec, pp->fudgetime1); in zyfer_receive() [all …]
|
H A D | refclock_heath.c | 229 pp = peer->procptr; in heath_start() 233 pp->io.fd = fd; in heath_start() 236 pp->io.fd = -1; in heath_start() 287 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, in heath_receive() 304 &pp->minute, &pp->second, &dsec, a, &month, &day, in heath_receive() 316 if (sscanf(pp->a_lastcode, "%2d:%2d:%2d.%c", &pp->hour, in heath_receive() 317 &pp->minute, &pp->second, &dsec) != 4) { in heath_receive() 377 pp->day = day; in heath_receive() 433 if (pp->coderecv == pp->codeproc) { in heath_poll() 437 pp->lastref = pp->lastrec; in heath_poll() [all …]
|
H A D | refclock_arbiter.c | 172 pp->io.fd = fd; in arb_start() 341 strlcpy(pp->a_lastcode, tbuf, sizeof(pp->a_lastcode)); in arb_receive() 343 strlcat(pp->a_lastcode, up->status, sizeof(pp->a_lastcode)); in arb_receive() 344 pp->lencode = strlen(pp->a_lastcode); in arb_receive() 347 &syncchar, &pp->year, &pp->day, &pp->hour, in arb_receive() 348 &pp->minute, &pp->second) != 6) { in arb_receive() 362 pp->lastref = pp->lastrec; in arb_receive() 390 pp->disp = 1; in arb_receive() 453 pp->polls++; in arb_poll() 462 if (pp->coderecv == pp->codeproc) { in arb_poll() [all …]
|
H A D | refclock_hpgps.c | 185 pp->io.fd = fd; in hpgps_start() 188 pp->io.fd = -1; in hpgps_start() 278 pp->lencode, pp->a_lastcode); in hpgps_receive() 304 memcpy(up->lastptr, pp->a_lastcode, pp->lencode); in hpgps_receive() 416 &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second, in hpgps_receive() 497 pp->hour--; in hpgps_receive() 501 pp->hour++; in hpgps_receive() 507 pp->year--; in hpgps_receive() 519 pp->year++; in hpgps_receive() 524 pp->day = day; in hpgps_receive() [all …]
|
H A D | refclock_tpro.c | 95 pp->io.fd = fd; in tpro_start() 96 pp->unitptr = up; in tpro_start() 121 up = pp->unitptr; in tpro_shutdown() 154 pp->polls++; in tpro_poll() 169 snprintf(pp->a_lastcode, sizeof(pp->a_lastcode), in tpro_poll() 175 pp->lencode = strlen(pp->a_lastcode); in tpro_poll() 179 ulfptoa(&pp->lastrec, 6), pp->lencode, in tpro_poll() 182 if (sscanf(pp->a_lastcode, "%3d %2d:%2d:%2d.%6ld", &pp->day, in tpro_poll() 183 &pp->hour, &pp->minute, &pp->second, &pp->nsec) in tpro_poll() 197 if (pp->coderecv == pp->codeproc) { in tpro_poll() [all …]
|
H A D | ntp_refclock.c | 92 if (pp->coderecv == pp->codeproc) in clk_add_sample() 94 pp->filter[pp->coderecv] = sv; in clk_add_sample() 101 if (pp->coderecv == pp->codeproc) in clk_pop_sample() 104 return pp->filter[pp->codeproc]; in clk_pop_sample() 125 if (pp->coderecv == pp->codeproc) in clk_add_sample() 127 pp->filter[pp->coderecv] = sv; in clk_add_sample() 137 return pp->filter[pp->codeproc]; in clk_pop_sample() 261 pp = emalloc_zero(sizeof(*pp)); in refclock_newpeer() 551 if (!clocktime(pp->day, pp->hour, pp->minute, pp->second, GMT, in refclock_process_f() 645 pp->jitter = max(pp->jitter, pp->fudgeminjitter); in refclock_sample() [all …]
|
H A D | refclock_true.c | 290 pp->io.fd = fd; in true_start() 382 strlcpy(pp->a_lastcode, rd_lastcode, sizeof(pp->a_lastcode)); in true_receive() 411 if ((pp->a_lastcode[5] == '+' || pp->a_lastcode[5] == '-') && in true_receive() 412 (pp->a_lastcode[9] == '+' || pp->a_lastcode[9] == '-') && in true_receive() 436 pp->fudgetime1 = pp->fudgetime2; in true_receive() 520 &pp->day, &pp->hour, &pp->minute, in true_receive() 545 if (!clocktime(pp->day, pp->hour, pp->minute, in true_receive() 546 pp->second, GMT, pp->lastrec.l_ui, in true_receive() 600 pp->lastref = pp->lastrec; in true_receive() 640 pp->polls++; in true_send() [all …]
|
H A D | refclock_chronolog.c | 120 pp = peer->procptr; in chronolog_start() 121 pp->unitptr = up; in chronolog_start() 125 pp->io.fd = fd; in chronolog_start() 128 pp->io.fd = -1; in chronolog_start() 157 up = pp->unitptr; in chronolog_shutdown() 189 up = pp->unitptr; in chronolog_receive() 268 adjyear,adjmon,gmtp->tm_mday,pp->hour,pp->minute, in chronolog_receive() 269 pp->second); in chronolog_receive() 297 pp->lastref = pp->lastrec; in chronolog_receive() 327 up = pp->unitptr; in chronolog_poll() [all …]
|
H A D | refclock_neoclock4x.c | 301 pp->io.fd = fd; in neoclock4x_start() 469 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &pp->lastrec); in neoclock4x_receive() 577 if((pp->hour < 0) || (pp->hour > 23) || in neoclock4x_receive() 578 (pp->minute < 0) || (pp->minute > 59) || in neoclock4x_receive() 582 (pp->year < 0) || (pp->year > 99)) { in neoclock4x_receive() 604 calc_utc = neol_mktime(pp->year, month, day, pp->hour, pp->minute, pp->second); in neoclock4x_receive() 609 neol_localtime(calc_utc, &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second); in neoclock4x_receive() 614 pp->day = ymd2yd(pp->year, month, day); in neoclock4x_receive() 615 pp->leap = 0; in neoclock4x_receive() 622 pp->hour, pp->minute, pp->second, in neoclock4x_receive() [all …]
|
H A D | refclock_hopfpci.c | 121 struct refclockproc *pp; in hopfpci_start() local 141 pp = peer->procptr; in hopfpci_start() 143 pp->io.srcclock = peer; in hopfpci_start() 144 pp->io.datalen = 0; in hopfpci_start() 146 pp->unitptr = up; in hopfpci_start() 194 pp = peer->procptr; in hopfpci_poll() 203 pp->polls++; in hopfpci_poll() 215 snprintf(pp->a_lastcode, sizeof(pp->a_lastcode), in hopfpci_poll() 217 m_time.wStatus, pp->hour, pp->minute, pp->second, in hopfpci_poll() 220 pp->lencode = (u_short)strlen(pp->a_lastcode); in hopfpci_poll() [all …]
|
H A D | refclock_pcf.c | 89 pp = peer->procptr; in pcf_start() 92 pp->io.datalen = 0; in pcf_start() 93 pp->io.fd = fd; in pcf_start() 120 pp = peer->procptr; in pcf_shutdown() 121 if (NULL != pp) in pcf_shutdown() 122 close(pp->io.fd); in pcf_shutdown() 140 pp = peer->procptr; in pcf_poll() 196 pp->polls++; in pcf_poll() 209 unit, pp->year, tp->tm_mon + 1, tp->tm_mday, pp->hour, in pcf_poll() 210 pp->minute, pp->second); in pcf_poll() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | sh.proc.c | 274 for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) in pchild() 430 for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) { in pnote() 490 pp = pp->p_friends; in pjwait() 627 for (pp = proclist.p_next; pp; pp = pp->p_next) in dowait() 655 for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) in pflushall() 676 pp = pp->p_friends; in pflush() 801 pp->p_friends = pp; in palloc() 1328 for (pp = proclist.p_next; pp; pp = pp->p_next) in dojobs() 1662 for (pp = proclist.p_next; pp; pp = pp->p_next) in panystop() 1685 for (pp = proclist.p_next; pp; pp = pp->p_next) in pfind() [all …]
|
/freebsd/sys/security/mac/ |
H A D | mac_pipe.c | 77 pp->pp_label = NULL; in mac_pipe_init() 92 if (pp->pp_label != NULL) { in mac_pipe_destroy() 94 pp->pp_label = NULL; in mac_pipe_destroy() 130 MAC_POLICY_PERFORM_NOSLEEP(pipe_create, cred, pp, pp->pp_label); in mac_pipe_create() 138 MAC_POLICY_PERFORM_NOSLEEP(pipe_relabel, cred, pp, pp->pp_label, in mac_pipe_relabel() 153 MAC_POLICY_CHECK_NOSLEEP(pipe_check_ioctl, cred, pp, pp->pp_label, in mac_pipe_check_ioctl() 170 MAC_POLICY_CHECK_NOSLEEP(pipe_check_poll, cred, pp, pp->pp_label); in mac_pipe_check_poll_impl() 186 MAC_POLICY_CHECK_NOSLEEP(pipe_check_read, cred, pp, pp->pp_label); in mac_pipe_check_read_impl() 203 MAC_POLICY_CHECK_NOSLEEP(pipe_check_relabel, cred, pp, pp->pp_label, in mac_pipe_check_relabel() 220 MAC_POLICY_CHECK_NOSLEEP(pipe_check_stat, cred, pp, pp->pp_label); in mac_pipe_check_stat() [all …]
|
/freebsd/usr.sbin/lpr/common_source/ |
H A D | printcap.c | 142 init_printer(pp); in firstprinter() 164 free_printer(pp); in nextprinter() 318 *pp = zero; in init_printer() 330 cfree(pp->printer); in free_printer() 331 cfree(pp->acct_file); in free_printer() 334 cfree(pp->form_feed); in free_printer() 335 cfree(pp->log_file); in free_printer() 337 cfree(pp->lp); in free_printer() 345 cfree(pp->trailer); in free_printer() 346 cfree(pp->mode_set); in free_printer() [all …]
|
/freebsd/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 294 pp->printer, pp->lock_file); in printjob() 316 pp->printer, pp->lock_file); in printjob() 346 if (!pp->no_formfeed && !pp->tof) in printjob() 499 if (!pp->no_header && !pp->header_last) in printit() 571 if (!pp->no_header && pp->header_last) in printit() 1149 pp->printer, pp->remote_host); in sendfile() 1443 if (!pp->no_formfeed && !pp->tof) in banner() 1635 pp->printer, pp->daemon_user); in dofork() 1668 pp->printer, pp->daemon_user); in dofork() 1919 pfd = getport(pp, pp->remote_host, 0); in openrem() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libuutil/ |
H A D | uu_avl.c | 61 #define POOL_TO_MARKER(pp) (((uintptr_t)(pp) | 1)) argument 100 pp->uap_null_avl.ua_next = &pp->uap_null_avl; in uu_avl_pool_create() 101 pp->uap_null_avl.ua_prev = &pp->uap_null_avl; in uu_avl_pool_create() 121 (int)sizeof (pp->uap_name), pp->uap_name, in uu_avl_pool_destroy() 126 pp->uap_next->uap_prev = pp->uap_prev; in uu_avl_pool_destroy() 127 pp->uap_prev->uap_next = pp->uap_next; in uu_avl_pool_destroy() 145 base, (void *)np, (void *)pp, pp->uap_name, in uu_avl_node_init() 151 base, (void *)np, (void *)pp, pp->uap_name, in uu_avl_node_init() 169 base, (void *)np, (void *)pp, pp->uap_name); in uu_avl_node_fini() 555 pp = pp->uap_next) in uu_avl_lockup() [all …]
|
/freebsd/sys/geom/ |
H A D | geom_subr.c | 196 if (pp->acr || pp->acw || pp->ace) { in g_unload_class() 328 if (pp->acr || pp->acw || pp->ace) in g_retaste_event() 622 pp->name = (char *)(pp + 1); in g_new_providerf() 690 pp = hh->pp; in g_resize_provider_event() 754 hh->pp = pp; in g_resize_provider() 1012 pp->acr, pp->acw, pp->ace, in g_access() 1013 pp, pp->name); in g_access() 1062 else if (pp->acw != 0 && pp->acw == -dcw && pp->error == 0 && in g_access() 1073 if (pp->acr != 0 || pp->acw != 0 || pp->ace != 0) in g_access() 1214 pp->geom->class->name, pp->geom->name, pp->name); in g_spoil_event() [all …]
|