From nobody Wed Apr 13 00:34:14 2022 X-Original-To: dev-commits-src-main@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 BFF671B0DA3A; Wed, 13 Apr 2022 00:34:14 +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 4KdNrQ2Nn5z4RRh; Wed, 13 Apr 2022 00:34:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649810054; 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=oIBRJqmNKhwzCmLte9eLfrUFgIrPZX7xIbqMX4ZvXdQ=; b=hkCX2Mp7rr1eTCUQ1M0hcw3JxF87VhzpC7Ry3USRYAuIZ2+jCq+tKQzopEslcxdCbabBWp YSWa/AADQ+0q6jaPV+xUatvTE+YfxdcpYWQVXzPCTWcaRxfE6jiCQr2fW/Lii+0/9hxp9W nyFB6s6U47RURU5OUbKfhpZNPdOrOCjfg7eHTx3zf3yYoubfnXS/z/a/ZPvsY0XdLAP15g SxAaebghF12cE6q6ODd+HbkX+MNGAEaRvoybP1e5it7fBpZdVCq8OdGbCZIa4vqciblBjq GeyvCNNsMyxb0v+zyEuCPKGiJ0SLYAMHil6ldux/BnWHEe+p+LB7hB9Dy+RBzg== 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 1FB5F21D91; Wed, 13 Apr 2022 00:34:14 +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 23D0YElT051691; Wed, 13 Apr 2022 00:34:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23D0YErc051690; Wed, 13 Apr 2022 00:34:14 GMT (envelope-from git) Date: Wed, 13 Apr 2022 00:34:14 GMT Message-Id: <202204130034.23D0YErc051690@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 660c1892d5c9 - main - loader: userboot: provide a getsecs() implementation List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 660c1892d5c90500d37f98185326c6287b2b61be Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649810054; 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=oIBRJqmNKhwzCmLte9eLfrUFgIrPZX7xIbqMX4ZvXdQ=; b=bmIOfkmTkr0E5cX/rLDdUu+8MOxqG5fr8LBbb85whIeGhLAhhwZ70hAtC11swO5cMVI2TR ynx0q7abAe9WxATvMZDmBQdO7X86ZmARUUGcqCtc9qcbzzpwFGIzNLlNS1XXbqntGTid+1 ca1Ab6KRk5AVVaeu+uSRSYDOy0ACK5ectUIEesOEFjGxAu90XVLdWSgECX4axc2IV3ITri RgatRWS6VpdAXgtp2NChl2UlrIQ5OInNG7mrRwjpmoayKxN/Uuo6VgqP7EpV+KWo3dQv8e jVu5RZgcLp6dtiWLmnZeppga1Eh0ecuW6z8TQlQ+0gWoZ2IrBTrAvRwLWpQwZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649810054; a=rsa-sha256; cv=none; b=MVNH8+ZjAxsFgRX4i1G/VnrumvemkBKO187++j4DEorTiFg/U/G4MHN0TYrUhWUzYVk38K yC8aOhNJhIiJphmszHHhOsGm31jX4v/nIOeIRDtD8c4Jy7TAh4ZTNTeypYe7MfvLiHqgOu hmqxQkzBbfDAF4l59Xo6FObyhmuZS+y6A0yAm5oGTFhAXPBn/kZSn11ijSsjFkWo87iQbN X9JDnb/9JGJkqgvuBrxtywex7DKStq952Ni0Zt+jwCLJdRg6UE0g/3rivLWuo8H9EBKMfP KBuRIXzCk1b30IwxWXzrs3lnI8Sb3ElUtvtz9DelbibajRErbS567CjuS7ogdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=660c1892d5c90500d37f98185326c6287b2b61be commit 660c1892d5c90500d37f98185326c6287b2b61be Author: Kyle Evans AuthorDate: 2022-04-13 00:29:54 +0000 Commit: Kyle Evans CommitDate: 2022-04-13 00:33:54 +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 MFC after: 3 days Diferential Revision: https://reviews.freebsd.org/D34758 --- 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) {