X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=doc%2Fzpm-soname.8;fp=doc%2Fzpm-soname.8;h=2ed9ba9503029fee3cc7c57cac05a705aa2b0796;hb=bd21f0a1265b43ad5f05353a39db31c16826f05c;hp=0000000000000000000000000000000000000000;hpb=62f6ff407bc4f2cf03d1fa7cf3dc9a3f4026624a;p=zpackage diff --git a/doc/zpm-soname.8 b/doc/zpm-soname.8 new file mode 100644 index 0000000..2ed9ba9 --- /dev/null +++ b/doc/zpm-soname.8 @@ -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)