_exit.html 781 B

123456789101112131415161718192021222324252627282930313233
  1. <html>
  2. <head>
  3. <title>_exit</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>_exit</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. _exit - terminate process
  9. <h3>Library</h3>
  10. Standard C Library (libc, -lc)
  11. <h3>Synopsis</h3>
  12. #include &lt;unistd.h&gt;<br>
  13. <br>
  14. void<br>
  15. _exit(int <em>exitcode</em>);
  16. <h3>Description</h3>
  17. Cause the current process to exit. The exit code <em>exitcode</em> is
  18. reported back to other process(es) via the
  19. <A HREF=waitpid.html>waitpid()</A> call. The process id of the exiting
  20. process should not be reused until all processes interested in
  21. collecting the exit code with waitpid have done so. (What "interested"
  22. means is intentionally left vague; you should design this.)
  23. <h3>Return Values</h3>
  24. _exit does not return.
  25. </body>
  26. </html>