where to find exit(int) function implementation
Trond Endrestøl
Trond.Endrestol at fagskolen.gjovik.no
Thu Jan 11 12:34:20 UTC 2018
On Wed, 10 Jan 2018 15:38-0000, Vitalio D wrote:
> Hello,
> Indeed I'm interested in _exit syscall.
>
> Thanks for response Yuri, but i'm a newbie and don't
> see any PSEUDO marking in unistd.h at least.
> What i see in unisrd.h is
>
> ...
> __BEGIN_DECLS
> /* 1003.1-1990 */
> void _exit(int) __dead2;
> ...
>
> __BEGIN_DECLS being defined in sys/sys/cdefs.h as exten "C" {
> but no PSEUDO. Am i missing something?
If you want to see what happens inside the kernel when servicing the
exit syscall, have a look at /usr/src/sys/kern/kern_exit.c.
--
Trond.
More information about the freebsd-questions
mailing list