From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 7C20B398889C for ; Mon, 10 May 2021 17:57:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7C20B398889C Received: by mail-wr1-x434.google.com with SMTP id t18so17549706wry.1 for ; Mon, 10 May 2021 10:57:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/4HBHw9Rc57063FYCLhInqQWq2ZCUzUI+E/e0nyfRGc=; b=GKRsfYGX71cuZkstY5ydaO4w6RDPWjm319SejOHgEUay4XUhDtwIkn6nL125+K7reN E5ZOjlph99YHtGrgP0zye/dSaRFijoQFucLaoLc3Mg2eRLT3JEqIfChU0hvwZh9w06II 0Az5qtHCOnr370lo/yJ34pvc5cZXqZx1b+SzVdaAev9OCj3ozuzZ6DtaHAq+cV+szvOq 2/9Rlhajff/gY3QAPawTUdgEcC7cSkCyg8Tr/P6NMNNwzDC5X7bMpIFpkZ31RTtBenb+ tMMiXwdQZJQQCPAujm4YoIjrS2ZvbzZZj4+PrPJFYp7PgOzxMejI+YuEaC1e3riHeie4 xhDQ== X-Gm-Message-State: AOAM531yECtNcy7S0ME3wFjOkam/f3NrWci6y2AoGEExy2GCVc4uwptQ xh2AOnVgKSgaJvAsU564fJU= X-Google-Smtp-Source: ABdhPJxawHm7tjo7zje4Z6EZ14p5XOc9J7Pd7VJH40ReiJKPOiYP+XXb1xT7O7TDocA6/EopXySfHg== X-Received: by 2002:adf:d1e1:: with SMTP id g1mr32659973wrd.401.1620669424625; Mon, 10 May 2021 10:57:04 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id m13sm24318830wrw.86.2021.05.10.10.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:57:04 -0700 (PDT) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Florian Weimer , Jakub Wilk , Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: [PATCH 33/39] pivot_root.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:42 +0200 Message-Id: <20210510175546.28445-34-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510175546.28445-1-alx.manpages@gmail.com> References: <20210510175546.28445-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2021 17:57:06 -0000 Signed-off-by: Alejandro Colomar --- man2/pivot_root.2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index e0c34c450..c301c2e4a 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -29,11 +29,18 @@ pivot_root \- change the root mount .SH SYNOPSIS .nf -.BI "int pivot_root(const char *" new_root ", const char *" put_old ); +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_pivot_root, const char *" new_root \ +", const char *" put_old ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR pivot_root (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR pivot_root () changes the root mount in the mount namespace of the calling process. @@ -168,9 +175,6 @@ was introduced in Linux 2.3.41. .BR pivot_root () is Linux-specific and hence is not portable. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.PP A command-line interface for this system call is provided by .BR pivot_root (8). .PP -- 2.31.1