aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/bzcat.c2
-rw-r--r--toys/other/chcon.c6
-rw-r--r--toys/other/eject.c2
-rw-r--r--toys/other/flock.c8
-rw-r--r--toys/other/fsync.c2
-rw-r--r--toys/other/lsattr.c42
-rw-r--r--toys/other/oneit.c8
-rw-r--r--toys/other/pmap.c4
-rw-r--r--toys/other/reboot.c2
-rw-r--r--toys/other/rmmod.c2
-rw-r--r--toys/other/taskset.c6
-rw-r--r--toys/other/timeout.c2
-rw-r--r--toys/other/truncate.c2
-rw-r--r--toys/other/xxd.c12
14 files changed, 50 insertions, 50 deletions
diff --git a/toys/other/bzcat.c b/toys/other/bzcat.c
index ff598491..6e8d0e85 100644
--- a/toys/other/bzcat.c
+++ b/toys/other/bzcat.c
@@ -24,7 +24,7 @@ config BUNZIP2
Read from stdin if no files listed.
-c force output to stdout
- -f force decompression. (If FILE doesn't end in .bz, replace original.)
+ -f force decompression (if FILE doesn't end in .bz, replace original)
-k keep input files (-c and -t imply this)
-t test integrity
-v verbose
diff --git a/toys/other/chcon.c b/toys/other/chcon.c
index 6dbdd13f..a071eef5 100644
--- a/toys/other/chcon.c
+++ b/toys/other/chcon.c
@@ -13,9 +13,9 @@ config CHCON
Change the SELinux security context of listed file[s].
- -h change symlinks instead of what they point to.
- -R recurse into subdirectories.
- -v verbose output.
+ -h change symlinks instead of what they point to
+ -R recurse into subdirectories
+ -v verbose output
*/
#define FOR_chcon
diff --git a/toys/other/eject.c b/toys/other/eject.c
index 31eab144..bd7af567 100644
--- a/toys/other/eject.c
+++ b/toys/other/eject.c
@@ -17,7 +17,7 @@ config EJECT
-s SCSI device
-t Close tray
- -T Open/close tray (toggle).
+ -T Open/close tray (toggle)
*/
#define FOR_eject
diff --git a/toys/other/flock.c b/toys/other/flock.c
index 5f0190a9..3dc75870 100644
--- a/toys/other/flock.c
+++ b/toys/other/flock.c
@@ -12,10 +12,10 @@ config FLOCK
Manage advisory file locks.
- -s Shared lock.
- -x Exclusive lock (default).
- -u Unlock.
- -n Non-blocking: fail rather than wait for the lock.
+ -s Shared lock
+ -x Exclusive lock (default)
+ -u Unlock
+ -n Non-blocking: fail rather than wait for the lock
*/
#define FOR_flock
diff --git a/toys/other/fsync.c b/toys/other/fsync.c
index bd73f398..d7812b90 100644
--- a/toys/other/fsync.c
+++ b/toys/other/fsync.c
@@ -14,7 +14,7 @@ config FSYNC
Synchronize a file's in-core state with storage device.
- -d Avoid syncing metadata.
+ -d Avoid syncing metadata
*/
#define FOR_fsync
diff --git a/toys/other/lsattr.c b/toys/other/lsattr.c
index 8b91ef78..a361dc8e 100644
--- a/toys/other/lsattr.c
+++ b/toys/other/lsattr.c
@@ -19,11 +19,11 @@ config LSATTR
List file attributes on a Linux second extended file system.
(AacDdijsStu defined in chattr --help)
- -R Recursively list attributes of directories and their contents.
- -a List all files in directories, including files that start with '.'.
- -d List directories like other files, rather than listing their contents.
- -l List long flag names.
- -v List the file's version/generation number.
+ -R Recursively list attributes of directories and their contents
+ -a List all files in directories, including files that start with '.'
+ -d List directories like other files, rather than listing their contents
+ -l List long flag names
+ -v List the file's version/generation number
config CHATTR
bool "chattr"
@@ -33,26 +33,26 @@ config CHATTR
Change file attributes on a Linux second extended file system.
- -R Recurse.
- -v Set the file's version/generation number.
+ -R Recurse
+ -v Set the file's version/generation number
Operators:
- '-' Remove attributes.
- '+' Add attributes.
- '=' Set attributes.
+ '-' Remove attributes
+ '+' Add attributes
+ '=' Set attributes
Attributes:
- A Don't track atime.
- a Append mode only.
- c Enable compress.
- D Write dir contents synchronously.
- d Don't backup with dump.
- i Cannot be modified (immutable).
- j Write all data to journal first.
- s Zero disk storage when deleted.
- S Write file contents synchronously.
- t Disable tail-merging of partial blocks with other files.
- u Allow file to be undeleted.
+ A Don't track atime
+ a Append mode only
+ c Enable compress
+ D Write dir contents synchronously
+ d Don't backup with dump
+ i Cannot be modified (immutable)
+ j Write all data to journal first
+ s Zero disk storage when deleted
+ S Write file contents synchronously
+ t Disable tail-merging of partial blocks with other files
+ u Allow file to be undeleted
*/
#define FOR_lsattr
#include "toys.h"
diff --git a/toys/other/oneit.c b/toys/other/oneit.c
index 68b5bd8c..24bd45c6 100644
--- a/toys/other/oneit.c
+++ b/toys/other/oneit.c
@@ -13,10 +13,10 @@ config ONEIT
Simple init program that runs a single supplied command line with a
controlling tty (so CTRL-C can kill it).
- -c Which console device to use (/dev/console doesn't do CTRL-C, etc).
- -p Power off instead of rebooting when command exits.
- -r Restart child when it exits.
- -3 Write 32 bit PID of each exiting reparented process to fd 3 of child.
+ -c Which console device to use (/dev/console doesn't do CTRL-C, etc)
+ -p Power off instead of rebooting when command exits
+ -r Restart child when it exits
+ -3 Write 32 bit PID of each exiting reparented process to fd 3 of child
(Blocking writes, child must read to avoid eventual deadlock.)
Spawns a single child process (because PID 1 has signals blocked)
diff --git a/toys/other/pmap.c b/toys/other/pmap.c
index a93ea3ee..abb0a337 100644
--- a/toys/other/pmap.c
+++ b/toys/other/pmap.c
@@ -15,8 +15,8 @@ config PMAP
Reports the memory map of a process or processes.
- -x Show the extended format.
- -q Do not display some header/footer lines.
+ -x Show the extended format
+ -q Do not display some header/footer lines
*/
#define FOR_pmap
diff --git a/toys/other/reboot.c b/toys/other/reboot.c
index 15eea285..c883e340 100644
--- a/toys/other/reboot.c
+++ b/toys/other/reboot.c
@@ -15,7 +15,7 @@ config REBOOT
Restart, halt or powerdown the system.
-f Don't signal init
- -n Don't sync before stopping the system.
+ -n Don't sync before stopping the system
*/
#define FOR_reboot
diff --git a/toys/other/rmmod.c b/toys/other/rmmod.c
index 10c134c2..d9f0a15a 100644
--- a/toys/other/rmmod.c
+++ b/toys/other/rmmod.c
@@ -12,7 +12,7 @@ config RMMOD
Unload the module named MODULE from the Linux kernel.
-f Force unload of a module
- -w Wait until the module is no longer used.
+ -w Wait until the module is no longer used
*/
diff --git a/toys/other/taskset.c b/toys/other/taskset.c
index abc38723..8ffdab78 100644
--- a/toys/other/taskset.c
+++ b/toys/other/taskset.c
@@ -13,7 +13,7 @@ config NPROC
Print number of processors.
- --all Show all processors, not just ones this task can run on.
+ --all Show all processors, not just ones this task can run on
config TASKSET
bool "taskset"
@@ -27,8 +27,8 @@ config TASKSET
Mask is a hex string where each bit represents a processor the process
is allowed to run on. PID without a mask displays existing affinity.
- -p Set/get the affinity of given PID instead of a new command.
- -a Set/get the affinity of all threads of the PID.
+ -p Set/get the affinity of given PID instead of a new command
+ -a Set/get the affinity of all threads of the PID
*/
#define FOR_taskset
diff --git a/toys/other/timeout.c b/toys/other/timeout.c
index e39dc7a3..9b93466a 100644
--- a/toys/other/timeout.c
+++ b/toys/other/timeout.c
@@ -20,7 +20,7 @@ config TIMEOUT
(minutes), "h" (hours), "d" (days), or "s" (seconds, the default).
-s Send specified signal (default TERM)
- -k Send KILL signal if child still running this long after first signal.
+ -k Send KILL signal if child still running this long after first signal
-v Verbose
*/
diff --git a/toys/other/truncate.c b/toys/other/truncate.c
index 6092d5a9..142d3c7a 100644
--- a/toys/other/truncate.c
+++ b/toys/other/truncate.c
@@ -12,7 +12,7 @@ config TRUNCATE
Set length of file(s), extending sparsely if necessary.
- -c Don't create file if it doesn't exist.
+ -c Don't create file if it doesn't exist
-s New size (with optional prefix and suffix)
SIZE prefix: + add, - subtract, < shrink to, > expand to,
diff --git a/toys/other/xxd.c b/toys/other/xxd.c
index 99de2ee2..0ff5947f 100644
--- a/toys/other/xxd.c
+++ b/toys/other/xxd.c
@@ -16,12 +16,12 @@ config XXD
Hexdump a file to stdout. If no file is listed, copy from stdin.
Filename "-" is a synonym for stdin.
- -c n Show n bytes per line (default 16).
- -g n Group bytes by adding a ' ' every n bytes (default 2).
- -l n Limit of n bytes before stopping (default is no limit).
- -p Plain hexdump (30 bytes/line, no grouping).
- -r Reverse operation: turn a hexdump into a binary file.
- -s n Skip to offset n.
+ -c n Show n bytes per line (default 16)
+ -g n Group bytes by adding a ' ' every n bytes (default 2)
+ -l n Limit of n bytes before stopping (default is no limit)
+ -p Plain hexdump (30 bytes/line, no grouping)
+ -r Reverse operation: turn a hexdump into a binary file
+ -s n Skip to offset n
*/
#define FOR_xxd