From nobody Fri Dec 15 16:51:27 2023 X-Original-To: bugs@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 4SsFc15Z9cz53nnH for ; Fri, 15 Dec 2023 16:51:29 +0000 (UTC) (envelope-from bugzilla-noreply@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 4SsFc12pCJz4cjm for ; Fri, 15 Dec 2023 16:51:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702659089; a=rsa-sha256; cv=none; b=llO2lNT0K80EdFhgVf48GJbBDcW18OmytukSrUDJHGHNHlUVQME6vdlhAc2eB4wdyaQ10U DPWSRgm43UbMIi6ZSuJpSi/RKgJmXeLG5AgbImezP/aF5fb61Q8hfqANpE2jipG31WOw/P jCkC6lK4H2UxYOsJ2yBlC8lp3eZ72KvyrlsKTGgoLECkRvg6sZvNG0zGdGsM7AzWb84kLw 70a+bqYT7YyVVqGtHIu6BTw3Bc7UuzY+WZAevHV3cVPyAhQDItJcabx84ugeLLqd4k16Mh UwWi8RdhfS+QsmxWI3Pku6tFSAgUMId9ZJb1rKS9hro934C7CNKM1yk/la3uNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702659089; 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: in-reply-to:in-reply-to:references:references; bh=SxCsWj7BWZbzDydGgbcK+9k53FznIfcwEbAZiZwjkbQ=; b=gz23z8Hzg12JodoryUDKmaR6KMoimKfCLgqg4++WPJ3b2PZrh0lJrv+PwkaekXGSDGhGmt vtCHRr7PGy/mh8SAzVBRLrEWNZRdDk6EWQDbXe/q1POANawZs5cFFzu6BJWACU+F9hPMUj FWKF00u+XXLWjh6d+6ArPSaVNrM1vLrynNwaLcbg6CRxAbM9ScSWp+6I5HsijzDSauOOOY qfi5YQC0wPRJbzo/MAlaG62/c2DBX0HtG3ZJ0HIJTbMLBDAx9wp7TDd49vxp5ZVGCB7J96 2MWhDhPm6IUKStWXUA/HNAGXM7DT4WQzrcUmytGRdaH1WIylZRteMOEfla6I1w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4SsFc11FBkz4BC for ; Fri, 15 Dec 2023 16:51:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3BFGpTUN065240 for ; Fri, 15 Dec 2023 16:51:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BFGpTno065239 for bugs@FreeBSD.org; Fri, 15 Dec 2023 16:51:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262738] usr.bin/lockf: Add support for locking file descriptors Date: Fri, 15 Dec 2023 16:51:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: easy, feature, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262738 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D63b86eb6fa935ecf94b9a0f1842b56a22= 3f151be commit 63b86eb6fa935ecf94b9a0f1842b56a223f151be Author: Kyle Evans AuthorDate: 2023-11-22 07:46:14 +0000 Commit: Kyle Evans CommitDate: 2023-12-15 00:58:29 +0000 lockf: allow locking file descriptors This is most useful inside a shell script, allowing one to lock just portions of a script rather than having to wrap the entire script in a lock. PR: 262738 Reviewed by: 0mp, allanjude (both previous versions) Co-authored-by: Daniel O'Connor Sponsored by: Klara, Inc. (cherry picked from commit 09a7fe0a5523d53ff6c26ddef9a947f293e18c22) usr.bin/lockf/lockf.1 | 63 ++++++++++++++++++- usr.bin/lockf/lockf.c | 128 +++++++++++++++++++++++++++++++++-= ---- usr.bin/lockf/tests/lockf_test.sh | 91 +++++++++++++++++++++++++++ 3 files changed, 266 insertions(+), 16 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=