about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-16 14:39:45 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-16 14:39:45 -0700
commit661768bb509e85aa53385d7962ecde558421aa78 (patch)
tree25af7739c00dc93bef7da5d4c12eb19edee9d179
parentd4261567b7c22fc411d2435c2a8ccff3fe4c5a50 (diff)
downloadglibc-661768bb509e85aa53385d7962ecde558421aa78.tar.gz
glibc-661768bb509e85aa53385d7962ecde558421aa78.tar.xz
glibc-661768bb509e85aa53385d7962ecde558421aa78.zip
Use __syscall_slong_t in bits/mqueue.h
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/bits/mqueue.h14
2 files changed, 13 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d600a4f99..dc5ced7e36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
+	(mq_attr): Use __syscall_slong_t.
+
+2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
 	Check __x86_64__ instead of __WORDSIZE.
 	(_STAT_VER_LINUX): Likewise.
diff --git a/sysdeps/unix/sysv/linux/bits/mqueue.h b/sysdeps/unix/sysv/linux/bits/mqueue.h
index e755f8722f..c21246d160 100644
--- a/sysdeps/unix/sysv/linux/bits/mqueue.h
+++ b/sysdeps/unix/sysv/linux/bits/mqueue.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004 Free Software Foundation, Inc.
+/* Copyright (C) 2004-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,13 +19,15 @@
 # error "Never use <bits/mqueue.h> directly; include <mqueue.h> instead."
 #endif
 
+#include <bits/types.h>
+
 typedef int mqd_t;
 
 struct mq_attr
 {
-  long int mq_flags;	/* Message queue flags.  */
-  long int mq_maxmsg;	/* Maximum number of messages.  */
-  long int mq_msgsize;	/* Maximum message size.  */
-  long int mq_curmsgs;	/* Number of messages currently queued.  */
-  long int __pad[4];
+  __syscall_slong_t mq_flags;	/* Message queue flags.  */
+  __syscall_slong_t mq_maxmsg;	/* Maximum number of messages.  */
+  __syscall_slong_t mq_msgsize;	/* Maximum message size.  */
+  __syscall_slong_t mq_curmsgs;	/* Number of messages currently queued.  */
+  __syscall_slong_t __pad[4];
 };