From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id A165E398205A for ; Mon, 10 May 2021 17:56:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A165E398205A Received: by mail-wr1-x436.google.com with SMTP id z6so17534776wrm.4 for ; Mon, 10 May 2021 10:56:33 -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=SnUiudXLqLGUXWxfTqP+91+DkoZGHPr6kchEeZQJTNs=; b=aHbZUNSN3CR3P1+QeKlArwRloKMjvZ0n2YF3KnRN5X8VRWH9c2RLMPW3fl827Uh9Yk EqaUAyKJ8tMGPH+CrYsr+rF2n9viH2rMjbTv1DUGbtdZu08JzG/zQsyz6/vErP/1gPa9 VxUXb0wzwoFdsBX7dCcjRD4ah7KeQ24GQ1wYNPRTz6FNxvsczu36WJFLOKKqk3RvFywF aiJoDZkXkWvCNMS7jTo5OIkwGk+AZG7TElzX9MPGcgtpCMcp7UVD5z2+rsIUtZgsrVWX 3qCvI+OpNtMF9uSS2WP1k743wT1PNPBymtDR6RcXuLw4+BUGzFGLEKnJQ7HEERn9kKoi iqnw== X-Gm-Message-State: AOAM532HzuEAscnQN4TeII1wDoECgPxwFXFhPCIUc78H3uDMiTtp2CC/ 8yE2qp9ir49EOpj+tKqIF+g= X-Google-Smtp-Source: ABdhPJzclYY2wEsgT2IAwSBpHWtXuGO53l1sVL+jOMpSwTMmnhZUiRLdprTmzB5wJPgkmt6jjV7zXQ== X-Received: by 2002:a5d:5745:: with SMTP id q5mr33147642wrw.250.1620669392795; Mon, 10 May 2021 10:56:32 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id m13sm24318830wrw.86.2021.05.10.10.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:32 -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 11/39] kcmp.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:20 +0200 Message-Id: <20210510175546.28445-12-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.2 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:56:34 -0000 Signed-off-by: Alejandro Colomar --- man2/kcmp.2 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/man2/kcmp.2 b/man2/kcmp.2 index 3cc7f7d6f..b0994758a 100644 --- a/man2/kcmp.2 +++ b/man2/kcmp.2 @@ -30,14 +30,19 @@ kcmp \- compare two processes to determine if they share a kernel resource .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " KCMP_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "int kcmp(pid_t " pid1 ", pid_t " pid2 ", int " type , -.BI " unsigned long " idx1 ", unsigned long " idx2 ); +.BI "int syscall(SYS_kcmp, pid_t " pid1 ", pid_t " pid2 ", int " type , +.BI " unsigned long " idx1 ", unsigned long " idx2 ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR kcmp (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR kcmp () @@ -303,9 +308,6 @@ system call first appeared in Linux 3.5. .BR kcmp () is Linux-specific and should not be used in programs intended to be portable. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -.PP Before Linux 5.12, this system call is available only if the kernel is configured with .BR CONFIG_CHECKPOINT_RESTORE , -- 2.31.1