| /f-stack/tools/libxo/tests/core/ |
| H A D | test_02.c | 54 xo_emit("{kt:name/%-*.*s}{eq:flags/0x%x}", in main() 80 xo_emit(" {:lines/%7ju} {:words/%7ju} " in main() 86 xo_emit("{lw:bytes/%d}{Np:byte,bytes}\n", i); in main() 100 xo_emit("{,display,white,colon:some/%s}" in main() 104 xo_emit("{:unknown/%u} " in main() 108 xo_emit("{:unknown/%u} " in main() 130 xo_emit("{n:works/%s}\n", NULL); in main() 132 xo_emit("{e:empty-tag/}"); in main() 133 xo_emit("1:{qt:t1/%*d} 2:{qt:t2/test%-*u} " in main() 136 xo_emit("{E:this is an error}\n"); in main() [all …]
|
| H A D | test_01.c | 125 xo_emit("{keq:sku/%s-%u/%s-000-%u}" in main() 138 xo_emit("\n\n"); in main() 187 xo_emit("{Lwc:Item}{l:item}\n", ip->i_title); in main() 205 xo_emit("{keq:sku/%s-%u/%s-000-%u}" in main() 211 xo_emit("Extra: {:extra}", "special"); in main() 219 xo_emit("{qkd:sku/%5s-000-%u/%s-000-%u}\n", in main() 228 xo_emit("\n\n"); in main() 231 xo_emit("X{P:}X", "epic fail"); in main() 232 xo_emit("X{T:}X", "epic fail"); in main() 233 xo_emit("X{N:}X", "epic fail"); in main() [all …]
|
| H A D | test_05.c | 65 xo_emit("{T:Sample text}\n"); in main() 69 xo_emit("{T:Gurmukhi:}\n"); in main() 70 xo_emit("{:gurmukhi}\n", in main() 74 xo_emit("{T:Shahmukhi:}\n"); in main() 75 xo_emit("{:shahmukhi}\n", in main() 78 xo_emit("{T:Transliteration}:\n"); in main() 79 xo_emit("{:tranliteration}\n", in main() 95 xo_emit("Cool: [{:fancy/%ls}]\n", msg); in main() 109 rc = xo_emit("[{:sinhala}]\n", "෴"); in main() 117 rc = xo_emit("[{:tag/%s}]\n", "ර්ඝ"); in main() [all …]
|
| H A D | test_10.c | 103 xo_emit("{C:/bg-%s}", colors[i-1]); in main() 106 xo_emit("{C:reset}\n"); in main() 126 xo_emit("{keq:sku/%s-%u/%s-000-%u}" in main() 143 xo_emit("\n\n"); in main() 158 xo_emit("{P: }{L:SKU}: {qkd:sku/%s-000-%u}\n", in main() 180 xo_emit("{P: }{L:SKU}: {qkd:sku/%s-000-%u}\n", in main() 194 xo_emit("{Lwc:Item}{l:item}\n", ip->i_title); in main() 200 xo_emit("X{P:}X", "epic fail"); in main() 201 xo_emit("X{T:}X", "epic fail"); in main() 202 xo_emit("X{N:}X", "epic fail"); in main() [all …]
|
| H A D | test_08.c | 72 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n"); in main() 87 xo_emit("\n\n"); in main() 92 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n"); in main() 103 xo_emit("\n\n"); in main() 109 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n"); in main() 119 xo_emit("{:test}", "one"); in main() 124 xo_emit("\n\n"); in main() 130 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n"); in main() 145 xo_emit("{Lwc:/Last}{:last/%d}\n", i); in main() 149 xo_emit("{:test}", "one"); in main() [all …]
|
| H A D | test_09.c | 71 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n"); in main() 74 xo_emit("Name: {l:name/%-10s/%s}\n", ip->i_title); in main() 79 xo_emit("\n\n"); in main() 82 xo_emit("{T:Item/%-10s}{T:Count/%12s}\n"); in main() 90 xo_emit("\n\n"); in main() 93 xo_emit("{T:Test/%-10s}{T:Three/%12s}\n"); in main() 99 xo_emit("{Lwc:/Total:}{:total}\n", "six"); in main() 101 xo_emit("{:one}", "one"); in main() 102 xo_emit("{l:two}", "two"); in main() 103 xo_emit("{:three}", "three"); in main() [all …]
|
| H A D | test_07.c | 57 xo_emit("{ek:filename/%s}", NULL); in main() 61 rc = xo_emit("Οὐχὶ ταὐτὰ παρίσταταί μοι {:v1/%s}, {:v2/%s}\n", in main() 63 rc = xo_emit("{:columns/%d}\n", rc); in main() 64 xo_emit("{:columns/%d}\n", rc); in main() 66 rc = xo_emit("გთხოვთ {:v1/%s} {:v2/%s}\n", in main() 69 xo_emit("{:columns/%d}\n", rc); in main() 72 rc = xo_emit("{T:First Name/%-25s}{T:Last Name/%-14s}" in main() 74 xo_emit("{:columns/%d}\n", rc); in main() 79 rc = xo_emit("{[:-25}{:first-name/%s} ({:nic-name/\"%s\"}){]:}" in main() 83 xo_emit("{:columns/%d}\n", rc); in main() [all …]
|
| H A D | test_03.c | 62 xo_emit("[{:extra/%*s}]\n", opt_extra, ""); in main() 64 xo_emit("{T:/%13s} {T:/%5s} {T:/%6s} {T:/%7s} {T:/%8s} {T:Size(s)}\n", in main() 71 xo_emit("{k:type/%13s} {:in-use/%5" PRIu64 "} " in main() 81 xo_emit(","); in main() 82 xo_emit("{l:size/%d}", 1 << (i + 4)); in main() 88 xo_emit("\n"); in main() 94 xo_emit("{:first-name} {:last-name} works in " in main() 101 xo_emit("done\n"); in main()
|
| /f-stack/tools/netstat/ |
| H A D | mroute6.c | 149 xo_emit(" {:mif/%2u} {:rate-limit/%4d}", in mroute6pr() 179 xo_emit("\n" in mroute6pr() 181 xo_emit(" {T:%-*.*s} {T:%-*.*s} {T:%s}", in mroute6pr() 193 xo_emit(" {:group/%-*.*s}", WID_GRP, WID_GRP, in mroute6pr() 196 xo_emit(" {:total-packets/%9ju}", in mroute6pr() 205 xo_emit(" {:waitings/%3ld}", waitings); in mroute6pr() 208 xo_emit(" --- "); in mroute6pr() 214 xo_emit(" {l:%u}", mifi); in mroute6pr() 217 xo_emit("\n"); in mroute6pr() 228 xo_emit("\n"); in mroute6pr() [all …]
|
| H A D | mroute.c | 92 xo_emit(" {T:Bandwidth Meters}\n"); in print_bw_meter() 94 xo_emit(" {T:/%s}", "Type"); in print_bw_meter() 96 xo_emit(" {T:Remain}"); in print_bw_meter() 97 xo_emit("\n"); in print_bw_meter() 107 xo_emit("{e:measured-packets/%ju}", in print_bw_meter() 114 xo_emit("{e:measured-bytes/%ju}", in print_bw_meter() 131 xo_emit("{e:threshold-packets/%ju}", in print_bw_meter() 138 xo_emit("{e:threshold-bytes/%ju}", in print_bw_meter() 167 xo_emit("\n"); in print_bw_meter() 210 xo_emit("\n"); in print_mfc() [all …]
|
| H A D | netisr.c | 413 xo_emit(" {:policy-type/%6s}", in netisr_print_proto() 419 xo_emit(" {:policy/%8s}", tmp); in netisr_print_proto() 420 xo_emit(" {:flags/%s%s%s}\n", in netisr_print_proto() 440 xo_emit("{P: }"); in netisr_print_workstream() 450 xo_emit("\n"); in netisr_print_workstream() 478 xo_emit("{T:Configuration}:\n"); in netisr_stats() 490 xo_emit("\n"); in netisr_stats() 492 xo_emit("{T:Protocols}:\n"); in netisr_stats() 503 xo_emit("\n"); in netisr_stats() 505 xo_emit("{T:Workstreams}:\n"); in netisr_stats() [all …]
|
| H A D | mbuf.c | 229 xo_emit("{:packet-count/%ju}/{:packet-free/%ju} " in mbpr() 240 xo_emit("{:jumbo9-count/%ju}/{:jumbo9-cache/%ju}/" in mbpr() 246 xo_emit("{:jumbo16-count/%ju}/{:jumbo16-cache/%ju}/" in mbpr() 315 xo_emit("{:jumbop-sleeps/%ju}/{:jumbo9-sleeps/%ju}/" in mbpr() 343 xo_emit("{:sendfile-no-io/%ju} " in mbpr() 346 xo_emit("{:sendfile-io-count/%ju} " in mbpr() 349 xo_emit("{:sendfile-pages-sent/%ju} " in mbpr() 352 xo_emit("{:sendfile-pages-valid/%ju} " in mbpr() 355 xo_emit("{:sendfile-pages-bogus/%ju} " in mbpr() 361 xo_emit("{:sendfile-readahead/%ju} " in mbpr() [all …]
|
| H A D | if.c | 144 xo_emit("{T:/%s}:\n", name); in pfsync_stats() 224 xo_emit(newfmt); \ in show_stat() 237 xo_emit(newfmt, buf); in show_stat() 244 xo_emit(newfmt, value); in show_stat() 323 xo_emit("\n"); in intpr() 437 xo_emit("\n"); in intpr() 476 xo_emit("{P:/%27s }" in intpr() 479 xo_emit("{P:/%25s }" in intpr() 488 xo_emit("\n"); in intpr() 606 xo_emit("\n"); in sidewaysintpr() [all …]
|
| H A D | inet.c | 325 xo_emit( in protopr() 327 xo_emit("\n"); in protopr() 374 xo_emit(" {T:/%-*.*s}", in protopr() 388 xo_emit("\n"); in protopr() 430 xo_emit("{P:/%21s}", ""); in protopr() 565 xo_emit(" {:cc/%-*.*s}" in protopr() 579 xo_emit(" {:log-id/%s}", in protopr() 583 xo_emit("\n"); in protopr() 1059 xo_emit("\n"); in ip_stats() 1195 xo_emit(m, icmpstat.f) in icmp_stats() [all …]
|
| H A D | inet6.c | 369 xo_emit("{T:/%s}:\n", name); in ip6_stats() 374 xo_emit(m, (uintmax_t)ip6stat.f) in ip6_stats() 427 xo_emit("\t{T:Input histogram}:\n"); in ip6_stats() 440 xo_emit("\t{T:Mbuf statistics}:\n"); in ip6_stats() 639 xo_emit("{ke:name/%s}", ifr.ifr_name); 961 xo_emit("{T:/%s}:\n", name); 967 xo_emit(m, (uintmax_t)icmp6stat.f) 1006 xo_emit("\t{T:Input histogram}:\n"); 1114 xo_emit("{ke:name/%s}", ifr.ifr_name); 1203 xo_emit("{T:/%s}:\n", name); [all …]
|
| H A D | sctp.c | 278 xo_emit("{P:/%-12s} ", " "); in sctp_process_tcb() 305 xo_emit("\n"); in sctp_process_tcb() 350 xo_emit("\n"); in sctp_process_inpcb() 427 xo_emit("\n"); in sctp_process_inpcb() 443 xo_emit("\n"); in sctp_process_inpcb() 452 xo_emit("{P:/%-45.45s} " in sctp_process_inpcb() 455 xo_emit("{P:/%-45.45s} " in sctp_process_inpcb() 460 xo_emit("{P:/%-22.22s} " in sctp_process_inpcb() 463 xo_emit("{P:/%-22.22s} " in sctp_process_inpcb() 593 xo_emit("{T:/%s}:\n", name); in sctp_stats() [all …]
|
| H A D | bpf.c | 94 xo_emit("{e:promiscuous/}"); in bpf_flags() 96 xo_emit("{e:immediate/}"); in bpf_flags() 98 xo_emit("{e:header-complete/}"); in bpf_flags() 99 xo_emit("{e:direction}", (bd->bd_direction == BPF_D_IN) ? "input" : in bpf_flags() 102 xo_emit("{e:feedback/}"); in bpf_flags() 104 xo_emit("{e:async/}"); in bpf_flags() 106 xo_emit("{e:locked/}"); in bpf_flags() 141 xo_emit("{T:/%5s} {T:/%6s} {T:/%7s} {T:/%9s} {T:/%9s} {T:/%9s} " in bpf_stats() 156 xo_emit("{k:pid/%5d} {k:interface-name/%6s} ", in bpf_stats() 159 xo_emit("{d:flags/%7s} {:received-packets/%9ju} " in bpf_stats()
|
| H A D | nhops.c | 157 xo_emit(buf, addr); in print_addr() 163 xo_emit(buf, addr); in print_addr() 170 xo_emit(buf, width, addr); in print_addr() 260 xo_emit(buffer, nh->nh_idx); in print_nhop_entry_sysctl() 264 xo_emit("{t:type_str/%*s} ", wid_nhtype, cp); in print_nhop_entry_sysctl() 299 xo_emit("{t:mtu/%*lu} ", wid_mtu, nh->nh_mtu); in print_nhop_entry_sysctl() 324 xo_emit("\n"); in print_nhop_entry_sysctl() 452 xo_emit(format, fmt_flags(nh_bits, f)); in p_nhflags() 480 xo_emit("{T:Nexthop data}"); in nhops_print() 482 xo_emit(" ({L:fib}: {:fib/%d})", fibnum); in nhops_print() [all …]
|
| H A D | netgraph.c | 110 xo_emit("{T:Netgraph sockets}\n"); in netgraphprotopr() 112 xo_emit("{T:/%-8.8s} ", "PCB"); in netgraphprotopr() 113 xo_emit("{T:/%-5.5s} {T:/%-6.6s} {T:/%-6.6s} " in netgraphprotopr() 122 xo_emit("{:address/%8lx} ", (u_long) this); in netgraphprotopr() 123 xo_emit("{t:name/%-5.5s} {:receive-bytes-waiting/%6u} " in netgraphprotopr() 140 xo_emit("{t:path/%-14.14s} {:hooks/%4d}", path, ni->hooks); in netgraphprotopr() 142 xo_emit("\n"); in netgraphprotopr()
|
| H A D | nhgrp.c | 91 xo_emit("{T:/%-*.*s}{T:/%-*.*s}{T:/%*.*s}{T:/%*.*s}{T:/%*.*s}" in print_nhgroup_header() 114 xo_emit(buffer); in print_padding() 141 xo_emit(buffer, nhge->nhg_idx); in print_nhgroup_entry_sysctl() 152 xo_emit("\n"); in print_nhgroup_entry_sysctl() 165 xo_emit("{t:nh-index/%*lu}", wid_nhidx, ext_cp[i].nh_idx); in print_nhgroup_entry_sysctl() 167 xo_emit("{t:nh-slots/%*lu}", wid_nhidx, slots); in print_nhgroup_entry_sysctl() 170 xo_emit("{t:nh-gw/%*.*s}", wid_gw, wid_gw, ne->gw); in print_nhgroup_entry_sysctl() 173 xo_emit("\n"); in print_nhgroup_entry_sysctl() 348 xo_emit("{T:Nexthop groups data}"); in nhgrp_print() 350 xo_emit(" ({L:fib}: {:fib/%d})", fibnum); in nhgrp_print() [all …]
|
| H A D | route.c | 150 xo_emit("{T:Routing tables}"); in routepr() 152 xo_emit(" ({L:fib}: {:fib/%d})", fibnum); in routepr() 153 xo_emit("\n"); in routepr() 347 xo_emit("{P:/%*s} ", wid_mtu, ""); in p_rtentry_sysctl() 371 xo_emit("\n"); in p_rtentry_sysctl() 387 xo_emit(buf, cp); in p_sockaddr() 393 xo_emit(buf, cp); in p_sockaddr() 400 xo_emit(buf, width, cp); in p_sockaddr() 729 xo_emit("{T:routing}:\n"); in rt_stats() 732 xo_emit(m, rtstat.f, plural(rtstat.f)) in rt_stats() [all …]
|
| H A D | ipsec.c | 165 xo_emit(m, (uintmax_t)ipsecstat->f, plural(ipsecstat->f)) in print_ipsecstats() 215 xo_emit("{T:/%s}:\n", name); in ipsec_stats() 242 xo_emit("\t{T:/%s histogram}:\n", title); in ipsec_hist_new() 251 xo_emit("\t\t{k:name}: {:count/%ju}\n", p->str, in ipsec_hist_new() 254 xo_emit("\t\t#{k:name/%lu}: {:count/%ju}\n", in ipsec_hist_new() 269 xo_emit("\t{:" n "/%ju} {N:/" m "}\n", \ in print_ahstats() 318 xo_emit("{T:/%s}:\n", name); in ah_stats() 328 xo_emit("\t{:" n "/%ju} {N:/" m "}\n", \ in print_espstats() 378 xo_emit("{T:/%s}:\n", name); in esp_stats() 389 xo_emit("\t{:" n "/%ju} {N:/" m "}\n", \ in print_ipcompstats() [all …]
|
| H A D | pfkey.c | 124 xo_emit("{T:/%s}:\n", name); in pfkey_stats() 129 xo_emit(m, (uintmax_t)pfkeystat.f, plural(pfkeystat.f)) in pfkey_stats() 143 xo_emit("\t{T:histogram by message type}:\n"); in pfkey_stats() 147 xo_emit("\t\t{k::type/%s}: {:count/%ju}\n", in pfkey_stats() 186 xo_emit("\t{T:histogram by message type}:\n"); in pfkey_stats() 190 xo_emit("\t\t{k:type/%s}: {:count/%ju}\n", in pfkey_stats()
|
| /f-stack/tools/libxo/tests/gettext/ |
| H A D | gt_01.c | 64 xo_emit("{G:}Your {qg:adjective} {g:noun} is {g:verb} {qg:owner} {g:target}\n", in main() 67 xo_emit("{G:}The {qg:adjective} {g:noun} was {g:verb} {qg:owner} {g:target}\n", in main() 73 xo_emit("{lw:bytes/%d}{Ngp:byte,bytes}\n", i); in main() 75 xo_emit("{G:}{L:total} {:total/%u}\n", 1234); in main() 77 xo_emit("{G:ldns}Received {:received/%zu} {Ngp:byte,bytes} " in main() 81 xo_emit("{G:}Received {:received/%zu} {Ngp:byte,bytes} " in main() 85 xo_emit("{G:/%s}Received {:received/%zu} {Ngp:byte,bytes} " in main() 99 xo_emit("{G:}Only {:marzlevanes/%d} {Ngp:marzlevane,marzlevanes} " in main() 102 xo_emit("{G:}Version {:version} {:date}\n", "1.2.3", date); in main() 108 xo_emit("{G:}{Lwcg:hydrocoptic marzlevanes}{:marzlevanes/%d}\n", 6); in main() [all …]
|
| /f-stack/tools/libxo/doc/ |
| H A D | xolint.rst | 8 xo_emit("cost: %d", cost); 83 xo_emit("{LT:Max}"); 89 xo_emit("{T:Max}"); 269 xo_emit("{:10-gig/}"); 275 xo_emit("{:ten-gig/}"); 371 xo_emit("{[:mumble}"); 377 xo_emit("{[:32}"); 393 xo_emit("{[:/%s}"); 399 xo_emit("{[:/%d}"); 413 xo_emit("{[:32/%d}"); [all …]
|