From nobody Tue Sep 23 12:58:00 2025 X-Original-To: dev-commits-src-all@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 4cWKlY0X0Dz68cSm; Tue, 23 Sep 2025 12:58:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cWKlX6m13z3TgC; Tue, 23 Sep 2025 12:58:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758632280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s5Vz1a7jedNukW028qetGwdGdOE0tgEZdVp8OaBV4XA=; b=mg3+Ce9lCqUN/q5Yw0kzJkv9E5jIVJiN4GbpEiDHvj80P7i2MfPoDQY7k0AMtlqX4s6p7g 79USUAumurOldLLjnUdPa3jm0yxgmRWGC/taA4MVszmNbMaUJYJDTJWOOjVeL/vwndYQCc aDyo0jk12541ISDpVsQiGRBQsTCUXGcno+0zHw4og5C2nyJALkt+oHDWlhTpiNNOOIkDJG ucL11kESEdXtthhI/fI6dkp4KhdLTL7Rz3pOK5IAGJ3s+xm/p2avfmP2mLIIPzhgUeVORS +6i4TKHcp6MVD01/gc1KgJyzbHZUi1GkarruZfv6WhgXdNM5zXvVrh7iMo0XIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758632280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=s5Vz1a7jedNukW028qetGwdGdOE0tgEZdVp8OaBV4XA=; b=AqBeMkBn45y7XPSVlWYnFPrCS6qoXTyezgr37ufurMmC35D2izPKvKqLJ8lqKRke3erpBO vpRytA/6pnwSXoaWWmRD07zb/v3XXATIM8VXkqe3an17EN9RaSgvX1beKkhb9j1sIrty6Q C94sVKBBceyykMDE8LSodaOBIPL8Xp8Qn7lbTJw4t8sPCm2KYB1XxXhX7OUmiOmYNejJ3f HnCy00uKaXoFoOKYkQ82h+9J/oPf3Mb3MxkxrLfb8zRrVY8ATNcJgCEYIkF7OhOAM3ykXI WBx5G7VtaQZhhY65XaJEeojKbWanfVCpHr0DNDTyArEQPLLLfA/FuY6wU7TrGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758632280; a=rsa-sha256; cv=none; b=WgaOW5sHYcInhHOimV6HdURnkGwoSEXpF59qFrzqBiGnD0QSWPmf2r/c9iB2OmTZ8LeKPn yOBm06hSIcwKyXdQhiJu9joWYTIqJf1PBI7GlXu+oLDsnWoWN6wTYxmD7UNdcixOkrAVu7 Hq49+NRl5NA+RCKcshWcgpHJjjkE3lNaaC1r7AVaUch1/ukz1+qW9rfrFy2CmTzI0LboHl DX1baJ/dStB+1N/g1cGQ16cNM9Kn4Gg5uDsYiREtYejj354Bcb7jk8Hu4KWQVGCcwEeZaG LbC9yrC2XiVDd8lo658tzJT/ysxlVFNEO4tvtsfDDVih+UnaPouVFxVpwBSV1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cWKlX6D30zn9q; Tue, 23 Sep 2025 12:58:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58NCw0VU004282; Tue, 23 Sep 2025 12:58:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58NCw0ug004279; Tue, 23 Sep 2025 12:58:00 GMT (envelope-from git) Date: Tue, 23 Sep 2025 12:58:00 GMT Message-Id: <202509231258.58NCw0ug004279@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 13cf806828e2 - stable/14 - atf-c(3): fill in prototypes for functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 13cf806828e27753c76479337ef138762ae8ae89 Auto-Submitted: auto-generated The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=13cf806828e27753c76479337ef138762ae8ae89 commit 13cf806828e27753c76479337ef138762ae8ae89 Author: Enji Cooper AuthorDate: 2025-06-07 03:13:31 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2025-09-23 12:57:35 +0000 atf-c(3): fill in prototypes for functions This change fills in prototypes for functions exposed by atf-c(3) to aid the programmer with using the APIs with the library. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D50734 (cherry picked from commit a14573de29deda5b86b4458901aa5a0a9bf84375) --- contrib/atf/atf-c/atf-c.3 | 111 ++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 92 insertions(+), 19 deletions(-) diff --git a/contrib/atf/atf-c/atf-c.3 b/contrib/atf/atf-c/atf-c.3 index 6369cb5697f8..287ebd41a033 100644 --- a/contrib/atf/atf-c/atf-c.3 +++ b/contrib/atf/atf-c/atf-c.3 @@ -131,25 +131,98 @@ .Fn ATF_TC_WITHOUT_HEAD "name" .Fn ATF_TP_ADD_TC "tp_name" "tc_name" .Fn ATF_TP_ADD_TCS "tp_name" -.Fn atf_tc_get_config_var "tc" "varname" -.Fn atf_tc_get_config_var_wd "tc" "variable_name" "default_value" -.Fn atf_tc_get_config_var_as_bool "tc" "variable_name" -.Fn atf_tc_get_config_var_as_bool_wd "tc" "variable_name" "default_value" -.Fn atf_tc_get_config_var_as_long "tc" "variable_name" -.Fn atf_tc_get_config_var_as_long_wd "tc" "variable_name" "default_value" -.Fn atf_no_error -.Fn atf_tc_expect_death "reason" "..." -.Fn atf_tc_expect_exit "exitcode" "reason" "..." -.Fn atf_tc_expect_fail "reason" "..." -.Fn atf_tc_expect_pass -.Fn atf_tc_expect_signal "signo" "reason" "..." -.Fn atf_tc_expect_timeout "reason" "..." -.Fn atf_tc_fail "reason" -.Fn atf_tc_fail_nonfatal "reason" -.Fn atf_tc_pass -.Fn atf_tc_require_kmod "kmod" -.Fn atf_tc_require_prog "prog" -.Fn atf_tc_skip "reason" +.Ft const char* +.Fo atf_tc_get_config_var +.Fa "const atf_tc_t *tc" +.Fa "const char *name" +.Fc +.Ft const char* +.Fo atf_tc_get_config_var_wd +.Fa "const atf_tc_t *tc" +.Fa "const char *name" +.Fa "const char *defval" +.Fc +.Ft bool +.Fo atf_tc_get_config_var_as_bool +.Fa "const atf_tc_t *tc" +.Fa "const char *name" +.Fc +.Ft bool +.Fo atf_tc_get_config_var_as_bool_wd +.Fa "const atf_tc_t *tc" +.Fa "const char *name" +.Fa "const bool defval" +.Fc +.Ft long +.Fo atf_tc_get_config_var_as_long +.Fa "const atf_tc_t *tc" +.Fa "const char *name" +.Fc +.Ft long +.Fo atf_tc_get_config_var_as_long_wd +.Fa "const atf_tc_t *tc" +.Fa "const char *name" +.Fa "const long defval" +.Fc +.Ft void +.Fo atf_no_error +.Fa "void" +.Fc +.Ft void +.Fo atf_tc_expect_death +.Fa "const char *reason" +.Fa "..." +.Fc +.Ft void +.Fo atf_tc_expect_exit +.Fa "const int exitcode" +.Fa "const char *reason" +.Fa "..." +.Fc +.Ft void +.Fo atf_tc_expect_fail +.Fa "const char *reason" +.Fa "..." +.Fc +.Ft void +.Fo atf_tc_expect_pass +.Fa "void" +.Fc +.Ft void +.Fo atf_tc_expect_signal +.Fa "const int signo" +.Fa "const char *reason" +.Fa "..." +.Fc +.Ft void +.Fo atf_tc_expect_timeout +.Fa "const char *reason" +.Fa "..." +.Fc +.Ft void +.Fo atf_tc_fail +.Fa "const char *reason" +.Fc +.Ft void +.Fo atf_tc_fail_nonfatal +.Fa "const char *reason" +.Fc +.Ft void +.Fo atf_tc_pass +.Fa "void" +.Fc +.Ft void +.Fo atf_tc_require_kmod +.Fa "const char *kmod" +.Fc +.Ft void +.Fo atf_tc_require_prog +.Fa "const char *prog" +.Fc +.Ft void +.Fo atf_tc_skip +.Fa "const char *reason" +.Fc .Ft void .Fo atf_utils_cat_file .Fa "const char *file"