1.\"- 2.\" Copyright (c) 2008 Apple Inc. 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27.\" POSSIBILITY OF SUCH DAMAGE. 28.\" |
29.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_domain.3#2 $ |
30.\" 31.Dd December 28, 2008 32.Dt AU_BSM_TO_DOMAIN 3 33.Os 34.Sh NAME 35.Nm au_bsm_to_domain , 36.Nm au_domain_to_bsm 37.Nd "convert between BSM and local protocol domains" --- 16 unchanged lines hidden (view full) --- 54.Xr socket 2 , 55that will be stored in the integer pointed to by 56.Fa local_domainp 57if successful. 58This call will fail if the BSM domain cannot be mapped into a local domain, 59which may occur if the socket token was generated on another operating 60system. 61.Pp |
62The |
63.Fn au_domain_to_bsm 64function accepts a local domain, and returns the BSM domain for it. 65This call cannot fail, and instead returns a BSM domain indicating to a later 66decoder that the domain could not be encoded. 67.Sh RETURN VALULES 68On success, 69.Fn au_bsm_to_domain 70returns 0 and a converted domain; on failure, it returns -1 but does not set --- 18 unchanged lines hidden --- |