aboutsummaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/device/generated/config.h2
-rw-r--r--android/device/generated/flags.h34
-rw-r--r--android/device/generated/globals.h12
-rw-r--r--android/device/generated/help.h2
-rw-r--r--android/device/generated/newtoys.h1
-rw-r--r--android/linux/generated/config.h2
-rw-r--r--android/linux/generated/flags.h34
-rw-r--r--android/linux/generated/globals.h12
-rw-r--r--android/linux/generated/help.h2
-rw-r--r--android/linux/generated/newtoys.h1
-rw-r--r--android/mac/generated/config.h2
-rw-r--r--android/mac/generated/flags.h34
-rw-r--r--android/mac/generated/globals.h12
-rw-r--r--android/mac/generated/help.h2
-rw-r--r--android/mac/generated/newtoys.h1
15 files changed, 147 insertions, 6 deletions
diff --git a/android/device/generated/config.h b/android/device/generated/config.h
index 4c0fc103..227673aa 100644
--- a/android/device/generated/config.h
+++ b/android/device/generated/config.h
@@ -494,6 +494,8 @@
#define USE_RM(...) __VA_ARGS__
#define CFG_ROUTE 0
#define USE_ROUTE(...)
+#define CFG_RTCWAKE 1
+#define USE_RTCWAKE(...) __VA_ARGS__
#define CFG_RUNCON 1
#define USE_RUNCON(...) __VA_ARGS__
#define CFG_SED 1
diff --git a/android/device/generated/flags.h b/android/device/generated/flags.h
index 4bbeadab..3b63c79d 100644
--- a/android/device/generated/flags.h
+++ b/android/device/generated/flags.h
@@ -2469,6 +2469,24 @@
#undef FLAG_n
#endif
+// rtcwake (list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu] (list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]
+#undef OPTSTR_rtcwake
+#define OPTSTR_rtcwake "(list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]"
+#ifdef CLEANUP_rtcwake
+#undef CLEANUP_rtcwake
+#undef FOR_rtcwake
+#undef FLAG_v
+#undef FLAG_u
+#undef FLAG_t
+#undef FLAG_s
+#undef FLAG_m
+#undef FLAG_l
+#undef FLAG_d
+#undef FLAG_a
+#undef FLAG_auto
+#undef FLAG_list_modes
+#endif
+
// runcon <2 <2
#undef OPTSTR_runcon
#define OPTSTR_runcon "<2"
@@ -5528,6 +5546,22 @@
#define FLAG_n (FORCED_FLAG<<2)
#endif
+#ifdef FOR_rtcwake
+#ifndef TT
+#define TT this.rtcwake
+#endif
+#define FLAG_v (1<<0)
+#define FLAG_u (1<<1)
+#define FLAG_t (1<<2)
+#define FLAG_s (1<<3)
+#define FLAG_m (1<<4)
+#define FLAG_l (1<<5)
+#define FLAG_d (1<<6)
+#define FLAG_a (1<<7)
+#define FLAG_auto (1<<8)
+#define FLAG_list_modes (1<<9)
+#endif
+
#ifdef FOR_runcon
#ifndef TT
#define TT this.runcon
diff --git a/android/device/generated/globals.h b/android/device/generated/globals.h
index d51c5855..00d6ed7c 100644
--- a/android/device/generated/globals.h
+++ b/android/device/generated/globals.h
@@ -277,8 +277,6 @@ struct hexedit_data {
struct hwclock_data {
char *f;
-
- int utc;
};
// toys/other/ionice.c
@@ -806,6 +804,15 @@ struct route_data {
char *family;
};
+// toys/pending/rtcwake.c
+
+struct rtcwake_data {
+ long long t, s;
+ char *m, *d;
+
+ struct rtc_wkalrm alarm;
+};
+
// toys/pending/sh.c
struct sh_data {
@@ -1599,6 +1606,7 @@ extern union global_union {
struct openvt_data openvt;
struct readelf_data readelf;
struct route_data route;
+ struct rtcwake_data rtcwake;
struct sh_data sh;
struct stty_data stty;
struct sulogin_data sulogin;
diff --git a/android/device/generated/help.h b/android/device/generated/help.h
index b196253a..461559b3 100644
--- a/android/device/generated/help.h
+++ b/android/device/generated/help.h
@@ -358,6 +358,8 @@
#define HELP_sh "usage: sh [-c command] [script]\n\nCommand shell. Runs a shell script, or reads input interactively\nand responds to it.\n\n-c command line to execute\n-i interactive mode (default when STDIN is a tty)"
+#define HELP_rtcwake "usage: rtcwake [-aluv] [-d FILE] [-m MODE] [-s SECS] [-t UNIX]\n\nEnter the given sleep state until the given time.\n\n-a RTC uses time specified in /etc/adjtime\n-d FILE Device to use (default /dev/rtc)\n-l RTC uses local time\n-m Mode (--list-modes to see those supported by your kernel):\n disable Cancel current alarm\n freeze Freeze processes, idle processors\n disk S4: suspend to disk\n mem S3: suspend to RAM\n no Don't suspend, just set wakeup time\n off S5: power off\n on Don't suspend, poll RTC for alarm\n show Don't suspend, just show current alarm\n standby S1: default\n-s SECS Wake SECS seconds from now\n-t UNIX Wake UNIX seconds from epoch\n-u RTC uses UTC\n-v Verbose"
+
#define HELP_route "usage: route [-ne] [-A [46]] [add|del TARGET [OPTIONS]]\n\nDisplay, add or delete network routes in the \"Forwarding Information Base\".\n\n-n Show numerical addresses (no DNS lookups)\n-e display netstat fields\n\nRouting means sending packets out a network interface to an address.\nThe kernel can tell where to send packets one hop away by examining each\ninterface's address and netmask, so the most common use of this command\nis to identify a \"gateway\" that forwards other traffic.\n\nAssigning an address to an interface automatically creates an appropriate\nnetwork route (\"ifconfig eth0 10.0.2.15/8\" does \"route add 10.0.0.0/8 eth0\"\nfor you), although some devices (such as loopback) won't show it in the\ntable. For machines more than one hop away, you need to specify a gateway\n(ala \"route add default gw 10.0.2.2\").\n\nThe address \"default\" is a wildcard address (0.0.0.0/0) matching all\npackets without a more specific route.\n\nAvailable OPTIONS include:\nreject - blocking route (force match failure)\ndev NAME - force packets out this interface (ala \"eth0\")\nnetmask - old way of saying things like ADDR/24\ngw ADDR - forward packets to gateway ADDR"
#define HELP_readelf "usage: readelf [-adehlnSs] [-p SECTION] [-x SECTION] [file...]\n\nDisplays information about ELF files.\n\n-a Equivalent to -dhlnSs\n-d Show dynamic section\n-e Headers (equivalent to -hlS)\n-h Show ELF header\n-l Show program headers\n-n Show notes\n-p S Dump strings found in named/numbered section\n-S Show section headers\n-s Show symbol tables (.dynsym and .symtab)\n-x S Hex dump of named/numbered section\n\n--dyn-syms Show just .dynsym symbol table"
diff --git a/android/device/generated/newtoys.h b/android/device/generated/newtoys.h
index df5bd6f4..276ca3ac 100644
--- a/android/device/generated/newtoys.h
+++ b/android/device/generated/newtoys.h
@@ -219,6 +219,7 @@ USE_RM(NEWTOY(rm, "fiRrv[-fi]", TOYFLAG_BIN))
USE_RMDIR(NEWTOY(rmdir, "<1(ignore-fail-on-non-empty)p", TOYFLAG_BIN))
USE_RMMOD(NEWTOY(rmmod, "<1wf", TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
USE_ROUTE(NEWTOY(route, "?neA:", TOYFLAG_BIN))
+USE_RTCWAKE(NEWTOY(rtcwake, "(list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]", TOYFLAG_USR|TOYFLAG_BIN))
USE_RUNCON(NEWTOY(runcon, "<2", TOYFLAG_USR|TOYFLAG_SBIN))
USE_SED(NEWTOY(sed, "(help)(version)e*f*i:;nErz(null-data)[+Er]", TOYFLAG_BIN|TOYFLAG_LOCALE|TOYFLAG_NOHELP))
USE_SENDEVENT(NEWTOY(sendevent, "<4>4", TOYFLAG_USR|TOYFLAG_SBIN))
diff --git a/android/linux/generated/config.h b/android/linux/generated/config.h
index d69f7c42..790d1437 100644
--- a/android/linux/generated/config.h
+++ b/android/linux/generated/config.h
@@ -482,6 +482,8 @@
#define USE_RM(...) __VA_ARGS__
#define CFG_ROUTE 0
#define USE_ROUTE(...)
+#define CFG_RTCWAKE 0
+#define USE_RTCWAKE(...)
#define CFG_RUNCON 0
#define USE_RUNCON(...)
#define CFG_SED 1
diff --git a/android/linux/generated/flags.h b/android/linux/generated/flags.h
index e27ff338..e3486f87 100644
--- a/android/linux/generated/flags.h
+++ b/android/linux/generated/flags.h
@@ -2469,6 +2469,24 @@
#undef FLAG_n
#endif
+// rtcwake (list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]
+#undef OPTSTR_rtcwake
+#define OPTSTR_rtcwake "(list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]"
+#ifdef CLEANUP_rtcwake
+#undef CLEANUP_rtcwake
+#undef FOR_rtcwake
+#undef FLAG_v
+#undef FLAG_u
+#undef FLAG_t
+#undef FLAG_s
+#undef FLAG_m
+#undef FLAG_l
+#undef FLAG_d
+#undef FLAG_a
+#undef FLAG_auto
+#undef FLAG_list_modes
+#endif
+
// runcon <2
#undef OPTSTR_runcon
#define OPTSTR_runcon "<2"
@@ -5528,6 +5546,22 @@
#define FLAG_n (FORCED_FLAG<<2)
#endif
+#ifdef FOR_rtcwake
+#ifndef TT
+#define TT this.rtcwake
+#endif
+#define FLAG_v (FORCED_FLAG<<0)
+#define FLAG_u (FORCED_FLAG<<1)
+#define FLAG_t (FORCED_FLAG<<2)
+#define FLAG_s (FORCED_FLAG<<3)
+#define FLAG_m (FORCED_FLAG<<4)
+#define FLAG_l (FORCED_FLAG<<5)
+#define FLAG_d (FORCED_FLAG<<6)
+#define FLAG_a (FORCED_FLAG<<7)
+#define FLAG_auto (FORCED_FLAG<<8)
+#define FLAG_list_modes (FORCED_FLAG<<9)
+#endif
+
#ifdef FOR_runcon
#ifndef TT
#define TT this.runcon
diff --git a/android/linux/generated/globals.h b/android/linux/generated/globals.h
index d51c5855..00d6ed7c 100644
--- a/android/linux/generated/globals.h
+++ b/android/linux/generated/globals.h
@@ -277,8 +277,6 @@ struct hexedit_data {
struct hwclock_data {
char *f;
-
- int utc;
};
// toys/other/ionice.c
@@ -806,6 +804,15 @@ struct route_data {
char *family;
};
+// toys/pending/rtcwake.c
+
+struct rtcwake_data {
+ long long t, s;
+ char *m, *d;
+
+ struct rtc_wkalrm alarm;
+};
+
// toys/pending/sh.c
struct sh_data {
@@ -1599,6 +1606,7 @@ extern union global_union {
struct openvt_data openvt;
struct readelf_data readelf;
struct route_data route;
+ struct rtcwake_data rtcwake;
struct sh_data sh;
struct stty_data stty;
struct sulogin_data sulogin;
diff --git a/android/linux/generated/help.h b/android/linux/generated/help.h
index 4f091427..d5f21e6f 100644
--- a/android/linux/generated/help.h
+++ b/android/linux/generated/help.h
@@ -360,6 +360,8 @@
#define HELP_sh "usage: sh [-c command] [script]\n\nCommand shell. Runs a shell script, or reads input interactively\nand responds to it.\n\n-c command line to execute\n-i interactive mode (default when STDIN is a tty)"
+#define HELP_rtcwake "usage: rtcwake [-aluv] [-d FILE] [-m MODE] [-s SECS] [-t UNIX]\n\nEnter the given sleep state until the given time.\n\n-a RTC uses time specified in /etc/adjtime\n-d FILE Device to use (default /dev/rtc)\n-l RTC uses local time\n-m Mode (--list-modes to see those supported by your kernel):\n disable Cancel current alarm\n freeze Freeze processes, idle processors\n disk S4: suspend to disk\n mem S3: suspend to RAM\n no Don't suspend, just set wakeup time\n off S5: power off\n on Don't suspend, poll RTC for alarm\n show Don't suspend, just show current alarm\n standby S1: default\n-s SECS Wake SECS seconds from now\n-t UNIX Wake UNIX seconds from epoch\n-u RTC uses UTC\n-v Verbose"
+
#define HELP_route "usage: route [-ne] [-A [46]] [add|del TARGET [OPTIONS]]\n\nDisplay, add or delete network routes in the \"Forwarding Information Base\".\n\n-n Show numerical addresses (no DNS lookups)\n-e display netstat fields\n\nRouting means sending packets out a network interface to an address.\nThe kernel can tell where to send packets one hop away by examining each\ninterface's address and netmask, so the most common use of this command\nis to identify a \"gateway\" that forwards other traffic.\n\nAssigning an address to an interface automatically creates an appropriate\nnetwork route (\"ifconfig eth0 10.0.2.15/8\" does \"route add 10.0.0.0/8 eth0\"\nfor you), although some devices (such as loopback) won't show it in the\ntable. For machines more than one hop away, you need to specify a gateway\n(ala \"route add default gw 10.0.2.2\").\n\nThe address \"default\" is a wildcard address (0.0.0.0/0) matching all\npackets without a more specific route.\n\nAvailable OPTIONS include:\nreject - blocking route (force match failure)\ndev NAME - force packets out this interface (ala \"eth0\")\nnetmask - old way of saying things like ADDR/24\ngw ADDR - forward packets to gateway ADDR"
#define HELP_readelf "usage: readelf [-adehlnSs] [-p SECTION] [-x SECTION] [file...]\n\nDisplays information about ELF files.\n\n-a Equivalent to -dhlnSs\n-d Show dynamic section\n-e Headers (equivalent to -hlS)\n-h Show ELF header\n-l Show program headers\n-n Show notes\n-p S Dump strings found in named/numbered section\n-S Show section headers\n-s Show symbol tables (.dynsym and .symtab)\n-x S Hex dump of named/numbered section\n\n--dyn-syms Show just .dynsym symbol table"
diff --git a/android/linux/generated/newtoys.h b/android/linux/generated/newtoys.h
index df5bd6f4..276ca3ac 100644
--- a/android/linux/generated/newtoys.h
+++ b/android/linux/generated/newtoys.h
@@ -219,6 +219,7 @@ USE_RM(NEWTOY(rm, "fiRrv[-fi]", TOYFLAG_BIN))
USE_RMDIR(NEWTOY(rmdir, "<1(ignore-fail-on-non-empty)p", TOYFLAG_BIN))
USE_RMMOD(NEWTOY(rmmod, "<1wf", TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
USE_ROUTE(NEWTOY(route, "?neA:", TOYFLAG_BIN))
+USE_RTCWAKE(NEWTOY(rtcwake, "(list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]", TOYFLAG_USR|TOYFLAG_BIN))
USE_RUNCON(NEWTOY(runcon, "<2", TOYFLAG_USR|TOYFLAG_SBIN))
USE_SED(NEWTOY(sed, "(help)(version)e*f*i:;nErz(null-data)[+Er]", TOYFLAG_BIN|TOYFLAG_LOCALE|TOYFLAG_NOHELP))
USE_SENDEVENT(NEWTOY(sendevent, "<4>4", TOYFLAG_USR|TOYFLAG_SBIN))
diff --git a/android/mac/generated/config.h b/android/mac/generated/config.h
index f9363323..11b69996 100644
--- a/android/mac/generated/config.h
+++ b/android/mac/generated/config.h
@@ -482,6 +482,8 @@
#define USE_RM(...) __VA_ARGS__
#define CFG_ROUTE 0
#define USE_ROUTE(...)
+#define CFG_RTCWAKE 0
+#define USE_RTCWAKE(...)
#define CFG_RUNCON 0
#define USE_RUNCON(...)
#define CFG_SED 1
diff --git a/android/mac/generated/flags.h b/android/mac/generated/flags.h
index eee3209f..f30fb95c 100644
--- a/android/mac/generated/flags.h
+++ b/android/mac/generated/flags.h
@@ -2469,6 +2469,24 @@
#undef FLAG_n
#endif
+// rtcwake (list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]
+#undef OPTSTR_rtcwake
+#define OPTSTR_rtcwake "(list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]"
+#ifdef CLEANUP_rtcwake
+#undef CLEANUP_rtcwake
+#undef FOR_rtcwake
+#undef FLAG_v
+#undef FLAG_u
+#undef FLAG_t
+#undef FLAG_s
+#undef FLAG_m
+#undef FLAG_l
+#undef FLAG_d
+#undef FLAG_a
+#undef FLAG_auto
+#undef FLAG_list_modes
+#endif
+
// runcon <2
#undef OPTSTR_runcon
#define OPTSTR_runcon "<2"
@@ -5528,6 +5546,22 @@
#define FLAG_n (FORCED_FLAG<<2)
#endif
+#ifdef FOR_rtcwake
+#ifndef TT
+#define TT this.rtcwake
+#endif
+#define FLAG_v (FORCED_FLAG<<0)
+#define FLAG_u (FORCED_FLAG<<1)
+#define FLAG_t (FORCED_FLAG<<2)
+#define FLAG_s (FORCED_FLAG<<3)
+#define FLAG_m (FORCED_FLAG<<4)
+#define FLAG_l (FORCED_FLAG<<5)
+#define FLAG_d (FORCED_FLAG<<6)
+#define FLAG_a (FORCED_FLAG<<7)
+#define FLAG_auto (FORCED_FLAG<<8)
+#define FLAG_list_modes (FORCED_FLAG<<9)
+#endif
+
#ifdef FOR_runcon
#ifndef TT
#define TT this.runcon
diff --git a/android/mac/generated/globals.h b/android/mac/generated/globals.h
index d51c5855..00d6ed7c 100644
--- a/android/mac/generated/globals.h
+++ b/android/mac/generated/globals.h
@@ -277,8 +277,6 @@ struct hexedit_data {
struct hwclock_data {
char *f;
-
- int utc;
};
// toys/other/ionice.c
@@ -806,6 +804,15 @@ struct route_data {
char *family;
};
+// toys/pending/rtcwake.c
+
+struct rtcwake_data {
+ long long t, s;
+ char *m, *d;
+
+ struct rtc_wkalrm alarm;
+};
+
// toys/pending/sh.c
struct sh_data {
@@ -1599,6 +1606,7 @@ extern union global_union {
struct openvt_data openvt;
struct readelf_data readelf;
struct route_data route;
+ struct rtcwake_data rtcwake;
struct sh_data sh;
struct stty_data stty;
struct sulogin_data sulogin;
diff --git a/android/mac/generated/help.h b/android/mac/generated/help.h
index 4f091427..d5f21e6f 100644
--- a/android/mac/generated/help.h
+++ b/android/mac/generated/help.h
@@ -360,6 +360,8 @@
#define HELP_sh "usage: sh [-c command] [script]\n\nCommand shell. Runs a shell script, or reads input interactively\nand responds to it.\n\n-c command line to execute\n-i interactive mode (default when STDIN is a tty)"
+#define HELP_rtcwake "usage: rtcwake [-aluv] [-d FILE] [-m MODE] [-s SECS] [-t UNIX]\n\nEnter the given sleep state until the given time.\n\n-a RTC uses time specified in /etc/adjtime\n-d FILE Device to use (default /dev/rtc)\n-l RTC uses local time\n-m Mode (--list-modes to see those supported by your kernel):\n disable Cancel current alarm\n freeze Freeze processes, idle processors\n disk S4: suspend to disk\n mem S3: suspend to RAM\n no Don't suspend, just set wakeup time\n off S5: power off\n on Don't suspend, poll RTC for alarm\n show Don't suspend, just show current alarm\n standby S1: default\n-s SECS Wake SECS seconds from now\n-t UNIX Wake UNIX seconds from epoch\n-u RTC uses UTC\n-v Verbose"
+
#define HELP_route "usage: route [-ne] [-A [46]] [add|del TARGET [OPTIONS]]\n\nDisplay, add or delete network routes in the \"Forwarding Information Base\".\n\n-n Show numerical addresses (no DNS lookups)\n-e display netstat fields\n\nRouting means sending packets out a network interface to an address.\nThe kernel can tell where to send packets one hop away by examining each\ninterface's address and netmask, so the most common use of this command\nis to identify a \"gateway\" that forwards other traffic.\n\nAssigning an address to an interface automatically creates an appropriate\nnetwork route (\"ifconfig eth0 10.0.2.15/8\" does \"route add 10.0.0.0/8 eth0\"\nfor you), although some devices (such as loopback) won't show it in the\ntable. For machines more than one hop away, you need to specify a gateway\n(ala \"route add default gw 10.0.2.2\").\n\nThe address \"default\" is a wildcard address (0.0.0.0/0) matching all\npackets without a more specific route.\n\nAvailable OPTIONS include:\nreject - blocking route (force match failure)\ndev NAME - force packets out this interface (ala \"eth0\")\nnetmask - old way of saying things like ADDR/24\ngw ADDR - forward packets to gateway ADDR"
#define HELP_readelf "usage: readelf [-adehlnSs] [-p SECTION] [-x SECTION] [file...]\n\nDisplays information about ELF files.\n\n-a Equivalent to -dhlnSs\n-d Show dynamic section\n-e Headers (equivalent to -hlS)\n-h Show ELF header\n-l Show program headers\n-n Show notes\n-p S Dump strings found in named/numbered section\n-S Show section headers\n-s Show symbol tables (.dynsym and .symtab)\n-x S Hex dump of named/numbered section\n\n--dyn-syms Show just .dynsym symbol table"
diff --git a/android/mac/generated/newtoys.h b/android/mac/generated/newtoys.h
index df5bd6f4..276ca3ac 100644
--- a/android/mac/generated/newtoys.h
+++ b/android/mac/generated/newtoys.h
@@ -219,6 +219,7 @@ USE_RM(NEWTOY(rm, "fiRrv[-fi]", TOYFLAG_BIN))
USE_RMDIR(NEWTOY(rmdir, "<1(ignore-fail-on-non-empty)p", TOYFLAG_BIN))
USE_RMMOD(NEWTOY(rmmod, "<1wf", TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
USE_ROUTE(NEWTOY(route, "?neA:", TOYFLAG_BIN))
+USE_RTCWAKE(NEWTOY(rtcwake, "(list-modes);(auto)a(device)d:(local)l(mode)m:(seconds)s#(time)t#(utc)u(verbose)v[!alu]", TOYFLAG_USR|TOYFLAG_BIN))
USE_RUNCON(NEWTOY(runcon, "<2", TOYFLAG_USR|TOYFLAG_SBIN))
USE_SED(NEWTOY(sed, "(help)(version)e*f*i:;nErz(null-data)[+Er]", TOYFLAG_BIN|TOYFLAG_LOCALE|TOYFLAG_NOHELP))
USE_SENDEVENT(NEWTOY(sendevent, "<4>4", TOYFLAG_USR|TOYFLAG_SBIN))