summaryrefslogtreecommitdiff
authorTanguy Pruvot <tanguy.pruvot@gmail.com>2012-07-13 23:49:18 (GMT)
committer Tanguy Pruvot <tanguy.pruvot@gmail.com>2012-07-14 00:36:46 (GMT)
commit301d3117c7766419305a3599e20895001685b7fc (patch)
treefb2108a94f31298dc025f329133fa82ebff3881e
parent7af5f6b585765c4b36375107a9e93c98b1c32744 (diff)
downloadbusybox-301d3117c7766419305a3599e20895001685b7fc.zip
busybox-301d3117c7766419305a3599e20895001685b7fc.tar.gz
busybox-301d3117c7766419305a3599e20895001685b7fc.tar.bz2
ionice: fix missing syscall and add the applet
with the help of Tias Guns <tias@ulyssis.org> PS: not symlinked, we have /system/bin/ionice in android toolbox its included as an alternative Change-Id: Ib01023fb083a5b55467f52cd303eeaa8a9405a1d
Diffstat
-rw-r--r--.config-full2
-rw-r--r--busybox-full.sources1
-rw-r--r--include/android.h11
3 files changed, 8 insertions, 6 deletions
diff --git a/.config-full b/.config-full
index 5f021e3..cb6c3f8 100644
--- a/.config-full
+++ b/.config-full
@@ -683,7 +683,7 @@ CONFIG_FLASHCP=y
CONFIG_FLASH_LOCK=y
CONFIG_FLASH_UNLOCK=y
# CONFIG_FLASH_ERASEALL is not set
-# CONFIG_IONICE is not set
+CONFIG_IONICE=y
# CONFIG_INOTIFYD is not set
# CONFIG_LAST is not set
# CONFIG_FEATURE_LAST_SMALL is not set
diff --git a/busybox-full.sources b/busybox-full.sources
index 8d72ed8..539927b 100644
--- a/busybox-full.sources
+++ b/busybox-full.sources
@@ -24,6 +24,7 @@ libpwdgrp/uidgid_get.c
miscutils/adjtimex.c miscutils/bbconfig.c miscutils/crond.c miscutils/crontab.c miscutils/dc.c miscutils/devmem.c miscutils/less.c miscutils/man.c
miscutils/fbsplash.c miscutils/flash_lock_unlock.c miscutils/flashcp.c miscutils/mountpoint.c miscutils/nandwrite.c
miscutils/rx.c miscutils/setserial.c miscutils/setsid.c miscutils/strings.c miscutils/taskset.c miscutils/time.c miscutils/timeout.c miscutils/ttysize.c
+miscutils/ionice.c
modutils/modinfo.c modutils/modprobe-small.c modutils/modutils.c
modutils/lsmod.c modutils/depmod.c modutils/rmmod.c modutils/insmod.c
diff --git a/include/android.h b/include/android.h
index 8599416..4463635 100644
--- a/include/android.h
+++ b/include/android.h
@@ -29,16 +29,17 @@ char *mkdtemp(char *);
/* defined in bionic/stubs.c */
char *ttyname(int);
-/* added to SYSCALLS.TXT:
-int stime(time_t *) 25
-int swapon(const char *, int) 87
-int swapoff(const char *) 115
-*/
+/* SYSCALLS */
int stime(time_t *);
int swapon(const char *, int);
int swapoff(const char *);
int getsid(pid_t);
+#ifndef SYS_ioprio_set
+#define SYS_ioprio_set __NR_ioprio_set
+#define SYS_ioprio_get __NR_ioprio_get
+#endif
+
/* local definition in libbb/xfuncs_printf.c */
int fdprintf(int fd, const char *format, ...);