Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/openbsm/libbsm/au_socket_type.3
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
This call will fail if the BSM socket type cannot be mapped into a local | This call will fail if the BSM socket type cannot be mapped into a local | ||||
socket type, which may occur if the socket token was generated on another | socket type, which may occur if the socket token was generated on another | ||||
operating system. | operating system. | ||||
.Pp | .Pp | ||||
.Fn au_socket_type_to_bsm | .Fn au_socket_type_to_bsm | ||||
function accepts a local socket type, and returns the BSM socket type for it. | function accepts a local socket type, and returns the BSM socket type for it. | ||||
This call cannot fail, and instead returns a BSM socket type indicating to a | This call cannot fail, and instead returns a BSM socket type indicating to a | ||||
later decoder that the socket type could not be encoded. | later decoder that the socket type could not be encoded. | ||||
.Sh RETURN VALULES | .Sh RETURN VALUES | ||||
On success, | On success, | ||||
.Fn au_bsm_to_socket_type | .Fn au_bsm_to_socket_type | ||||
returns 0 and a converted socket type; on failure, it returns -1 but does not | returns 0 and a converted socket type; on failure, it returns -1 but does not | ||||
set | set | ||||
.Xr errno 2 . | .Xr errno 2 . | ||||
.Pp | .Pp | ||||
On success, | On success, | ||||
.Fn au_strerror | .Fn au_strerror | ||||
Show All 19 Lines |