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