Based on a page from Tomáš Pospíšek, with some clean-ups by mtk. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>