-Fix so getoptinfo() is in conformance with socket api (it  can be used on any read socketopt). -Clean up of sendmsg call and make it conformant when no syscall  is available.
-Fix so getoptinfo() is in conformance with socket api (it
 can be used on any read socketopt).
-Clean up of sendmsg call and make it conformant when no syscall
 is available.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase