]> pd.if.org Git - zpackage/blobdiff - doc/zpm-soname.8
expand docs
[zpackage] / doc / zpm-soname.8
diff --git a/doc/zpm-soname.8 b/doc/zpm-soname.8
new file mode 100644 (file)
index 0000000..2ed9ba9
--- /dev/null
@@ -0,0 +1,60 @@
+.TH zpm-soname 8 2019-02-14 "ZPM 0.4"
+.SH NAME
+zpm-soname \- list the soname of an elf library
+.SH SYNOPSIS
+.B zpm soname \fR[\fB-l\fR] \fIpath\fR
+.SH DESCRIPTION
+\fBzpm-soname\fR prints to stdout the soname, if any, of a given path.
+.SH OPTIONS
+.TP
+\-l
+Don't follow symlinks.  If the path is a symlink, this will cause the program
+to exit with status 1.
+.SH EXAMPLES
+.PP
+.nf
+zpm-soname /lib/libc.so
+.fi
+.SH EXIT STATUS
+.TP
+0
+if the file had an soname
+.TP
+1
+file is not a regular file, or unable to stat, no file given, or other file
+error
+.TP
+2
+unable map file to read elf info
+.TP
+3
+file is not an elf file
+.TP
+4
+file is not an dynamic library file
+.TP
+5
+unable to determine 64 or 32 bit elf file
+.TP
+6
+unable to determine endianness
+.TP
+8
+File has no string table
+.TP
+9
+File has no dynamic section
+.TP
+10
+File has no dynamic table
+.TP
+11
+No soname found in dynamic table
+.SH FILES
+None
+.SH ENVIRONMENT
+None
+.SH AUTHOR
+Nathan Wagner
+.SH SEE ALSO
+zpm(8)