|
|
coherent
_exit() COHERENT System Call _exit() Terminate a program vvooiidd _eexxiitt(_s_t_a_t_u_s) iinntt _s_t_a_t_u_s; _exit terminates a program directly. It returns _s_t_a_t_u_s to the calling program, and exits. Unlike the library function exit, _exit does not perform extra termination cleanup, such as flushing buffered files and closing open files. _exit should be used only in situations where you do _n_o_t want buffers flushed or files closed. For example, you may wish to call _exit if your program detects an irreparable error condition and you want to ``bail out'' to keep your data files from being corrupted. _exit should also be used with programs that do not use STDIO. Unlike exit, _exit does not use STDIO. This will help you create programs that are extremely small when compiled. ***** See Also ***** close(), COHERENT system calls, wait() ***** Notes ***** If a program leaves main() by an error condition, contents of register AX becomes the exit code. Usually, these register con- tents are random. If you want to test a program's return code, you must to exit or return from main(). COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.