/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
#include <syslog.h>
#include <smbsrv/smb_ioctl.h>
#include "smbd.h"
#include <libfakekernel/fakekernel.h>
"emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"
};
/*
* Provide a replacement for libsmb:smb_vsyslog() that just
* prints the messages to stdout for "fksmbd" debugging.
*/
void
{
char *newfmt;
pri &= LOG_PRIMASK;
return;
/* LINTED E_SEC_PRINTF_VAR_FMT */
}
/*
* Provide a real function (one that prints something) to replace
* the stub in libfakekernel. This prints cmn_err() messages.
*/
void
{
/*
* [CE_CONT, CE_NOTE, CE_WARN, CE_PANIC] maps to
* [SL_NOTE, SL_NOTE, SL_WARN, SL_FATAL]
*/
return;
}
/*
* Initialization function called at the start of fksmbd:main().
* Call an empty function in both of libfksmbsrv, libfakekernel,
* just to force them to load so we can set breakpoints in them
* without debugger forceload tricks. This also avoids elfchk
* complaints from libfakekernel, which we don't call directly
* except for here.
*/
void
fksmbd_init(void)
{
}