summaryrefslogtreecommitdiff
path: root/cdbdump.1
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2024-01-15 13:35:27 -0500
committerSam Nystrom <sam@samnystrom.dev>2024-01-15 13:35:27 -0500
commit2bdd00aa69b901e5230c9b8c24727011626ebeaa (patch)
tree27967a3ccc64ac477cb0336f4e61282e8ab832ff /cdbdump.1
Diffstat (limited to 'cdbdump.1')
-rw-r--r--cdbdump.139
1 files changed, 39 insertions, 0 deletions
diff --git a/cdbdump.1 b/cdbdump.1
new file mode 100644
index 0000000..3534ee2
--- /dev/null
+++ b/cdbdump.1
@@ -0,0 +1,39 @@
+.Dd $Mdocdate$
+.Dt CDBDUMP 1
+.Os
+.Sh NAME
+.Nm cdbdump
+.Nd print the contents of a cdb
+.Sh SYNOPSIS
+.Nm
+<
+.Ar CDB
+.Sh DESCRIPTION
+.Nm
+prints the contents of a
+.Xr cdb 5
+read from stdin in a simple, unambiguous format.
+For each record in the cdb,
+.Nm
+writes a record to stdout of the form:
+.Dl +klen,dlen:key->data
+followed by a newline.
+The keys and data may contain null bytes, newlines,
+or any other arbitrary binary data.
+.Sh EXIT STATUS
+.Bl -tag
+.It 0
+Success.
+.It 100
+Wrong usage.
+.It 111
+System call failed.
+.El
+.Sh SEE ALSO
+.Xr cdb 5 ,
+.Xr cdbget 1 ,
+.Xr cdbmake 1
+.Sh AUTHORS
+.An Sam Nystrom Ao Mt sam@samnystrom.dev Ac
+.An D. J. Bernstein (cdb and cdbmake formats, original cdbdump program)
+.An Laurent Bercot (cdb read/write library)