/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <string.h>
#include <link.h>
#include "_conv.h"
#include "audit_msg.h"
/*
* Ensure that Conv_la_bind_buf_t is large enough:
*
* BINDSZ is the real minimum size of the buffer required by conv_la_bind().
* However, Conv_la_bind_buf_t uses CONV_LA_BIND_BUFSIZE to set the
* buffer size. We do things this way because the definition of BINDSZ uses
* information that is not available in the environment of other programs
* that include the conv.h header file.
*/
#include "report_bufsize.h"
#error "CONV_LA_BIND_BUFSIZE does not match BINDSZ"
#endif
/*
* String conversion routine for la_objopen() return flags.
*/
const char *
{
{ 0, 0 }
};
if (bind == 0)
return (MSG_ORIG(MSG_GBL_ZERO));
return ((const char *)la_bind_buf->buf);
}
/*
* Ensure that Conv_la_search_buf_t is large enough:
*
* SEARCHSZ is the real minimum size of the buffer required by conv_la_search().
* However, Conv_la_search_buf_t uses CONV_LA_SEARCH_BUFSIZE to set the
* buffer size. We do things this way because the definition of SEARCHSZ uses
* information that is not available in the environment of other programs
* that include the conv.h header file.
*/
#include "report_bufsize.h"
#error "CONV_LA_SEARCH_BUFSIZE does not match SEARCHSZ"
#endif
/*
* String conversion routine for la_objsearch() flags.
*/
const char *
{
{ LA_SER_ORIG, MSG_LA_SER_ORIG },
{ 0, 0 }
};
if (search == 0)
return (MSG_ORIG(MSG_GBL_NULL));
return ((const char *)la_search_buf->buf);
}
/*
* String conversion routine for la_objopen() return flags.
*/
/*
* String conversion routine for la_activity() flags.
*/
const char *
{
MSG_LA_ACT_CONSISTENT, /* MSG_ORIG(MSG_LA_ACT_CONSISTENT) */
MSG_LA_ACT_ADD, /* MSG_ORIG(MSG_LA_ACT_ADD) */
MSG_LA_ACT_DELETE /* MSG_ORIG(MSG_LA_ACT_DELETE) */
};
inv_buf));
}
/*
* Ensure that Conv_la_symbind_buf_t is large enough:
*
* SYMBSZ is the real minimum size of the buffer required by conv_la_symbind().
* However, Conv_la_symbind_buf_t uses CONV_LA_SYMB_BUFSIZE to set the
* buffer size. We do things this way because the definition of SYMBSZ uses
* information that is not available in the environment of other programs
* that include the conv.h header file.
*/
#include "report_bufsize.h"
#error "CONV_LA_SYMBIND_BUFSIZE does not match SYMBSZ"
#endif
/*
* String conversion routine for la_symbind() flags.
*/
const char *
{
{ 0, 0 }
};
if (symbind == 0)
return (MSG_ORIG(MSG_GBL_NULL));
return ((const char *)la_symbind_buf->buf);
}