diff options
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/blockdev.c | 2 | ||||
-rw-r--r-- | toys/other/chrt.c | 2 | ||||
-rw-r--r-- | toys/other/hwclock.c | 12 | ||||
-rw-r--r-- | toys/other/modinfo.c | 2 | ||||
-rw-r--r-- | toys/other/pmap.c | 2 | ||||
-rw-r--r-- | toys/other/printenv.c | 2 | ||||
-rw-r--r-- | toys/other/taskset.c | 2 | ||||
-rw-r--r-- | toys/other/timeout.c | 2 | ||||
-rw-r--r-- | toys/other/truncate.c | 2 |
9 files changed, 14 insertions, 14 deletions
diff --git a/toys/other/blockdev.c b/toys/other/blockdev.c index a9bc3e78..9f169453 100644 --- a/toys/other/blockdev.c +++ b/toys/other/blockdev.c @@ -4,7 +4,7 @@ * * No Standard. -USE_BLOCKDEV(NEWTOY(blockdev, "<1>1(setro)(setrw)(getro)(getss)(getbsz)(setbsz)#<0(getsz)(getsize)(getsize64)(getra)(setra)#<0(flushbufs)(rereadpt)",TOYFLAG_USR|TOYFLAG_BIN)) +USE_BLOCKDEV(NEWTOY(blockdev, "<1>1(setro)(setrw)(getro)(getss)(getbsz)(setbsz)#<0(getsz)(getsize)(getsize64)(getra)(setra)#<0(flushbufs)(rereadpt)",TOYFLAG_SBIN)) config BLOCKDEV bool "blockdev" diff --git a/toys/other/chrt.c b/toys/other/chrt.c index 618de84d..6732a711 100644 --- a/toys/other/chrt.c +++ b/toys/other/chrt.c @@ -4,7 +4,7 @@ * * Note: -ibrfo flags sorted to match SCHED positions for highest_bit() -USE_CHRT(NEWTOY(chrt, "^mp#<0iRbrfo[!ibrfo]", TOYFLAG_USR|TOYFLAG_SBIN)) +USE_CHRT(NEWTOY(chrt, "^mp#<0iRbrfo[!ibrfo]", TOYFLAG_USR|TOYFLAG_BIN)) config CHRT bool "chrt" diff --git a/toys/other/hwclock.c b/toys/other/hwclock.c index 81a29b77..94877f9e 100644 --- a/toys/other/hwclock.c +++ b/toys/other/hwclock.c @@ -4,7 +4,7 @@ * * No standard, but see Documentation/rtc.txt in the linux kernel source.. * -USE_HWCLOCK(NEWTOY(hwclock, ">0(fast)f(rtc):u(utc)l(localtime)t(systz)s(hctosys)r(show)w(systohc)[-ul][!rtsw]", TOYFLAG_USR|TOYFLAG_BIN)) +USE_HWCLOCK(NEWTOY(hwclock, ">0(fast)f(rtc):u(utc)l(localtime)t(systz)s(hctosys)r(show)w(systohc)[-ul][!rtsw]", TOYFLAG_SBIN)) config HWCLOCK bool "hwclock" @@ -26,7 +26,7 @@ config HWCLOCK #include <linux/rtc.h> GLOBALS( - char *fname; + char *f; int utc; ) @@ -45,7 +45,7 @@ static int rtc_find(struct dirtree* node) fclose(fp); if (items == 1 && hctosys == 1) { sprintf(toybuf, "/dev/%s", node->name); - TT.fname = toybuf; + TT.f = toybuf; return DIRTREE_ABORT; } @@ -78,11 +78,11 @@ void hwclock_main() int w = toys.optflags & FLAG_w, flag = O_WRONLY*w; // Open /dev/rtc (if your system has no /dev/rtc symlink, search for it). - if (!TT.fname && (fd = open("/dev/rtc", flag)) == -1) { + if (!TT.f && (fd = open("/dev/rtc", flag)) == -1) { dirtree_read("/sys/class/rtc", rtc_find); - if (!TT.fname) TT.fname = "/dev/misc/rtc"; + if (!TT.f) TT.f = "/dev/misc/rtc"; } - if (fd == -1) fd = xopen(TT.fname, flag); + if (fd == -1) fd = xopen(TT.f, flag); // Get current time in seconds from rtc device. todo: get subsecond time if (!w) { diff --git a/toys/other/modinfo.c b/toys/other/modinfo.c index d631b3b3..126d1d63 100644 --- a/toys/other/modinfo.c +++ b/toys/other/modinfo.c @@ -4,7 +4,7 @@ * * TODO: cleanup -USE_MODINFO(NEWTOY(modinfo, "<1b:k:F:0", TOYFLAG_BIN)) +USE_MODINFO(NEWTOY(modinfo, "<1b:k:F:0", TOYFLAG_SBIN)) config MODINFO bool "modinfo" diff --git a/toys/other/pmap.c b/toys/other/pmap.c index 9b29bacd..1641c95c 100644 --- a/toys/other/pmap.c +++ b/toys/other/pmap.c @@ -5,7 +5,7 @@ * * No Standard. -USE_PMAP(NEWTOY(pmap, "<1xq", TOYFLAG_BIN)) +USE_PMAP(NEWTOY(pmap, "<1xq", TOYFLAG_USR|TOYFLAG_BIN)) config PMAP bool "pmap" diff --git a/toys/other/printenv.c b/toys/other/printenv.c index e8bcf29b..65f62edf 100644 --- a/toys/other/printenv.c +++ b/toys/other/printenv.c @@ -2,7 +2,7 @@ * * Copyright 2012 Georgi Chorbadzhiyski <georgi@unixsol.org> -USE_PRINTENV(NEWTOY(printenv, "0(null)", TOYFLAG_USR|TOYFLAG_BIN)) +USE_PRINTENV(NEWTOY(printenv, "0(null)", TOYFLAG_BIN)) config PRINTENV bool "printenv" diff --git a/toys/other/taskset.c b/toys/other/taskset.c index 8ffdab78..89fd5283 100644 --- a/toys/other/taskset.c +++ b/toys/other/taskset.c @@ -2,7 +2,7 @@ * * Copyright 2012 Elie De Brauwer <eliedebrauwer@gmail.com> -USE_TASKSET(NEWTOY(taskset, "<1^pa", TOYFLAG_BIN|TOYFLAG_STAYROOT)) +USE_TASKSET(NEWTOY(taskset, "<1^pa", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_STAYROOT)) USE_NPROC(NEWTOY(nproc, "(all)", TOYFLAG_USR|TOYFLAG_BIN)) config NPROC diff --git a/toys/other/timeout.c b/toys/other/timeout.c index 51e3a7e3..4c5bc48d 100644 --- a/toys/other/timeout.c +++ b/toys/other/timeout.c @@ -4,7 +4,7 @@ * * No standard -USE_TIMEOUT(NEWTOY(timeout, "<2^vk:s: ", TOYFLAG_BIN)) +USE_TIMEOUT(NEWTOY(timeout, "<2^vk:s: ", TOYFLAG_USR|TOYFLAG_BIN)) config TIMEOUT bool "timeout" diff --git a/toys/other/truncate.c b/toys/other/truncate.c index 142d3c7a..40eb1e59 100644 --- a/toys/other/truncate.c +++ b/toys/other/truncate.c @@ -2,7 +2,7 @@ * * Copyright 2011 Rob Landley <rob@landley.net> -USE_TRUNCATE(NEWTOY(truncate, "<1s:|c", TOYFLAG_BIN)) +USE_TRUNCATE(NEWTOY(truncate, "<1s:|c", TOYFLAG_USR|TOYFLAG_BIN)) config TRUNCATE bool "truncate" |