MCPcopy Create free account
hub / github.com/F-Stack/f-stack / usage

Function usage

tools/netstat/main.c:988–1031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988static void
989usage(void)
990{
991 (void)xo_error("%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
992#ifndef FSTACK
993"usage: netstat [-46AaCcLnRSTWx] [-f protocol_family | -p protocol]\n"
994" [-M core] [-N system]",
995" netstat -i | -I interface [-46abdhnW] [-f address_family]\n"
996" [-M core] [-N system]",
997" netstat -w wait [-I interface] [-46d] [-M core] [-N system]\n"
998" [-q howmany]",
999" netstat -s [-46sz] [-f protocol_family | -p protocol]\n"
1000" [-M core] [-N system]",
1001" netstat -i | -I interface -s [-46s]\n"
1002" [-f protocol_family | -p protocol] [-M core] [-N system]",
1003" netstat -m [-M core] [-N system]",
1004" netstat -B [-z] [-I interface]",
1005" netstat -r [-46AnW] [-F fibnum] [-f address_family]\n"
1006" [-M core] [-N system]",
1007" netstat -rs [-s] [-M core] [-N system]",
1008" netstat -g [-46W] [-f address_family] [-M core] [-N system]",
1009" netstat -gs [-46s] [-f address_family] [-M core] [-N system]",
1010" netstat -Q");
1011#else
1012"usage: netstat -t <f-stack proc_id> [-46AaLnRSTWx] [-f protocol_family | -p protocol]",
1013" netstat -t <f-stack proc_id> -i | -I interface [-46abdhnW] [-f address_family]",
1014" netstat -t <f-stack proc_id> -w wait [-I interface] [-46d] [-q howmany]",
1015" netstat -t <f-stack proc_id> -s [-46sz] [-f protocol_family | -p protocol]",
1016" netstat -t <f-stack proc_id> -i | -I interface -s [-46s]\n"
1017" [-f protocol_family | -p protocol]",
1018" netstat -t <f-stack proc_id> -B [-z] [-I interface]",
1019" netstat -t <f-stack proc_id> -r [-46AnW] [-F fibnum] [-f address_family]",
1020" netstat -t <f-stack proc_id> -rs [-s]",
1021" netstat -t <f-stack proc_id> -g [-46W] [-f address_family]",
1022" netstat -t <f-stack proc_id> -gs [-46s] [-f address_family]",
1023" netstat -t <f-stack proc_id> -Q");
1024
1025#endif
1026 xo_finish();
1027#ifdef FSTACK
1028 ff_ipc_exit();
1029#endif
1030 exit(1);
1031}

Callers 1

main.cFile · 0.70

Calls 3

xo_errorFunction · 0.85
xo_finishFunction · 0.85
ff_ipc_exitFunction · 0.85

Tested by

no test coverage detected