Annotation of researchv10no/cmd/mk/export.proto/libc/onexit.c, revision 1.1

1.1     ! root        1: #include       <libc.h>
        !             2: 
        !             3: int (*_onexitfns[NONEXIT])();
        !             4: 
        !             5: atexit(f)
        !             6: int (*f)();
        !             7: {
        !             8:        onexit(f);
        !             9: }
        !            10: 
        !            11: onexit(f)
        !            12: int (*f)();
        !            13: {
        !            14:        int i;
        !            15: 
        !            16:        for(i=0; i<NONEXIT; i++)
        !            17:                if(!_onexitfns[i]){
        !            18:                        _onexitfns[i] = f;
        !            19:                        return(1);
        !            20:                }
        !            21:        return(0);
        !            22: }

unix.superglobalmegacorp.com

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