diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/abi-tag.h | 16 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/alpha/clone.S | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/net/route.h | 10 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/netinet/ip_fw.h | 10 |
4 files changed, 28 insertions, 12 deletions
diff --git a/sysdeps/unix/sysv/linux/abi-tag.h b/sysdeps/unix/sysv/linux/abi-tag.h new file mode 100644 index 0000000000..166e6a12f6 --- /dev/null +++ b/sysdeps/unix/sysv/linux/abi-tag.h @@ -0,0 +1,16 @@ +/* Define the GNU ABI tag for the Linux kernel we need. + The is a 4-byte quantity in native byte order: + the high byte is 0 to indicate Linux; + the low three bytes are the LINUX_VERSION_CODE for the earliest + compatible Linux kernel. */ + +#define ABI_LINUX_TAG 0 + +#define ABI_LINUX_MAJOR 2 +#define ABI_LINUX_MINOR 0 +#define ABI_LINUX_PATCH 0 + +#define ABI_TAG ((ABI_LINUX_TAG << 24) | \ + (ABI_LINUX_MAJOR << 16) | \ + (ABI_LINUX_MINOR << 8) | \ + (ABI_LINUX_PATCH << 0)) diff --git a/sysdeps/unix/sysv/linux/alpha/clone.S b/sysdeps/unix/sysv/linux/alpha/clone.S index 261bd81e57..5d36e2588d 100644 --- a/sysdeps/unix/sysv/linux/alpha/clone.S +++ b/sysdeps/unix/sysv/linux/alpha/clone.S @@ -44,7 +44,7 @@ ENTRY(__clone) /* Do the system call */ mov a0,pv /* get fn ptr out of the way */ - mov a3,a4 /* get fn arg out of the way */ + mov a3,t0 /* get fn arg out of the way */ mov a2,a0 ldiq v0,__NR_clone call_pal PAL_callsys @@ -74,7 +74,7 @@ thread_start: .prologue 0 /* Call the user's function */ - mov a4,a0 + mov t0,a0 jsr ra,(pv) ldgp gp,0(ra) diff --git a/sysdeps/unix/sysv/linux/net/route.h b/sysdeps/unix/sysv/linux/net/route.h index 3518dc5fc9..2450d5154a 100644 --- a/sysdeps/unix/sysv/linux/net/route.h +++ b/sysdeps/unix/sysv/linux/net/route.h @@ -56,12 +56,12 @@ struct in6_rtmsg struct in6_addr rtmsg_dst; struct in6_addr rtmsg_src; struct in6_addr rtmsg_gateway; - unsigned long int rtmsg_type; - unsigned short int rtmsg_dst_len; - unsigned short int rtmsg_src_len; - unsigned long int rtmsg_metric; + u_int32_t rtmsg_type; + u_int16_t rtmsg_dst_len; + u_int16_t rtmsg_src_len; + u_int32_t rtmsg_metric; unsigned long int rtmsg_info; - unsigned long int rtmsg_flags; + u_int32_t rtmsg_flags; int rtmsg_ifindex; }; diff --git a/sysdeps/unix/sysv/linux/netinet/ip_fw.h b/sysdeps/unix/sysv/linux/netinet/ip_fw.h index 3887ca8992..8ba10ae196 100644 --- a/sysdeps/unix/sysv/linux/netinet/ip_fw.h +++ b/sysdeps/unix/sysv/linux/netinet/ip_fw.h @@ -41,14 +41,14 @@ * flags and num_*_ports are stored in host byte order (of course). * Port numbers are stored in HOST byte order. */ - + #ifndef _NETINET_FW_H #define _NETINET_FW_H #include <sys/cdefs.h> #include <sys/types.h> -#include <netinet/icmp.h> +#include <netinet/ip_icmp.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/tcp.h> @@ -107,11 +107,11 @@ struct ip_fw { #define IP_FW_F_MASK 0x3FFF /* All possible flag bits mask */ -/* +/* * New IP firewall options for [gs]etsockopt at the RAW IP level. * Unlike BSD Linux inherits IP options so you don't have to use * a raw socket for this. Instead we check rights in the calls. - */ + */ #define IP_FW_BASE_CTL 64 /* base for firewall socket options */ @@ -181,7 +181,7 @@ struct ip_fwpkt */ struct ip_fw_masq; - + __END_DECLS #endif /* _NETINET_IP_FW_H */ |