From nobody Thu Nov 28 11:42:24 2024 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 ARC-Seal: i=1; a=rsa-sha256; t=1693266265; cv=none; d=zohomail.com; s=zohoarc; b=gv95A2HnNe/5Baaj4jMYLZriA3wDO2filORc8rBqQqI7kdkOl/vr7vFr3nysD6yaKGs7wRBY2u7ZHNqi13F6L0/o+YN+55w6wzNEZxhAi5X9ZlYAC6j2uxvpKjG0UQOV+m7iAyJKpij8BcxfHr/F+YcZYcp1QJVnUZFjHnCKRKk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693266265; 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=QyoTisO2SKxuhTiuJ9PKmqpK606MeGtTF1rKK3KRIew=; b=ATmoTY5lHZugF4qS6irqDj07EYmmR1X90FATePOwqTYGyq3c7do2E6yGzb+Z0X7rz266kRqvu0qebWBulqFexP/iKrHIisAaL9ltQUaxTmS4O+qpfdtYL/zKzL6BeiPbqk7VX6E3bKt8x2H/FY4LnErkSi59VGAcpW7Xw07rGg0= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693266265207516.5682451538431; Mon, 28 Aug 2023 16:44:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qalsR-0003yU-TZ; Mon, 28 Aug 2023 19:42:36 -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 1qalsH-0003sf-Gt for qemu-devel@nongnu.org; Mon, 28 Aug 2023 19:42:26 -0400 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qals6-0006pg-VG for qemu-devel@nongnu.org; Mon, 28 Aug 2023 19:42:21 -0400 Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-7927952ca67so111766339f.2 for ; Mon, 28 Aug 2023 16:42:06 -0700 (PDT) Received: from dune.bsdimp.com (50-253-99-174-static.hfc.comcastbusiness.net. [50.253.99.174]) by smtp.gmail.com with ESMTPSA id t9-20020a056e02060900b0034b58dd5694sm2805491ils.15.2023.08.28.16.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 16:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20221208.gappssmtp.com; s=20221208; t=1693266125; x=1693870925; 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=QyoTisO2SKxuhTiuJ9PKmqpK606MeGtTF1rKK3KRIew=; b=SnxSUaT8prZEZLkE5rYh6vABPAesJUE3zZMCj9kVZkKSlzt6ndSw4wxuhg+gxQikNy nemwWP7jFov62oQksIKWCtnW7NI4rvqnYlskkQWHQeRzggiGBz18jo/2cFyTVE3OqP1+ DNqWuNXfte6XXfPT1cDGEfEqjK5YhOxmXNVJoaBB+Gn91om4aDKy7iPIZgesGYvjyk61 GKrtBgLXYTuJ3ZHQO4gdzPc5NEBkd/bi4DZQovl4mrG7sFBpnozE/n4CLoi5G4F0414Z vPMCY8aNIqoue4hDNgPDCy9I+DBCXwxZ3XSrHGuDuzN+1DfY4fgYpH/D5iUf0ZVMRQW1 zp4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693266125; x=1693870925; 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=QyoTisO2SKxuhTiuJ9PKmqpK606MeGtTF1rKK3KRIew=; b=lqIifajE0FhKOTYUx7JvjzKX4qN5LKMmE5LOCNOciVfuCMCCE1RMOrUisSSwD7DysW ChnyzNBkZ/2grfjiNrEmY0HboYjS3irv8o8wYLr4RuYqC9Mo1tTLYXz1NBA19u9WufQe NENGbnSRfwSdr3tRsFfan6coFNX3wnhIJL4z8cjYf1mwj5RrDmVEb/7ojyT5KySJJ7P7 eUQb8G4aomXhuYaJyNBJmU0EINioI1T5PraNqt2DVo9OObkzAmZu/6cbO+dv2SfVIcPW oKwU/2NkcH06muWvyN44b5/ob/K7QIXqyBgnqzFeuAhu6ggH11GRsvAa36s96np+t233 tX0w== X-Gm-Message-State: AOJu0Ywq1fMk5ryaqsRQBIPA7oS8MsQL1Db8NY1r2Ub9EjsoyRPmWYO2 LrKSTLNdRsxv6CXGIwOifkRUeBDgxKNlxCMXDBU= X-Google-Smtp-Source: AGHT+IErX26p4SQAV5Z/y3Irempszw+b1XQfjHZQIOLRqUu7V092lL4IB8RM58p3eLP80lo/VLUmgg== X-Received: by 2002:a05:6e02:1d1a:b0:348:b114:a3d2 with SMTP id i26-20020a056e021d1a00b00348b114a3d2mr22811719ila.21.1693266125236; Mon, 28 Aug 2023 16:42:05 -0700 (PDT) From: Warner Losh To: qemu-devel@nongnu.org Cc: Reinoud Zandijk , Warner Losh , Ryo ONODERA , Kyle Evans , Michal Meloun , Stacey Son , Karim Taha , Richard Henderson Subject: [PULL 29/36] bsd-user: Implement freebsd11 netbsd stat related syscalls Date: Mon, 28 Aug 2023 17:38:14 -0600 Message-ID: <20230828233821.43074-30-imp@bsdimp.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828233821.43074-1-imp@bsdimp.com> References: <20230828233821.43074-1-imp@bsdimp.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: none client-ip=2607:f8b0:4864:20::d2e; envelope-from=imp@bsdimp.com; helo=mail-io1-xd2e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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 @bsdimp-com.20221208.gappssmtp.com) X-ZM-MESSAGEID: 1693266266591100001 Content-Type: text/plain; charset="utf-8" From: Michal Meloun Forward declaration of the nstat syscalls: nstat nlstat nfstat Co-authored-by: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Michal Meloun Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bsd-user/freebsd/os-stat.h b/bsd-user/freebsd/os-stat.h index 26909af455d..e31b2aab9e8 100644 --- a/bsd-user/freebsd/os-stat.h +++ b/bsd-user/freebsd/os-stat.h @@ -46,6 +46,13 @@ __sym_compat(getdirentries, freebsd11_getdirentries, FBS= D_1.0); ssize_t freebsd11_getdents(int fd, char *buf, size_t nbytes); __sym_compat(getdents, freebsd11_getdents, FBSD_1.0); =20 +/* undocumented nstat system calls */ +int freebsd11_nstat(const char *path, struct freebsd11_stat *sb); +__sym_compat(nstat, freebsd11_nstat, FBSD_1.0); +int freebsd11_nlstat(const char *path, struct freebsd11_stat *sb); +__sym_compat(nlstat, freebsd11_nlstat, FBSD_1.0); +int freebsd11_nfstat(int fd, struct freebsd11_stat *sb); +__sym_compat(nfstat, freebsd11_nfstat, FBSD_1.0); =20 /* stat(2) */ static inline abi_long do_freebsd11_stat(abi_long arg1, abi_long arg2) --=20 2.41.0