"Fossies" - the Fresh Open Source Software Archive

Member "atop-2.8.1/showlinux.h" (7 Jan 2023, 17430 Bytes) of package /linux/misc/atop-2.8.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "showlinux.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.7.1_vs_2.8.0.

    1 /*
    2 ** ATOP - System & Process Monitor 
    3 **
    4 ** The program 'atop' offers the possibility to view the activity of
    5 ** the system on system-level as well as process-level.
    6 **
    7 ** This source-file contains the Linux-specific functions to calculate
    8 ** figures to be visualized.
    9 ** ==========================================================================
   10 ** Author:      JC van Winkel - AT Computing, Nijmegen, Holland
   11 ** E-mail:      jc@ATComputing.nl
   12 ** Date:        November 2009
   13 ** --------------------------------------------------------------------------
   14 ** Copyright (C) 2009   JC van Winkel
   15 **
   16 ** This program is free software; you can redistribute it and/or modify it
   17 ** under the terms of the GNU General Public License as published by the
   18 ** Free Software Foundation; either version 2, or (at your option) any
   19 ** later version.
   20 **
   21 ** This program is distributed in the hope that it will be useful, but
   22 ** WITHOUT ANY WARRANTY; without even the implied warranty of
   23 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   24 ** See the GNU General Public License for more details.
   25 **
   26 ** You should have received a copy of the GNU General Public License
   27 ** along with this program; if not, write to the Free Software
   28 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   29 ** --------------------------------------------------------------------------
   30 **
   31 ** $Log: showlinux.h,v $
   32 ** Initial revision
   33 **
   34 ** Initial
   35 **
   36 */
   37 #define MAXITEMS 80    /* The maximum number of items per line */
   38 
   39 /*
   40  * structure for extra parameters for system related data
   41 */
   42 typedef struct {
   43         count_t     totut;
   44         count_t     totst;
   45         int     nact; 
   46         int     nproc;
   47         int     ntrun;
   48         int     ntslpi;
   49         int     ntslpu;
   50         int     nzomb;
   51         int     nexit;
   52         int     noverflow;
   53         int     avgval;
   54         int     nsecs;
   55         count_t     mstot;
   56         count_t     iotot;
   57     struct perdsk   *perdsk;
   58         int     index;
   59         count_t     cputot;
   60         count_t     pernumacputot;
   61         count_t     percputot;
   62 } extraparam;
   63 
   64 /***************************************************************
   65  *
   66  * structure for system print-list
   67  *
   68  * configname   name as used to identify this field when configuring
   69  *      the print line
   70  * doformat pointer to function that formats this field into a
   71  *      string of 12 positions, to be returned as char pointer
   72  * dovalidate   pointer to function that determines if this is a 
   73  *      valid (i.e. relevant) field on this system, returning
   74  *      0 (false) or non-zero (true)
   75  *      when this function pointer is NULL, true is considered
   76 */
   77 typedef struct {
   78         char *configname;
   79         char* (*doformat)(struct sstat *, extraparam *, int, int *);
   80         int   (*dovalidate)(struct sstat *);
   81 } sys_printdef;
   82 
   83 
   84 /*
   85  * structure for system print-list with priority
   86  * in case of lack of screen space, lowest priority items will be
   87  * removed first 
   88 */
   89 typedef struct
   90 {
   91         sys_printdef    *f;
   92         int             prio;
   93 } sys_printpair;
   94 
   95 
   96 
   97 /*
   98 ** structure for process print-list
   99 */
  100 typedef struct 
  101 {
  102         char *head;                      // column header
  103         char *configname;                // name as used to config print line
  104         char *(*doactiveconvert)(struct tstat *,int,int); 
  105                                          // pointer to conv function
  106                                          // for active process
  107         char *(*doexitconvert)  (struct tstat *,int,int);   
  108                                          // pointer to conv function
  109                                          // for exited process
  110         int  width;                      // required width
  111         int  varwidth;                   // width may grow (eg cmd params)
  112 } proc_printdef;
  113 
  114 
  115 typedef struct 
  116 {
  117         proc_printdef   *f;
  118         int             prio;
  119 } proc_printpair;
  120 
  121 void showsysline(sys_printpair* elemptr, 
  122                  struct sstat* sstat, extraparam *extra,
  123                  char *labeltext, unsigned int badness);
  124 
  125 
  126 void showhdrline(proc_printpair* elemptr, int curlist, int totlist, 
  127                   char showorder, char autosort);
  128 void showprocline(proc_printpair* elemptr, struct tstat *curstat, 
  129                   double perc, int nsecs, int avgval);
  130 
  131 extern sys_printdef *prcsyspdefs[];
  132 extern sys_printdef *cpusyspdefs[];
  133 extern sys_printdef *cpisyspdefs[];
  134 extern sys_printdef *cplsyspdefs[];
  135 extern sys_printdef *memsyspdefs1[];
  136 extern sys_printdef *memsyspdefs2[];
  137 extern sys_printdef *swpsyspdefs[];
  138 extern sys_printdef *pagsyspdefs[];
  139 extern sys_printdef *numasyspdefs[];
  140 extern sys_printdef *numacpusyspdefs[];
  141 extern sys_printdef *dsksyspdefs[];
  142 extern sys_printdef *nettranssyspdefs[];
  143 extern sys_printdef *netnetsyspdefs[];
  144 extern sys_printdef *netintfsyspdefs[];
  145 extern sys_printdef *infinisyspdefs[];
  146 
  147 extern sys_printdef syspdef_PRCSYS;
  148 extern sys_printdef syspdef_PRCUSER;
  149 extern sys_printdef syspdef_PRCNPROC;
  150 extern sys_printdef syspdef_PRCNRUNNING;
  151 extern sys_printdef syspdef_PRCNSLEEPING;
  152 extern sys_printdef syspdef_PRCNDSLEEPING;
  153 extern sys_printdef syspdef_PRCNZOMBIE;
  154 extern sys_printdef syspdef_PRCCLONES;
  155 extern sys_printdef syspdef_PRCNNEXIT;
  156 extern sys_printdef syspdef_CPUSYS;
  157 extern sys_printdef syspdef_CPUUSER;
  158 extern sys_printdef syspdef_CPUIRQ;
  159 extern sys_printdef syspdef_CPUIDLE;
  160 extern sys_printdef syspdef_CPUWAIT;
  161 extern sys_printdef syspdef_CPUISYS;
  162 extern sys_printdef syspdef_CPUIUSER;
  163 extern sys_printdef syspdef_CPUIIRQ;
  164 extern sys_printdef syspdef_CPUIIDLE;
  165 extern sys_printdef syspdef_CPUIWAIT;
  166 extern sys_printdef syspdef_CPUISTEAL;
  167 extern sys_printdef syspdef_CPUIFREQ;
  168 extern sys_printdef syspdef_CPUFREQ;
  169 extern sys_printdef syspdef_CPUSCALE;
  170 extern sys_printdef syspdef_CPUISCALE;
  171 extern sys_printdef syspdef_CPUSTEAL;
  172 extern sys_printdef syspdef_CPUISTEAL;
  173 extern sys_printdef syspdef_CPUGUEST;
  174 extern sys_printdef syspdef_CPUIGUEST;
  175 extern sys_printdef syspdef_CPUIPC;
  176 extern sys_printdef syspdef_CPUIIPC;
  177 extern sys_printdef syspdef_CPUCYCLE;
  178 extern sys_printdef syspdef_CPUICYCLE;
  179 extern sys_printdef syspdef_CPLAVG1;
  180 extern sys_printdef syspdef_CPLAVG5;
  181 extern sys_printdef syspdef_CPLAVG15;
  182 extern sys_printdef syspdef_CPLCSW;
  183 extern sys_printdef syspdef_CPLNUMCPU;
  184 extern sys_printdef syspdef_CPLINTR;
  185 extern sys_printdef syspdef_GPUBUS;
  186 extern sys_printdef syspdef_GPUTYPE;
  187 extern sys_printdef syspdef_GPUNRPROC;
  188 extern sys_printdef syspdef_GPUMEMPERC;
  189 extern sys_printdef syspdef_GPUMEMOCC;
  190 extern sys_printdef syspdef_GPUGPUPERC;
  191 extern sys_printdef syspdef_GPUMEMTOT;
  192 extern sys_printdef syspdef_GPUMEMUSE;
  193 extern sys_printdef syspdef_GPUMEMAVG;
  194 extern sys_printdef syspdef_MEMTOT;
  195 extern sys_printdef syspdef_MEMFREE;
  196 extern sys_printdef syspdef_MEMCACHE;
  197 extern sys_printdef syspdef_MEMDIRTY;
  198 extern sys_printdef syspdef_MEMBUFFER;
  199 extern sys_printdef syspdef_MEMSLAB;
  200 extern sys_printdef syspdef_RECSLAB;
  201 extern sys_printdef syspdef_SHMEM;
  202 extern sys_printdef syspdef_SHMRSS;
  203 extern sys_printdef syspdef_SHMSWP;
  204 extern sys_printdef syspdef_VMWBAL;
  205 extern sys_printdef syspdef_ZFSARC;
  206 extern sys_printdef syspdef_PAGETABS;
  207 extern sys_printdef syspdef_HUPTOT;
  208 extern sys_printdef syspdef_HUPUSE;
  209 extern sys_printdef syspdef_SWPTOT;
  210 extern sys_printdef syspdef_SWPFREE;
  211 extern sys_printdef syspdef_SWPCACHE;
  212 extern sys_printdef syspdef_ZSWTOTAL;
  213 extern sys_printdef syspdef_ZSWSTORED;
  214 extern sys_printdef syspdef_KSMSHARING;
  215 extern sys_printdef syspdef_KSMSHARED;
  216 extern sys_printdef syspdef_SWPCOMMITTED;
  217 extern sys_printdef syspdef_SWPCOMMITLIM;
  218 extern sys_printdef syspdef_NUMNUMA;
  219 extern sys_printdef syspdef_NUMANR;
  220 extern sys_printdef syspdef_NUMATOT;
  221 extern sys_printdef syspdef_NUMAFREE;
  222 extern sys_printdef syspdef_NUMAFILEPAGE;
  223 extern sys_printdef syspdef_NUMASLAB;
  224 extern sys_printdef syspdef_NUMADIRTY;
  225 extern sys_printdef syspdef_NUMAACTIVE;
  226 extern sys_printdef syspdef_NUMAINACTIVE;
  227 extern sys_printdef syspdef_NUMASHMEM;
  228 extern sys_printdef syspdef_NUMASLABRECLAIM;
  229 extern sys_printdef syspdef_NUMAFRAG;
  230 extern sys_printdef syspdef_NUMAHUPTOT;
  231 extern sys_printdef syspdef_NUMANUMCPU;
  232 extern sys_printdef syspdef_NUMACPUSYS;
  233 extern sys_printdef syspdef_NUMACPUUSER;
  234 extern sys_printdef syspdef_NUMACPUNICE;
  235 extern sys_printdef syspdef_NUMACPUIRQ;
  236 extern sys_printdef syspdef_NUMACPUSOFTIRQ;
  237 extern sys_printdef syspdef_NUMACPUIDLE;
  238 extern sys_printdef syspdef_NUMACPUWAIT;
  239 extern sys_printdef syspdef_NUMACPUSTEAL;
  240 extern sys_printdef syspdef_NUMACPUGUEST;
  241 extern sys_printdef syspdef_LLCMBMTOTAL;
  242 extern sys_printdef syspdef_LLCMBMLOCAL;
  243 extern sys_printdef syspdef_NUMLLC;
  244 extern sys_printdef syspdef_PAGSCAN;
  245 extern sys_printdef syspdef_PAGSTEAL;
  246 extern sys_printdef syspdef_PAGSTALL;
  247 extern sys_printdef syspdef_PAGCOMPACT;
  248 extern sys_printdef syspdef_NUMAMIGRATE;
  249 extern sys_printdef syspdef_PGMIGRATE;
  250 extern sys_printdef syspdef_PAGPGIN;
  251 extern sys_printdef syspdef_PAGPGOUT;
  252 extern sys_printdef syspdef_TCPSOCK;
  253 extern sys_printdef syspdef_UDPSOCK;
  254 extern sys_printdef syspdef_PAGSWIN;
  255 extern sys_printdef syspdef_PAGSWOUT;
  256 extern sys_printdef syspdef_OOMKILLS;
  257 extern sys_printdef syspdef_PSICPUSTOT;
  258 extern sys_printdef syspdef_PSIMEMSTOT;
  259 extern sys_printdef syspdef_PSIMEMFTOT;
  260 extern sys_printdef syspdef_PSIIOSTOT;
  261 extern sys_printdef syspdef_PSIIOFTOT;
  262 extern sys_printdef syspdef_PSICPUS;
  263 extern sys_printdef syspdef_PSIMEMS;
  264 extern sys_printdef syspdef_PSIMEMF;
  265 extern sys_printdef syspdef_PSIIOS;
  266 extern sys_printdef syspdef_PSIIOF;
  267 extern sys_printdef syspdef_CONTNAME;
  268 extern sys_printdef syspdef_CONTNPROC;
  269 extern sys_printdef syspdef_CONTCPU;
  270 extern sys_printdef syspdef_CONTMEM;
  271 extern sys_printdef syspdef_DSKNAME;
  272 extern sys_printdef syspdef_DSKBUSY;
  273 extern sys_printdef syspdef_DSKNREAD;
  274 extern sys_printdef syspdef_DSKNWRITE;
  275 extern sys_printdef syspdef_DSKNDISC;
  276 extern sys_printdef syspdef_DSKMBPERSECRD;
  277 extern sys_printdef syspdef_DSKMBPERSECWR;
  278 extern sys_printdef syspdef_DSKKBPERRD;
  279 extern sys_printdef syspdef_DSKKBPERWR;
  280 extern sys_printdef syspdef_DSKKBPERDS;
  281 extern sys_printdef syspdef_DSKINFLIGHT;
  282 extern sys_printdef syspdef_DSKAVQUEUE;
  283 extern sys_printdef syspdef_DSKAVIO;
  284 extern sys_printdef syspdef_NETTRANSPORT;
  285 extern sys_printdef syspdef_NETTCPI;
  286 extern sys_printdef syspdef_NETTCPO;
  287 extern sys_printdef syspdef_NETTCPACTOPEN;
  288 extern sys_printdef syspdef_NETTCPPASVOPEN;
  289 extern sys_printdef syspdef_NETTCPRETRANS;
  290 extern sys_printdef syspdef_NETTCPINERR;
  291 extern sys_printdef syspdef_NETTCPORESET;
  292 extern sys_printdef syspdef_NETUDPNOPORT;
  293 extern sys_printdef syspdef_NETUDPINERR;
  294 extern sys_printdef syspdef_NETUDPI;
  295 extern sys_printdef syspdef_NETUDPO;
  296 extern sys_printdef syspdef_NETNETWORK;
  297 extern sys_printdef syspdef_NETIPI;
  298 extern sys_printdef syspdef_NETIPO;
  299 extern sys_printdef syspdef_NETIPFRW;
  300 extern sys_printdef syspdef_NETIPDELIV;
  301 extern sys_printdef syspdef_NETICMPIN;
  302 extern sys_printdef syspdef_NETICMPOUT;
  303 extern sys_printdef syspdef_NETNAME;
  304 extern sys_printdef syspdef_NETPCKI;
  305 extern sys_printdef syspdef_NETPCKO;
  306 extern sys_printdef syspdef_NETSPEEDMAX;
  307 extern sys_printdef syspdef_NETSPEEDIN;
  308 extern sys_printdef syspdef_NETSPEEDOUT;
  309 extern sys_printdef syspdef_NETCOLLIS;
  310 extern sys_printdef syspdef_NETMULTICASTIN;
  311 extern sys_printdef syspdef_NETRCVERR;
  312 extern sys_printdef syspdef_NETSNDERR;
  313 extern sys_printdef syspdef_NETRCVDROP;
  314 extern sys_printdef syspdef_NETSNDDROP;
  315 extern sys_printdef syspdef_NFMSERVER;
  316 extern sys_printdef syspdef_NFMPATH;
  317 extern sys_printdef syspdef_NFMTOTREAD;
  318 extern sys_printdef syspdef_NFMTOTWRITE;
  319 extern sys_printdef syspdef_NFMNREAD;
  320 extern sys_printdef syspdef_NFMNWRITE;
  321 extern sys_printdef syspdef_NFMDREAD;
  322 extern sys_printdef syspdef_NFMDWRITE;
  323 extern sys_printdef syspdef_NFMMREAD;
  324 extern sys_printdef syspdef_NFMMWRITE;
  325 extern sys_printdef syspdef_NFCRPCCNT;
  326 extern sys_printdef syspdef_NFCRPCREAD;
  327 extern sys_printdef syspdef_NFCRPCWRITE;
  328 extern sys_printdef syspdef_NFCRPCRET;
  329 extern sys_printdef syspdef_NFCRPCARF;
  330 extern sys_printdef syspdef_NFSRPCCNT;
  331 extern sys_printdef syspdef_NFSRPCREAD;
  332 extern sys_printdef syspdef_NFSRPCWRITE;
  333 extern sys_printdef syspdef_NFSBADFMT;
  334 extern sys_printdef syspdef_NFSBADAUT;
  335 extern sys_printdef syspdef_NFSBADCLN;
  336 extern sys_printdef syspdef_NFSNETTCP;
  337 extern sys_printdef syspdef_NFSNETUDP;
  338 extern sys_printdef syspdef_NFSNRBYTES;
  339 extern sys_printdef syspdef_NFSNWBYTES;
  340 extern sys_printdef syspdef_NFSRCHITS;
  341 extern sys_printdef syspdef_NFSRCMISS;
  342 extern sys_printdef syspdef_NFSRCNOCA;
  343 extern sys_printdef syspdef_IFBNAME;
  344 extern sys_printdef syspdef_IFBPCKI;
  345 extern sys_printdef syspdef_IFBPCKO;
  346 extern sys_printdef syspdef_IFBSPEEDMAX;
  347 extern sys_printdef syspdef_IFBLANES;
  348 extern sys_printdef syspdef_IFBSPEEDIN;
  349 extern sys_printdef syspdef_IFBSPEEDOUT;
  350 extern sys_printdef syspdef_BLANKBOX;
  351 
  352 
  353 /*
  354 ** functions that print ???? for unavailable data
  355 */
  356 char *procprt_NOTAVAIL_4(struct tstat *curstat, int avgval, int nsecs);
  357 char *procprt_NOTAVAIL_5(struct tstat *curstat, int avgval, int nsecs);
  358 char *procprt_NOTAVAIL_6(struct tstat *curstat, int avgval, int nsecs);
  359 char *procprt_NOTAVAIL_7(struct tstat *curstat, int avgval, int nsecs);
  360 
  361 extern proc_printdef *allprocpdefs[];
  362 extern proc_printdef procprt_PID;
  363 extern proc_printdef procprt_TID;
  364 extern proc_printdef procprt_PPID;
  365 extern proc_printdef procprt_SYSCPU;
  366 extern proc_printdef procprt_USRCPU;
  367 extern proc_printdef procprt_VGROW;
  368 extern proc_printdef procprt_RGROW;
  369 extern proc_printdef procprt_MINFLT;
  370 extern proc_printdef procprt_MAJFLT;
  371 extern proc_printdef procprt_VSTEXT;
  372 extern proc_printdef procprt_VSIZE;
  373 extern proc_printdef procprt_RSIZE;
  374 extern proc_printdef procprt_PSIZE;
  375 extern proc_printdef procprt_VSLIBS;
  376 extern proc_printdef procprt_VDATA;
  377 extern proc_printdef procprt_VSTACK;
  378 extern proc_printdef procprt_SWAPSZ;
  379 extern proc_printdef procprt_LOCKSZ;
  380 extern proc_printdef procprt_CMD;
  381 extern proc_printdef procprt_RUID;
  382 extern proc_printdef procprt_EUID;
  383 extern proc_printdef procprt_SUID;
  384 extern proc_printdef procprt_FSUID;
  385 extern proc_printdef procprt_RGID;
  386 extern proc_printdef procprt_EGID;
  387 extern proc_printdef procprt_SGID;
  388 extern proc_printdef procprt_FSGID;
  389 extern proc_printdef procprt_CTID;
  390 extern proc_printdef procprt_VPID;
  391 extern proc_printdef procprt_CID;
  392 extern proc_printdef procprt_STDATE;
  393 extern proc_printdef procprt_STTIME;
  394 extern proc_printdef procprt_ENDATE;
  395 extern proc_printdef procprt_ENTIME;
  396 extern proc_printdef procprt_THR;
  397 extern proc_printdef procprt_TRUN;
  398 extern proc_printdef procprt_TSLPI;
  399 extern proc_printdef procprt_TSLPU;
  400 extern proc_printdef procprt_POLI;
  401 extern proc_printdef procprt_NICE;
  402 extern proc_printdef procprt_PRI;
  403 extern proc_printdef procprt_RTPR;
  404 extern proc_printdef procprt_CURCPU;
  405 extern proc_printdef procprt_ST;
  406 extern proc_printdef procprt_EXC;
  407 extern proc_printdef procprt_S;
  408 extern proc_printdef procprt_COMMAND_LINE;
  409 extern proc_printdef procprt_NPROCS;
  410 extern proc_printdef procprt_RDDSK;
  411 extern proc_printdef procprt_WRDSK;
  412 extern proc_printdef procprt_CWRDSK;
  413 extern proc_printdef procprt_WCANCEL;
  414 extern proc_printdef procprt_TCPRCV;
  415 extern proc_printdef procprt_TCPRASZ;
  416 extern proc_printdef procprt_TCPSND;
  417 extern proc_printdef procprt_TCPSASZ;
  418 extern proc_printdef procprt_UDPRCV;
  419 extern proc_printdef procprt_UDPRASZ;
  420 extern proc_printdef procprt_UDPSND;
  421 extern proc_printdef procprt_UDPSASZ;
  422 extern proc_printdef procprt_RNET;
  423 extern proc_printdef procprt_SNET;
  424 extern proc_printdef procprt_BANDWI;
  425 extern proc_printdef procprt_BANDWO;
  426 extern proc_printdef procprt_GPULIST;
  427 extern proc_printdef procprt_GPUMEMNOW;
  428 extern proc_printdef procprt_GPUMEMAVG;
  429 extern proc_printdef procprt_GPUGPUBUSY;
  430 extern proc_printdef procprt_GPUMEMBUSY;
  431 extern proc_printdef procprt_SORTITEM;
  432 extern proc_printdef procprt_RUNDELAY;
  433 extern proc_printdef procprt_BLKDELAY;
  434 extern proc_printdef procprt_WCHAN;
  435 extern proc_printdef procprt_CGROUP_PATH;
  436 extern proc_printdef procprt_CGRCPUWGT;
  437 extern proc_printdef procprt_CGRCPUMAX;
  438 extern proc_printdef procprt_CGRCPUMAXR;
  439 extern proc_printdef procprt_CGRMEMMAX;
  440 extern proc_printdef procprt_CGRMEMMAXR;
  441 extern proc_printdef procprt_CGRSWPMAX;
  442 extern proc_printdef procprt_CGRSWPMAXR;
  443 
  444 
  445 //extern char *procprt_NRDDSK_ae(struct tstat *, int, int);
  446 //extern char *procprt_NWRDSK_a(struct tstat *, int, int);
  447 //extern char *procprt_NRDDSK_e(struct tstat *, int, int);
  448 //extern char *procprt_NWRDSK_e(struct tstat *, int, int);
  449 
  450 extern char *procprt_SNET_a(struct tstat *, int, int);
  451 extern char *procprt_SNET_e(struct tstat *, int, int);
  452 extern char *procprt_RNET_a(struct tstat *, int, int);
  453 extern char *procprt_RNET_e(struct tstat *, int, int);
  454 extern char *procprt_TCPSND_a(struct tstat *, int, int);
  455 extern char *procprt_TCPRCV_a(struct tstat *, int, int);
  456 extern char *procprt_UDPSND_a(struct tstat *, int, int);
  457 extern char *procprt_UDPRCV_a(struct tstat *, int, int);
  458 extern char *procprt_TCPSASZ_a(struct tstat *, int, int);
  459 extern char *procprt_TCPRASZ_a(struct tstat *, int, int);
  460 extern char *procprt_UDPSASZ_a(struct tstat *, int, int);
  461 extern char *procprt_UDPRASZ_a(struct tstat *, int, int);
  462 extern char *procprt_TCPSND_e(struct tstat *, int, int);
  463 extern char *procprt_TCPRCV_e(struct tstat *, int, int);
  464 extern char *procprt_UDPSND_e(struct tstat *, int, int);
  465 extern char *procprt_UDPRCV_e(struct tstat *, int, int);
  466 extern char *procprt_TCPSASZ_e(struct tstat *, int, int);
  467 extern char *procprt_TCPRASZ_e(struct tstat *, int, int);
  468 extern char *procprt_UDPSASZ_e(struct tstat *, int, int);
  469 extern char *procprt_UDPRASZ_e(struct tstat *, int, int);