aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-04-11 03:29:49 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-04-11 03:29:49 +0200
commit5bc8c005a8e15c43285bc595a8d404de67a482ac (patch)
tree98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /miscutils
parent73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff)
downloadbusybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz
busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2
busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/adjtimex.c12
-rw-r--r--miscutils/bbconfig.c6
-rw-r--r--miscutils/beep.c11
-rw-r--r--miscutils/chat.c9
-rw-r--r--miscutils/chrt.c17
-rw-r--r--miscutils/crond.c13
-rw-r--r--miscutils/crontab.c10
-rw-r--r--miscutils/devfsd.c16
-rw-r--r--miscutils/devmem.c8
-rw-r--r--miscutils/eject.c11
-rw-r--r--miscutils/fbsplash.c13
-rw-r--r--miscutils/flash_eraseall.c8
-rw-r--r--miscutils/flash_lock_unlock.c12
-rw-r--r--miscutils/flashcp.c7
-rw-r--r--miscutils/hdparm.c52
-rw-r--r--miscutils/inotifyd.c27
-rw-r--r--miscutils/ionice.c8
-rw-r--r--miscutils/last.c11
-rw-r--r--miscutils/less.c12
-rw-r--r--miscutils/makedevs.c60
-rw-r--r--miscutils/man.c8
-rw-r--r--miscutils/microcom.c12
-rw-r--r--miscutils/mountpoint.c16
-rw-r--r--miscutils/mt.c12
-rw-r--r--miscutils/raidautorun.c8
-rw-r--r--miscutils/readahead.c5
-rw-r--r--miscutils/rfkill.c13
-rw-r--r--miscutils/runlevel.c13
-rw-r--r--miscutils/rx.c8
-rw-r--r--miscutils/setsid.c7
-rw-r--r--miscutils/strings.c10
-rw-r--r--miscutils/taskset.c18
-rw-r--r--miscutils/time.c7
-rw-r--r--miscutils/timeout.c6
-rw-r--r--miscutils/ttysize.c6
-rw-r--r--miscutils/volname.c6
-rw-r--r--miscutils/wall.c9
-rw-r--r--miscutils/watchdog.c11
38 files changed, 498 insertions, 0 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index 8e8ff8c0a..e1edbbebc 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -11,6 +11,18 @@
11 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 11 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
12 */ 12 */
13 13
14//usage:#define adjtimex_trivial_usage
15//usage: "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]"
16//usage:#define adjtimex_full_usage "\n\n"
17//usage: "Read and optionally set system timebase parameters. See adjtimex(2)\n"
18//usage: "\nOptions:"
19//usage: "\n -q Quiet"
20//usage: "\n -o OFF Time offset, microseconds"
21//usage: "\n -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)"
22//usage: "\n (positive values make clock run faster)"
23//usage: "\n -t TICK Microseconds per tick, usually 10000"
24//usage: "\n -p TCONST"
25
14#include "libbb.h" 26#include "libbb.h"
15#include <sys/timex.h> 27#include <sys/timex.h>
16 28
diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c
index 7c30669a3..e8be81352 100644
--- a/miscutils/bbconfig.c
+++ b/miscutils/bbconfig.c
@@ -1,6 +1,12 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* This file was released into the public domain by Paul Fox. 2/* This file was released into the public domain by Paul Fox.
3 */ 3 */
4
5//usage:#define bbconfig_trivial_usage
6//usage: ""
7//usage:#define bbconfig_full_usage "\n\n"
8//usage: "Print the config file used by busybox build"
9
4#include "libbb.h" 10#include "libbb.h"
5#include "bbconfigopts.h" 11#include "bbconfigopts.h"
6#if ENABLE_FEATURE_COMPRESS_BBCONFIG 12#if ENABLE_FEATURE_COMPRESS_BBCONFIG
diff --git a/miscutils/beep.c b/miscutils/beep.c
index 013a72543..c7699ffe1 100644
--- a/miscutils/beep.c
+++ b/miscutils/beep.c
@@ -7,6 +7,17 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 * 8 *
9 */ 9 */
10
11//usage:#define beep_trivial_usage
12//usage: "-f FREQ -l LEN -d DELAY -r COUNT -n"
13//usage:#define beep_full_usage "\n\n"
14//usage: "Options:"
15//usage: "\n -f Frequency in Hz"
16//usage: "\n -l Length in ms"
17//usage: "\n -d Delay in ms"
18//usage: "\n -r Repetitions"
19//usage: "\n -n Start new tone"
20
10#include "libbb.h" 21#include "libbb.h"
11 22
12#include <linux/kd.h> 23#include <linux/kd.h>
diff --git a/miscutils/chat.c b/miscutils/chat.c
index d8370a963..ce994f870 100644
--- a/miscutils/chat.c
+++ b/miscutils/chat.c
@@ -7,6 +7,15 @@
7 * 7 *
8 * Licensed under GPLv2, see file LICENSE in this source tree. 8 * Licensed under GPLv2, see file LICENSE in this source tree.
9 */ 9 */
10
11//usage:#define chat_trivial_usage
12//usage: "EXPECT [SEND [EXPECT [SEND...]]]"
13//usage:#define chat_full_usage "\n\n"
14//usage: "Useful for interacting with a modem connected to stdin/stdout.\n"
15//usage: "A script consists of one or more \"expect-send\" pairs of strings,\n"
16//usage: "each pair is a pair of arguments. Example:\n"
17//usage: "chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'"
18
10#include "libbb.h" 19#include "libbb.h"
11 20
12// default timeout: 45 sec 21// default timeout: 45 sec
diff --git a/miscutils/chrt.c b/miscutils/chrt.c
index 1c6737a3c..7e40b9f13 100644
--- a/miscutils/chrt.c
+++ b/miscutils/chrt.c
@@ -5,6 +5,23 @@
5 * 5 *
6 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
7 */ 7 */
8
9//usage:#define chrt_trivial_usage
10//usage: "[-prfom] [PRIO] [PID | PROG ARGS]"
11//usage:#define chrt_full_usage "\n\n"
12//usage: "Change scheduling priority and class for a process\n"
13//usage: "\nOptions:"
14//usage: "\n -p Operate on PID"
15//usage: "\n -r Set SCHED_RR class"
16//usage: "\n -f Set SCHED_FIFO class"
17//usage: "\n -o Set SCHED_OTHER class"
18//usage: "\n -m Show min/max priorities"
19//usage:
20//usage:#define chrt_example_usage
21//usage: "$ chrt -r 4 sleep 900; x=$!\n"
22//usage: "$ chrt -f -p 3 $x\n"
23//usage: "You need CAP_SYS_NICE privileges to set scheduling attributes of a process"
24
8#include <sched.h> 25#include <sched.h>
9#include "libbb.h" 26#include "libbb.h"
10#ifndef _POSIX_PRIORITY_SCHEDULING 27#ifndef _POSIX_PRIORITY_SCHEDULING
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 5bf053609..014016fb6 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -11,6 +11,19 @@
11 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 11 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
12 */ 12 */
13 13
14//usage:#define crond_trivial_usage
15//usage: "-fbS -l N " IF_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
16//usage:#define crond_full_usage "\n\n"
17//usage: " -f Foreground"
18//usage: "\n -b Background (default)"
19//usage: "\n -S Log to syslog (default)"
20//usage: "\n -l Set log level. 0 is the most verbose, default 8"
21//usage: IF_FEATURE_CROND_D(
22//usage: "\n -d Set log level, log to stderr"
23//usage: )
24//usage: "\n -L Log to file"
25//usage: "\n -c Working dir"
26
14#include "libbb.h" 27#include "libbb.h"
15#include <syslog.h> 28#include <syslog.h>
16 29
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 16d7fdf69..4731d8da6 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -10,6 +10,16 @@
10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 */ 11 */
12 12
13//usage:#define crontab_trivial_usage
14//usage: "[-c DIR] [-u USER] [-ler]|[FILE]"
15//usage:#define crontab_full_usage "\n\n"
16//usage: " -c Crontab directory"
17//usage: "\n -u User"
18//usage: "\n -l List crontab"
19//usage: "\n -e Edit crontab"
20//usage: "\n -r Delete crontab"
21//usage: "\n FILE Replace crontab by FILE ('-': stdin)"
22
13#include "libbb.h" 23#include "libbb.h"
14 24
15#define CRONTABS CONFIG_FEATURE_CROND_DIR "/crontabs" 25#define CRONTABS CONFIG_FEATURE_CROND_DIR "/crontabs"
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index 35e431951..706276015 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -53,6 +53,22 @@
53 The postal address is: 53 The postal address is:
54 Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia. 54 Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia.
55*/ 55*/
56
57//usage:#define devfsd_trivial_usage
58//usage: "mntpnt [-v]" IF_DEVFSD_FG_NP("[-fg][-np]")
59//usage:#define devfsd_full_usage "\n\n"
60//usage: "Manage devfs permissions and old device name symlinks\n"
61//usage: "\nOptions:"
62//usage: "\n mntpnt The mount point where devfs is mounted"
63//usage: "\n -v Print the protocol version numbers for devfsd"
64//usage: "\n and the kernel-side protocol version and exit"
65//usage: IF_DEVFSD_FG_NP(
66//usage: "\n -fg Run in foreground"
67//usage: "\n -np Exit after parsing the configuration file"
68//usage: "\n and processing synthetic REGISTER events,"
69//usage: "\n don't poll for events"
70//usage: )
71
56#include "libbb.h" 72#include "libbb.h"
57#include "xregex.h" 73#include "xregex.h"
58#include <syslog.h> 74#include <syslog.h>
diff --git a/miscutils/devmem.c b/miscutils/devmem.c
index 7a9f533af..786a21bee 100644
--- a/miscutils/devmem.c
+++ b/miscutils/devmem.c
@@ -4,6 +4,14 @@
4 * Copyright (C) 2008, BusyBox Team. -solar 4/26/08 4 * Copyright (C) 2008, BusyBox Team. -solar 4/26/08
5 */ 5 */
6 6
7//usage:#define devmem_trivial_usage
8//usage: "ADDRESS [WIDTH [VALUE]]"
9//usage:#define devmem_full_usage "\n\n"
10//usage: "Read/write from physical address\n"
11//usage: "\n ADDRESS Address to act upon"
12//usage: "\n WIDTH Width (8/16/...)"
13//usage: "\n VALUE Data to be written"
14
7#include "libbb.h" 15#include "libbb.h"
8 16
9int devmem_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 17int devmem_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 63d20d3ad..184ccc5d7 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -13,6 +13,17 @@
13 * Most of the dirty work blatantly ripped off from cat.c =) 13 * Most of the dirty work blatantly ripped off from cat.c =)
14 */ 14 */
15 15
16//usage:#define eject_trivial_usage
17//usage: "[-t] [-T] [DEVICE]"
18//usage:#define eject_full_usage "\n\n"
19//usage: "Eject DEVICE or default /dev/cdrom\n"
20//usage: "\nOptions:"
21//usage: IF_FEATURE_EJECT_SCSI(
22//usage: "\n -s SCSI device"
23//usage: )
24//usage: "\n -t Close tray"
25//usage: "\n -T Open/close tray (toggle)"
26
16#include <sys/mount.h> 27#include <sys/mount.h>
17#include "libbb.h" 28#include "libbb.h"
18/* Must be after libbb.h: they need size_t */ 29/* Must be after libbb.h: they need size_t */
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c
index 770e70026..c761a88ca 100644
--- a/miscutils/fbsplash.c
+++ b/miscutils/fbsplash.c
@@ -21,6 +21,19 @@
21 * "exit" (or just close fifo) - well you guessed it. 21 * "exit" (or just close fifo) - well you guessed it.
22 */ 22 */
23 23
24//usage:#define fbsplash_trivial_usage
25//usage: "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]"
26//usage:#define fbsplash_full_usage "\n\n"
27//usage: "Options:"
28//usage: "\n -s Image"
29//usage: "\n -c Hide cursor"
30//usage: "\n -d Framebuffer device (default /dev/fb0)"
31//usage: "\n -i Config file (var=value):"
32//usage: "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT"
33//usage: "\n BAR_R,BAR_G,BAR_B"
34//usage: "\n -f Control pipe (else exit after drawing image)"
35//usage: "\n commands: 'NN' (% for progress bar) or 'exit'"
36
24#include "libbb.h" 37#include "libbb.h"
25#include <linux/fb.h> 38#include <linux/fb.h>
26 39
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c
index 68596e11b..33803f87d 100644
--- a/miscutils/flash_eraseall.c
+++ b/miscutils/flash_eraseall.c
@@ -10,6 +10,14 @@
10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 */ 11 */
12 12
13//usage:#define flash_eraseall_trivial_usage
14//usage: "[-jq] MTD_DEVICE"
15//usage:#define flash_eraseall_full_usage "\n\n"
16//usage: "Erase an MTD device\n"
17//usage: "\nOptions:"
18//usage: "\n -j Format the device for jffs2"
19//usage: "\n -q Don't display progress messages"
20
13#include "libbb.h" 21#include "libbb.h"
14#include <mtd/mtd-user.h> 22#include <mtd/mtd-user.h>
15#include <linux/jffs2.h> 23#include <linux/jffs2.h>
diff --git a/miscutils/flash_lock_unlock.c b/miscutils/flash_lock_unlock.c
index fcb836b07..1fefd95f9 100644
--- a/miscutils/flash_lock_unlock.c
+++ b/miscutils/flash_lock_unlock.c
@@ -3,6 +3,18 @@
3 * 3 *
4 * Licensed under GPLv2, see file LICENSE in this source tree. 4 * Licensed under GPLv2, see file LICENSE in this source tree.
5 */ 5 */
6
7//usage:#define flash_lock_trivial_usage
8//usage: "MTD_DEVICE OFFSET SECTORS"
9//usage:#define flash_lock_full_usage "\n\n"
10//usage: "Lock part or all of an MTD device. If SECTORS is -1, then all sectors\n"
11//usage: "will be locked, regardless of the value of OFFSET"
12//usage:
13//usage:#define flash_unlock_trivial_usage
14//usage: "MTD_DEVICE"
15//usage:#define flash_unlock_full_usage "\n\n"
16//usage: "Unlock an MTD device"
17
6#include "libbb.h" 18#include "libbb.h"
7#include <mtd/mtd-user.h> 19#include <mtd/mtd-user.h>
8 20
diff --git a/miscutils/flashcp.c b/miscutils/flashcp.c
index fe37c3913..e4bb3a902 100644
--- a/miscutils/flashcp.c
+++ b/miscutils/flashcp.c
@@ -7,6 +7,13 @@
7 * Licensed under GPLv2, see file LICENSE in this source tree. 7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */ 8 */
9 9
10//usage:#define flashcp_trivial_usage
11//usage: "-v FILE MTD_DEVICE"
12//usage:#define flashcp_full_usage "\n\n"
13//usage: "Copy an image to MTD device\n"
14//usage: "\nOptions:"
15//usage: "\n -v Verbose"
16
10#include "libbb.h" 17#include "libbb.h"
11#include <mtd/mtd-user.h> 18#include <mtd/mtd-user.h>
12 19
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 38b265d60..7608408dd 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -11,6 +11,58 @@
11 * hdparm.c - Command line interface to get/set hard disk parameters 11 * hdparm.c - Command line interface to get/set hard disk parameters
12 * - by Mark Lord (C) 1994-2002 -- freely distributable 12 * - by Mark Lord (C) 1994-2002 -- freely distributable
13 */ 13 */
14
15//usage:#define hdparm_trivial_usage
16//usage: "[OPTIONS] [DEVICE]"
17//usage:#define hdparm_full_usage "\n\n"
18//usage: "Options:"
19//usage: "\n -a Get/set fs readahead"
20//usage: "\n -A Set drive read-lookahead flag (0/1)"
21//usage: "\n -b Get/set bus state (0 == off, 1 == on, 2 == tristate)"
22//usage: "\n -B Set Advanced Power Management setting (1-255)"
23//usage: "\n -c Get/set IDE 32-bit IO setting"
24//usage: "\n -C Check IDE power mode status"
25//usage: IF_FEATURE_HDPARM_HDIO_GETSET_DMA(
26//usage: "\n -d Get/set using_dma flag")
27//usage: "\n -D Enable/disable drive defect-mgmt"
28//usage: "\n -f Flush buffer cache for device on exit"
29//usage: "\n -g Display drive geometry"
30//usage: "\n -h Display terse usage information"
31//usage: IF_FEATURE_HDPARM_GET_IDENTITY(
32//usage: "\n -i Display drive identification")
33//usage: IF_FEATURE_HDPARM_GET_IDENTITY(
34//usage: "\n -I Detailed/current information directly from drive")
35//usage: "\n -k Get/set keep_settings_over_reset flag (0/1)"
36//usage: "\n -K Set drive keep_features_over_reset flag (0/1)"
37//usage: "\n -L Set drive doorlock (0/1) (removable harddisks only)"
38//usage: "\n -m Get/set multiple sector count"
39//usage: "\n -n Get/set ignore-write-errors flag (0/1)"
40//usage: "\n -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)"
41//usage: "\n -P Set drive prefetch count"
42/* //usage: "\n -q Change next setting quietly" - not supported ib bbox */
43//usage: "\n -Q Get/set DMA tagged-queuing depth (if supported)"
44//usage: "\n -r Get/set readonly flag (DANGEROUS to set)"
45//usage: IF_FEATURE_HDPARM_HDIO_SCAN_HWIF(
46//usage: "\n -R Register an IDE interface (DANGEROUS)")
47//usage: "\n -S Set standby (spindown) timeout"
48//usage: "\n -t Perform device read timings"
49//usage: "\n -T Perform cache read timings"
50//usage: "\n -u Get/set unmaskirq flag (0/1)"
51//usage: IF_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF(
52//usage: "\n -U Unregister an IDE interface (DANGEROUS)")
53//usage: "\n -v Defaults; same as -mcudkrag for IDE drives"
54//usage: "\n -V Display program version and exit immediately"
55//usage: IF_FEATURE_HDPARM_HDIO_DRIVE_RESET(
56//usage: "\n -w Perform device reset (DANGEROUS)")
57//usage: "\n -W Set drive write-caching flag (0/1) (DANGEROUS)"
58//usage: IF_FEATURE_HDPARM_HDIO_TRISTATE_HWIF(
59//usage: "\n -x Tristate device for hotswap (0/1) (DANGEROUS)")
60//usage: "\n -X Set IDE xfer mode (DANGEROUS)"
61//usage: "\n -y Put IDE drive in standby mode"
62//usage: "\n -Y Put IDE drive to sleep"
63//usage: "\n -Z Disable Seagate auto-powersaving mode"
64//usage: "\n -z Reread partition table"
65
14#include "libbb.h" 66#include "libbb.h"
15/* must be _after_ libbb.h: */ 67/* must be _after_ libbb.h: */
16#include <linux/hdreg.h> 68#include <linux/hdreg.h>
diff --git a/miscutils/inotifyd.c b/miscutils/inotifyd.c
index fe429b636..b64e0abb9 100644
--- a/miscutils/inotifyd.c
+++ b/miscutils/inotifyd.c
@@ -27,6 +27,33 @@
27 * See below for mask names explanation. 27 * See below for mask names explanation.
28 */ 28 */
29 29
30//usage:#define inotifyd_trivial_usage
31//usage: "PROG FILE1[:MASK]..."
32//usage:#define inotifyd_full_usage "\n\n"
33//usage: "Run PROG on filesystem changes."
34//usage: "\nWhen a filesystem event matching MASK occurs on FILEn,"
35//usage: "\nPROG ACTUAL_EVENTS FILEn [SUBFILE] is run."
36//usage: "\nEvents:"
37//usage: "\n a File is accessed"
38//usage: "\n c File is modified"
39//usage: "\n e Metadata changed"
40//usage: "\n w Writable file is closed"
41//usage: "\n 0 Unwritable file is closed"
42//usage: "\n r File is opened"
43//usage: "\n D File is deleted"
44//usage: "\n M File is moved"
45//usage: "\n u Backing fs is unmounted"
46//usage: "\n o Event queue overflowed"
47//usage: "\n x File can't be watched anymore"
48//usage: "\nIf watching a directory:"
49//usage: "\n m Subfile is moved into dir"
50//usage: "\n y Subfile is moved out of dir"
51//usage: "\n n Subfile is created"
52//usage: "\n d Subfile is deleted"
53//usage: "\n"
54//usage: "\ninotifyd waits for PROG to exit."
55//usage: "\nWhen x event happens for all FILEs, inotifyd exits."
56
30#include "libbb.h" 57#include "libbb.h"
31#include <sys/inotify.h> 58#include <sys/inotify.h>
32 59
diff --git a/miscutils/ionice.c b/miscutils/ionice.c
index 481a738ee..2bc83c5eb 100644
--- a/miscutils/ionice.c
+++ b/miscutils/ionice.c
@@ -7,6 +7,14 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9 9
10//usage:#define ionice_trivial_usage
11//usage: "[-c 1-3] [-n 0-7] [-p PID] [PROG]"
12//usage:#define ionice_full_usage "\n\n"
13//usage: "Change I/O priority and class\n"
14//usage: "\nOptions:"
15//usage: "\n -c Class. 1:realtime 2:best-effort 3:idle"
16//usage: "\n -n Priority"
17
10#include <sys/syscall.h> 18#include <sys/syscall.h>
11#include <asm/unistd.h> 19#include <asm/unistd.h>
12#include "libbb.h" 20#include "libbb.h"
diff --git a/miscutils/last.c b/miscutils/last.c
index 12457b157..27f5a35ce 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -7,6 +7,17 @@
7 * Licensed under GPLv2, see file LICENSE in this source tree. 7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */ 8 */
9 9
10//usage:#define last_trivial_usage
11//usage: ""IF_FEATURE_LAST_FANCY("[-HW] [-f FILE]")
12//usage:#define last_full_usage "\n\n"
13//usage: "Show listing of the last users that logged into the system"
14//usage: IF_FEATURE_LAST_FANCY( "\n"
15//usage: "\nOptions:"
16/* //usage: "\n -H Show header line" */
17//usage: "\n -W Display with no host column truncation"
18//usage: "\n -f FILE Read from FILE instead of /var/log/wtmp"
19//usage: )
20
10#include "libbb.h" 21#include "libbb.h"
11 22
12/* NB: ut_name and ut_user are the same field, use only one name (ut_user) 23/* NB: ut_name and ut_user are the same field, use only one name (ut_user)
diff --git a/miscutils/less.c b/miscutils/less.c
index 9e12c11a7..77fd5a8de 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -21,6 +21,18 @@
21 * redirected input has been read from stdin 21 * redirected input has been read from stdin
22 */ 22 */
23 23
24//usage:#define less_trivial_usage
25//usage: "[-EMNmh~I?] [FILE]..."
26//usage:#define less_full_usage "\n\n"
27//usage: "View FILE (or stdin) one screenful at a time\n"
28//usage: "\nOptions:"
29//usage: "\n -E Quit once the end of a file is reached"
30//usage: "\n -M,-m Display status line with line numbers"
31//usage: "\n and percentage through the file"
32//usage: "\n -N Prefix line number to each line"
33//usage: "\n -I Ignore case in all searches"
34//usage: "\n -~ Suppress ~s displayed past the end of the file"
35
24#include <sched.h> /* sched_yield() */ 36#include <sched.h> /* sched_yield() */
25 37
26#include "libbb.h" 38#include "libbb.h"
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index e74c47c35..8cca83882 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -7,6 +7,66 @@
7 * known bugs: can't deal with alpha ranges 7 * known bugs: can't deal with alpha ranges
8 */ 8 */
9 9
10//usage:#if ENABLE_FEATURE_MAKEDEVS_LEAF
11//usage:#define makedevs_trivial_usage
12//usage: "NAME TYPE MAJOR MINOR FIRST LAST [s]"
13//usage:#define makedevs_full_usage "\n\n"
14//usage: "Create a range of block or character special files"
15//usage: "\n"
16//usage: "\nTYPE is:"
17//usage: "\n b Block device"
18//usage: "\n c Character device"
19//usage: "\n f FIFO, MAJOR and MINOR are ignored"
20//usage: "\n"
21//usage: "\nFIRST..LAST specify numbers appended to NAME."
22//usage: "\nIf 's' is the last argument, the base device is created as well."
23//usage: "\n"
24//usage: "\nExamples:"
25//usage: "\n makedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63"
26//usage: "\n makedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
27//usage:
28//usage:#define makedevs_example_usage
29//usage: "# makedevs /dev/ttyS c 4 66 2 63\n"
30//usage: "[creates ttyS2-ttyS63]\n"
31//usage: "# makedevs /dev/hda b 3 0 0 8 s\n"
32//usage: "[creates hda,hda1-hda8]\n"
33//usage:#endif
34//usage:
35//usage:#if ENABLE_FEATURE_MAKEDEVS_TABLE
36//usage:#define makedevs_trivial_usage
37//usage: "[-d device_table] rootdir"
38//usage:#define makedevs_full_usage "\n\n"
39//usage: "Create a range of special files as specified in a device table.\n"
40//usage: "Device table entries take the form of:\n"
41//usage: "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n"
42//usage: "Where name is the file name, type can be one of:\n"
43//usage: " f Regular file\n"
44//usage: " d Directory\n"
45//usage: " c Character device\n"
46//usage: " b Block device\n"
47//usage: " p Fifo (named pipe)\n"
48//usage: "uid is the user id for the target file, gid is the group id for the\n"
49//usage: "target file. The rest of the entries (major, minor, etc) apply to\n"
50//usage: "to device special files. A '-' may be used for blank entries."
51//usage:
52//usage:#define makedevs_example_usage
53//usage: "For example:\n"
54//usage: "<name> <type> <mode><uid><gid><major><minor><start><inc><count>\n"
55//usage: "/dev d 755 0 0 - - - - -\n"
56//usage: "/dev/console c 666 0 0 5 1 - - -\n"
57//usage: "/dev/null c 666 0 0 1 3 0 0 -\n"
58//usage: "/dev/zero c 666 0 0 1 5 0 0 -\n"
59//usage: "/dev/hda b 640 0 0 3 0 0 0 -\n"
60//usage: "/dev/hda b 640 0 0 3 1 1 1 15\n\n"
61//usage: "Will Produce:\n"
62//usage: "/dev\n"
63//usage: "/dev/console\n"
64//usage: "/dev/null\n"
65//usage: "/dev/zero\n"
66//usage: "/dev/hda\n"
67//usage: "/dev/hda[0-15]\n"
68//usage:#endif
69
10#include "libbb.h" 70#include "libbb.h"
11 71
12#if ENABLE_FEATURE_MAKEDEVS_LEAF 72#if ENABLE_FEATURE_MAKEDEVS_LEAF
diff --git a/miscutils/man.c b/miscutils/man.c
index b356e726f..2c6b25ceb 100644
--- a/miscutils/man.c
+++ b/miscutils/man.c
@@ -3,6 +3,14 @@
3 * Licensed under GPLv2, see file LICENSE in this source tree. 3 * Licensed under GPLv2, see file LICENSE in this source tree.
4 */ 4 */
5 5
6//usage:#define man_trivial_usage
7//usage: "[-aw] [MANPAGE]..."
8//usage:#define man_full_usage "\n\n"
9//usage: "Format and display manual page\n"
10//usage: "\nOptions:"
11//usage: "\n -a Display all pages"
12//usage: "\n -w Show page locations"
13
6#include "libbb.h" 14#include "libbb.h"
7 15
8enum { 16enum {
diff --git a/miscutils/microcom.c b/miscutils/microcom.c
index 3acbe3023..edaeb6fa5 100644
--- a/miscutils/microcom.c
+++ b/miscutils/microcom.c
@@ -7,6 +7,18 @@
7 * 7 *
8 * Licensed under GPLv2, see file LICENSE in this source tree. 8 * Licensed under GPLv2, see file LICENSE in this source tree.
9 */ 9 */
10
11//usage:#define microcom_trivial_usage
12//usage: "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY"
13//usage:#define microcom_full_usage "\n\n"
14//usage: "Copy bytes for stdin to TTY and from TTY to stdout\n"
15//usage: "\nOptions:"
16//usage: "\n -d Wait up to DELAY ms for TTY output before sending every"
17//usage: "\n next byte to it"
18//usage: "\n -t Exit if both stdin and TTY are silent for TIMEOUT ms"
19//usage: "\n -s Set serial line to SPEED"
20//usage: "\n -X Disable special meaning of NUL and Ctrl-X from stdin"
21
10#include "libbb.h" 22#include "libbb.h"
11 23
12// set raw tty mode 24// set raw tty mode
diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c
index 784c3cbfc..a1a5b396a 100644
--- a/miscutils/mountpoint.c
+++ b/miscutils/mountpoint.c
@@ -9,6 +9,22 @@
9 * Based on sysvinit's mountpoint 9 * Based on sysvinit's mountpoint
10 */ 10 */
11 11
12//usage:#define mountpoint_trivial_usage
13//usage: "[-q] <[-dn] DIR | -x DEVICE>"
14//usage:#define mountpoint_full_usage "\n\n"
15//usage: "Check if the directory is a mountpoint\n"
16//usage: "\nOptions:"
17//usage: "\n -q Quiet"
18//usage: "\n -d Print major/minor device number of the filesystem"
19//usage: "\n -n Print device name of the filesystem"
20//usage: "\n -x Print major/minor device number of the blockdevice"
21//usage:
22//usage:#define mountpoint_example_usage
23//usage: "$ mountpoint /proc\n"
24//usage: "/proc is not a mountpoint\n"
25//usage: "$ mountpoint /sys\n"
26//usage: "/sys is a mountpoint\n"
27
12#include "libbb.h" 28#include "libbb.h"
13 29
14int mountpoint_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 30int mountpoint_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/mt.c b/miscutils/mt.c
index 142901bb0..20afd3a50 100644
--- a/miscutils/mt.c
+++ b/miscutils/mt.c
@@ -3,6 +3,18 @@
3 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5 5
6//usage:#define mt_trivial_usage
7//usage: "[-f device] opcode value"
8//usage:#define mt_full_usage "\n\n"
9//usage: "Control magnetic tape drive operation\n"
10//usage: "\n"
11//usage: "Available Opcodes:\n"
12//usage: "\n"
13//usage: "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n"
14//usage: "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n"
15//usage: "ras3 reset retension rewind rewoffline seek setblk setdensity\n"
16//usage: "setpart tell unload unlock weof wset"
17
6#include "libbb.h" 18#include "libbb.h"
7#include <sys/mtio.h> 19#include <sys/mtio.h>
8 20
diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c
index bbfa8577c..b72d89058 100644
--- a/miscutils/raidautorun.c
+++ b/miscutils/raidautorun.c
@@ -8,6 +8,14 @@
8 * 8 *
9 */ 9 */
10 10
11//usage:#define raidautorun_trivial_usage
12//usage: "DEVICE"
13//usage:#define raidautorun_full_usage "\n\n"
14//usage: "Tell the kernel to automatically search and start RAID arrays"
15//usage:
16//usage:#define raidautorun_example_usage
17//usage: "$ raidautorun /dev/md0"
18
11#include "libbb.h" 19#include "libbb.h"
12 20
13#include <linux/major.h> 21#include <linux/major.h>
diff --git a/miscutils/readahead.c b/miscutils/readahead.c
index dd6de7c45..e22aaa468 100644
--- a/miscutils/readahead.c
+++ b/miscutils/readahead.c
@@ -10,6 +10,11 @@
10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 */ 11 */
12 12
13//usage:#define readahead_trivial_usage
14//usage: "[FILE]..."
15//usage:#define readahead_full_usage "\n\n"
16//usage: "Preload FILEs to RAM"
17
13#include "libbb.h" 18#include "libbb.h"
14 19
15int readahead_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 20int readahead_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/rfkill.c b/miscutils/rfkill.c
index b150b2cae..467197371 100644
--- a/miscutils/rfkill.c
+++ b/miscutils/rfkill.c
@@ -6,6 +6,19 @@
6* 6*
7* Licensed under GPLv2 or later, see file LICENSE in this source tree. 7* Licensed under GPLv2 or later, see file LICENSE in this source tree.
8*/ 8*/
9
10//usage:#define rfkill_trivial_usage
11//usage: "COMMAND [INDEX|TYPE]"
12//usage:#define rfkill_full_usage "\n\n"
13//usage: "Enable/disable wireless devices\n"
14//usage: "\nCommands:"
15//usage: "\n list [INDEX|TYPE] List current state"
16//usage: "\n block INDEX|TYPE Disable device"
17//usage: "\n unblock INDEX|TYPE Enable device"
18//usage: "\n"
19//usage: "\n TYPE: all, wlan(wifi), bluetooth, uwb(ultrawideband),"
20//usage: "\n wimax, wwan, gps, fm"
21
9#include "libbb.h" 22#include "libbb.h"
10#include <linux/rfkill.h> 23#include <linux/rfkill.h>
11 24
diff --git a/miscutils/runlevel.c b/miscutils/runlevel.c
index 7024361e7..9d38b791f 100644
--- a/miscutils/runlevel.c
+++ b/miscutils/runlevel.c
@@ -11,6 +11,19 @@
11 * 11 *
12 * initially busyboxified by Bernhard Reutner-Fischer 12 * initially busyboxified by Bernhard Reutner-Fischer
13 */ 13 */
14
15//usage:#define runlevel_trivial_usage
16//usage: "[FILE]"
17//usage:#define runlevel_full_usage "\n\n"
18//usage: "Find the current and previous system runlevel\n"
19//usage: "\n"
20//usage: "If no utmp FILE exists or if no runlevel record can be found,\n"
21//usage: "print \"unknown\""
22//usage:
23//usage:#define runlevel_example_usage
24//usage: "$ runlevel /var/run/utmp\n"
25//usage: "N 2"
26
14#include "libbb.h" 27#include "libbb.h"
15 28
16int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 29int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/rx.c b/miscutils/rx.c
index de785d53c..e1225779e 100644
--- a/miscutils/rx.c
+++ b/miscutils/rx.c
@@ -15,6 +15,14 @@
15 * This was originally written for blob and then adapted for busybox. 15 * This was originally written for blob and then adapted for busybox.
16 */ 16 */
17 17
18//usage:#define rx_trivial_usage
19//usage: "FILE"
20//usage:#define rx_full_usage "\n\n"
21//usage: "Receive a file using the xmodem protocol"
22//usage:
23//usage:#define rx_example_usage
24//usage: "$ rx /tmp/foo\n"
25
18#include "libbb.h" 26#include "libbb.h"
19 27
20#define SOH 0x01 28#define SOH 0x01
diff --git a/miscutils/setsid.c b/miscutils/setsid.c
index c573fae34..ad2c8a4de 100644
--- a/miscutils/setsid.c
+++ b/miscutils/setsid.c
@@ -14,6 +14,13 @@
14 * - busyboxed 14 * - busyboxed
15 */ 15 */
16 16
17//usage:#define setsid_trivial_usage
18//usage: "PROG ARGS"
19//usage:#define setsid_full_usage "\n\n"
20//usage: "Run PROG in a new session. PROG will have no controlling terminal\n"
21//usage: "and will not be affected by keyboard signals (Ctrl-C etc).\n"
22//usage: "See setsid(2) for details."
23
17#include "libbb.h" 24#include "libbb.h"
18 25
19int setsid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 26int setsid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/strings.c b/miscutils/strings.c
index 7ab0e227c..6e8b9aefc 100644
--- a/miscutils/strings.c
+++ b/miscutils/strings.c
@@ -7,6 +7,16 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
8 */ 8 */
9 9
10//usage:#define strings_trivial_usage
11//usage: "[-afo] [-n LEN] [FILE]..."
12//usage:#define strings_full_usage "\n\n"
13//usage: "Display printable strings in a binary file\n"
14//usage: "\nOptions:"
15//usage: "\n -a Scan whole file (default)"
16//usage: "\n -f Precede strings with filenames"
17//usage: "\n -n LEN At least LEN characters form a string (default 4)"
18//usage: "\n -o Precede strings with decimal offsets"
19
10#include "libbb.h" 20#include "libbb.h"
11 21
12#define WHOLE_FILE 1 22#define WHOLE_FILE 1
diff --git a/miscutils/taskset.c b/miscutils/taskset.c
index 389ef43e4..77fc8643d 100644
--- a/miscutils/taskset.c
+++ b/miscutils/taskset.c
@@ -6,6 +6,24 @@
6 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
7 */ 7 */
8 8
9//usage:#define taskset_trivial_usage
10//usage: "[-p] [MASK] [PID | PROG ARGS]"
11//usage:#define taskset_full_usage "\n\n"
12//usage: "Set or get CPU affinity\n"
13//usage: "\nOptions:"
14//usage: "\n -p Operate on an existing PID"
15//usage:
16//usage:#define taskset_example_usage
17//usage: "$ taskset 0x7 ./dgemm_test&\n"
18//usage: "$ taskset -p 0x1 $!\n"
19//usage: "pid 4790's current affinity mask: 7\n"
20//usage: "pid 4790's new affinity mask: 1\n"
21//usage: "$ taskset 0x7 /bin/sh -c './taskset -p 0x1 $$'\n"
22//usage: "pid 6671's current affinity mask: 1\n"
23//usage: "pid 6671's new affinity mask: 1\n"
24//usage: "$ taskset -p 1\n"
25//usage: "pid 1's current affinity mask: 3\n"
26
9#include <sched.h> 27#include <sched.h>
10#include "libbb.h" 28#include "libbb.h"
11 29
diff --git a/miscutils/time.c b/miscutils/time.c
index 6b1c3c42c..dcd89f8fc 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -9,6 +9,13 @@
9 Heavily modified for busybox by Erik Andersen <andersen@codepoet.org> 9 Heavily modified for busybox by Erik Andersen <andersen@codepoet.org>
10*/ 10*/
11 11
12//usage:#define time_trivial_usage
13//usage: "[-v] PROG ARGS"
14//usage:#define time_full_usage "\n\n"
15//usage: "Run PROG, display resource usage when it exits\n"
16//usage: "\nOptions:"
17//usage: "\n -v Verbose"
18
12#include "libbb.h" 19#include "libbb.h"
13 20
14/* Information on the resources used by a child process. */ 21/* Information on the resources used by a child process. */
diff --git a/miscutils/timeout.c b/miscutils/timeout.c
index 841669416..9d56593ba 100644
--- a/miscutils/timeout.c
+++ b/miscutils/timeout.c
@@ -28,6 +28,12 @@
28 * rewrite 14-11-2008 vda 28 * rewrite 14-11-2008 vda
29 */ 29 */
30 30
31//usage:#define timeout_trivial_usage
32//usage: "[-t SECS] [-s SIG] PROG ARGS"
33//usage:#define timeout_full_usage "\n\n"
34//usage: "Runs PROG. Sends SIG to it if it is not gone in SECS seconds.\n"
35//usage: "Defaults: SECS: 10, SIG: TERM."
36
31#include "libbb.h" 37#include "libbb.h"
32 38
33int timeout_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 39int timeout_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/ttysize.c b/miscutils/ttysize.c
index f93a506a2..d2d48d0a9 100644
--- a/miscutils/ttysize.c
+++ b/miscutils/ttysize.c
@@ -9,6 +9,12 @@
9 * 9 *
10 * Licensed under GPLv2, see file LICENSE in this source tree. 10 * Licensed under GPLv2, see file LICENSE in this source tree.
11 */ 11 */
12
13//usage:#define ttysize_trivial_usage
14//usage: "[w] [h]"
15//usage:#define ttysize_full_usage "\n\n"
16//usage: "Print dimension(s) of stdin's terminal, on error return 80x25"
17
12#include "libbb.h" 18#include "libbb.h"
13 19
14int ttysize_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 20int ttysize_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/volname.c b/miscutils/volname.c
index 6e8615617..b50e79573 100644
--- a/miscutils/volname.c
+++ b/miscutils/volname.c
@@ -27,6 +27,12 @@
27 * mods from distributed source (eject-2.0.13) are by 27 * mods from distributed source (eject-2.0.13) are by
28 * Matthew Stoltenberg <d3matt@gmail.com> 28 * Matthew Stoltenberg <d3matt@gmail.com>
29 */ 29 */
30
31//usage:#define volname_trivial_usage
32//usage: "[DEVICE]"
33//usage:#define volname_full_usage "\n\n"
34//usage: "Show CD volume name of the DEVICE (default /dev/cdrom)"
35
30#include "libbb.h" 36#include "libbb.h"
31 37
32int volname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 38int volname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/wall.c b/miscutils/wall.c
index 0a2b89e5e..762f53b72 100644
--- a/miscutils/wall.c
+++ b/miscutils/wall.c
@@ -6,6 +6,15 @@
6 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
7 */ 7 */
8 8
9//usage:#define wall_trivial_usage
10//usage: "[FILE]"
11//usage:#define wall_full_usage "\n\n"
12//usage: "Write content of FILE or stdin to all logged-in users"
13//usage:
14//usage:#define wall_sample_usage
15//usage: "echo foo | wall\n"
16//usage: "wall ./mymessage"
17
9#include "libbb.h" 18#include "libbb.h"
10 19
11int wall_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 20int wall_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c
index 630782660..b24dd4b82 100644
--- a/miscutils/watchdog.c
+++ b/miscutils/watchdog.c
@@ -9,6 +9,17 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 9 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
10 */ 10 */
11 11
12//usage:#define watchdog_trivial_usage
13//usage: "[-t N[ms]] [-T N[ms]] [-F] DEV"
14//usage:#define watchdog_full_usage "\n\n"
15//usage: "Periodically write to watchdog device DEV\n"
16//usage: "\nOptions:"
17//usage: "\n -T N Reboot after N seconds if not reset (default 60)"
18//usage: "\n -t N Reset every N seconds (default 30)"
19//usage: "\n -F Run in foreground"
20//usage: "\n"
21//usage: "\nUse 500ms to specify period in milliseconds"
22
12#include "libbb.h" 23#include "libbb.h"
13#include "linux/types.h" /* for __u32 */ 24#include "linux/types.h" /* for __u32 */
14#include "linux/watchdog.h" 25#include "linux/watchdog.h"