/*
* 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 <sys/sysmacros.h>
#include <smbsrv/smb_kproto.h>
typedef struct smb_mem_header {
/*
* Allocate memory.
*/
void *
{
}
/*
* Allocate memory and zero it out.
*/
void *
{
}
/*
* Allocate or resize memory previously allocated.
*
* The address passed in MUST be considered invalid when this function returns.
*/
void *
{
}
/*
* Allocate or resize memory previously allocated. If the new size is greater
* than the current size, the extra space is zeroed out. If the new size is less
* then the current size the space truncated is zeroed out.
*
* The address passed in MUST be considered invalid when this function returns.
*/
void *
{
}
/*
* Free memory previously allocated with smb_malloc(), smb_zalloc(),
* smb_remalloc() or smb_rezalloc().
*/
void
{
}
/*
* Free memory previously allocated with smb_mem_malloc(), smb_mem_zalloc(),
* smb_mem_remalloc() or smb_mem_rezalloc() or smb_mem_strdup(). The memory will
* be zeroed out before being actually freed.
*/
void
{
}
/*
* Duplicate a string.
*/
char *
{
char *p;
return (p);
}
/*
* Initialize the list for request-specific temporary storage.
*/
void
{
}
/*
* Free everything on the request-specific temporary storage list and destroy
* the list.
*/
void
{
}
/*
* Allocate memory and associate it with the specified request.
* Memory allocated here can only be used for the duration of this request; it
* will be freed automatically on completion of the request.
*/
void *
{
}
/*
* Allocate memory, zero it out and associate it with the specified request.
* Memory allocated here can only be used for the duration of this request; it
* will be freed automatically on completion of the request.
*/
void *
{
}
/*
* Allocate or resize memory previously allocated for the specified request.
*
* The address passed in MUST be considered invalid when this function returns.
*/
void *
{
}
/*
* Allocate or resize memory previously allocated for the specified request. If
* the new size is greater than the current size, the extra space is zeroed out.
* If the new size is less then the current size the space truncated is zeroed
* out.
*
* The address passed in MUST be considered invalid when this function returns.
*/
void *
{
}
char *
{
char *p;
return (p);
}
/*
* Allocate memory.
*
* sr If not NULL, request the memory allocated must be associated with.
*
* size Size of the meory to allocate.
*
* zero If true the memory allocated will be zeroed out.
*/
static void *
{
if (zero) {
} else {
}
}
return (++smh);
}
/*
* Free memory.
*
* sr If not NULL, request the memory to free is associated with.
*
* ptr Memory address
*
* zero If true the memory is zeroed out before being freed.
*/
static void
{
}
if (zero)
}
}
/*
* Allocate or resize memory previously allocated.
*
* sr If not NULL, request the memory is associated with.
*
* ptr Memory address
*
* size New size
*
* zero If true zero out the extra space or the truncated space.
*/
static void *
{
void *new_ptr;
if (size == 0) {
return (NULL);
}
return (ptr);
}
if (zero)
return (new_ptr);
}