Home
last modified time | relevance | path

Searched refs:pr (Results 1 – 25 of 149) sorted by relevance

123456

/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgen_pr.c73 memset(pr, 0x5e, sizeof *pr); in irs_gen_pr()
75 memput(pr, sizeof *pr); in irs_gen_pr()
111 pr = pvt->rule->inst->pr; in pr_next()
112 rval = (*pr->next)(pr); in pr_next()
119 pr = pvt->rule->inst->pr; in pr_next()
120 (*pr->rewind)(pr); in pr_next()
135 pr = rule->inst->pr; in pr_byname()
152 pr = rule->inst->pr; in pr_bynumber()
167 pr = pvt->rule->inst->pr; in pr_rewind()
168 (*pr->rewind)(pr); in pr_rewind()
[all …]
H A Dirp_pr.c76 if (!(pr = memget(sizeof *pr))) { in irs_irp_pr()
80 memset(pr, 0x0, sizeof *pr); in irs_irp_pr()
83 memput(pr, sizeof *pr); in irs_irp_pr()
97 return (pr); in irs_irp_pr()
155 pr = NULL; in pr_byname()
158 pr = NULL; in pr_byname()
165 return (pr); in pr_byname()
183 if (pr->p_name != NULL && proto == pr->p_proto) { in pr_bynumber()
204 pr = NULL; in pr_bynumber()
207 pr = NULL; in pr_bynumber()
[all …]
H A Dgetprotoent.c87 if (!net_data || !(pr = net_data->pr)) in getprotoent_p()
89 net_data->pr_last = (*pr->next)(pr); in getprotoent_p()
98 if (!net_data || !(pr = net_data->pr)) in getprotobyname_p()
107 net_data->pr_last = (*pr->byname)(pr, name); in getprotobyname_p()
117 if (!net_data || !(pr = net_data->pr)) in getprotobynumber_p()
122 net_data->pr_last = (*pr->bynumber)(pr, proto); in getprotobynumber_p()
132 if (!net_data || !(pr = net_data->pr)) in setprotoent_p()
134 (*pr->rewind)(pr); in setprotoent_p()
144 if ((net_data != NULL) && ((pr = net_data->pr) != NULL)) in endprotoent_p()
145 (*pr->minimize)(pr); in endprotoent_p()
[all …]
H A Ddns_pr.c72 struct irs_pr *pr; in irs_dns_pr() local
83 if (!(pr = memget(sizeof *pr))) { in irs_dns_pr()
88 memset(pr, 0x5e, sizeof *pr); in irs_dns_pr()
90 pr->private = pvt; in irs_dns_pr()
91 pr->byname = pr_byname; in irs_dns_pr()
93 pr->next = pr_next; in irs_dns_pr()
94 pr->rewind = pr_rewind; in irs_dns_pr()
95 pr->close = pr_close; in irs_dns_pr()
97 pr->res_get = pr_res_get; in irs_dns_pr()
98 pr->res_set = pr_res_set; in irs_dns_pr()
[all …]
H A Dlcl_pr.c106 struct irs_pr *pr; in irs_lcl_pr() local
109 if (!(pr = memget(sizeof *pr))) { in irs_lcl_pr()
114 memput(pr, sizeof *this); in irs_lcl_pr()
119 pr->private = pvt; in irs_lcl_pr()
120 pr->close = pr_close; in irs_lcl_pr()
121 pr->byname = pr_byname; in irs_lcl_pr()
123 pr->next = pr_next; in irs_lcl_pr()
124 pr->rewind = pr_rewind; in irs_lcl_pr()
126 pr->res_get = NULL; in irs_lcl_pr()
127 pr->res_set = NULL; in irs_lcl_pr()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtables.c621 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) in phyint_print()
830 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in tmptoken_delete()
883 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in tmptoken_timer()
1003 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in prefix_lookup()
1080 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in prefix_lookup_name()
1325 pr->pr_state = pr->pr_kernel_state; in prefix_init_from_k()
1330 prefix_set(&pr->pr_prefix, pr->pr_prefix, pr->pr_prefix_len); in prefix_init_from_k()
1387 pr->pr_prev->pr_next = pr->pr_next; in prefix_delete()
1390 pr->pr_next->pr_prev = pr->pr_prev; in prefix_delete()
1391 pr->pr_next = pr->pr_prev = NULL; in prefix_delete()
[all …]
H A Dndp.c651 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in incoming_prefix_onlink()
670 if (pr == NULL) in incoming_prefix_onlink()
697 pr->pr_OnLinkLifetime = pr->pr_ValidLifetime; in incoming_prefix_onlink_process()
708 pr->pr_name, inet_ntop(AF_INET6, (void *)&pr->pr_prefix, in incoming_prefix_onlink_process()
710 pr->pr_OnLinkLifetime, pr->pr_state, pr->pr_kernel_state); in incoming_prefix_onlink_process()
713 if (pr->pr_kernel_state != pr->pr_state) { in incoming_prefix_onlink_process()
747 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in incoming_prefix_stateful()
824 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in incoming_prefix_addrconf()
1051 pr->pr_address.s6_addr[i] = pr->pr_prefix.s6_addr[i] | in incoming_prefix_addrconf_process()
1120 pr->pr_ValidLifetime, pr->pr_PreferredLifetime); in incoming_prefix_addrconf_process()
[all …]
H A Dmain.c662 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in initifs()
1241 for (pr = pi->pi_prefix_list; pr != NULL; pr = next_pr) { in run_timeouts()
1681 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in process_rtsock()
1693 for (pr = pi->pi_prefix_list; pr != NULL; pr = pr->pr_next) { in process_rtsock()
1832 for (pr = pi->pi_prefix_list; pr != NULL; pr = next_pr) { in check_if_removed()
1847 pr->pr_state = pr->pr_kernel_state; in check_if_removed()
1848 } else if (pr->pr_state != pr->pr_kernel_state) { in check_if_removed()
1868 for (pr = pi->pi_prefix_list; pr != NULL; pr = next_pr) { in check_if_removed()
2165 str, pr->pr_name, pr->pr_physical->pi_name); in logperror_pr()
2169 str, pr->pr_name, pr->pr_physical->pi_name, in logperror_pr()
[all …]
H A Dtables.h275 extern struct prefix *prefix_lookup_addr_match(struct prefix *pr);
277 extern int prefix_init_from_k(struct prefix *pr);
278 extern void prefix_delete(struct prefix *pr);
281 extern void prefix_update_dhcp(struct prefix *pr);
282 extern void prefix_update_k(struct prefix *pr);
283 extern uint_t prefix_timer(struct prefix *pr, uint_t elapsed);
326 struct prefix *pr, uchar_t *opt,
330 extern void incoming_prefix_onlink_process(struct prefix *pr,
335 extern void prefix_update_ipadm_addrobj(struct prefix *pr, boolean_t add);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dpr_to_salt.c46 if (pr == 0) { in krb5_principal2salt_internal()
52 nelem = krb5_princ_size(context, pr); in krb5_principal2salt_internal()
55 size += krb5_princ_realm(context, pr)->length; in krb5_principal2salt_internal()
58 size += krb5_princ_component(context, pr, i)->length; in krb5_principal2salt_internal()
65 offset = krb5_princ_realm(context, pr)->length; in krb5_principal2salt_internal()
66 memcpy(ret->data, krb5_princ_realm(context, pr)->data, offset); in krb5_principal2salt_internal()
70 memcpy(&ret->data[offset], krb5_princ_component(context, pr, i)->data, in krb5_principal2salt_internal()
71 krb5_princ_component(context, pr, i)->length); in krb5_principal2salt_internal()
72 offset += krb5_princ_component(context, pr, i)->length; in krb5_principal2salt_internal()
80 return krb5_principal2salt_internal(context, pr, ret, 1); in krb5_principal2salt()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.c943 set_sin(pr->from, &(tmp1_al->addr), pr->family); in set_src_addr()
949 set_sin(pr->from, ap, pr->family); in set_src_addr()
952 (void) inet_ntop(pr->family, pr->from_sin_addr, in set_src_addr()
978 set_sin(pr->from, ap, pr->family); in set_src_addr()
1212 pr->packlen = calc_packetlen(packlen_input, pr); in setup_protocol()
1228 pr->packlen = calc_packetlen(packlen_input, pr); in setup_protocol()
1556 pr->family); in traceroute()
1560 set_sin(pr->from, &src_addr, pr->family); in traceroute()
1575 (void) inet_ntop(pr->family, pr->from_sin_addr, abuf, in traceroute()
1602 pr->packlen); in traceroute()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_typedef.c299 parse_root_t *pr; in typedef_parse() local
315 pr->pr_kind = CTF_K_STRUCT; in typedef_parse()
317 pr->pr_kind = CTF_K_UNION; in typedef_parse()
362 pr->pr_name = defn; in typedef_parse()
365 pr->pr_name = NULL; in typedef_parse()
400 pr->pr_tname = name; in typedef_parse()
401 *prp = pr; in typedef_parse()
480 pr->pr_tname); in typedef_add()
486 pr->pr_tname); in typedef_add()
542 pr->pr_tname); in typedef_add()
[all …]
/illumos-gate/usr/src/lib/libmvec/common/
H A D__vrem_pio2m.c172 double z, t, p, q[20], r[21], *pr; in __vlibm_rem_pio2m() local
280 pr = &r[j]; in __vlibm_rem_pio2m()
284 q[0] = pio2[0] * pr[0]; in __vlibm_rem_pio2m()
285 q[1] = pio2[0] * pr[1] + pio2[1] * pr[0]; in __vlibm_rem_pio2m()
286 q[2] = pio2[0] * pr[2] + pio2[1] * pr[1] + pio2[2] * pr[0]; in __vlibm_rem_pio2m()
287 q[3] = pio2[0] * pr[3] + pio2[1] * pr[2] + pio2[2] * pr[1] in __vlibm_rem_pio2m()
288 + pio2[3] * pr[0]; in __vlibm_rem_pio2m()
290 q[i] = pio2[0] * pr[i] + pio2[1] * pr[i-1] + pio2[2] * pr[i-2] in __vlibm_rem_pio2m()
291 + pio2[3] * pr[i-3] + pio2[4] * pr[i-4]; in __vlibm_rem_pio2m()
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintproto.c15 void printproto(pr, p, np) in printproto() argument
16 struct protoent *pr; in printproto()
36 else if (pr != NULL)
37 printf("%s", pr->p_name);
46 if (pr != NULL)
47 printf("%s", pr->p_name);
H A Dportname.c11 char *portname(pr, port) in portname() argument
12 int pr, port; in portname()
19 if (pr == -1) {
29 } else if ((pr != -2) && (p = getprotobynumber(pr))) {
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dalerts.c83 PSTATUS *pr = va_arg(args, PSTATUS *); in alert() local
86 pformat(pr->alert->msgfile, text, pr, rp); in alert()
87 if (!pr->alert->active) in alert()
89 if (exec(EX_ALERT, pr) == 0) in alert()
90 pr->alert->active = 1; in alert()
94 pr->alert->exec->flags |= EXF_RESTART; in alert()
96 Unlink(pr->alert->msgfile); in alert()
154 if (Access(pr->alert->msgfile, 0) == 0) { in pformat()
163 fdprintf(fd, Pf_msg[0], NB(pr->printer->name), NB(pr->printer->name)); in pformat()
164 if (STREQU(pr->printer->fault_rec, NAME_WAIT)) in pformat()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddsl_prop.c226 pr != NULL; pr = list_next(&dd->dd_props, pr)) { in dsl_prop_record_find()
231 return (pr); in dsl_prop_record_find()
237 dsl_prop_record_t *pr; in dsl_prop_record_create() local
247 return (pr); in dsl_prop_record_create()
260 dsl_prop_record_t *pr; in dsl_prop_fini() local
284 dsl_prop_record_t *pr; in dsl_prop_register() local
301 if (pr == NULL) in dsl_prop_register()
303 cbr->cbr_pr = pr; in dsl_prop_register()
471 dsl_prop_record_t *pr; in dsl_prop_notify_all_cb() local
476 pr; pr = list_next(&dd->dd_props, pr)) { in dsl_prop_notify_all_cb()
[all …]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_provider.c1456 if (pr->pr_default == NULL) in mac_prop_info_set_default_uint8()
1461 *(uint8_t *)(pr->pr_default) = val; in mac_prop_info_set_default_uint8()
1471 if (pr->pr_default == NULL) in mac_prop_info_set_default_uint64()
1487 if (pr->pr_default == NULL) in mac_prop_info_set_default_uint32()
1503 if (pr->pr_default == NULL) in mac_prop_info_set_default_str()
1507 pr->pr_errno = ENOBUFS; in mac_prop_info_set_default_str()
1509 (void) strlcpy(pr->pr_default, str, pr->pr_default_size); in mac_prop_info_set_default_str()
1520 if (pr->pr_default == NULL) in mac_prop_info_set_default_link_flowctrl()
1536 if (pr->pr_default == NULL) in mac_prop_info_set_default_fec()
1566 pr->pr_errno = ENOSPC; in mac_prop_info_set_range_uint32()
[all …]
/illumos-gate/usr/src/cmd/dircmp/
H A Ddircmp.sh55 pr -h "diff of $a in $D1 and $D2" >> $TEMPDIR/dc$$g
59 pr -h "diff of $a in $D1 and $D2" >> $TEMPDIR/dc$$g
63 pr -h "diff of $a in $D1 and $D2" >> $TEMPDIR/dc$$g
72 pr -h "diff of $a in $D1 and $D2" >> $TEMPDIR/dc$$g
76 pr -h "diff of $a in $D1 and $D2" >> $TEMPDIR/dc$$g
80 pr -h "diff of $a in $D1 and $D2" >> $TEMPDIR/dc$$g
93 pr -h "diff of $a in $D1 and $D2" >> $TEMPDIR/dc$$g
146 pr -w${width} -h "$D1 only and $D2 only" -m $TEMPDIR/dc$$e $TEMPDIR/dc$$d
235 done 3<$TEMPDIR/dc$$h 4<$TEMPDIR/dc$$i | pr -r -h "Comparison of $D1 $D2"
/illumos-gate/usr/src/cmd/more/
H A Dmore.c1029 pr ("s\n"); in command()
1031 pr ("\n"); in command()
1035 pr ("\n"); in command()
1082 pr ("\n"); in command()
1135 pr ("/"); in command()
1173 pr ("vi "); pr (cmdbuf); putchar (' '); pr (fnames[fnum]); in command()
1292 pr ("!"); in do_shell()
1497 pr ("\n"); in skipf()
1506 pr ("\n"); in skipf()
1765 pr(mess); in error()
[all …]
/illumos-gate/usr/src/cmd/prctl/
H A Dprctl.c61 struct ps_prochandle *pr; member
735 errflg = get_rctls(p.pr); in main()
932 if (prctl_setrctl(p.pr, in main()
979 release_process(p.pr); in main()
1041 errflg = get_rctls(p.pr); in main()
1043 release_process(p.pr); in main()
1988 release_process(p->pr); in regrab_process()
2143 release_process(p->pr); in grab_process_by_id()
2148 release_process(p->pr); in grab_process_by_id()
2263 Prelease(p->pr, 0); in grab_process()
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dprdaily.sh81 (cat reboots; echo ""; cat lineuse) | pr -h "DAILY REPORT FOR ${_sysname}"
84 pr -h "DAILY COMMAND SUMMARY" daycms
85 pr -h "MONTHLY TOTAL COMMAND SUMMARY" cms
86 pr -h "LAST LOGIN" -3 ../sum/loginlog
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ducred.c217 const prpriv_t *pr = UCPRIV(uc); in ucred_getprivset() local
221 if (pr == NULL || pset == -1) { in ucred_getprivset()
229 &pr->pr_sets[d->pd_pinfo->priv_setsize * pset]); in ucred_getprivset()
285 prpriv_t *pr = UCPRIV(uc); in ucred_getpflags() local
288 if (pr == NULL) { in ucred_getpflags()
293 end = (char *)pr + PRIV_PRPRIV_SIZE(pr); in ucred_getpflags()
294 x = end - pr->pr_infosize; in ucred_getpflags()
/illumos-gate/usr/src/cmd/cron/
H A Datq.c76 struct passwd pr; in main() local
96 pr.pw_uid = pp->pw_uid; in main()
97 pr.pw_name = pp->pw_name; in main()
135 if (cron_admin(pr.pw_name) || in main()
136 strcmp(pr.pw_name, argv[i]) == 0) { in main()
151 "for %s:\n", pr.pw_name); in main()
158 } else if (!cron_admin(pr.pw_name)) { in main()
164 *uidlist = pr.pw_uid; in main()
206 if (argnum != argc) c = pr.pw_name; in main()
/illumos-gate/usr/src/cmd/ptools/ppriv/
H A Dppriv.c475 privupdate(prpriv_t *pr, const char *arg) in privupdate() argument
482 (priv_set_t *)&pr->pr_sets[pr->pr_setsize * i]; in privupdate()
494 int sz = PRIV_PRPRIV_SIZE(pr); in privupdate()
495 char *x = (char *)pr + PRIV_PRPRIV_INFO_OFFSET(pr); in privupdate()
498 while (x < (char *)pr + sz) { in privupdate()
508 if (pi->priv_info_size > pr->pr_infosize || in privupdate()
516 pr->pr_infosize = 0; in privupdate()
520 pr->pr_infosize = sizeof (priv_info_uint_t); in privupdate()
523 ((char *)pr + PRIV_PRPRIV_INFO_OFFSET(pr)); in privupdate()
538 pr->pr_infosize = 0; in privupdate()

123456