From patchwork Wed Apr 21 22:44:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 43065 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6365F3838013; Wed, 21 Apr 2021 22:45:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6365F3838013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619045127; bh=KMjxFVDpO/HQahZHCeuQOadjK9NNgb98ECvI/hvZ2rU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=qGnlRsYZ1Vq/asXZ2uNEP8qnbwTo3G1v7Q8x/iLDeIEDsEeSKQBgX/RpBJcgZuh6w VQyUxE9z0ZA02cSZ+XBiYUQ09/xQ4+syHzt6qm2wkUGCMmijlBEUVy1RbNU4P0+3H2 F9n3ArIHn9m3iaZxfxjeweMOciC6xDFKhSH3k8mk= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 222C33846012 for ; Wed, 21 Apr 2021 22:45:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 222C33846012 Received: by mail-wr1-x42e.google.com with SMTP id p6so36186090wrn.9 for ; Wed, 21 Apr 2021 15:45:24 -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:mime-version :content-transfer-encoding; bh=KMjxFVDpO/HQahZHCeuQOadjK9NNgb98ECvI/hvZ2rU=; b=FXRM7S/ikUDxVVzPTXhA9d/k7lTHOENneYv1q+1kvCv9th9cbD37pFKbQv87BG25by wD6PbwTJNIS7/SqXxSizVcoDPenAjp6TrHeOdPW1lJ9/FTXwM4icO+VCssIK2hw1J/1z 0VLgZ1RRzgOjxlvrWDLwDUswtsCoZlKaCuYo4juVStH8yuqH7PRmLaRrA2pJKRFFrZac 6sYJRouJ9DgHilwv7vkSpx1VXKZ/rpyd3CX0KNmc8LqbFmTjPvI6aWxO7xqardySWVKC odE+FnqEzrD/JaAmkrhnaurpIeK4rx3O4+6vtOgZ+u3gtwyh+ouDIhuJG4jp/SBuY1SC /skw== X-Gm-Message-State: AOAM531ZDwLXMZn1VdetNfh3eQAkP5AUa18RlKhEvT4ZGrf1zDGQ9VFe ZR3LXc6WM7BrZajh97aImas= X-Google-Smtp-Source: ABdhPJyEMiOpVmvKqbZewawKshkv/tQUGpQW4019ull1/hiR8tsjfcvd3Exy95/TmKJZ5SMJQ5ls8w== X-Received: by 2002:adf:bc09:: with SMTP id s9mr366412wrg.329.1619045123182; Wed, 21 Apr 2021 15:45:23 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id l13sm781800wrt.14.2021.04.21.15.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 15:45:22 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 1/3] alloc_hugepages.2, arch_prctl.2, capget.2, clone.2, delete_module.2, execveat.2, exit_group.2, get_robust_list.2, getunwind.2, init_module.2: Add note about the use of syscall(2) Date: Thu, 22 Apr 2021 00:44:17 +0200 Message-Id: <20210421224418.143065-1-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.0 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: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Signed-off-by: Alejandro Colomar --- man2/alloc_hugepages.2 | 5 +++++ man2/arch_prctl.2 | 6 ++++++ man2/capget.2 | 5 +++++ man2/clone.2 | 6 ++++++ man2/delete_module.2 | 6 ++++++ man2/execveat.2 | 6 ++++++ man2/exit_group.2 | 6 ++++++ man2/get_robust_list.2 | 5 +++++ man2/getunwind.2 | 6 ++++++ man2/init_module.2 | 5 +++++ 10 files changed, 56 insertions(+) diff --git a/man2/alloc_hugepages.2 b/man2/alloc_hugepages.2 index cc76fc495..47f9da6b0 100644 --- a/man2/alloc_hugepages.2 +++ b/man2/alloc_hugepages.2 @@ -35,6 +35,11 @@ alloc_hugepages, free_hugepages \- allocate or free huge pages .BI "int syscall(SYS_free_hugepages, void *" addr ); .\" asmlinkage int sys_free_hugepages(unsigned long addr); .fi +.PP +.IR Note : +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The system calls .BR alloc_hugepages () diff --git a/man2/arch_prctl.2 b/man2/arch_prctl.2 index 7ae5b350c..982416761 100644 --- a/man2/arch_prctl.2 +++ b/man2/arch_prctl.2 @@ -34,6 +34,12 @@ arch_prctl \- set architecture-specific thread state .BI "int syscall(SYS_arch_prctl, int " code ", unsigned long " addr ); .BI "int syscall(SYS_arch_prctl, int " code ", unsigned long *" addr ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR arch_prctl (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR arch_prctl () sets architecture-specific process or thread state. diff --git a/man2/capget.2 b/man2/capget.2 index 9dbc0404c..3ac05106f 100644 --- a/man2/capget.2 +++ b/man2/capget.2 @@ -28,6 +28,11 @@ capget, capset \- set/get capabilities of thread(s) .BI "int syscall(SYS_capset, cap_user_header_t " hdrp , .BI " const cap_user_data_t " datap ); .fi +.PP +.IR Note : +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION These two system calls are the raw kernel interface for getting and setting thread capabilities. diff --git a/man2/clone.2 b/man2/clone.2 index f455c97d8..7253091a7 100644 --- a/man2/clone.2 +++ b/man2/clone.2 @@ -63,6 +63,12 @@ clone, __clone2, clone3 \- create a child process .PP .BI "long syscall(SYS_clone3, struct clone_args *" cl_args ", size_t " size ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR clone3 (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION These system calls create a new ("child") process, in a manner similar to diff --git a/man2/delete_module.2 b/man2/delete_module.2 index 21c9e9d8d..3b14111c5 100644 --- a/man2/delete_module.2 +++ b/man2/delete_module.2 @@ -33,6 +33,12 @@ delete_module \- unload a kernel module .PP .BI "int syscall(SYS_delete_module, const char *" name ", unsigned int " flags ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR delete_module (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR delete_module () diff --git a/man2/execveat.2 b/man2/execveat.2 index c566f53df..0c97a0eb3 100644 --- a/man2/execveat.2 +++ b/man2/execveat.2 @@ -36,6 +36,12 @@ execveat \- execute program relative to a directory file descriptor .BI " const char *const " argv "[], const char *const " envp [], .BI " int " flags ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR execveat (), +necessitating the use of +.BR syscall (2). .\" FIXME . See https://sourceware.org/bugzilla/show_bug.cgi?id=27364 .SH DESCRIPTION .\" commit 51f39a1f0cea1cacf8c787f652f26dfee9611874 diff --git a/man2/exit_group.2 b/man2/exit_group.2 index b512927d4..96715d26a 100644 --- a/man2/exit_group.2 +++ b/man2/exit_group.2 @@ -32,6 +32,12 @@ exit_group \- exit all threads in a process .PP .BI "noreturn void syscall(SYS_exit_group, int " status ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR exit_group (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION This system call is equivalent to .BR _exit (2) diff --git a/man2/get_robust_list.2 b/man2/get_robust_list.2 index d1b1c59bc..66b27d905 100644 --- a/man2/get_robust_list.2 +++ b/man2/get_robust_list.2 @@ -42,6 +42,11 @@ get_robust_list, set_robust_list \- get/set list of robust futexes .BI "long syscall(SYS_set_robust_list," .BI " struct robust_list_head *" head ", size_t " len ); .fi +.PP +.IR Note : +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION These system calls deal with per-thread robust futex lists. These lists are managed in user space: diff --git a/man2/getunwind.2 b/man2/getunwind.2 index 2c44506c7..bf15a82b6 100644 --- a/man2/getunwind.2 +++ b/man2/getunwind.2 @@ -35,6 +35,12 @@ getunwind \- copy the unwind data to caller's buffer .PP .BI "long syscall(SYS_getunwind, void " *buf ", size_t " buf_size ); .fi +.PP +.IR Note : +glibc provides no wrapper for +.BR getunwind (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .I Note: this system call is obsolete. .PP diff --git a/man2/init_module.2 b/man2/init_module.2 index 13d1b7f0a..aac0c6631 100644 --- a/man2/init_module.2 +++ b/man2/init_module.2 @@ -38,6 +38,11 @@ init_module, finit_module \- load a kernel module .BI "int syscall(SYS_finit_module, int " fd ", const char *" param_values , .BI " int " flags ); .fi +.PP +.IR Note : +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR init_module () loads an ELF image into kernel space, From patchwork Wed Apr 21 22:44: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: 43067 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E7A21398B167; Wed, 21 Apr 2021 22:45:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7A21398B167 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619045129; bh=9d5GqwjLQo5jQC04I9c9/HIQWxP83Hd86f+HgH2aVI8=; 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=w29173i4rMKh9OoMDe1EKzxqpUvgwDGHXmTJ192xzK7WXFxBUVKdbypfcLtIa0EwU lN1F8YlFNxWMk7ZCoX/tvHc8BCC32VIRbX71U6F828MMgjtngceO920pTFXVyJ7dnO OihtqU6Y7kWMCduElWUQ/zuJBo7pfwF6hDNmboM4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org 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 103433844025 for ; Wed, 21 Apr 2021 22:45:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 103433844025 Received: by mail-wr1-x436.google.com with SMTP id c15so33917922wro.13 for ; Wed, 21 Apr 2021 15:45:24 -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=9d5GqwjLQo5jQC04I9c9/HIQWxP83Hd86f+HgH2aVI8=; b=KnSQNadhr2TF77PlvB3VUAm0IiUTXOJwJzUtV53NmI+o78edIHfUMzi4FSeH7xDvWC gaJXkuYfd4ObvhIZaBBSqYd13JKSJwv8e22rItLzd7kUDSG6YRMbAV7d8rVivA1Umdzc q0NVlq+AkKFrTloQ/wvDRp8bMLSRUTpaJnCtAsy4xVo3ZI1HWQtCrMhOfUtsk0LTrCdd YhgBGcxaCWKoa6lyZFsukgzQtT4gGtY0JB+DNrZbh7u0bzTThP2Q8jVCz0ahXyzeUx2e 2YIIyWAZpIEY9o0mUp1C63VPiI2olfJMNHOh1FKxO7zTKTgsfLha14txMjK1Aq5meEoe Mc/g== X-Gm-Message-State: AOAM5315scOIaL5733aMKJNXDZnUhGR8hm4BSUbUmBVDA0k3kaVQ8mvi 0qKQ7pgUdmuSnrqIURwmP1g= X-Google-Smtp-Source: ABdhPJwVMmLRdIsLuP6VjvfYdt6GrX+ojJme4yjsDmfdcjvufhmZRbVgahn/3RQm6VCr4ym3ofeTZQ== X-Received: by 2002:adf:e2cc:: with SMTP id d12mr423899wrj.90.1619045124136; Wed, 21 Apr 2021 15:45:24 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id l13sm781800wrt.14.2021.04.21.15.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 15:45:23 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 2/3] Various pages: Remove unused (and ) Date: Thu, 22 Apr 2021 00:44:18 +0200 Message-Id: <20210421224418.143065-2-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210421224418.143065-1-alx.manpages@gmail.com> References: <20210421224418.143065-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: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" In b0b19983d9a2001ce94b908a99f4c05a50fd47ee we removed . For the same reasons there, remove now from many pages. If someone wonders why was needed, the reason was to get all the definitions of IPC_* constants. However, that header is now included by , so it's not needed anymore to explicitly include it. Quoting POSIX: "In addition, the header shall include the header." There were some remaining cases where I forgot to remove ; remove them now too. Signed-off-by: Alejandro Colomar --- man2/msgctl.2 | 12 ------------ man2/msgget.2 | 12 ------------ man2/msgop.2 | 12 ------------ man2/semctl.2 | 12 ------------ man2/semget.2 | 12 ------------ man2/semop.2 | 12 ------------ man2/shmctl.2 | 12 ------------ man2/shmget.2 | 14 -------------- man3/ftok.3 | 1 - 9 files changed, 99 deletions(-) diff --git a/man2/msgctl.2 b/man2/msgctl.2 index d42a47d2b..72598dd4c 100644 --- a/man2/msgctl.2 +++ b/man2/msgctl.2 @@ -40,7 +40,6 @@ msgctl \- System V message control operations .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int msgctl(int " msqid ", int " cmd ", struct msqid_ds *" buf ); @@ -405,17 +404,6 @@ capability). POSIX.1-2001, POSIX.1-2008, SVr4. .\" SVID does not document the EIDRM error condition. .SH NOTES -The inclusion of -.I -isn't required on Linux or by any version of POSIX. -However, -some old implementations required the inclusion of this header file, -and the SVID also documented its inclusion. -Applications intended to be portable to such old systems may need -to include this header file. -.\" Like Linux, the FreeBSD man pages still document -.\" the inclusion of this header file. -.PP The .BR IPC_INFO , .BR MSG_STAT , diff --git a/man2/msgget.2 b/man2/msgget.2 index edc91467b..fd9cbe0a1 100644 --- a/man2/msgget.2 +++ b/man2/msgget.2 @@ -37,7 +37,6 @@ msgget \- get a System V message queue identifier .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int msgget(key_t " key ", int " msgflg ); @@ -188,17 +187,6 @@ would be exceeded. .SH CONFORMING TO POSIX.1-2001, POSIX.1-2008, SVr4. .SH NOTES -The inclusion of -.I -isn't required on Linux or by any version of POSIX. -However, -some old implementations required the inclusion of this header file, -and the SVID also documented its inclusion. -Applications intended to be portable to such old systems may need -to include this header file. -.\" Like Linux, the FreeBSD man pages still document -.\" the inclusion of this header file. -.PP .B IPC_PRIVATE isn't a flag field but a .I key_t diff --git a/man2/msgop.2 b/man2/msgop.2 index e56176f08..d46e5b1dd 100644 --- a/man2/msgop.2 +++ b/man2/msgop.2 @@ -42,7 +42,6 @@ msgrcv, msgsnd \- System V message queue operations .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int msgsnd(int " msqid ", const void *" msgp ", size_t " msgsz \ @@ -480,17 +479,6 @@ their definitions can be obtained by defining the .\" MSG_COPY since glibc 2.18 feature test macro. .SH NOTES -The inclusion of -.I -isn't required on Linux or by any version of POSIX. -However, -some old implementations required the inclusion of this header file, -and the SVID also documented its inclusion. -Applications intended to be portable to such old systems may need -to include this header file. -.\" Like Linux, the FreeBSD man pages still document -.\" the inclusion of this header file. -.PP The .I msgp argument is declared as \fIstruct msgbuf\ *\fP in diff --git a/man2/semctl.2 b/man2/semctl.2 index 504cdf9da..ac8bd906d 100644 --- a/man2/semctl.2 +++ b/man2/semctl.2 @@ -44,7 +44,6 @@ semctl \- System V semaphore control operations .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int semctl(int " semid ", int " semnum ", int " cmd ", ...);" @@ -536,17 +535,6 @@ It was also so defined on Linux 2.2 and earlier, but, since Linux 2.4, the field has the type .IR "unsigned\ long" . .SH NOTES -The inclusion of -.I -isn't required on Linux or by any version of POSIX. -However, -some old implementations required the inclusion of this header file, -and the SVID also documented its inclusion. -Applications intended to be portable to such old systems may need -to include this header file. -.\" Like Linux, the FreeBSD man pages still document -.\" the inclusion of these header files. -.PP The .BR IPC_INFO , .BR SEM_STAT , diff --git a/man2/semget.2 b/man2/semget.2 index b0914f900..2fce9b1ce 100644 --- a/man2/semget.2 +++ b/man2/semget.2 @@ -39,7 +39,6 @@ semget \- get a System V semaphore set identifier .SH SYNOPSIS .nf -.B #include .B #include .fi .PP @@ -219,17 +218,6 @@ SVr4, POSIX.1-2001. .\" SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN, .\" ERANGE, EFAULT. .SH NOTES -The inclusion of -.I -isn't required on Linux or by any version of POSIX. -However, -some old implementations required the inclusion of this header file, -and the SVID also documented its inclusion. -Applications intended to be portable to such old systems may need -to include this header file. -.\" Like Linux, the FreeBSD man pages still document -.\" the inclusion of this header file. -.PP .B IPC_PRIVATE isn't a flag field but a .I key_t diff --git a/man2/semop.2 b/man2/semop.2 index 9479f7e4c..f0cd66302 100644 --- a/man2/semop.2 +++ b/man2/semop.2 @@ -37,7 +37,6 @@ semop, semtimedop \- System V semaphore operations .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int semop(int " semid ", struct sembuf *" sops ", size_t " nsops ); @@ -383,17 +382,6 @@ first appeared in version 2.3.3. POSIX.1-2001, POSIX.1-2008, SVr4. .\" SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC. .SH NOTES -The inclusion of -.I -isn't required on Linux or by any version of POSIX. -However, -some old implementations required the inclusion of this header file, -and the SVID also documented its inclusion. -Applications intended to be portable to such old systems may need -to include this header file. -.\" Like Linux, the FreeBSD man pages still document -.\" the inclusion of this header file. -.PP The .I sem_undo structures of a process aren't inherited by the child produced by diff --git a/man2/shmctl.2 b/man2/shmctl.2 index 31c86af86..5aa74e676 100644 --- a/man2/shmctl.2 +++ b/man2/shmctl.2 @@ -49,7 +49,6 @@ shmctl \- System V shared memory control .SH SYNOPSIS .nf .ad l -.B #include .B #include .PP .BI "int shmctl(int " shmid ", int " cmd ", struct shmid_ds *" buf ); @@ -466,17 +465,6 @@ POSIX.1-2001, POSIX.1-2008, SVr4. .\" ENOENT, ENOSPC, ENOMEM, EEXIST. Neither SVr4 nor SVID documents .\" an EIDRM error condition. .SH NOTES -The inclusion of -.I -isn't required on Linux or by any version of POSIX. -However, -some old implementations required the inclusion of this header file, -and the SVID also documented its inclusion. -Applications intended to be portable to such old systems may need -to include this header file. -.\" Like Linux, the FreeBSD man pages still document -.\" the inclusion of this header file. -.PP The .BR IPC_INFO , .BR SHM_STAT , diff --git a/man2/shmget.2 b/man2/shmget.2 index 1d9e6825c..757b7b7f1 100644 --- a/man2/shmget.2 +++ b/man2/shmget.2 @@ -41,7 +41,6 @@ shmget \- allocates a System V shared memory segment .SH SYNOPSIS .nf .ad l -.B #include .B #include .PP .BI "int shmget(key_t " key ", size_t " size ", int " shmflg ); @@ -284,19 +283,6 @@ and .B SHM_NORESERVE are Linux extensions. .SH NOTES -The inclusion of -.I -and -.I -isn't required on Linux or by any version of POSIX. -However, -some old implementations required the inclusion of these header files, -and the SVID also documented their inclusion. -Applications intended to be portable to such old systems may need -to include these header files. -.\" Like Linux, the FreeBSD man pages still document -.\" the inclusion of these header files. -.PP .B IPC_PRIVATE isn't a flag field but a .I key_t diff --git a/man3/ftok.3 b/man3/ftok.3 index 5d8907b56..d46481356 100644 --- a/man3/ftok.3 +++ b/man3/ftok.3 @@ -31,7 +31,6 @@ ftok \- convert a pathname and a project identifier to a System V IPC key .SH SYNOPSIS .nf -.B #include .B #include .fi .PP From patchwork Wed Apr 21 22:44:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 43066 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7ABF7398B41B; Wed, 21 Apr 2021 22:45:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7ABF7398B41B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619045129; bh=TBV3lzdeBKywsP3oOhk/jWWDiZqdQXkgjglV+hJqsE4=; 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=A8nOYenT1em1ji0FOsQtE/JIkyeCaF1H9r04qB1peQ6Gc6ILeWbJTgK1LcCY7F2A9 6ijcBSaJ3JCQujVu/Zb5Jq66r6zkPyythWhT6/6A8kEsB34dVc1l9teW4y1zhLLw3q PC3Jq9oJIW42+Ased/HlyxnVu1c57W/Yiufqq0zw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id DB8FB389366A for ; Wed, 21 Apr 2021 22:45:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DB8FB389366A Received: by mail-wr1-x429.google.com with SMTP id c15so33917947wro.13 for ; Wed, 21 Apr 2021 15:45:25 -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=TBV3lzdeBKywsP3oOhk/jWWDiZqdQXkgjglV+hJqsE4=; b=BebvNkDrbiAkgHRyjJBz3J+0Jm5weVvu9DkcYILAHWeaacpgJRGS1PGbBzx8lABXxq AsNCACNaA9A5r2fyRbn5jdCkVsvXKz3E6roDMEhbIFGD18DxCEuJgB4H+l5ys+xmBJez AT4Hg228vXjhN2UOGn9R6zc/9mOzMERY+G+ybS2byQREKSfjM8PN2MeBy8OvlGMsnQn3 PyOz/YWsqzCPG35cbTUgFzmJ9qztaDlBgCc1hnMXwaokhUDEWhYsl8SjlLrzbVxqgjeM T+rb79Vh38/V8G9iZoBvEtL5hIfwLbRskj2abXdP0VoPL86CTlvEeZaKtSjCvQaJUV2b kpgw== X-Gm-Message-State: AOAM5309yUHCr1xcEgI5qM8niWMyD21t5sraYwfUOUWcRPnhkp/0URqa qCx8BrI9ps+8K1Y4sTtRdzQ= X-Google-Smtp-Source: ABdhPJzAkq1+A4BK6bEFwkEKZnCcncbKGhnSO18pjKhzL4neqqYf8xzgVu8eE/vLVif1ir3C+iUKeQ== X-Received: by 2002:a5d:51cf:: with SMTP id n15mr438914wrv.30.1619045125056; Wed, 21 Apr 2021 15:45:25 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id l13sm781800wrt.14.2021.04.21.15.45.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 15:45:24 -0700 (PDT) To: mtk.manpages@gmail.com Subject: [PATCH 3/3] open.2: Remove unused Date: Thu, 22 Apr 2021 00:44:19 +0200 Message-Id: <20210421224418.143065-3-alx.manpages@gmail.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210421224418.143065-1-alx.manpages@gmail.com> References: <20210421224418.143065-1-alx.manpages@gmail.com> MIME-Version: 1.0 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-Patchwork-Original-From: Alejandro Colomar via Libc-alpha From: Alejandro Colomar Reply-To: Alejandro Colomar Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" I can't see a reason to include it. provides O_* constants for 'flags', S_* constants for 'mode', and mode_t. Probably a long time ago, some of those weren't defined in , and both headers needed to be included, or maybe it's a historical error. Signed-off-by: Alejandro Colomar --- man2/open.2 | 1 - 1 file changed, 1 deletion(-) diff --git a/man2/open.2 b/man2/open.2 index bac1ee806..1bcd995f4 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -53,7 +53,6 @@ open, openat, creat \- open and possibly create a file .SH SYNOPSIS .nf -.B #include .B #include .PP .BI "int open(const char *" pathname ", int " flags );