June 2025 | ||||||
Mo | Tu | We | Th | Fr | Sa | Su |
26 | 27 | 28 | 29 | 30 | 31 | 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 1 | 2 | 3 | 4 | 5 | 6 |
001: /* 002: * Copyright (c) 2010, Oracle America, Inc. 003: * Redistribution and use in source and binary forms, with or without 004: * modification, are permitted provided that the following conditions are 005: * met: 006: * 007: * * Redistributions of source code must retain the above copyright 008: * notice, this list of conditions and the following disclaimer. 009: * * Redistributions in binary form must reproduce the above 010: * copyright notice, this list of conditions and the following 011: * disclaimer in the documentation and/or other materials 012: * provided with the distribution. 013: * * Neither the name of the "Oracle America, Inc." nor the names of its 014: * contributors may be used to endorse or promote products derived 015: * from this software without specific prior written permission. 016: * 017: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 018: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 019: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 020: * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 021: * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 022: * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 023: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 024: * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 025: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 027: * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 028: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 029: */ 030: /* fixincludes should not add extern "C" to this file */ 031: /* 032: * Rpc additions to <sys/types.h> 033: */ 034: #ifndef _RPC_TYPES_H 035: #define _RPC_TYPES_H 1 036: 037: typedef int bool_t; 038: typedef int enum_t; 039: /* This needs to be changed to uint32_t in the future */ 040: typedef unsigned long rpcprog_t; 041: typedef unsigned long rpcvers_t; 042: typedef unsigned long rpcproc_t; 043: typedef unsigned long rpcprot_t; 044: typedef unsigned long rpcport_t; 045: 046: #define __dontcare__ -1 047: 048: #ifndef FALSE 049: # define FALSE (0) 050: #endif 051: 052: #ifndef TRUE 053: # define TRUE (1) 054: #endif 055: 056: #ifndef NULL 057: # define NULL 0 058: #endif 059: 060: #include <stdlib.h> /* For malloc decl. */ 061: #define mem_alloc(bsize) malloc(bsize) 062: /* 063: * XXX: This must not use the second argument, or code in xdr_array.c needs 064: * to be modified. 065: */ 066: #define mem_free(ptr, bsize) free(ptr) 067: 068: #ifndef makedev /* ie, we haven't already included it */ 069: #include <sys/types.h> 070: #endif 071: 072: #ifndef __u_char_defined 073: typedef __u_char u_char; 074: typedef __u_short u_short; 075: typedef __u_int u_int; 076: typedef __u_long u_long; 077: typedef __quad_t quad_t; 078: typedef __u_quad_t u_quad_t; 079: typedef __fsid_t fsid_t; 080: # define __u_char_defined 081: #endif 082: #ifndef __daddr_t_defined 083: typedef __daddr_t daddr_t; 084: typedef __caddr_t caddr_t; 085: # define __daddr_t_defined 086: #endif 087: 088: #include <sys/time.h> 089: #include <sys/param.h> 090: 091: #include <netinet/in.h> 092: 093: #ifndef INADDR_LOOPBACK 094: #define INADDR_LOOPBACK (u_long)0x7F000001 095: #endif 096: #ifndef MAXHOSTNAMELEN 097: #define MAXHOSTNAMELEN 64 098: #endif 099: 100: #endif /* rpc/types.h */ 101: