/*
* 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 <strings.h>
#include <fcntl.h>
#include <unistd.h>
#include <libnvpair.h>
#include <door.h>
#include <errno.h>
#include <alloca.h>
#include "smbfs_lib.h"
/*
* Request the creation of our per-user smbiod
* via door call to the "main" IOD service.
*/
int
smbfs_iod_start(void)
{
int err;
return (err);
return (err);
}
return (rc);
}
/*
* Adds passwd info to the smbfspasswd file.
*/
int
{
int err;
return (EINVAL);
return (err);
return (err);
}
return (rc);
}
/*
* Removes passwd info(s) from the smbfspasswd file. If pwdinfo is NULL,
* removes all passwd info for the same user ID.
*/
int
{
else
return (err);
return (err);
}
return (rc);
}
/*
* Decodes the door call arguments which is encoded in a buffer via
* nvlist_pack(). The packed data contains the command and may contain
* password info.
*
* Returns the command and password info if a buffer is supplied to store
* the password info.
*/
int
{
int err;
return (err);
return (err);
}
return (EINVAL);
}
}
return (0);
}
/*
* Encodes the door arguments, the command and password info, if supplied.
*
* To have the nvpair library allocate memory for the pack data, the caller
* should set the buf pointer to NULL. The memory then should be freed by
* the caller.
*/
static int
{
int err;
return (err);
} else {
}
SMBIOC_HASH_SZ) != 0) ||
SMBIOC_HASH_SZ) != 0)) {
return (EINVAL);
}
return (err);
}
return (err);
}
static int
{
if (fd < 0) {
return (err);
}
if (rc < 0) {
return (err);
}
return (0);
}