2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _GETXBY_DOOR_H
2N/A#define _GETXBY_DOOR_H
2N/A
2N/A/*
2N/A * Definitions for client side of doors-based name service caching
2N/A */
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A#include <grp.h>
2N/A#include <pwd.h>
2N/A#include <nss_common.h>
2N/A
2N/A/*
2N/A * nscd version 2 doors interfaces
2N/A * The known, but private NAME_SERVICE_DOOR, filesystem name remains
2N/A * the same, even though the transfer contents is significantly different.
2N/A */
2N/A
2N/A#define NAME_SERVICE_DOOR_V2 2
2N/A#define NAME_SERVICE_DOOR_VERSION 2
2N/A#ifndef NAME_SERVICE_DOOR
2N/A#define NAME_SERVICE_DOOR _PATH_SYSVOL "/name_service_door"
2N/A#endif
2N/A#define NAME_SERVICE_DOOR_COOKIE ((void*)(0xdeadbeef^NAME_SERVICE_DOOR_VERSION))
2N/A
2N/A/*
2N/A * internal APIs
2N/A */
2N/A
2N/Anss_status_t _nsc_trydoorcall(void **dptr, size_t *bsize, size_t *dsize);
2N/Anss_status_t _nsc_trydoorcall_ext(void **dptr, size_t *bsize, size_t *dsize);
2N/Aint _nsc_getdoorbuf(void **dptr, size_t *bsize);
2N/Avoid _nsc_resizedoorbuf(size_t bsize);
2N/Aint _nsc_proc_is_cache(void);
2N/A
2N/A
2N/Astruct passwd *
2N/A_uncached_getpwuid_r(uid_t uid, struct passwd *result, char *buffer,
2N/A int buflen);
2N/A
2N/Astruct passwd *
2N/A_uncached_getpwnam_r(const char *name, struct passwd *result, char *buffer,
2N/A int buflen);
2N/A
2N/Astruct group *
2N/A_uncached_getgrnam_r(const char *name, struct group *result, char *buffer,
2N/A int buflen);
2N/A
2N/Astruct group *
2N/A_uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen);
2N/A
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A
2N/A#endif /* _GETXBY_DOOR_H */