From nobody Fri Jul 14 04:03:58 2023 X-Original-To: questions@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 4R2Hsd4WhSz4mjtF for ; Fri, 14 Jul 2023 04:04:05 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4R2Hsd3c9Sz3wTD for ; Fri, 14 Jul 2023 04:04:05 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4R2Hsc6bdvz2fjV0; Thu, 13 Jul 2023 21:04:04 -0700 (PDT) From: Doug Hardie Message-Id: <654A6E01-372D-4AE4-AACF-DFCABFE82188@sermon-archive.info> Content-Type: multipart/alternative; boundary="Apple-Mail=_663572B6-4924-46B6-9B8B-F788B7C742D7" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: execve exect Date: Thu, 13 Jul 2023 21:03:58 -0700 In-Reply-To: Cc: questions@freebsd.org To: Paul Procacci References: <38739E09-6C77-4492-86E7-5F340E3A7DC3@sermon-archive.info> X-Mailer: Apple Mail (2.3731.600.7) X-Virus-Scanned: clamav-milter 1.0.1 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4R2Hsd3c9Sz3wTD X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_663572B6-4924-46B6-9B8B-F788B7C742D7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 13, 2023, at 20:28, Paul Procacci wrote: >=20 >=20 >=20 > On Thu, Jul 13, 2023 at 10:07=E2=80=AFPM Doug Hardie > wrote: >> What is the difference between execve and exect other than exect = passes along the trace flag? I presume there must be a difference since = execve has its own man page and is not included with all the other exec = varients. >>=20 >> -- Doug >>=20 >=20 > execve is an/the actual syscall. > exect (and friends) are just different ways of presenting the = environment to the underlying syscall which is execve. Thanks. I understand now. I missed the 2 and 3 in those pages. -- Doug --Apple-Mail=_663572B6-4924-46B6-9B8B-F788B7C742D7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Jul 13, 2023, = at 20:28, Paul Procacci <pprocacci@gmail.com> wrote:



On Thu, Jul 13, 2023 at 10:07=E2=80=AFPM Doug = Hardie <bc979@lafn.org> = wrote:
What is the difference between = execve and exect other than exect passes along the trace flag?  I = presume there must be a difference since execve has its own man page and = is not included with all the other exec varients.

-- Doug


execve is = an/the actual syscall.
exect (and friends) are just different ways of presenting the = environment to the underlying syscall which is = execve.


Thanks= .  I understand now.  I missed the 2 and 3 in those = pages.

-- = Doug

= --Apple-Mail=_663572B6-4924-46B6-9B8B-F788B7C742D7--