]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
msg: Remove redundant #include <sys/msg.h> header
authorLukasz Majewski <lukma@denx.de>
Thu, 22 Oct 2020 11:09:00 +0000 (13:09 +0200)
committerLukasz Majewski <lukma@denx.de>
Wed, 4 Nov 2020 10:34:58 +0000 (11:34 +0100)
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
sysdeps/unix/sysv/linux/msgrcv.c
sysdeps/unix/sysv/linux/msgsnd.c
sysdeps/unix/sysv/linux/shmat.c
sysdeps/unix/sysv/linux/shmdt.c
sysdeps/unix/sysv/linux/shmget.c

index 7968b738a4106b45192804af0daeed6f30f60508..f5ed417a1f4dc2a95b711e1a92ea703560a93d2c 100644 (file)
@@ -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>
index 95edc7a7873a21bba98dd734c838ecb40a862b82..f3567033e22ba3bf81509351be870b163f10c094 100644 (file)
@@ -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>
 
index 554516f2ca27134cd56d3a14d31018bb280117bb..6369782706ac5022be79c15f9be3320eeb18460d 100644 (file)
@@ -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>
 
index 3bc791c05f6e777ea8e35edd251743cfd6a1c43f..89df350d8463956ab8595b6e891c774783bdd0a6 100644 (file)
@@ -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>
index c506064a489aa6b45334ea760a9b3968982852d3..48e223e037bd7ce70c0b3fd98a7c343745554dbd 100644 (file)
@@ -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>
index 6f7ce8c057e20d93da87b86dfac87742ac937dc1..71de81c365527857b204927ca12a08f3e619e69f 100644 (file)
@@ -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>