Annotation of researchv10no/ipc/mgrs/ns/tester.c, revision 1.1

1.1     ! root        1: #include <sys/types.h>
        !             2: #include <signal.h>
        !             3: #include <sysent.h>
        !             4: #include <libc.h>
        !             5: #include <fio.h>
        !             6: #include <ipc.h>
        !             7: #include <string.h>
        !             8: #include <errno.h>
        !             9: #include "dbtypes.h"
        !            10: 
        !            11: /*
        !            12:  *  global
        !            13:  */
        !            14: Ordered *o;
        !            15: Tuple *dblist;
        !            16: char *errstr;
        !            17: 
        !            18: main()
        !            19: {
        !            20:        int i;
        !            21:        Tuple *t;
        !            22:        char buf[512];
        !            23:        char outbuf[sizeof(Fbuffer)];
        !            24: 
        !            25:        Finit(2, outbuf);
        !            26:        for(;;){
        !            27:                o = new Ordered(12);
        !            28:                for(i=0; i<1650; i++){
        !            29:                        strcpy(buf, "att,org att,org att,org att,org att,org att,org");
        !            30:                        t = new Tuple(buf, o, &dblist);
        !            31:                }
        !            32:                fprint(2, "after creating %x\n", sbrk(0));
        !            33:                delete o;
        !            34:                freetuplelist(&dblist);
        !            35:                fprint(2, "after deleting %x\n", sbrk(0));
        !            36:        }
        !            37: }

unix.superglobalmegacorp.com

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