From nobody Mon Dec 20 00:38:11 2021 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 44ADE18F0560; Mon, 20 Dec 2021 00:38: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 4JHLKc5rPxz3rLb; Mon, 20 Dec 2021 00:38:12 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 C6E5C4C81; Mon, 20 Dec 2021 00:38:11 +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 1BK0cBU9059975; Mon, 20 Dec 2021 00:38:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BK0cBkC059974; Mon, 20 Dec 2021 00:38:11 GMT (envelope-from git) Date: Mon, 20 Dec 2021 00:38:11 GMT Message-Id: <202112200038.1BK0cBkC059974@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 0a50e517cdec - stable/13 - Document new variant of swapoff(2) 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0a50e517cdeca31397ee95ac3dcdadf379d555cd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639960693; 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=BeAwZwcXNH1XCONmv/P258v30QjOtaaL4MpumU3q1JQ=; b=srsZTNbX1byaB8fmVskQ7I3H4uUh7kYQZr+jDqXB1lz/0E8gBdIXtmAq5kF6/SDoIYH7b5 FK9UH/jsQdNMoObhzqXI4KR428QcBfz6LZjefEoboZNxwZoU+OpIke9phlqhR67ydyA+il q1gst82sVse/cN0qmgxzbPmdodmvYV+8BzxHhHKr9HEiR3WGREPRULVK/A6y7BPHSm5uuR krGNsrxaxm09cplvPy/XqEmtt7Gn1AJJddxozzkC8GXVNT2GYcIORaKMsXqiMTYkzwvrQw 5mHCI0hQpRCHW1lIQIqD9NvuHoNHNJP2q09uzLzm8SxnGWHh//0hJ1I35j6BgA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639960693; a=rsa-sha256; cv=none; b=OQ/86u9/d1Hq3V8RYFPdQFjcgjm/NNmj9N6ZSFoHegnhG2cFhXJeqU6WXN/vWzpRFvILwe mAZeG8DzYo7get8wxQ5EdAeVuQKyTZQPU1tmwyouyUegiUOt5rkaG7Jh8kV3bd7RwiFtog Yx5/dJbiDySpTN1qiBnJfp3Ghhj0oar9adsIldHWNFT3l1vpVCaXr0FeDC3ITzIQbF87X0 iV9YlRdqVEdkr1fGGmyujeESH2304LVGfCWoTJa4FP47G9d32CHb6ZEGiY8TfA6CsKvaQM SMQyVsJhQcDWkcPAmwR6R4NAetIUpCYiqO6vOVTYyv350mIYQ8V5h8aMbBwuwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0a50e517cdeca31397ee95ac3dcdadf379d555cd commit 0a50e517cdeca31397ee95ac3dcdadf379d555cd Author: Konstantin Belousov AuthorDate: 2021-12-08 21:24:31 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-20 00:29:11 +0000 Document new variant of swapoff(2) (cherry picked from commit 9f0fea5d033f5cd4b9b76aefe31b12c4dba25790) --- lib/libc/sys/swapon.2 | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/lib/libc/sys/swapon.2 b/lib/libc/sys/swapon.2 index 3a8da8f4f363..c369e8b7ba51 100644 --- a/lib/libc/sys/swapon.2 +++ b/lib/libc/sys/swapon.2 @@ -28,7 +28,7 @@ .\" @(#)swapon.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd December 2, 2021 +.Dd December 8, 2021 .Dt SWAPON 2 .Os .Sh NAME @@ -43,7 +43,7 @@ .Ft int .Fn swapon "const char *special" .Ft int -.Fn swapoff "const char *special" +.Fn swapoff "const char *special" "u_int flags" .Sh DESCRIPTION The .Fn swapon @@ -68,27 +68,7 @@ is made available for other purposes. .Pp The .Fa special -argument points to either the string that names the special device -used for swapping or the following structure -.Bd -literal -struct swapoff_new_args { - const char *name_old_syscall; - const char *name; - u_int flags; -}; -.Ed -that extends swapoff's interface to include optional flags. -The -.Va name_old_syscall -member must be initialized to -.Dv NULL -for the system to recognize the extended interface. -It is recommended that the whole structure be zeroed for future -compatibility, due to padding. -.Pp -The -.Va name -string is the special device name, same as legacy syscall argument. +argument points to the name of the device or file used for swapping. .The .Va flags argument takes the following flags: