|
|
1.1 ! root 1: #include <libc.h> ! 2: ! 3: extern int (*_onexitfns[])(); ! 4: ! 5: void ! 6: exit(status) ! 7: { ! 8: int i, (*f)(); ! 9: ! 10: for(i = NONEXIT-1; i >= 0; i--) ! 11: if(_onexitfns[i]){ ! 12: f = _onexitfns[i]; ! 13: _onexitfns[i] = 0; /* self defense against bozos */ ! 14: (*f)(); ! 15: } ! 16: _exit(status); ! 17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.