/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <assert.h>
#include <door.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ucred.h>
#include "repcache_protocol.h"
#include "configd.h"
/*ARGSUSED*/
static void
{
int send_desc = 0;
int fd;
if (argp == DOOR_UNREF_DATA) {
backend_fini();
}
/*
* No file descriptors allowed
*/
/*
* first, we just check the version
*/
goto fail;
}
/* LINTED alignment */
goto fail;
}
/*
* Now, check that the argument is of the minimum required size
*/
goto fail;
}
goto fail;
}
switch (request->rdr_request) {
fd = -1;
goto fail;
}
send_desc = 1;
break;
default:
goto fail;
}
fail:
}
int
{
int fd;
#ifdef DOOR_NO_CANCEL
#endif
door_flags)) < 0) {
perror("door_create");
return (0);
}
#ifdef DOOR_PARAM_DATA_MIN
sizeof (repository_door_request_t)) == -1) {
perror("door_setparam");
return (0);
}
#endif /* DOOR_PARAM_DATA_MIN */
/*
* Create the file if it doesn't exist. Ignore errors, since
* fattach(3C) will catch any real problems.
*/
if (fd >= 0)
perror("fattach");
(void) door_revoke(main_door_fd);
main_door_fd = -1;
return (0);
}
}
return (1);
}