public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/3] msg: Remove redundant #include <sys/msg.h> header
@ 2020-10-27 22:10 Lukasz Majewski
  2020-10-27 22:10 ` [PATCH 2/3] msqid: Provide internal copy of struct __msqid64_ds Lukasz Majewski
                   ` (2 more replies)
  0 siblings, 3 replies; 33+ messages in thread
From: Lukasz Majewski @ 2020-10-27 22:10 UTC (permalink / raw)
  To: Joseph Myers, Paul Eggert, Adhemerval Zanella
  Cc: Alistair Francis, Arnd Bergmann, Alistair Francis, GNU C Library,
	Florian Weimer, Carlos O'Donell, Stepan Golosunov,
	Andreas Schwab, Zack Weinberg, Lukasz Majewski

The #include <sys/msg.h> is redundant as we do not use message specific
types for issuing syscalls to handle msg and shm. Only msgctl requires
this header.

Build tests:
./src/scripts/build-many-glibcs.py glibcs
---
 sysdeps/unix/sysv/linux/msgget.c | 1 -
 sysdeps/unix/sysv/linux/msgrcv.c | 1 -
 sysdeps/unix/sysv/linux/msgsnd.c | 1 -
 sysdeps/unix/sysv/linux/shmat.c  | 1 -
 sysdeps/unix/sysv/linux/shmdt.c  | 1 -
 sysdeps/unix/sysv/linux/shmget.c | 1 -
 6 files changed, 6 deletions(-)

diff --git a/sysdeps/unix/sysv/linux/msgget.c b/sysdeps/unix/sysv/linux/msgget.c
index 7968b738a4..f5ed417a1f 100644
--- a/sysdeps/unix/sysv/linux/msgget.c
+++ b/sysdeps/unix/sysv/linux/msgget.c
@@ -16,7 +16,6 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <sys/msg.h>
 #include <ipc_priv.h>
 #include <sysdep.h>
 #include <errno.h>
diff --git a/sysdeps/unix/sysv/linux/msgrcv.c b/sysdeps/unix/sysv/linux/msgrcv.c
index 95edc7a787..f3567033e2 100644
--- a/sysdeps/unix/sysv/linux/msgrcv.c
+++ b/sysdeps/unix/sysv/linux/msgrcv.c
@@ -16,7 +16,6 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <sys/msg.h>
 #include <ipc_priv.h>
 #include <sysdep-cancel.h>
 
diff --git a/sysdeps/unix/sysv/linux/msgsnd.c b/sysdeps/unix/sysv/linux/msgsnd.c
index 554516f2ca..6369782706 100644
--- a/sysdeps/unix/sysv/linux/msgsnd.c
+++ b/sysdeps/unix/sysv/linux/msgsnd.c
@@ -16,7 +16,6 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <sys/msg.h>
 #include <ipc_priv.h>
 #include <sysdep-cancel.h>
 
diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c
index 3bc791c05f..89df350d84 100644
--- a/sysdeps/unix/sysv/linux/shmat.c
+++ b/sysdeps/unix/sysv/linux/shmat.c
@@ -16,7 +16,6 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <sys/msg.h>
 #include <ipc_priv.h>
 #include <sysdep.h>
 #include <errno.h>
diff --git a/sysdeps/unix/sysv/linux/shmdt.c b/sysdeps/unix/sysv/linux/shmdt.c
index c506064a48..48e223e037 100644
--- a/sysdeps/unix/sysv/linux/shmdt.c
+++ b/sysdeps/unix/sysv/linux/shmdt.c
@@ -16,7 +16,6 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <sys/msg.h>
 #include <ipc_priv.h>
 #include <sysdep.h>
 #include <errno.h>
diff --git a/sysdeps/unix/sysv/linux/shmget.c b/sysdeps/unix/sysv/linux/shmget.c
index 6f7ce8c057..71de81c365 100644
--- a/sysdeps/unix/sysv/linux/shmget.c
+++ b/sysdeps/unix/sysv/linux/shmget.c
@@ -16,7 +16,6 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#include <sys/msg.h>
 #include <ipc_priv.h>
 #include <sysdep.h>
 #include <errno.h>
-- 
2.20.1


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2020-12-15 22:56 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 22:10 [PATCH 1/3] msg: Remove redundant #include <sys/msg.h> header Lukasz Majewski
2020-10-27 22:10 ` [PATCH 2/3] msqid: Provide internal copy of struct __msqid64_ds Lukasz Majewski
2020-11-03  8:59   ` Lukasz Majewski
2020-11-03 20:45   ` Adhemerval Zanella
2020-11-03 22:33     ` Joseph Myers
2020-11-04 13:30     ` Lukasz Majewski
2020-11-04 20:05       ` Adhemerval Zanella
2020-11-06 17:15         ` Lukasz Majewski
2020-11-06 17:37           ` Joseph Myers
2020-11-09 15:02             ` Adhemerval Zanella
2020-11-09 18:39               ` Joseph Myers
2020-11-09 20:19                 ` Lukasz Majewski
2020-11-09 20:28                   ` Joseph Myers
2020-11-10  0:02                     ` Lukasz Majewski
2020-11-11 18:14                       ` Adhemerval Zanella
2020-11-11 23:57                         ` Lukasz Majewski
2020-11-12 14:50                           ` Adhemerval Zanella
2020-11-12 15:27                             ` Lukasz Majewski
2020-11-12 16:16                               ` Adhemerval Zanella
2020-11-12 22:02                                 ` Lukasz Majewski
2020-11-13 14:17                                   ` Adhemerval Zanella
2020-11-13 14:42                                     ` Lukasz Majewski
2020-11-13 16:57                                       ` Adhemerval Zanella
2020-11-13 21:08                                         ` Lukasz Majewski
2020-11-16 13:44                                           ` Adhemerval Zanella
2020-11-16 14:25                                             ` Lukasz Majewski
2020-12-03 23:27                                               ` Lukasz Majewski
2020-12-15 22:55                                                 ` Lukasz Majewski
2020-11-09 20:22                 ` Adhemerval Zanella
2020-10-27 22:10 ` [PATCH 3/3] msg: provide glibc local copy of struct msqid_ds Lukasz Majewski
2020-12-03 23:29   ` Lukasz Majewski
2020-12-15 22:55     ` Lukasz Majewski
2020-10-28 10:33 ` [PATCH 1/3] msg: Remove redundant #include <sys/msg.h> header Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).