aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2024-04-09 16:50:16 +0000
committerElliott Hughes <enh@google.com>2024-04-09 16:50:16 +0000
commitada535d29eb7733157114c70842900cdff0dd84f (patch)
tree66f51fa47e8d6e1c1d76f6f71c94124f481ff0d5
parent81102a25fc5bed2497b21a1805b5f64f68d6404a (diff)
downloadltp-ada535d29eb7733157114c70842900cdff0dd84f.tar.gz
bionic-compat.h: remove obsolete cruft.
These things either _are_ in bionic, or have been cleaned up in ltp. Change-Id: I684a316ff323a6a2ffb280b3fa0edf4d6d24ecd5
-rw-r--r--android/include/bionic-compat.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/android/include/bionic-compat.h b/android/include/bionic-compat.h
index 023685ad6..3379b7f53 100644
--- a/android/include/bionic-compat.h
+++ b/android/include/bionic-compat.h
@@ -20,15 +20,16 @@
#define __GLIBC_PREREQ(a, b) 1
-#define DEV_BSIZE 512
+// TODO: remove after https://android-review.git.corp.google.com/c/platform/bionic/+/3034234
#define NGROUPS NGROUPS_MAX
+// TODO: remove after https://android-review.git.corp.google.com/c/platform/bionic/+/3034152
+#define LINE_MAX _POSIX2_LINE_MAX
+// TODO: remove after https://android-review.git.corp.google.com/c/platform/bionic/+/3034233
#define SHMLBA sysconf(_SC_PAGESIZE)
-#define SIGCLD SIGCHLD
-#define S_IREAD S_IRUSR
-#define S_IWRITE S_IWUSR
+
#define _UTSNAME_DOMAIN_LENGTH SYS_NMLN
#define _UTSNAME_LENGTH SYS_NMLN
-#define LINE_MAX _POSIX2_LINE_MAX
+
/* Bionic doesn't support extended patterns and
* as of LTP20180515, this only used by read_all.c
* which is run from runtest/fs.
@@ -40,7 +41,6 @@
*/
#define FNM_EXTMATCH 0
-enum __ptrace_request { ENUM_PTRACE_UNUSED };
typedef unsigned long ulong;
static inline void *valloc(size_t size)
@@ -65,10 +65,5 @@ static inline int getdtablesize(void)
static inline void pthread_testcancel(void) { }
static inline int pthread_cancel(pthread_t thread) { return 0; }
-static inline int pthread_yield(void)
-{
- extern int sched_yield(void);
- return sched_yield();
-}
#endif /* __BIONIC_COMPAT_H */