/*
* 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
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
/*
*/
#if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
#include <errno.h>
#include <string.h>
#include <strings.h>
#else
#endif
#include <smbsrv/wintypes.h>
#include <smbsrv/smb_share.h>
#include <smbsrv/smb_door.h>
{
if (ctx) {
}
return (ctx);
}
int
{
return (status);
}
{
if (ctx) {
}
return (ctx);
}
int
{
if (status == 0) {
/*LINTED E_PTRDIFF_OVERFLOW*/
} else {
}
}
return (status);
}
{
} else {
}
}
return (num);
}
{
} else {
}
}
return (num);
}
{
}
char *
{
if (len == -1)
return (buf);
if (buf) {
if (len == 0) {
} else {
}
} else {
#if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
#else
#endif
}
} else {
}
}
return (buf);
}
void
{
} else {
}
}
}
void
{
} else {
}
}
}
void
{
}
void
{
int len;
if (!buf)
len = -1;
else
if (len <= 0)
return;
} else {
}
}
}
void
{
if (buf)
}
{
} else {
}
}
return (num);
}
{
}
void
{
} else {
}
}
}
void
{
}
void
{
} else {
}
}
}
short
{
short num = 0;
} else {
}
}
return (num);
}
void
{
}
unsigned short
{
return ((unsigned short)smb_dr_get_short(ctx));
}
void
{
}
{
return (smb_dr_get_ushort(ctx));
}
void
{
} else {
}
}
}
{
} else {
}
}
return (byte);
}
void
{
} else {
}
}
}
int
{
if (!buf)
return (-1);
return (-2);
}
} else {
return (-3);
}
}
return (len);
}
void
{
if (smb_dr_get_int32(ctx)) {
} else {
}
} else {
}
}
void
{
if (si) {
} else {
}
} else {
smb_dr_put_int32(ctx, 0);
}
}