From nobody Thu Dec 18 08:18:15 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1691936065; cv=none; d=zohomail.com; s=zohoarc; b=KTLlwOcUxbkQ8DoJq3hxKHm1SvtEpTF/ReZ4z3ESEk41+mIxqa06y7lBTUwZKJuggdIm2n4J9AvTXquwbcK3Tlwpm3UofBkFswI60QIkK+0KPY6rp0YeVb8dyctkR1SEl+bLf7eMHgSAs/OyMdkoVmaLrsq7Y5wl8r717ViJQOE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691936065; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Rl/vvZTq7At57smayFXGDxxVD4P17UWOFIucJHnT9y8=; b=CLTzSKqZ+a52rY+AFvMGpYsFOUrsdfuvrQO7JtvRP98j6gUeyhnP2BYT0YV46LNjpV/4xsGDUR6XtcxQd8/K7F+A2ZyhnLsJRwkoA9eAPSdsHqV9TtSkVqnN1X1FMtfNqv4Re0Q0EHYaq1V/dFhAcl+NYPJ8xs0oxiEgeRL9boo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1691936065057826.70935022983; Sun, 13 Aug 2023 07:14:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVBpw-0008H4-GA; Sun, 13 Aug 2023 10:12:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVBpp-0008DQ-U5 for qemu-devel@nongnu.org; Sun, 13 Aug 2023 10:12:49 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qVBpo-0000vb-HB for qemu-devel@nongnu.org; Sun, 13 Aug 2023 10:12:49 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fe5c0e57d2so31521445e9.0 for ; Sun, 13 Aug 2023 07:12:48 -0700 (PDT) Received: from karim.my.domain ([197.39.204.50]) by smtp.gmail.com with ESMTPSA id l18-20020a5d4112000000b003144b95e1ecsm11409101wrp.93.2023.08.13.07.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Aug 2023 07:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691935967; x=1692540767; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Rl/vvZTq7At57smayFXGDxxVD4P17UWOFIucJHnT9y8=; b=MrXhyPuNgQ81frC9uVXqUkrdl9nFjgAyn9nbb8wKsQP17+TZg6MnmzTeyVPdHaPIme u2ZNrpyVN0IKvENWJ01pRLbiiADThCsIkTBBsp9A02okmXdAQjkT3wf+hrpfKOWOwcYZ sxrtN1sTMwIkCByAxEd3AVuYdUA7FZrsCYhO9/Osh8nzocY/UEhxRCFn8cWNIS18SOpP NDJqGZo3obIXi38ijN+c3CjT9Kt3r5E+c0ShgT5QQe3ncDoSNoXspoOK6r7/I3ob0lHc BrDFMBKcxTyTUQCSbdUYfLdnIq/SGuBycSeFLW7nUgb2QOrPmAdX+tUkWT6H9Hgd68z0 Y7Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691935967; x=1692540767; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rl/vvZTq7At57smayFXGDxxVD4P17UWOFIucJHnT9y8=; b=CvAxZs1nYghNIUKNBjMFASYbiHRlGm/xleRQZgYE1eUAuM1U6DmeDr/6hIH3uEDdfO ssy3xWMxA0XcR1YGO/XmiCrKW8xTDldqC7+cMLmUCRrg3+s6GW1+2aDjwYt+wCyWSPKg bFMqWIgb1MV5MTDU4iGJUHGF7y2i/JfvgKwgTGxqIEWoWzKqD8h3JPbdjLJ3zgVt3Sqp D6ebLOsuxZd2hjKqzNT6pU/K624l15G7Gm6douNwDJ2FwJ+aSnbOzcpKJgoL31Mwoz4c esNPlhJXAdt4SY0FcoUvy0rZZBILVk+xK5kqlJs05ZCSiK8ZHgjrPD/EDvyF8MRpDpew zDtg== X-Gm-Message-State: AOJu0YxhMVj9mW4OUhoQUkXRrzqsr3rp8gEAxy4krjflyiwEQrxCvaG8 HenVeN5mzN/DNyGjO5eXj70Q7EZ7rGU= X-Google-Smtp-Source: AGHT+IG4LWiNhGXvng5kHGY3UyKDam7XT+10FjETuINtgOGt21/Ms5xtP20U+co2SfuUi5Lavg0IpQ== X-Received: by 2002:a1c:7208:0:b0:3fe:1548:264f with SMTP id n8-20020a1c7208000000b003fe1548264fmr5306372wmc.22.1691935966788; Sun, 13 Aug 2023 07:12:46 -0700 (PDT) From: Karim Taha To: qemu-devel@nongnu.org Cc: imp@bsdimp.com, Karim Taha , Richard Henderson Subject: [PATCH v2 32/32] Add glue to call the following syscalls to the freebsd_syscall function: Date: Sun, 13 Aug 2023 05:10:13 +0200 Message-Id: <20230813031013.1743-33-kariem.taha2.7@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230813031013.1743-1-kariem.taha2.7@gmail.com> References: <20230813031013.1743-1-kariem.taha2.7@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=kariem.taha2.7@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1691936066584100003 Content-Type: text/plain; charset="utf-8" From: Warner Losh freebsd11_getdents getdirentries freebsd11_getdirentries fcntl Signed-off-by: Warner Losh Signed-off-by: Karim Taha Reviewed-by: Richard Henderson --- bsd-user/freebsd/os-syscall.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c index 916a754bf8..e9b1b663af 100644 --- a/bsd-user/freebsd/os-syscall.c +++ b/bsd-user/freebsd/os-syscall.c @@ -576,6 +576,22 @@ static abi_long freebsd_syscall(void *cpu_env, int num= , abi_long arg1, ret =3D do_freebsd_getfsstat(arg1, arg2, arg3); break; =20 + case TARGET_FREEBSD_NR_freebsd11_getdents: /* getdents(2) */ + ret =3D do_freebsd11_getdents(arg1, arg2, arg3); + break; + + case TARGET_FREEBSD_NR_getdirentries: /* getdirentries(2) */ + ret =3D do_freebsd_getdirentries(arg1, arg2, arg3, arg4); + break; + + case TARGET_FREEBSD_NR_freebsd11_getdirentries: /* getdirentries(2) */ + ret =3D do_freebsd11_getdirentries(arg1, arg2, arg3, arg4); + break; + case TARGET_FREEBSD_NR_fcntl: /* fcntl(2) */ + ret =3D do_freebsd_fcntl(arg1, arg2, arg3); + break; + + /* * sys{ctl, arch, call} */ --=20 2.40.0