[1/3] msg: Remove redundant #include <sys/msg.h> header
Commit Message
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(-)
Comments
On Okt 27 2020, Lukasz Majewski wrote:
> 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.
Ok.
Andreas.
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>