This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH rsa/stdint_headers] Discuss: Add #include <stdint.h> for uint[32|64]_t in selected installed headers
- From: Ryan Arnold <rsa at us dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Cc: Roland McGrath <roland at hack dot frob dot com>
- Date: Wed, 01 May 2013 11:23:42 -0500
- Subject: [PATCH rsa/stdint_headers] Discuss: Add #include <stdint.h> for uint[32|64]_t in selected installed headers
- Reply-to: rsa at us dot ibm dot com
In the thread "[PATCH rsa/stdint] Cleanup: Add #include <stdint.h> for
uint[32|64]_t usage" Roland suggested separating the installed headers
that would be affected by the stdint.h inclusion into a separate patch
where inclusion can be addressed individually.
These changes have been posted to rsa/stdint_headers.
I think I have the ChangeLogs correct this time around.
Ryan S. Arnold
commit ac58450e8c9f9d3531ff2efe1d8b972b8fa8a44c
Author: Ryan S. Arnold <rsa@linux.vnet.ibm.com>
Date: Wed May 1 10:59:42 2013 -0500
Add #include <stdint.h> for uint[32|64]_t usage in installed headers.
[ports/ChangeLog.aarch64]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/aarch64/bits/link.h: Add missing #include <stdint.h>
due to uint[32|64]_t usage.
[ports/ChangeLog.alpha]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/alpha/bits/link.h: Add missing #include <stdint.h> due to
uint[32|64]_t usage.
[ports/ChangeLog.arm]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/arm/bits/link.h: Add missing #include <stdint.h> due to
uint[32|64]_t usage.
[ports/ChangeLog.hppa]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/hppa/bits/link.h: Add missing #include <stdint.h> due to
uint[32|64]_t usage.
[ports/ChangeLog.ia64]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/ia64/bits/link.h: Add missing #include <stdint.h> due to
uint[32|64]_t usage.
[ports/ChangeLog.m68k]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/m68k/bits/link.h: Add missing #include <stdint.h> due to
uint[32|64]_t usage.
[ports/ChangeLog.microblaze]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/microblaze/bits/link.h: Add missing #include <stdint.h> due
to uint[32|64]_t usage.
[ports/ChangeLog.mips]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/mips/bits/link.h: Add missing #include <stdint.h> due to
uint[32|64]_t usage.
[ports/ChangeLog.alpha]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/unix/sysv/linux/alpha/bits/elfclass.h: Add missing #include
<stdint.h> due to uint[32|64]_t usage.
* sysdeps/unix/sysv/linux/alpha/bits/netdb.h: Likewise.
[ChangeLog]
2013-05-01 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* bits/elfclass.h: Add missing #include <stdint.h> due to
uint[32|64]_t usage.
* bits/netdb.h: Likewise.
* sysdeps/powerpc/bits/link.h: Likewise.
* sysdeps/s390/bits/link.h: Likewise.
* sysdeps/sh/bits/link.h: Likewise.
* sysdeps/sparc/bits/link.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Likewise.
* sysdeps/x86/bits/link.h: Likewise.
* inet/netinet/icmp6.h: Likewise.
* inet/netinet/ip6.h: Likewise.
* nis/rpcsvc/nis.h: Likewise.
* nis/rpcsvc/nislib.h: Likewise.
* sunrpc/rpc/auth_des.h: Likewise.
* sunrpc/rpc/xdr.h: Likewise.
diff --git a/bits/elfclass.h b/bits/elfclass.h
index 180227d..f6ed899 100644
--- a/bits/elfclass.h
+++ b/bits/elfclass.h
@@ -7,6 +7,7 @@
#endif
#include <bits/wordsize.h>
+#include <stdint.h>
#define __ELF_NATIVE_CLASS __WORDSIZE
diff --git a/bits/netdb.h b/bits/netdb.h
index fd0e8d1..a017437 100644
--- a/bits/netdb.h
+++ b/bits/netdb.h
@@ -19,6 +19,7 @@
# error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
#endif
+#include <stdint.h>
/* Description of data base entry for a single network. NOTE: here a
poor assumption is made. The network number is expected to fit
diff --git a/inet/netinet/icmp6.h b/inet/netinet/icmp6.h
index 49e30de..900f8b1 100644
--- a/inet/netinet/icmp6.h
+++ b/inet/netinet/icmp6.h
@@ -20,6 +20,7 @@
#include <inttypes.h>
#include <string.h>
+#include <stdint.h>
#include <sys/types.h>
#include <netinet/in.h>
diff --git a/inet/netinet/ip6.h b/inet/netinet/ip6.h
index 47c6f02..61d5ae0 100644
--- a/inet/netinet/ip6.h
+++ b/inet/netinet/ip6.h
@@ -19,6 +19,7 @@
#define _NETINET_IP6_H 1
#include <inttypes.h>
+#include <stdint.h>
#include <netinet/in.h>
struct ip6_hdr
diff --git a/nis/rpcsvc/nis.h b/nis/rpcsvc/nis.h
index 5c5c7bb..8c1037f 100644
--- a/nis/rpcsvc/nis.h
+++ b/nis/rpcsvc/nis.h
@@ -33,6 +33,7 @@
#define _RPCSVC_NIS_H 1
#include <features.h>
+#include <stdint.h>
#include <rpc/rpc.h>
#include <rpcsvc/nis_tags.h>
diff --git a/nis/rpcsvc/nislib.h b/nis/rpcsvc/nislib.h
index 2f6fd76..0c10131 100644
--- a/nis/rpcsvc/nislib.h
+++ b/nis/rpcsvc/nislib.h
@@ -20,6 +20,7 @@
#define __RPCSVC_NISLIB_H__
#include <features.h>
+#include <stdint.h>
__BEGIN_DECLS
diff --git a/ports/sysdeps/aarch64/bits/link.h b/ports/sysdeps/aarch64/bits/link.h
index 3408c5b..bdbecb1 100644
--- a/ports/sysdeps/aarch64/bits/link.h
+++ b/ports/sysdeps/aarch64/bits/link.h
@@ -20,6 +20,8 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
+
/* Registers for entry into PLT on AArch64. */
typedef struct La_aarch64_regs
{
diff --git a/ports/sysdeps/alpha/bits/link.h b/ports/sysdeps/alpha/bits/link.h
index 12bd9dc..c867299 100644
--- a/ports/sysdeps/alpha/bits/link.h
+++ b/ports/sysdeps/alpha/bits/link.h
@@ -19,6 +19,7 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
/* Registers for entry into PLT on Alpha. */
typedef struct La_alpha_regs
diff --git a/ports/sysdeps/arm/bits/link.h b/ports/sysdeps/arm/bits/link.h
index 2f995e8..d7f6bfb 100644
--- a/ports/sysdeps/arm/bits/link.h
+++ b/ports/sysdeps/arm/bits/link.h
@@ -19,6 +19,7 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
/* Registers for entry into PLT on ARM. */
typedef struct La_arm_regs
diff --git a/ports/sysdeps/hppa/bits/link.h b/ports/sysdeps/hppa/bits/link.h
index ccf13b4..8a2068e 100644
--- a/ports/sysdeps/hppa/bits/link.h
+++ b/ports/sysdeps/hppa/bits/link.h
@@ -19,6 +19,8 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
+
/* Registers for entry into PLT on hppa. */
typedef struct La_hppa_regs
{
diff --git a/ports/sysdeps/ia64/bits/link.h b/ports/sysdeps/ia64/bits/link.h
index dec8df8..e30b720 100644
--- a/ports/sysdeps/ia64/bits/link.h
+++ b/ports/sysdeps/ia64/bits/link.h
@@ -19,6 +19,8 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
+
/* Registers for entry into PLT on ia64. */
typedef struct La_ia64_regs
{
diff --git a/ports/sysdeps/m68k/bits/link.h b/ports/sysdeps/m68k/bits/link.h
index 038c4bb..19bbd45 100644
--- a/ports/sysdeps/m68k/bits/link.h
+++ b/ports/sysdeps/m68k/bits/link.h
@@ -19,6 +19,7 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
/* Registers for entry into PLT on M68K. */
typedef struct La_m68k_regs
diff --git a/ports/sysdeps/microblaze/bits/link.h b/ports/sysdeps/microblaze/bits/link.h
index 2b2842a..dc69df0 100644
--- a/ports/sysdeps/microblaze/bits/link.h
+++ b/ports/sysdeps/microblaze/bits/link.h
@@ -20,6 +20,8 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
+
/* Registers for entry into PLT on Microblaze. */
typedef struct La_microblaze_regs
{
diff --git a/ports/sysdeps/mips/bits/link.h b/ports/sysdeps/mips/bits/link.h
index b4e5226..79a8334 100644
--- a/ports/sysdeps/mips/bits/link.h
+++ b/ports/sysdeps/mips/bits/link.h
@@ -20,6 +20,7 @@
#endif
#include <sgidefs.h>
+#include <stdint.h>
#if _MIPS_SIM == _ABIO32
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h b/ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h
index e5aa4a0..75e604f 100644
--- a/ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h
+++ b/ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h
@@ -7,6 +7,7 @@
#endif
#include <bits/wordsize.h>
+#include <stdint.h>
#define __ELF_NATIVE_CLASS __WORDSIZE
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h b/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
index b9437ff..4a096d2 100644
--- a/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
+++ b/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
@@ -19,6 +19,7 @@
# error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
#endif
+#include <stdint.h>
/* Description of data base entry for a single network. NOTE: here a
poor assumption is made. The network number is expected to fit
diff --git a/sunrpc/rpc/auth_des.h b/sunrpc/rpc/auth_des.h
index 21d40cc..ce90bd4 100644
--- a/sunrpc/rpc/auth_des.h
+++ b/sunrpc/rpc/auth_des.h
@@ -18,6 +18,7 @@
#ifndef _RPC_AUTH_DES_H
#define _RPC_AUTH_DES_H 1
+#include <stdint.h>
#include <sys/cdefs.h>
#include <rpc/auth.h>
diff --git a/sunrpc/rpc/xdr.h b/sunrpc/rpc/xdr.h
index 4e31eb5..63020bb 100644
--- a/sunrpc/rpc/xdr.h
+++ b/sunrpc/rpc/xdr.h
@@ -40,6 +40,7 @@
/* We need FILE. */
#include <stdio.h>
+#include <stdint.h>
__BEGIN_DECLS
diff --git a/sysdeps/powerpc/bits/link.h b/sysdeps/powerpc/bits/link.h
index b907bd6..5838664 100644
--- a/sysdeps/powerpc/bits/link.h
+++ b/sysdeps/powerpc/bits/link.h
@@ -20,6 +20,7 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
#if __ELF_NATIVE_CLASS == 32
diff --git a/sysdeps/s390/bits/link.h b/sysdeps/s390/bits/link.h
index 0ea59ac..3b8a274 100644
--- a/sysdeps/s390/bits/link.h
+++ b/sysdeps/s390/bits/link.h
@@ -19,6 +19,7 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
#if __ELF_NATIVE_CLASS == 32
diff --git a/sysdeps/sh/bits/link.h b/sysdeps/sh/bits/link.h
index fed635e..79d3c2d 100644
--- a/sysdeps/sh/bits/link.h
+++ b/sysdeps/sh/bits/link.h
@@ -19,6 +19,7 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
/* Registers for entry into PLT on SH. */
typedef struct La_sh_regs
diff --git a/sysdeps/sparc/bits/link.h b/sysdeps/sparc/bits/link.h
index ffca19d..64496fa 100644
--- a/sysdeps/sparc/bits/link.h
+++ b/sysdeps/sparc/bits/link.h
@@ -20,6 +20,8 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
+
#if __WORDSIZE == 32
typedef struct La_sparc32_regs
diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/ppc.h b/sysdeps/unix/sysv/linux/powerpc/bits/ppc.h
index c562021..ade7d29 100644
--- a/sysdeps/unix/sysv/linux/powerpc/bits/ppc.h
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/ppc.h
@@ -23,6 +23,8 @@
# error "Never include this file directly; use <sys/platform/ppc.h> instead."
#endif
+#include <stdint.h>
+
__BEGIN_DECLS
/* Read the time base frequency. */
diff --git a/sysdeps/unix/sysv/linux/s390/bits/elfclass.h b/sysdeps/unix/sysv/linux/s390/bits/elfclass.h
index 9d8a7df..0048bc4 100644
--- a/sysdeps/unix/sysv/linux/s390/bits/elfclass.h
+++ b/sysdeps/unix/sysv/linux/s390/bits/elfclass.h
@@ -25,6 +25,7 @@
#endif
#include <bits/wordsize.h>
+#include <stdint.h>
#define __ELF_NATIVE_CLASS __WORDSIZE
diff --git a/sysdeps/x86/bits/link.h b/sysdeps/x86/bits/link.h
index 475b141..41fbc08 100644
--- a/sysdeps/x86/bits/link.h
+++ b/sysdeps/x86/bits/link.h
@@ -19,6 +19,7 @@
# error "Never include <bits/link.h> directly; use <link.h> instead."
#endif
+#include <stdint.h>
#ifndef __x86_64__
/* Registers for entry into PLT on IA-32. */