From patchwork Mon May 10 17:55:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1476625 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=vpWeN6JE; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Ff7zX58xQz9sWl for ; Tue, 11 May 2021 03:56:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D7363982061; Mon, 10 May 2021 17:56:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D7363982061 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620669394; bh=XKdpBKSMuiZJDGlYuAWIvkxYovN6rRDYr0Mh9rQWVBw=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=vpWeN6JEx9i9Qs6BpUX8oQ7RT1r3GMJoMTpzUbEj0WEryzwV7QAwbsMzX27rvlYTy W3ncRDtFAT83ynHMOj5aLbdDrdZRqXrAmlCE3Hyao8Tt6rBWca4mYpFx8qG91B9hWu 8EHjBFCr4wags7JnKsepz53izeU7Eo+A/DmaIS5Q= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 840633982061 for ; Mon, 10 May 2021 17:56:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 840633982061 Received: by mail-wm1-x32b.google.com with SMTP id g65so9694819wmg.2 for ; Mon, 10 May 2021 10:56:30 -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=XKdpBKSMuiZJDGlYuAWIvkxYovN6rRDYr0Mh9rQWVBw=; b=HPb0vd/MhdV25jf2E65SYPH3Bu3HB5eOYHXh1XRG5szchcP8D9HnQPSEfUkyFqGIts /hZiReZ3RxJzK0+ha4K0bfzZtVH7Qt+YYTW0DgtThg5nyF9cSbWmJfg9H3fNEMOyNgKP HM+7BWZRBo7mCDXUA2r9dqYRmOm4RWVAL7qzK0EIauHfEf0duYxHvCH7QuQ7MtxOEzis LeuoJ4g60YrUNMNvGsk4WkyfETgTEbwKYb4qZ57WaTDbi11zjn8kJ1cjINDDncfmiI5s vNoHXFroZ4u71N5W5v1nng9KfGxK4rodPDOgV83ry0/jUaJ69fuQBwP/wQbT+ZtVBhzm tO+w== X-Gm-Message-State: AOAM5300+U5IqO9kKP7dNWyEMeqgsI4q/HrKuDYECV1xkI7G5mXWPFQ5 pR92El+e/7lNG9yWt4a1L90= X-Google-Smtp-Source: ABdhPJyc6dFrnFU41NB7YSeoELCfSOH+MqnZyYftnsEo+xHQm4X71uf3a/kBk2k35sExJ8RRTD+Jbg== X-Received: by 2002:a05:600c:26c9:: with SMTP id 9mr376673wmv.176.1620669389657; Mon, 10 May 2021 10:56:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:56:29 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 09/39] ipc.2: Use syscall(SYS_...); for system calls without a wrapper Date: Mon, 10 May 2021 19:55:18 +0200 Message-Id: <20210510175546.28445-10-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 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-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Florian Weimer , Jakub Wilk , Alejandro Colomar , libc-alpha@sourceware.org, linux-man@vger.kernel.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Signed-off-by: Alejandro Colomar --- man2/ipc.2 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/man2/ipc.2 b/man2/ipc.2 index c0ba4651f..f505fa1c9 100644 --- a/man2/ipc.2 +++ b/man2/ipc.2 @@ -27,12 +27,20 @@ ipc \- System V IPC system calls .SH SYNOPSIS .nf -.BI "int ipc(unsigned int " call ", int " first ", unsigned long " second , -.BI " unsigned long " third ", void *" ptr ", long " fifth ); +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_ipc, unsigned int " call ", int " first , +.BI " unsigned long " second ", unsigned long " third \ +", void *" ptr , +.BI " long " fifth ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR ipc (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR ipc () is a common kernel entry point for the System\ V IPC calls @@ -56,10 +64,6 @@ system call; instead, .BR semctl (2), .BR shmctl (2), and so on really are implemented as separate system calls. -.PP -Glibc does not provide a wrapper for this system call; -in the unlikely event that you want to call it directly, you can do so using -.BR syscall (2). .SH SEE ALSO .BR msgctl (2), .BR msgget (2),