char byte;
#else
sigset_t signals, waitset;
+ int sig;
#endif
#if __ANDROID_API__ < 16
fd_set *exceptfds, struct timespec *timeout)
{
int nfds_return;
+#if __ANDROID_API__ < 16
static char byte;
+#endif
pthread_mutex_lock (&event_queue.mutex);
\f
-/* System call wrappers for stuff missing in bionic. */
-
-#ifndef HAVE_FTRUNCATE
-
-/* ftruncate wrapper for Android, for systems without ftruncate in the
- C library.
-
- Such systems are always 32 bit systems, since Android 21 and later
- all support ftruncate. In addition, ARM and MIPS require registers
- used to store long long parameters to be aligned to an even
- register pair. */
-
-int
-android_ftruncate (int fd, off_t length)
-{
-#if defined __arm__ || defined __mips__
- return syscall (SYS_ftruncate64, fd, 0,
- (unsigned int) (length & 0xffffffff),
- (unsigned int) (length >> 32));
-#else
- return syscall (SYS_ftruncate64, fd, length);
-#endif
-}
-
-#endif
-
#else /* ANDROID_STUBIFY */
/* X emulation functions for Android. */
extern struct dirent *android_readdir (struct android_dir *);
extern void android_closedir (struct android_dir *);
-#ifndef HAVE_FTRUNCATE
-extern int android_ftruncate (int, off_t);
-
-/* Replace calls to ftruncate with android_ftruncate when ftruncate is
- not defined. */
-#define ftruncate android_ftruncate
-#endif
-
\f
#endif