Rev 4874 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4349 | Serge | 1 | |
2 | * Copyright (c) 2009, Sun Microsystems, Inc. |
||
3 | * All rights reserved. |
||
4 | * |
||
5 | * Redistribution and use in source and binary forms, with or without |
||
6 | * modification, are permitted provided that the following conditions are met: |
||
7 | * - Redistributions of source code must retain the above copyright notice, |
||
8 | * this list of conditions and the following disclaimer. |
||
9 | * - Redistributions in binary form must reproduce the above copyright notice, |
||
10 | * this list of conditions and the following disclaimer in the documentation |
||
11 | * and/or other materials provided with the distribution. |
||
12 | * - Neither the name of Sun Microsystems, Inc. nor the names of its |
||
13 | * contributors may be used to endorse or promote products derived |
||
14 | * from this software without specific prior written permission. |
||
15 | * |
||
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
||
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
||
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
||
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
||
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
||
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
||
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
||
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
||
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
||
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||
26 | * POSSIBILITY OF SUCH DAMAGE. |
||
27 | * |
||
28 | * from: @(#)types.h 1.18 87/07/24 SMI |
||
29 | * from: @(#)types.h 2.3 88/08/15 4.0 RPCSRC |
||
30 | * $FreeBSD: src/include/rpc/types.h,v 1.10.6.1 2003/12/18 00:59:50 peter Exp $ |
||
31 | * $NetBSD: types.h,v 1.13 2000/06/13 01:02:44 thorpej Exp $ |
||
32 | */ |
||
33 | |||
34 | |||
35 | * Rpc additions to |
||
36 | */ |
||
37 | #ifndef _RPC_TYPES_H |
||
38 | #define _RPC_TYPES_H |
||
39 | |||
40 | |||
41 | #include |
||
42 | |||
43 | |||
4921 | Serge | 44 | #include |
45 | |||
46 | |||
4349 | Serge | 47 | extern "C" { |
48 | #endif |
||
49 | |||
50 | |||
51 | typedef u_int64_t u_quad_t; |
||
52 | typedef int64_t quad_t; |
||
53 | #endif /* ___int64_t_defined */ |
||
54 | typedef int32_t bool_t; |
||
55 | typedef int32_t enum_t; |
||
56 | |||
57 | |||
58 | typedef u_int32_t rpcvers_t; |
||
59 | typedef u_int32_t rpcproc_t; |
||
60 | typedef u_int32_t rpcprot_t; |
||
61 | typedef u_int32_t rpcport_t; |
||
62 | typedef int32_t rpc_inline_t; |
||
63 | |||
64 | |||
65 | |||
66 | |||
67 | # define FALSE 0 |
||
68 | #endif |
||
69 | #ifndef TRUE |
||
70 | # define TRUE 1 |
||
71 | #endif |
||
72 | |||
73 | |||
74 | #define mem_alloc(bsize) calloc(1, bsize) |
||
75 | #endif |
||
76 | #ifndef mem_free |
||
77 | #define mem_free(ptr, bsize) free(ptr) |
||
78 | #endif |
||
79 | |||
80 | |||
81 | } |
||
82 | #endif |
||
83 | |||
84 | |||
85 |