Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2018 13:33:59 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Vitalio D <v.dol_s@hotmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: where to find exit(int) function implementation
Message-ID:  <alpine.BSF.2.21.1801111332030.69908@mail.fig.ol.no>
In-Reply-To: <AM5PR0902MB19235DD34E781169AF9891A0DC110@AM5PR0902MB1923.eurprd09.prod.outlook.com>
References:  <AM5PR0902MB19231F79EA283E2CE7B17310DC110@AM5PR0902MB1923.eurprd09.prod.outlook.com> <59cdf69e792d5c723fa919abac1d67b6@webmail.1blu.de>, <8ef73fb7-dc2f-2fcb-f8e6-e7de02a66b64@gmx.com> <AM5PR0902MB19235DD34E781169AF9891A0DC110@AM5PR0902MB1923.eurprd09.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.1801111332030.69908>