From nobody Thu Apr 21 22:38:19 2022 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 0B399199657C; Thu, 21 Apr 2022 22:38:20 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KksrW5rWBz4Wdt; Thu, 21 Apr 2022 22:38:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650580699; 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=VS47oLtCNqlrKQ3WVv79XHHsWOo6M5tSBW6u9VCdqYs=; b=kWJ3qkSy5yJlHj+ewqs1uDTMmn3iQd1pSMIycoaNJimPHw2QCggQqwM7bGBERN4vyGVyKZ rkQg5G4SzE6DFQ+pbqf/ttwimYHjXgDYN7P6Zmbp2qK4veH9RF9a5XuksJlgnJaJmh79Cx qpI0dbSKsAEUrQuOMkf+mwGm4dHfHbOGjB5Z2/GdoH8ec8jf4tGbE66u9dh+B7TSHW7YkI fapDHrjeUjooX9GtEvynmoYmqT76acPKOe/VcjWjxmDBD+Q2fbXWZ8vnc/q7Bnt2ahRGZF HD0OucRLt0ZWOCX782iXqRm/dbJ9air+I7JSPd31EFNdq9JZvuaTbJhzXB/+5Q== 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 8641111B19; Thu, 21 Apr 2022 22:38:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23LMcJfA019507; Thu, 21 Apr 2022 22:38:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LMcJcH019506; Thu, 21 Apr 2022 22:38:19 GMT (envelope-from git) Date: Thu, 21 Apr 2022 22:38:19 GMT Message-Id: <202204212238.23LMcJcH019506@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: c85cf4929417 - stable/13 - loader: userboot: provide a getsecs() implementation 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c85cf4929417ce6e11a84d1dfed13654b14c6ae7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650580699; 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=VS47oLtCNqlrKQ3WVv79XHHsWOo6M5tSBW6u9VCdqYs=; b=hDXYPWGRatxRZvNQjKfjpc1oPaBL91gYQh/N160nRWY6Me2F1+ebRtHRRqhT7gIpTmnfCN Heny5PqwVY5Q9bL4fdPLsqWCOA2NE4E9HquBkknW2GzUM0ycyt/aYVi2jEiP33KilAFhOO RlzCwv20ogUyTqMw7YS3RH9eBDK5lYsbhBR5ykNtsK548xWhUWvh4NWrflodrbsFVUQ7E2 0BoQioeaXfiPugA+93XIbnKxNc5G6noWDB8mYU6Mmu63JBi2mF6fvQ9Kr+51qNmVl84TR4 4KVgUv/mfvEG0PQL0+VacfFK13H83zvPgzp0cAjXfzH0z9NXd2wPP6WABZSt+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650580699; a=rsa-sha256; cv=none; b=L7WqQw8Cj8/sTRyyoryZXTIYpC7ob2RdiAVGcYYBopHElE5z4mYkmN9Mexz+C6foPrpWVH vY2/IekgYDylceBlJRmNF//KHvkdQOY57FOiQAPJ+jb5bDcPbAAd3ArP8Zvtak5dGc1ZLh k+YQHJc1e9bo6DUfodmDQRQDt2JYul/6oX56SJw0I6JdXBWwhVYVTbEUSAGkv0Ql4yahqm NDZ+zhtG4tOLn+fNiPOr0KUTfyqaAAbxthHkN2390MoMB5n3xpfQ2tJCe9zmhDK3g8QOkk JBfuGOpYIXl+U1dbEVMvdBmxv2JP7kzswZLjWB2hLUP4thXH7Cu48hmWSCIXqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=c85cf4929417ce6e11a84d1dfed13654b14c6ae7 commit c85cf4929417ce6e11a84d1dfed13654b14c6ae7 Author: Kyle Evans AuthorDate: 2022-04-13 00:29:54 +0000 Commit: Kyle Evans CommitDate: 2022-04-21 22:35:01 +0000 loader: userboot: provide a getsecs() implementation We don't need it for userboot, but it avoids issues with BIND_NOW, so just provide it. time(3) isn't defined but ends up being provided by libc linked into the host process, which is generally fine. PR: 262920 Reviewed by: imp, jhb (cherry picked from commit 660c1892d5c90500d37f98185326c6287b2b61be) --- stand/userboot/userboot/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stand/userboot/userboot/main.c b/stand/userboot/userboot/main.c index 48c4e388b828..07630945cf80 100644 --- a/stand/userboot/userboot/main.c +++ b/stand/userboot/userboot/main.c @@ -70,6 +70,18 @@ delay(int usec) CALLBACK(delay, usec); } +time_t +getsecs(void) +{ + + /* + * userboot can't do netboot, so this implementation isn't strictly + * required. Defining it avoids issues with BIND_NOW, and it doesn't + * hurt to do it. + */ + return (time(NULL)); +} + void exit(int v) {