[os_net] declare local variables and functions static
[os_net] add const qualifiers
[os_net] use u_int16_t for ports, mode_t for chmod-mode, and fix some conversion warnings
[os_net] adding nonnull qualifiers and comment out unimplemented function declaration
Merge pull request #304 from cgzones/os_net_fixes

os_net fixes