This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Replace long int with __syscall_slong_t in sys/msg.h
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 16 May 2012 06:41:01 -0700
- Subject: PATCH: Replace long int with __syscall_slong_t in sys/msg.h
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
X32 uses the same msg kernel interface. This patch replaces
long int with __syscall_slong_t in sys/msg.h. Tested on Linux/x32
and Linux/x86-64. OK to install?
Thanks.
H.J.
---
* sysvipc/sys/msg.h (msgbuf): Replace long int with
__syscall_slong_t.
diff --git a/sysvipc/sys/msg.h b/sysvipc/sys/msg.h
index 4c8d62c..0dd9899 100644
--- a/sysvipc/sys/msg.h
+++ b/sysvipc/sys/msg.h
@@ -51,7 +51,7 @@ typedef __ssize_t ssize_t;
/* Template for struct to be used as argument for `msgsnd' and `msgrcv'. */
struct msgbuf
{
- long int mtype; /* type of received/sent message */
+ __syscall_slong_t mtype; /* type of received/sent message */
char mtext[1]; /* text of the message */
};
#endif