Temporary File Cleanup
Implements the cleanup behavior for temporary file management.
Notes
The inserted calls to cleanup are really part of the
overall exit behavior.
Since that code is not localized, these extensions have to
be made all over.
- Define cleanup()
-
Function definition
- Segment Source
-
265: /* Clean up any remaining temporary files. */
266:
267: static void
268: cleanup (void)
269: {
270: struct tempnode *node;
271:
272: for (node = temphead.next; node; node = node->next)
273: unlink (node->name);
274: }
275:
- Cleanup in xmalloc()
-
Code insertion
- Segment Source
-
287: cleanup ();
- Cleanup in xrealloc()
-
Code insertion
- Segment Source
-
312: cleanup ();
- Cleanup in xtmpfopen()
-
Code insertion
- Segment Source
-
328: cleanup ();
- Cleanup in xfopen()
- Code insertion
- Segment Source
-
349: cleanup ();
- Cleanup in xfclose()
Segment Element
Code insertion
-
373: cleanup ();
Segment Element
Code insertion
-
382: cleanup ();
- Cleanup in write_bytes()
-
Code insertion
- Segment Source
-
394: cleanup ();
- Cleanup in fillbuf()
-
Code insertion
- Segment Source
-
504: cleanup ();
- Cleanup in sighandler()
-
Code insertion
- Segment Source
- 1656: cleanup ();
- Cleanup in Protect
Segment Element
Code insertion
-
2092: cleanup ();
Segment Element
Code insertion
-
2112: cleanup ();
- Cleanup on program exit
-
Code insertion
- Segment Source
- 2129: cleanup ();