lib: add safe_setsockopt/send/sendto functions

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
3 files changed