/dragonfly/usr.sbin/rtadvd/ |
H A D | dump.c | 106 struct prefix *pfx; in if_dump() local 175 for (first = 1, pfx = rai->prefix.next; pfx != &rai->prefix; in if_dump() 176 pfx = pfx->next) { in if_dump() 184 pfx->prefixlen); in if_dump() 185 switch(pfx->origin) { in if_dump() 201 if (pfx->vltimeexpire != 0) in if_dump() 211 (long)pfx->preflifetime); in if_dump() 212 if (pfx->pltimeexpire != 0) in if_dump() 219 pfx->onlinkflg ? "L" : "", in if_dump() 222 pfx->routeraddr ? "R" : in if_dump() [all …]
|
H A D | config.c | 282 struct prefix *pfx; in rm_rainfo() local 300 delete_prefix(pfx); in rm_rainfo() 496 struct prefix *pfx; in getconfig() local 596 free(pfx); in getconfig() 1012 struct prefix *pfx; in get_prefix() local 1113 struct prefix *pfx; in add_prefix() local 1157 if (pfx->pfx_timer) in delete_prefix() 1159 free(pfx); in delete_prefix() 1187 pfx->pfx_timer = rtadvd_add_timer(prefix_timeout, NULL, pfx, NULL); in invalidate_prefix() 1319 struct prefix *pfx; in make_packet() local [all …]
|
H A D | rrenum.c | 148 struct prefix *pfx; in do_use_prefix() local 221 if (prefix_match(&pfx->pfx_prefix, in do_use_prefix() 222 pfx->pfx_prefixlen, &rpm->rpm_prefix, in do_use_prefix() 225 pfx->pfx_validlifetime = in do_use_prefix() 227 pfx->pfx_preflifetime = in do_use_prefix() 232 pfx->pfx_vltimeexpire = in do_use_prefix() 234 pfx->pfx_validlifetime; in do_use_prefix() 236 pfx->pfx_vltimeexpire = 0; in do_use_prefix() 240 pfx->pfx_pltimeexpire = in do_use_prefix() 242 pfx->pfx_preflifetime; in do_use_prefix() [all …]
|
H A D | rtadvd.c | 469 struct prefix *pfx; in rtmsg_input() local 612 if (pfx) { in rtmsg_input() 613 if (pfx->pfx_timer) { in rtmsg_input() 618 update_prefix(pfx); in rtmsg_input() 651 if (pfx == NULL) { in rtmsg_input() 660 invalidate_prefix(pfx); in rtmsg_input() 1232 struct prefix *pfx; in prefix_check() local 1297 } else if (!pfx->pfx_timer && preferred_time != pfx->pfx_preflifetime) in prefix_check() 1330 } else if (!pfx->pfx_timer && valid_time != pfx->pfx_validlifetime) { in prefix_check() 1351 struct prefix *pfx; in find_prefix() local [all …]
|
H A D | control_server.c | 101 DEF_PL_HANDLER(pfx), 338 struct prefix *pfx; in cm_getprop_pfx() local 360 TAILQ_FOREACH(pfx, &rai->rai_prefix, pfx_next) { in cm_getprop_pfx() 361 len += sizeof(*pfx); in cm_getprop_pfx() 373 TAILQ_FOREACH(pfx, &rai->rai_prefix, pfx_next) { in cm_getprop_pfx() 374 memcpy(p, pfx, sizeof(*pfx)); in cm_getprop_pfx() 375 p += sizeof(*pfx); in cm_getprop_pfx()
|
/dragonfly/lib/libc/stdio/ |
H A D | tempnam.c | 48 tempnam(const char *dir, const char *pfx) in tempnam() argument 56 if (!pfx) in tempnam() 57 pfx = "tmp."; in tempnam() 61 *(f + strlen(f) - 1) == '/'? "": "/", pfx); in tempnam() 68 *(f + strlen(f) - 1) == '/'? "": "/", pfx); in tempnam() 74 snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx); in tempnam() 79 snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx); in tempnam()
|
/dragonfly/contrib/gdb-7/gdb/common/ |
H A D | vec.c | 40 calculate_allocation (const struct vec_prefix *pfx, int reserve) in calculate_allocation() argument 45 if (pfx) in calculate_allocation() 47 alloc = pfx->alloc; in calculate_allocation() 48 num = pfx->num; in calculate_allocation() 98 struct vec_prefix *pfx = vec; in vec_o_reserve() local 99 unsigned alloc = calculate_allocation (pfx, reserve); in vec_o_reserve() 106 if (!pfx) in vec_o_reserve()
|
/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | vec.c | 177 if (pfx) in calculate_allocation() 179 alloc = pfx->alloc; in calculate_allocation() 180 num = pfx->num; in calculate_allocation() 228 if (pfx) in vec_gc_o_reserve_1() 229 ggc_free (pfx); in vec_gc_o_reserve_1() 245 if (!pfx) in vec_gc_o_reserve_1() 314 if (pfx) in vec_heap_o_reserve_1() 321 free_overhead (pfx); in vec_heap_o_reserve_1() 326 if (!pfx) in vec_heap_o_reserve_1() 406 pfx->num = 0; [all …]
|
/dragonfly/usr.sbin/rtadvctl/ |
H A D | rtadvctl.c | 477 struct prefix *pfx; in action_show() local 654 pfx = (struct prefix *)cp.cp_val; in action_show() 655 len = cp.cp_val_len / sizeof(*pfx); in action_show() 661 action_show_prefix(&pfx[i]); in action_show() 745 action_show_prefix(struct prefix *pfx) in action_show_prefix() argument 756 switch (pfx->pfx_origin) { in action_show_prefix() 774 if (pfx->pfx_vltimeexpire > 0) in action_show_prefix() 786 if (pfx->pfx_pltimeexpire > 0) in action_show_prefix() 795 if (pfx->pfx_onlinkflg || pfx->pfx_autoconfflg) { in action_show_prefix() 801 if (pfx->pfx_timer) { in action_show_prefix() [all …]
|
/dragonfly/contrib/diffutils/lib/ |
H A D | tempname.c | 118 __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, in __path_search() argument 124 if (!pfx || !pfx[0]) in __path_search() 126 pfx = "file"; in __path_search() 131 plen = strlen (pfx); in __path_search() 170 sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); in __path_search()
|
/dragonfly/usr.sbin/pw/ |
H A D | grupd.c | 129 char pfx[64]; in gr_update() local 134 l = snprintf(pfx, sizeof pfx, "%s:", group); in gr_update() 142 l = fileupdate(getgrpath(_GROUP), 0644, grbuf, pfx, l, mode); in gr_update()
|
H A D | pw_nis.c | 40 char pfx[32]; in pw_nisupdate() local 42 int l = sprintf(pfx, "%s:", user); in pw_nisupdate() 51 return fileupdate(path, 0600, pwbuf, pfx, l, mode) != 0; in pw_nisupdate()
|
H A D | pwupd.c | 153 char pfx[PWBUFSZ]; local 155 int l = snprintf(pfx, PWBUFSZ, "%s:", user); 170 rc = fileupdate(getpwpath(_PASSWD), 0644, pwbuf, pfx, l, mode); 178 rc = fileupdate(getpwpath(_MASTERPASSWD), 0600, pwbuf, pfx, l, mode);
|
H A D | pwupd.h | 46 int fileupdate(char const * fname, mode_t fm, char const * nline, char const * pfx, int pfxlen, int…
|
/dragonfly/usr.bin/limits/ |
H A D | limits.c | 69 const char * pfx; member 254 const char *pfx, const char *sfx, const char *which); 470 if (shellparm[shelltype].lprm[rcswhich].pfx) { in main() 475 shellparm[shelltype].lprm[rcswhich].pfx, in main() 483 shellparm[shelltype].lprm[rcswhich].pfx, in main() 491 shellparm[shelltype].lprm[rcswhich].pfx, in main() 514 print_limit(rlim_t limit, unsigned divisor, const char * inf, const char * pfx, const char * sfx, c… in print_limit() argument 522 printf(pfx, which, numbr); in print_limit()
|
/dragonfly/bin/sh/ |
H A D | show.c | 73 shtree(union node *n, int ind, char *pfx, FILE *fp) in shtree() argument 81 indent(ind, pfx, fp); in shtree() 260 indent(int amount, char *pfx, FILE *fp) in indent() argument 265 if (pfx && i == amount - 1) in indent() 266 fputs(pfx, fp); in indent()
|
/dragonfly/contrib/tcpdump/ |
H A D | print-openflow-1.0.c | 1199 const char *pfx, const u_char *cp) in of10_match_print() argument 1210 ND_PRINT("%swildcards 0x%08x (bogus)", pfx, wildcards); in of10_match_print() 1214 ND_PRINT("%smatch in_port %s", pfx, in of10_match_print() 1219 ND_PRINT("%smatch dl_src %s", pfx, GET_ETHERADDR_STRING(cp)); in of10_match_print() 1223 ND_PRINT("%smatch dl_dst %s", pfx, GET_ETHERADDR_STRING(cp)); in of10_match_print() 1227 ND_PRINT("%smatch dl_vlan %s", pfx, vlan_str(GET_BE_U_2(cp))); in of10_match_print() 1239 ND_PRINT("%smatch dl_type 0x%04x", pfx, dl_type); in of10_match_print() 1242 ND_PRINT("%smatch nw_tos 0x%02x", pfx, GET_U_1(cp)); in of10_match_print() 1250 ND_PRINT("%smatch %s %u", pfx, field_name, nw_proto); in of10_match_print() 1269 ND_PRINT("%smatch %s %u", pfx, field_name, GET_BE_U_2(cp)); in of10_match_print() [all …]
|
/dragonfly/contrib/dhcpcd/src/ |
H A D | dhcp-common.c | 883 char *pfx; in dhcp_envoption() local 896 if (asprintf(&pfx, "%s_%s%d", in dhcp_envoption() 898 pfx = NULL; in dhcp_envoption() 900 if (asprintf(&pfx, "%s_%s", prefix, opt->var) == -1) in dhcp_envoption() 901 pfx = NULL; in dhcp_envoption() 903 if (pfx == NULL) { in dhcp_envoption() 937 if (print_option(fp, pfx, eopt, ov, od, (size_t)eo, in dhcp_envoption() 976 dhcp_envoption(ctx, fp, pfx, ifname, in dhcp_envoption() 986 free(pfx); in dhcp_envoption()
|
H A D | ipv6nd.c | 805 const struct in6_addr *pfx, uint8_t pfxlen) in ipv6nd_rapfindprefix() argument 813 IN6_ARE_ADDR_EQUAL(&ia->prefix, pfx)) in ipv6nd_rapfindprefix() 821 const struct in6_addr *pfx, uint8_t pfxlen) in ipv6nd_iffindprefix() argument 830 ia = ipv6nd_rapfindprefix(rap, pfx, pfxlen); in ipv6nd_iffindprefix()
|
/dragonfly/sbin/gpt/ |
H A D | gpt.c | 671 char *pfx; in prefix() local 675 pfx = malloc(strlen(prg) + strlen(cmd) + 2); in prefix() 677 if (pfx == NULL) in prefix() 680 sprintf(pfx, "%s %s", prg, cmd); in prefix() 681 setprogname(pfx); in prefix()
|
/dragonfly/contrib/gcc-8.0/gcc/lto/ |
H A D | lto.c | 3055 const char *pfx = (flag_lto) ? "LTO" : (flag_wpa) ? "WPA" : "LTRANS"; in print_lto_report_1() local 3056 fprintf (stderr, "%s statistics\n", pfx); in print_lto_report_1() 3059 pfx, num_sccs_read, total_scc_size / (double)num_sccs_read); in print_lto_report_1() 3064 "collision ratio: %f\n", pfx, in print_lto_report_1() 3084 pfx, max_length, max_scc->len); in print_lto_report_1() 3088 fprintf (stderr, "[%s] Merged %lu SCCs\n", pfx, num_sccs_merged); in print_lto_report_1() 3089 fprintf (stderr, "[%s] Merged %lu tree bodies\n", pfx, in print_lto_report_1() 3093 pfx, num_prevailing_types, num_type_scc_trees); in print_lto_report_1() 3095 "%ld elements, %ld searches, %ld collisions (ratio: %f)\n", pfx, in print_lto_report_1() 3102 "%lu elements, %ld searches\n", pfx, in print_lto_report_1() [all …]
|
/dragonfly/contrib/less/ |
H A D | forwback.c | 127 static POSITION forw_line_pfx(POSITION pos, int pfx, int skipeol) in forw_line_pfx() argument 133 sc_width = pfx + line_pfx_width(); in forw_line_pfx()
|
H A D | line.c | 31 char pfx[MAX_PFX_WIDTH]; /* Holds status column and line number */ member 303 linebuf.pfx[n] = ch; in set_pfx() 1311 return linebuf.pfx[i]; in gline()
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | vec.h | 225 vec_prefix::calculate_allocation (vec_prefix *pfx, unsigned reserve, in calculate_allocation() argument 229 return (pfx ? pfx->m_num : 0) + reserve; in calculate_allocation() 230 else if (!pfx) in calculate_allocation() 232 return calculate_allocation_1 (pfx->m_alloc, pfx->m_num + reserve); in calculate_allocation()
|
/dragonfly/sys/dev/netif/ath/ath/ |
H A D | if_ath_tx.c | 3860 const char *pfx, struct ath_tid *tid, struct ath_buf *bf) in ath_tx_tid_drain_print() argument 3874 pfx, in ath_tx_tid_drain_print() 3886 pfx, in ath_tx_tid_drain_print() 3899 pfx, in ath_tx_tid_drain_print() 3909 pfx, in ath_tx_tid_drain_print() 3922 pfx, in ath_tx_tid_drain_print() 3934 pfx, in ath_tx_tid_drain_print() 3950 pfx, in ath_tx_tid_drain_print() 3964 pfx, in ath_tx_tid_drain_print()
|