On Sat, 20 Feb 2021 at 17:18, Dave Chupreev <cdn.dev@xxxxxxxxx> wrote: > > Thanks a lot for such explanations. Just to make sure. > > There are two system calls: > exit and exit_group. > > POSIX standard specifies 4 entries for section 2: > _exit(2) - this is direct calling of system call > exit(2) - eventually it does the same but with additional actions like clearing stdio buffers etc. > _Exit(2) - the same as a _exit(2). It is created only because name should be started with an underscore and an uppercase letter > exit_group(2) - this is for exit_group sys call. > > C standard specifies these wrappers: > exit(3) - as above > _Exit(3) - as above > > And everyone understands that as it is and think about it in such way. > > Am I right? Nearly. POSIX specifies _exit(), exit(), and _Exit(). exit_group() is Linux-specific. Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/