Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

Talk:Exit (system call)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Missing

[edit]

This article still needs a few things:

  • Back-links from other related articles. I've added back-links to most of the articles referenced in this article.
  • A short clean example, similar to that in the fork article.
  • Mention of operating systems that do not allow a process to specify an exit status.
  • Discussion of how systems other than Unix/DOS/MacOS (e.g., embedded systems) handle program termination.

- Loadmaster 16:43, 18 August 2006 (UTC)[reply]

not OS

[edit]

This article needs to be renamed, as exit is a (operating)system call, not an operating system. Ren 01:20, 14 June 2009 (UTC)[reply]

Then the title for Fork (operating system) should also be changed for consistency. — Loadmaster (talk) 14:38, 14 September 2010 (UTC)[reply]

problem with Pascal example

[edit]

The example code for Pascal does not compile as written (at least not with fpc, nor any other compliant compiler). The syntax for using exit to exit the main program back to the OS is specifically different. Perhaps the best documentation for the proper use can be found in the Free Pascal docs or in the Irie Pascal docs. I recommend the code in the Pascal example be changed to

program wiki;
begin
        ExitCode := 0;
        exit
end.

-Jiminy pop (talk) 18:09, 11 September 2019 (UTC)[reply]

add a Fortran example

[edit]

I recommend the following example be added:

 program wiki
      call exit(0)
 end program wiki

With these columns, it is technically Fortran 90, although the syntax would otherwise be the same for Fortran 77. I recommend simply labelling it "Fortran."

-Jiminy pop (talk) 00:48, 13 September 2019 (UTC)[reply]