From nobody Tue Oct 31 12:13:14 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SKTYs6bj0z4yJXv for ; Tue, 31 Oct 2023 12:13:21 +0000 (UTC) (envelope-from netch@isam.nn.kiev.ua) Received: from isam.nn.kiev.ua (isam.nn.kiev.ua [45.32.222.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SKTYs3RsDz4Z0v for ; Tue, 31 Oct 2023 12:13:21 +0000 (UTC) (envelope-from netch@isam.nn.kiev.ua) Authentication-Results: mx1.freebsd.org; none Received: by isam.nn.kiev.ua (Postfix, from userid 1000) id CA9C7272350; Tue, 31 Oct 2023 14:13:14 +0200 (EET) Date: Tue, 31 Oct 2023 14:13:14 +0200 From: Valentin Nechayev To: Jason Bacon Cc: freebsd-hackers@freebsd.org Subject: Re: system calls on FreeBSD Message-ID: <20231031121314.GA2520@vpb.nn.kiev.ua> References: <39f7e2aa-c0fd-4d8d-af1b-f71d6a079c9e@gmail.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39f7e2aa-c0fd-4d8d-af1b-f71d6a079c9e@gmail.com> X-42: On X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:45.32.208.0/20, country:US] X-Rspamd-Queue-Id: 4SKTYs3RsDz4Z0v Tue, Oct 31, 2023 at 04:17:44, bacon4000 wrote about "Re: system calls on FreeBSD": > If you're coming from Linux, note that processes and threads are the same > thing to the Linux kernel, while in FreeBSD they are distinct. Hence the > separation of 'struct thread' and 'struct proc'. > Not exactly - processes in traditional sense are "process groups" in Linux, so, usual exit() is viewed as exit_group() in strace, and so on. For mental portability a kind of mapping shall be invoked :)) -netch-