/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <bsm/audit_record.h>
#include "praudit.h"
/*
* pr_adr_char - pull out characters
*/
int
{
int err;
if (err) {
return (-1);
} else
return (0);
}
/* adrm routines don't return error, so check before calling */
return (-1);
}
return (0);
}
/*
* pr_adr_short - pull out shorts
*/
int
{
int err;
if (err) {
return (-1);
} else
return (0);
}
/* adrm routines don't return error, so check before calling */
return (-1);
}
return (0);
}
/*
* pr_adr_int32 - pull out int32
*/
int
{
int err;
if (err) {
return (-1);
} else
return (0);
}
/* adrm routines don't return error, so check before calling */
return (-1);
}
return (0);
}
int
{
int err;
if (err) {
return (-1);
} else
return (0);
}
/* adrm routines don't return error, so check before calling */
return (-1);
}
return (0);
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
(void) putchar(c);
return (0);
}
/* Buffer-based output processing otherwise... */
/* Need at least room for char + null-byte */
/* no space left */
return (-1);
}
return (0);
}
int
{
int addlen;
return (0);
}
/* Buffer-based output processing otherwise... */
/* no space at all left */
return (-1);
}
/* Attempt to tack on this string */
if (addlen < 0) {
/* output error */
return (-1);
}
/* not enough space; bail out */
return (-1);
}
/*
* vsnprintf was successful; update pointers and counters
* as needed. If no bytes were written, treat it as a no-op
* and don't need to update anything.
*/
if (addlen >= 1) {
}
return (0);
}
/*
* pr_input_remaining - Check whether size bytes (or more) are remaining in
* the inbuf.
* returns 1 - there are enough bytes remaining
* 0 - not enough bytes left
*/
int
{
/* no-op if not doing buf mode */
return (1);
return (0);
else
return (1);
}