From owner-freebsd-questions@freebsd.org Thu Jan 11 12:34:20 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75D77E5C1E6 for ; Thu, 11 Jan 2018 12:34:20 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0749D6DDD7 for ; Thu, 11 Jan 2018 12:34:19 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id w0BCXxFm006907 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 11 Jan 2018 13:33:59 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id w0BCXx16006904; Thu, 11 Jan 2018 13:33:59 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Thu, 11 Jan 2018 13:33:59 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Vitalio D cc: "freebsd-questions@freebsd.org" Subject: Re: where to find exit(int) function implementation In-Reply-To: Message-ID: References: <59cdf69e792d5c723fa919abac1d67b6@webmail.1blu.de>, <8ef73fb7-dc2f-2fcb-f8e6-e7de02a66b64@gmx.com> User-Agent: Alpine 2.21 (BSF 202 2017-01-01) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 12:34:20 -0000 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.