Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/ntirpc/rpc/rpc_err.h
$ cat -n /usr/include/ntirpc/rpc/rpc_err.h 1 /* 2 * Copyright (c) 2010, Oracle America, Inc. 3 * Copyright (c) 2012-2017 Red Hat, Inc. and/or its affiliates. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * - Redistributions of source code must retain the above copyright notice, 9 * this list of conditions and the following disclaimer. 10 * - Redistributions in binary form must reproduce the above copyright notice, 11 * this list of conditions and the following disclaimer in the documentation 12 * and/or other materials provided with the distribution. 13 * - Neither the name of the "Oracle America, Inc." nor the names of its 14 * contributors may be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * 17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * 29 * from: @(#)clnt.h 1.31 94/04/29 SMI 30 * from: @(#)clnt.h 2.1 88/07/29 4.0 RPCSRC 31 * from: $NetBSD: clnt.h,v 1.14 2000/06/02 22:57:55 fvdl Exp $ 32 * from: $FreeBSD: src/include/rpc/clnt.h,v 1.21 2003/01/24 01:47:55 fjoe Exp $ 33 */ 34 35 #ifndef _TIRPC_RPC_ERR_H_ 36 #define _TIRPC_RPC_ERR_H_ 37 38 #include
39 #include
40 #include
41 42 #ifdef __cplusplus 43 extern "C" { 44 #endif 45 46 /* 47 * Error info. 48 */ 49 struct rpc_err { 50 union { 51 int RE_errno; /* related system error */ 52 enum auth_stat RE_why; /* why the auth error occurred */ 53 struct { 54 rpcvers_t low; /* lowest version supported */ 55 rpcvers_t high; /* highest version supported */ 56 } RE_vers; 57 struct { /* maybe meaningful if RPC_FAILED */ 58 int32_t s1; 59 int32_t s2; 60 } RE_lb; /* life boot & debugging only */ 61 } ru; 62 #define re_errno ru.RE_errno 63 #define re_why ru.RE_why 64 #define re_vers ru.RE_vers 65 #define re_lb ru.RE_lb 66 67 enum clnt_stat re_status; 68 }; 69 70 /* 71 * Print an error message, given the rpc error code 72 */ 73 #define RPC_SPERROR_BUFLEN 256 74 75 extern void rpc_perror(const struct rpc_err *, const char *); /* stderr */ 76 extern char *rpc_sperror(const struct rpc_err *, const char *); /* string */ 77 78 #ifdef __cplusplus 79 } 80 #endif 81 #endif /* !_TIRPC_RPC_ERR_H_ */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™