commit 09e4878

Anto  ·  2026-06-29 16:28:23 +0000 UTC
parents 8c1988e, aeb8772
Merge pull request #4 from shrub900/mpages

fix malformed manpages
31 files changed,  +31, -31
+1, -1
1@@ -17,7 +17,7 @@ usage(void)
2 }
3 
4 // ?man insmod: insert a module into the Linux kernel
5-// ?man arguments: filename [args...
6+// ?man arguments: filename [args ...]
7 // ?man insmod inserts a kernel module from filename into the running kernel
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -535,7 +535,7 @@ usage(void)
2 }
3 
4 // ?man modprobe: add or remove modules from the Linux kernel
5-// ?man arguments: module [symbol=value ...
6+// ?man arguments: module [symbol=value ...]
7 // ?man modprobe loads or removes kernel modules from the running system.
8 // ?man It reads modules.dep, modules.alias, and modules.symbols from the appropriate
9 // ?man /lib/modules/release directory to resolve module names and dependencies,
+1, -1
1@@ -191,7 +191,7 @@ usage(void)
2 }
3 
4 // ?man mount: mount a filesystem
5-// ?man arguments: source] [target
6+// ?man arguments: source [target]
7 // ?man mount a filesystem to the directory tree
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -67,7 +67,7 @@ usage(void)
2 }
3 
4 // ?man switch_root: switch to another root filesystem
5-// ?man arguments: newroot] [init] (PID 1)
6+// ?man arguments: newroot [init] (PID 1)
7 // ?man switch to another filesystem as the root of the mount tree
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -16,7 +16,7 @@ usage(void)
2 }
3 
4 // ?man unshare: run program in new namespaces
5-// ?man arguments: cmd [args...
6+// ?man arguments: cmd [args ...]
7 // ?man run a program with some namespaces unshared from the parent
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -258,7 +258,7 @@ parse_response(const unsigned char *resp, int resp_len, const char *query_name)
2 }
3 
4 // ?man host: dns lookup utility
5-// ?man arguments: name [server
6+// ?man arguments: name [server]
7 // ?man look up hostnames and IP addresses using dns
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -98,7 +98,7 @@ list_interfaces(int all)
2 }
3 
4 // ?man ifconfig: configure network interfaces
5-// ?man arguments: interface [action ...
6+// ?man arguments: interface [action ...]
7 // ?man configure network interface parameters and view stats
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -346,7 +346,7 @@ do_route(int argc, char *argv[])
2 }
3 
4 // ?man ip: show or configure routing and devices
5-// ?man arguments: addr | link | route] [args...
6+// ?man arguments: [addr | link | route] [args ...]
7 // ?man configure and view network devices, routing, and tunnels
8 // ?man ## COMMANDS
9 // ?man ### addr [show | list [dev <device>]]
+1, -1
1@@ -49,7 +49,7 @@ resolve(const char *host, const char *port, int family, int socktype,
2 }
3 
4 // ?man netcat: read and write data across network connections
5-// ?man arguments: host] [port
6+// ?man arguments: host [port]
7 // ?man arbitrary data transmission over tcp or udp
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -14,7 +14,7 @@ usage(void)
2 }
3 
4 // ?man basename: strip directory and suffix from filenames
5-// ?man arguments: path [suffix
6+// ?man arguments: path [suffix]
7 // ?man print filename with leading directories and optional suffix removed
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -162,7 +162,7 @@ usage(void)
2 }
3 
4 // ?man cut: cut out fields from lines
5-// ?man arguments: -b list [file ...
6+// ?man arguments: -b list [file ...]
7 // ?man print selected parts of lines from files
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -64,7 +64,7 @@ setdate(const char *s, struct tm *now)
2 }
3 
4 // ?man date: print or set system date and time
5-// ?man arguments: +format | mmddHHMM[[CC]yy
6+// ?man arguments: +format | mmddHHMM[[CC]yy]
7 // ?man display or configure the system date and time
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -18,7 +18,7 @@ usage(void)
2 }
3 
4 // ?man env: run command in modified environment
5-// ?man arguments: ... [var=value] ... [cmd [arg ...
6+// ?man arguments: [var=value ...] [cmd [arg ...]]
7 // ?man set environment variables and run a command
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -1421,7 +1421,7 @@ usage(void)
2 }
3 
4 // ?man find: search for files
5-// ?man arguments: path ... [expression ...
6+// ?man arguments: path ... [expression ...]
7 // ?man search for files in a directory hierarchy
8 int
9 main(int argc, char **argv)
+1, -1
1@@ -23,7 +23,7 @@ usage(void)
2 }
3 
4 // ?man getconf: query configuration variables
5-// ?man arguments: var [path
6+// ?man arguments: var [path]
7 // ?man query system configuration variables
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -244,7 +244,7 @@ usage(void)
2 }
3 
4 // ?man grep: search files for a pattern
5-// ?man arguments: pattern] [file ...
6+// ?man arguments: pattern [file ...]
7 // ?man grep searches the named input files for lines matching the given pattern
8 // ?man if no files are named, or a file is -, standard input is searched
9 // ?man by default, matching lines are written to standard output
+1, -1
1@@ -19,7 +19,7 @@ usage(void)
2 }
3 
4 // ?man ln: make links between files
5-// ?man arguments: target [name
6+// ?man arguments: target [name]
7 // ?man create hard or symbolic links between files
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -552,7 +552,7 @@ usage(void)
2 }
3 
4 // ?man ls: list directory contents
5-// ?man arguments: [file ...
6+// ?man arguments: [file ...]
7 // ?man list information about files and directories
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -24,7 +24,7 @@ usage(void)
2 }
3 
4 // ?man nice: run command with modified priority
5-// ?man arguments: cmd [arg ...
6+// ?man arguments: cmd [arg ...]
7 // ?man run a command with modified scheduling priority
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -17,7 +17,7 @@ usage(void)
2 }
3 
4 // ?man nohup: run command immune to hangups
5-// ?man arguments: cmd [arg ...
6+// ?man arguments: cmd [arg ...]
7 // ?man run a command that persists after logging out
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -75,7 +75,7 @@ usage(void)
2 }
3 
4 // ?man printf: format and print data
5-// ?man arguments: format [arg ...
6+// ?man arguments: format [arg ...]
7 // ?man format and print arguments to standard output
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -1750,7 +1750,7 @@ old_next(void)
2 }
3 
4 // ?man sed: stream editor
5-// ?man arguments: script [file ...
6+// ?man arguments: script [file ...]
7 // ?man stream editor for filtering and transforming text
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -17,7 +17,7 @@ usage(void)
2 }
3 
4 // ?man time: time command execution
5-// ?man arguments: cmd [arg ...
6+// ?man arguments: cmd [arg ...]
7 // ?man run a command and report its execution duration
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -190,7 +190,7 @@ usage(void)
2 }
3 
4 // ?man tr: translate characters
5-// ?man arguments: set1 [set2
6+// ?man arguments: set1 [set2]
7 // ?man translate, squeeze, or delete characters from standard input
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -99,7 +99,7 @@ usage(void)
2 }
3 
4 // ?man uuencode: encode binary file
5-// ?man arguments: file] name
6+// ?man arguments: [file] name
7 // ?man encode a binary file into ascii text
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -14,7 +14,7 @@ usage(void)
2 }
3 
4 // ?man chroot: run command in new root
5-// ?man arguments: dir [cmd [arg ...
6+// ?man arguments: dir [cmd [arg ...]]
7 // ?man run a command or shell with a substitute root directory
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -18,7 +18,7 @@ usage(void)
2 }
3 
4 // ?man flock: manage locks
5-// ?man arguments: file cmd [arg ...
6+// ?man arguments: file cmd [arg ...]
7 // ?man acquire or release locks from shell scripts
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -27,7 +27,7 @@ usage(void)
2 }
3 
4 // ?man getty: set terminal mode
5-// ?man arguments: tty] [term] [cmd] [args...
6+// ?man arguments: tty [term] [cmd] [args ...]
7 // ?man set terminal line discipline, speed, and mode
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -32,7 +32,7 @@ usage(void)
2 }
3 
4 // ?man respawn: restart command on exit
5-// ?man arguments: cmd [args...
6+// ?man arguments: cmd [args ...]
7 // ?man run a command and restart it automatically when it exits
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -15,7 +15,7 @@ usage(void)
2 }
3 
4 // ?man setsid: run in new session
5-// ?man arguments: cmd [arg ...
6+// ?man arguments: cmd [arg ...]
7 // ?man run a program in a new session
8 int
9 main(int argc, char *argv[])
+1, -1
1@@ -801,7 +801,7 @@ usage(void)
2 }
3 
4 // ?man tar: tape archiver
5-// ?man arguments: x | t | -x | -t] [file ...
6+// ?man arguments: [x | t | -x | -t] [file ...]
7 // ?man tar [c | -c] [-C dir] [-J | -Z | -a | -j | -z] [-h] [-T file] [-X file] path ... [-f file]
8 // ?man manipulate tape archive files
9 int