summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-07 21:33:10 -0400
committerJune McEnroe <june@causal.agency>2018-09-07 21:33:10 -0400
commitc958e0017f9595374cdd7bc3921a429b1f65c279 (patch)
treec0f749efb3bf388f346268ecc856939fc7c5b486
parentAdd watch.1 (diff)
downloadsrc-c958e0017f9595374cdd7bc3921a429b1f65c279.tar.gz
src-c958e0017f9595374cdd7bc3921a429b1f65c279.zip
Add xx.1
-rw-r--r--bin/xx.149
1 files changed, 49 insertions, 0 deletions
diff --git a/bin/xx.1 b/bin/xx.1
new file mode 100644
index 00000000..3eabe9d7
--- /dev/null
+++ b/bin/xx.1
@@ -0,0 +1,49 @@
+.Dd $Mdocdate$
+.Dt XX 1
+.Os "Causal Agency"
+.Sh NAME
+.Nm xx
+.Nd hexdump
+.Sh SYNOPSIS
+.Nm
+.Op Fl arsz
+.Op Fl c Ar cols
+.Op Fl g Ar group
+.Op Ar file
+.Sh DESCRIPTION
+.Nm
+dumps the contents of a
+.Ar file
+or standard input
+in hexadecimal format.
+.Pp
+The arguments are as follows:
+.Bl -tag -width Ds
+.It Fl a
+Toggle ASCII output.
+.It Fl c Ar cols
+Output
+.Ar cols
+bytes per line.
+The default
+.Ar cols
+is 16.
+.It Fl g Ar group
+Output extra space after every
+.Ar group
+bytes.
+The default
+.Ar group
+is 8.
+.It Fl r
+Reverse hexdump.
+Read hexadecimal input
+and write byte output.
+.It Fl s
+Toggle offset output.
+.It Fl z
+Skip output of lines containing only zeros.
+.El
+.Sh SEE ALSO
+.Xr hexdump 1 ,
+.Xr xxd 1
5a9ad Signed-off-by: Christian Hesse <mail@eworm.de> 2018-09-11ui-log: ban strcpy()Christian Hesse Git upstream bans strcpy() with commit: automatically ban strcpy() c8af66ab8ad7cd78557f0f9f5ef6a52fd46ee6dd Signed-off-by: Christian Hesse <mail@eworm.de> 2018-09-11parsing: ban sprintf()Christian Hesse Git upstream bans sprintf() with commit: banned.h: mark sprintf() as banned cc8fdaee1eeaf05d8dd55ff11f111b815f673c58 Signed-off-by: Christian Hesse <mail@eworm.de> 2018-09-11parsing: ban strncpy()Christian Hesse Git upstream bans strncpy() with commit: banned.h: mark strncpy() as banned e488b7aba743d23b830d239dcc33d9ca0745a9ad Signed-off-by: Christian Hesse <mail@eworm.de> 2018-08-28filters: generate anchor links from markdownChristian Hesse This makes the markdown filter generate anchor links for headings. Signed-off-by: Christian Hesse <mail@eworm.de> Tested-by: jean-christophe manciot <actionmystique@gmail.com> 2018-08-03Bump version.Jason A. Donenfeld Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2018-08-03clone: fix directory traversalJason A. Donenfeld This was introduced in the initial version of this code, way back when in 2008. $ curl http://127.0.0.1/cgit/repo/objects/?path=../../../../../../../../../etc/passwd root:x:0:0:root:/root:/bin/sh ... Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Reported-by: Jann Horn <jannh@google.com> 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev