svc_mt.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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.
*/
#ifndef _RPC_SVC_MT_H
#define _RPC_SVC_MT_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <synch.h> /* needed for mutex_t declaration */
/*
* Private service definitions
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* SVC flags
*/
/*
* Copy of GSS parameters, needed for MT operation
*/
typedef struct {
void *context;
/*
* Interface to server-side authentication flavors, may vary with
* each request.
*
* NOTE: This structure is part of an interface, and must not change.
*/
typedef struct {
struct svc_auth_ops {
int (*svc_ah_wrap)();
int (*svc_ah_unwrap)();
} svc_ah_ops;
} SVCAUTH;
/*
* The xp_p3 field the the service handle points to the SVCXPRT_EXT
* extension structure.
*/
typedef struct svcxprt_list_t {
struct svcxprt_list_t *next;
} SVCXPRT_LIST;
typedef struct svcxprt_ext_t {
int flags; /* VERSQUIET, DEFUNCT flag */
char *cred_area; /* auth work area */
int refcnt; /* number of parent references */
} SVCXPRT_EXT;
/*
*/
extern SVCXPRT **svc_xports;
extern int svc_mt_mode;
extern mutex_t svc_thr_mutex;
extern cond_t svc_thr_fdwait;
extern int svc_nfds;
extern int svc_nfds_set;
extern int svc_max_fd;
extern mutex_t svc_exit_mutex;
extern int svc_pipe[2];
extern bool_t svc_polling;
void svc_xprt_free();
void svc_xprt_destroy();
void svc_dg_xprtfree();
void svc_vc_xprtfree();
void svc_fd_xprtfree();
void svc_door_xprtfree();
void svc_args_done();
void _svc_dg_destroy_private();
void _svc_vc_destroy_private();
void _svc_destroy_private();
#define RPC_DOOR_DIR "/var/run/rpc_door"
#define RPC_DOOR_RENDEZVOUS "/var/run/rpc_door/rpc_%d.%d"
#ifdef __cplusplus
}
#endif
#endif /* !_RPC_SVC_MT_H */