From d7b0d6e1e157f87887ec2708d6478b8eb2873077 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Wed, 3 Jul 2013 13:21:35 +0900 Subject: [PATCH 1/2] Update linux/types.h to linux 2.6.20. This picks up the source kernel header change I984154487c38f6fa827bd78234f7fc2e4e1c383f . Bug: 9469682 Change-Id: I3b57517cc6442ba4d0b8003d7398617e8226233f --- libc/kernel/common/linux/types.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libc/kernel/common/linux/types.h b/libc/kernel/common/linux/types.h index 90b0f6b91..b40959cf9 100644 --- a/libc/kernel/common/linux/types.h +++ b/libc/kernel/common/linux/types.h @@ -33,12 +33,14 @@ typedef __u64 __bitwise __le64; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ typedef __u64 __bitwise __be64; #endif +typedef __u16 __bitwise __sum16; +typedef __u32 __bitwise __wsum; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ struct ustat { __kernel_daddr_t f_tfree; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ __kernel_ino_t f_tinode; char f_fname[6]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ char f_fpack[6]; }; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif From f936ef1a9f1f77985ca1fae35c1b0dc78e1510c0 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Wed, 3 Jul 2013 11:57:15 +0900 Subject: [PATCH 2/2] Include linux/termios.h from sys/ioctl.h. On NetBSD and glibc, including sys/ioctl.h provides some terminal ioctl data structures such as struct winsize. For compatibility, provide these via sys/ioctl.h in bionic as well. bionic does not have its own definitions for these structures, so get them from the Linux kernel definitions. Change-Id: I01345c23c0bebd60b0a80fc33668e7c0ad7356c3 --- libc/include/sys/ioctl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libc/include/sys/ioctl.h b/libc/include/sys/ioctl.h index 9f685100e..49d452c7c 100644 --- a/libc/include/sys/ioctl.h +++ b/libc/include/sys/ioctl.h @@ -30,6 +30,11 @@ #include #include +/* + * NetBSD and glibc's provide some of the + * terminal-related ioctl data structures such as struct winsize. + */ +#include #include #include #include