Annotation of xinu/sys/shell/x_bpool.c, revision 1.1

1.1     ! root        1: /* x_bpool.c - x_bpool */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <mark.h>
        !             6: #include <bufpool.h>
        !             7: 
        !             8: /*------------------------------------------------------------------------
        !             9:  *  x_bpool  -  (command bpool) format and print buffer pool information
        !            10:  *------------------------------------------------------------------------
        !            11:  */
        !            12: COMMAND        x_bpool(stdin, stdout, stderr, nargs, args)
        !            13: int    stdin, stdout, stderr, nargs;
        !            14: char   *args[];
        !            15: {
        !            16:        struct  bpool   *bpptr;
        !            17:        char    str[80];
        !            18:        int     i;
        !            19: 
        !            20:        for (i=0 ; i<nbpools ; i++) {
        !            21:                bpptr = &bptab[i];
        !            22:                sprintf(str,
        !            23:                    "pool=%2d. bsize=%4d, sem=%2d, count=%d\n",
        !            24:                        i, bpptr->bpsize, bpptr->bpsem,
        !            25:                        scount(bpptr->bpsem));
        !            26:                write(stdout, str, strlen(str));
        !            27:        }
        !            28:        return(OK);
        !            29: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.