|
|
1.1 ! root 1: .\" Copyright (c) 1990 The Regents of the University of California. ! 2: .\" All rights reserved. ! 3: .\" ! 4: .\" Redistribution and use in source and binary forms are permitted ! 5: .\" provided that: (1) source distributions retain this entire copyright ! 6: .\" notice and comment, and (2) distributions including binaries display ! 7: .\" the following acknowledgement: ``This product includes software ! 8: .\" developed by the University of California, Berkeley and its contributors'' ! 9: .\" in the documentation or other materials provided with the distribution ! 10: .\" and in all advertising materials mentioning features or use of this ! 11: .\" software. Neither the name of the University nor the names of its ! 12: .\" contributors may be used to endorse or promote products derived ! 13: .\" from this software without specific prior written permission. ! 14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 15: .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 16: .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 17: .\" ! 18: .\" @(#)exit.3 6.4 (Berkeley) 5/17/90 ! 19: .\" ! 20: .TH EXIT 3 "May 17, 1990" ! 21: .UC 5 ! 22: .SH NAME ! 23: exit \- perform normal program termination ! 24: .SH SYNOPSIS ! 25: .nf ! 26: .ft B ! 27: #include <stdlib.h> ! 28: ! 29: void ! 30: exit(status) ! 31: int status; ! 32: .fi ! 33: .SH DESCRIPTION ! 34: .I Exit ! 35: terminates a process. ! 36: .PP ! 37: Before termination it performs the following functions in the ! 38: order listed: ! 39: .RS ! 40: .PP ! 41: Call the functions registered with the ! 42: .IR atexit (3) ! 43: function, in the reverse order of their registration. ! 44: .PP ! 45: Flush all open output streams. ! 46: .PP ! 47: Close all open streams. ! 48: .PP ! 49: Unlink all files created with the ! 50: .IR tmpfile (3) ! 51: function. ! 52: .RE ! 53: .PP ! 54: .I Exit ! 55: never returns. ! 56: .SH "SEE ALSO" ! 57: exit(2), atexit(3), intro(3), tmpfile(3) ! 58: .SH STANDARDS ! 59: .B Exit ! 60: conforms to ANSI X3.159-1989 (``ANSI C'').
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.