1/* 2 * Copyright (c) 2010 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. Neither the name of Apple Inc. ("Apple") nor the names of its 16 * contributors may be used to endorse or promote products derived from 17 * this software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 20 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * 30 * Portions of this software have been released under the following terms: 31 * 32 * (c) Copyright 1989-1993 OPEN SOFTWARE FOUNDATION, INC. 33 * (c) Copyright 1989-1993 HEWLETT-PACKARD COMPANY 34 * (c) Copyright 1989-1993 DIGITAL EQUIPMENT CORPORATION 35 * 36 * To anyone who acknowledges that this file is provided "AS IS" 37 * without any express or implied warranty: 38 * permission to use, copy, modify, and distribute this file for any 39 * purpose is hereby granted without fee, provided that the above 40 * copyright notices and this notice appears in all source code copies, 41 * and that none of the names of Open Software Foundation, Inc., Hewlett- 42 * Packard Company or Digital Equipment Corporation be used 43 * in advertising or publicity pertaining to distribution of the software 44 * without specific, written prior permission. Neither Open Software 45 * Foundation, Inc., Hewlett-Packard Company nor Digital 46 * Equipment Corporation makes any representations about the suitability 47 * of this software for any purpose. 48 * 49 * Copyright (c) 2007, Novell, Inc. All rights reserved. 50 * Redistribution and use in source and binary forms, with or without 51 * modification, are permitted provided that the following conditions 52 * are met: 53 * 54 * 1. Redistributions of source code must retain the above copyright 55 * notice, this list of conditions and the following disclaimer. 56 * 2. Redistributions in binary form must reproduce the above copyright 57 * notice, this list of conditions and the following disclaimer in the 58 * documentation and/or other materials provided with the distribution. 59 * 3. Neither the name of Novell Inc. nor the names of its contributors 60 * may be used to endorse or promote products derived from this 61 * this software without specific prior written permission. 62 * 63 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 64 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 65 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 66 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY 67 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 68 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 69 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 70 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 71 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 72 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 73 * 74 * @APPLE_LICENSE_HEADER_END@ 75 */ 76 77/* 78** NAME: 79** 80** rpcexc.h 81** 82** FACILITY: 83** 84** Remote Procedure Call 85** 86** ABSTRACT: 87** 88** Include file to make NIDL exceptions visible to user code 89** 90** %a%private_begin 91** 92** 93** %a%private_end 94** 95*/ 96 97#ifndef RPCEXC_H 98#define RPCEXC_H 1 99 100#include <dce/dcethread.h> 101 102#ifndef HAS_GLOBALDEFS 103#define RPC_EXTERN_EXCEPTION extern dcethread_exc 104#else 105#define RPC_EXTERN_EXCEPTION globalref dcethread_exc 106#endif /* HAS_GLOBALDEFS */ 107 108/* DG and common errors */ 109 110RPC_EXTERN_EXCEPTION rpc_x_assoc_grp_not_found; 111RPC_EXTERN_EXCEPTION rpc_x_call_timeout; 112RPC_EXTERN_EXCEPTION rpc_x_cancel_timeout; 113RPC_EXTERN_EXCEPTION rpc_x_coding_error; 114RPC_EXTERN_EXCEPTION rpc_x_comm_failure; 115RPC_EXTERN_EXCEPTION rpc_x_context_id_not_found; 116RPC_EXTERN_EXCEPTION rpc_x_endpoint_not_found; 117RPC_EXTERN_EXCEPTION rpc_x_in_args_too_big; 118RPC_EXTERN_EXCEPTION rpc_x_invalid_binding; 119RPC_EXTERN_EXCEPTION rpc_x_invalid_bound; 120RPC_EXTERN_EXCEPTION rpc_x_invalid_call_opt; 121RPC_EXTERN_EXCEPTION rpc_x_invalid_naf_id; 122RPC_EXTERN_EXCEPTION rpc_x_invalid_rpc_protseq; 123RPC_EXTERN_EXCEPTION rpc_x_invalid_tag; 124RPC_EXTERN_EXCEPTION rpc_x_invalid_timeout; 125RPC_EXTERN_EXCEPTION rpc_x_manager_not_entered; 126RPC_EXTERN_EXCEPTION rpc_x_max_descs_exceeded; 127RPC_EXTERN_EXCEPTION rpc_x_no_fault; 128RPC_EXTERN_EXCEPTION rpc_x_no_memory; 129RPC_EXTERN_EXCEPTION rpc_x_not_rpc_tower; 130RPC_EXTERN_EXCEPTION rpc_x_object_not_found; 131RPC_EXTERN_EXCEPTION rpc_x_op_rng_error; 132RPC_EXTERN_EXCEPTION rpc_x_protocol_error; 133RPC_EXTERN_EXCEPTION rpc_x_protseq_not_supported; 134RPC_EXTERN_EXCEPTION rpc_x_rpcd_comm_failure; 135RPC_EXTERN_EXCEPTION rpc_x_server_too_busy; 136RPC_EXTERN_EXCEPTION rpc_x_unknown_if; 137RPC_EXTERN_EXCEPTION rpc_x_unknown_error; 138RPC_EXTERN_EXCEPTION rpc_x_unknown_mgr_type; 139RPC_EXTERN_EXCEPTION rpc_x_unknown_reject; 140RPC_EXTERN_EXCEPTION rpc_x_unknown_remote_fault; 141RPC_EXTERN_EXCEPTION rpc_x_unsupported_type; 142RPC_EXTERN_EXCEPTION rpc_x_who_are_you_failed; 143RPC_EXTERN_EXCEPTION rpc_x_wrong_boot_time; 144RPC_EXTERN_EXCEPTION rpc_x_wrong_kind_of_binding; 145RPC_EXTERN_EXCEPTION uuid_x_getconf_failure; 146RPC_EXTERN_EXCEPTION uuid_x_internal_error; 147RPC_EXTERN_EXCEPTION uuid_x_no_address; 148RPC_EXTERN_EXCEPTION uuid_x_socket_failure; 149 150/* CN errors */ 151 152RPC_EXTERN_EXCEPTION rpc_x_access_control_info_inv; 153RPC_EXTERN_EXCEPTION rpc_x_assoc_grp_max_exceeded; 154RPC_EXTERN_EXCEPTION rpc_x_assoc_shutdown; 155RPC_EXTERN_EXCEPTION rpc_x_cannot_accept; 156RPC_EXTERN_EXCEPTION rpc_x_cannot_connect; 157RPC_EXTERN_EXCEPTION rpc_x_cant_inq_socket; 158RPC_EXTERN_EXCEPTION rpc_x_connect_closed_by_rem; 159RPC_EXTERN_EXCEPTION rpc_x_connect_no_resources; 160RPC_EXTERN_EXCEPTION rpc_x_connect_rejected; 161RPC_EXTERN_EXCEPTION rpc_x_connect_timed_out; 162RPC_EXTERN_EXCEPTION rpc_x_connection_aborted; 163RPC_EXTERN_EXCEPTION rpc_x_connection_closed; 164RPC_EXTERN_EXCEPTION rpc_x_host_unreachable; 165RPC_EXTERN_EXCEPTION rpc_x_invalid_endpoint_format; 166RPC_EXTERN_EXCEPTION rpc_x_loc_connect_aborted; 167RPC_EXTERN_EXCEPTION rpc_x_network_unreachable; 168RPC_EXTERN_EXCEPTION rpc_x_no_rem_endpoint; 169RPC_EXTERN_EXCEPTION rpc_x_rem_host_crashed; 170RPC_EXTERN_EXCEPTION rpc_x_rem_host_down; 171RPC_EXTERN_EXCEPTION rpc_x_rem_network_shutdown; 172RPC_EXTERN_EXCEPTION rpc_x_rpc_prot_version_mismatch; 173RPC_EXTERN_EXCEPTION rpc_x_string_too_long; 174RPC_EXTERN_EXCEPTION rpc_x_too_many_rem_connects; 175RPC_EXTERN_EXCEPTION rpc_x_tsyntaxes_unsupported; 176 177/* NS import routine errors */ 178 179RPC_EXTERN_EXCEPTION rpc_x_binding_vector_full; 180RPC_EXTERN_EXCEPTION rpc_x_entry_not_found; 181RPC_EXTERN_EXCEPTION rpc_x_group_not_found; 182RPC_EXTERN_EXCEPTION rpc_x_incomplete_name; 183RPC_EXTERN_EXCEPTION rpc_x_invalid_arg; 184RPC_EXTERN_EXCEPTION rpc_x_invalid_import_context; 185RPC_EXTERN_EXCEPTION rpc_x_invalid_inquiry_context; 186RPC_EXTERN_EXCEPTION rpc_x_invalid_inquiry_type; 187RPC_EXTERN_EXCEPTION rpc_x_invalid_lookup_context; 188RPC_EXTERN_EXCEPTION rpc_x_invalid_name_syntax; 189RPC_EXTERN_EXCEPTION rpc_x_invalid_object; 190RPC_EXTERN_EXCEPTION rpc_x_invalid_vers_option; 191RPC_EXTERN_EXCEPTION rpc_x_name_service_unavailable; 192RPC_EXTERN_EXCEPTION rpc_x_no_env_setup; 193RPC_EXTERN_EXCEPTION rpc_x_no_more_bindings; 194RPC_EXTERN_EXCEPTION rpc_x_no_more_elements; 195RPC_EXTERN_EXCEPTION rpc_x_not_found; 196RPC_EXTERN_EXCEPTION rpc_x_not_rpc_entry; 197RPC_EXTERN_EXCEPTION rpc_x_obj_uuid_not_found; 198RPC_EXTERN_EXCEPTION rpc_x_profile_not_found; 199RPC_EXTERN_EXCEPTION rpc_x_unsupported_name_syntax; 200 201/* Authentication errors */ 202 203RPC_EXTERN_EXCEPTION rpc_x_auth_bad_integrity; 204RPC_EXTERN_EXCEPTION rpc_x_auth_badaddr; 205RPC_EXTERN_EXCEPTION rpc_x_auth_baddirection; 206RPC_EXTERN_EXCEPTION rpc_x_auth_badkeyver; 207RPC_EXTERN_EXCEPTION rpc_x_auth_badmatch; 208RPC_EXTERN_EXCEPTION rpc_x_auth_badorder; 209RPC_EXTERN_EXCEPTION rpc_x_auth_badseq; 210RPC_EXTERN_EXCEPTION rpc_x_auth_badversion; 211RPC_EXTERN_EXCEPTION rpc_x_auth_field_toolong; 212RPC_EXTERN_EXCEPTION rpc_x_auth_inapp_cksum; 213RPC_EXTERN_EXCEPTION rpc_x_auth_method; 214RPC_EXTERN_EXCEPTION rpc_x_auth_msg_type; 215RPC_EXTERN_EXCEPTION rpc_x_auth_modified; 216RPC_EXTERN_EXCEPTION rpc_x_auth_mut_fail; 217RPC_EXTERN_EXCEPTION rpc_x_auth_nokey; 218RPC_EXTERN_EXCEPTION rpc_x_auth_not_us; 219RPC_EXTERN_EXCEPTION rpc_x_auth_repeat; 220RPC_EXTERN_EXCEPTION rpc_x_auth_skew; 221RPC_EXTERN_EXCEPTION rpc_x_auth_tkt_expired; 222RPC_EXTERN_EXCEPTION rpc_x_auth_tkt_nyv; 223RPC_EXTERN_EXCEPTION rpc_x_call_id_not_found; 224RPC_EXTERN_EXCEPTION rpc_x_credentials_too_large; 225RPC_EXTERN_EXCEPTION rpc_x_invalid_checksum; 226RPC_EXTERN_EXCEPTION rpc_x_invalid_crc; 227RPC_EXTERN_EXCEPTION rpc_x_invalid_credentials; 228RPC_EXTERN_EXCEPTION rpc_x_key_id_not_found; 229 230/* Stub support errors */ 231 232RPC_EXTERN_EXCEPTION rpc_x_ss_char_trans_open_fail; 233RPC_EXTERN_EXCEPTION rpc_x_ss_char_trans_short_file; 234RPC_EXTERN_EXCEPTION rpc_x_ss_context_damaged; 235RPC_EXTERN_EXCEPTION rpc_x_ss_context_mismatch; 236RPC_EXTERN_EXCEPTION rpc_x_ss_in_null_context; 237RPC_EXTERN_EXCEPTION rpc_x_ss_pipe_closed; 238RPC_EXTERN_EXCEPTION rpc_x_ss_pipe_comm_error; 239RPC_EXTERN_EXCEPTION rpc_x_ss_pipe_discipline_error; 240RPC_EXTERN_EXCEPTION rpc_x_ss_pipe_empty; 241RPC_EXTERN_EXCEPTION rpc_x_ss_pipe_memory; 242RPC_EXTERN_EXCEPTION rpc_x_ss_pipe_order; 243RPC_EXTERN_EXCEPTION rpc_x_ss_remote_comm_failure; 244RPC_EXTERN_EXCEPTION rpc_x_ss_remote_no_memory; 245RPC_EXTERN_EXCEPTION rpc_x_ss_bad_buffer; 246RPC_EXTERN_EXCEPTION rpc_x_ss_bad_es_action; 247RPC_EXTERN_EXCEPTION rpc_x_ss_wrong_es_version; 248RPC_EXTERN_EXCEPTION rpc_x_ss_incompatible_codesets; 249RPC_EXTERN_EXCEPTION rpc_x_stub_protocol_error; 250RPC_EXTERN_EXCEPTION rpc_x_unknown_stub_rtl_if_vers; 251RPC_EXTERN_EXCEPTION rpc_x_ss_codeset_conv_error; 252 253#endif /* _RPCEXC_H */ 254