[hackers] [ubase] add unshare.1, swapon.8, swapoff.8 and update df.1 || s-p-k

From: <git_AT_suckless.org>
Date: Sat, 12 Apr 2014 20:37:11 +0200

commit 9394409235203113bee25c86ec4ea7b96cc0056e
Author: s-p-k <mr.dwts_AT_gmail.com>
Date: Sat Apr 12 20:13:34 2014 +0300

    add unshare.1, swapon.8, swapoff.8 and update df.1

diff --git a/df.1 b/df.1
index 87a55c3..8d447de 100644
--- a/df.1
+++ b/df.1
_AT_@ -9,7 +9,8 @@ If no arguments are given, df shows all the file systems using 512-byte
 blocks.
 .SH OPTIONS
 .TP
- B-a R Show all file systems including dummy ones.
+ B-a R Show all file systems including dummy ones. This is the default
+option.
 .TP
  B-h R Not implemented.
 .TP
diff --git a/swapoff.8 b/swapoff.8
new file mode 100644
index 0000000..aa9518a
--- /dev/null
+++ b/swapoff.8
_AT_@ -0,0 +1,11 @@
+.TH SWAPOFF 8 ubase-VERSION
+.SH NAME
+ Bswapoff R - disable devices and files for paging and swapping
+.SH SYNOPSIS
+ Bswapoff R [ B-a I device R]
+.SH DESCRIPTION
+ Bswapoff R disables swapping on the specified devices and files.
+.SH OPTIONS
+.TP
+ B-a R
+Disable swapping on all known swap devices and files as found in /etc/fstab.
diff --git a/swapon.8 b/swapon.8
new file mode 100644
index 0000000..fe28035
--- /dev/null
+++ b/swapon.8
_AT_@ -0,0 +1,19 @@
+.TH SWAPON 8 ubase-VERSION
+.SH NAME
+ Bswapon R - enable devices and files for paging and swapping
+.SH SYNOPSIS
+ Bswapon R [ B-dp R] [ B-a I device R]
+.SH DESCRIPTION
+ Bswapon R is used to specify devices on which paging and
+swapping are to take place.
+.SH OPTIONS
+.TP
+ B-d R
+Discard freed swap pages before they are reused.
+.TP
+ B-p R
+Set higher priority than the default to the new swap area.
+.TP
+ B-a R
+Make all devices marked as ``swap'' in /etc/fstab are made
+available, except for those with the ``noauto'' option.
diff --git a/unshare.1 b/unshare.1
new file mode 100644
index 0000000..40028a2
--- /dev/null
+++ b/unshare.1
_AT_@ -0,0 +1,36 @@
+.TH UNSHARE 1 ubase-VERSION
+.SH NAME
+ Bunshare R - run program with some namespaces unshared from parent
+.SH SYNOPSIS
+ Bunshare R [ B-muinpU R] cmd [ Iargs... R]
+.SH DESCRIPTION
+ Bunshare R
+Unshares the indicated namespaces from the parent process
+and then executes the specified program. The namespaces to be unshared are
+indicated via options.
+.SH OPTIONS
+.TP
+ B-m R
+Unshare the mount namespace, so that the calling process has a private
+copy of its namespace which is not shared with any other process.
+.TP
+ B-u R
+Unshare the UTS IPC namespace, so that the calling process has a
+private copy of the UTS namespace which is not shared with any other
+process.
+.TP
+ B-i R
+Unshare the System V IPC namespace, so that the calling process has a
+private copy of the System V IPC namespace which is not shared with
+any other process.
+.TP
+ B-n R
+Unshare the network namespace, so that the calling process is moved
+into a new network namespace which is not shared with any previously
+existing process.
+.TP
+ B-p R
+Create the process in a new PID namespace.
+.TP
+ B-U R
+The process will have a distinct set of UIDs, GIDs and capabilities.
Received on Sat Apr 12 2014 - 20:37:11 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 12 2014 - 20:48:12 CEST