text
stringlengths 0
234
|
---|
.sh colophon |
this page is part of release 5.13 of the linux |
.i man-pages |
project. |
a description of the project, |
information about reporting bugs, |
and the latest version of this page, |
can be found at |
\%https://www.kernel.org/doc/man\-pages/. |
.so man2/getxattr.2 |
.\" this manpage is copyright (c) 1992 drew eckhardt; |
.\" and copyright (c) 1993 michael haardt, ian jackson. |
.\" |
.\" %%%license_start(verbatim) |
.\" permission is granted to make and distribute verbatim copies of this |
.\" manual provided the copyright notice and this permission notice are |
.\" preserved on all copies. |
.\" |
.\" permission is granted to copy and distribute modified versions of this |
.\" manual under the conditions for verbatim copying, provided that the |
.\" entire resulting derived work is distributed under the terms of a |
.\" permission notice identical to this one. |
.\" |
.\" since the linux kernel and libraries are constantly changing, this |
.\" manual page may be incorrect or out-of-date. the author(s) assume no |
.\" responsibility for errors or omissions, or for damages resulting from |
.\" the use of the information contained herein. the author(s) may not |
.\" have taken the same level of care in the production of this manual, |
.\" which is licensed free of charge, as they might when working |
.\" professionally. |
.\" |
.\" formatted or processed versions of this manual, if unaccompanied by |
.\" the source, must acknowledge the copyright and authors of this work. |
.\" %%%license_end |
.\" |
.\" modified wed jul 21 23:02:38 1993 by rik faith <[email protected]> |
.\" modified 2001-11-17, aeb |
.\" |
.th _exit 2 2021-03-22 "linux" "linux programmer's manual" |
.sh name |
_exit, _exit \- terminate the calling process |
.sh synopsis |
.nf |
.b #include <unistd.h> |
.pp |
.bi "noreturn void _exit(int " status ); |
.pp |
.b #include <stdlib.h> |
.pp |
.bi "noreturn void _exit(int " status ); |
.fi |
.pp |
.rs -4 |
feature test macro requirements for glibc (see |
.br feature_test_macros (7)): |
.re |
.pp |
.br _exit (): |
.nf |
_isoc99_source || _posix_c_source >= 200112l |
.fi |
.sh description |
.br _exit () |
terminates the calling process "immediately". |
any open file descriptors belonging to the process are closed. |
any children of the process are inherited by |
.br init (1) |
(or by the nearest "subreaper" process as defined through the use of the |
.br prctl (2) |
.b pr_set_child_subreaper |
operation). |
the process's parent is sent a |
.b sigchld |
signal. |
.pp |
the value |
.i "status & 0xff" |
is returned to the parent process as the process's exit status, and |
can be collected by the parent using one of the |
.br wait (2) |
family of calls. |
.pp |
the function |
.br _exit () |
is equivalent to |
.br _exit (). |
.sh return value |
these functions do not return. |
.sh conforming to |
posix.1-2001, posix.1-2008, svr4, 4.3bsd. |
the function |
.br _exit () |
was introduced by c99. |
.sh notes |
for a discussion on the effects of an exit, the transmission of |
exit status, zombie processes, signals sent, and so on, see |
.br exit (3). |
.pp |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.