home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / prgcsd.exe / RPCTYPES.H < prev    next >
Text File  |  1992-11-10  |  3KB  |  76 lines

  1. /********************************************************copyrite.xmc***/
  2. /*                                                                     */
  3. /*   Licensed Materials - Property of IBM                              */
  4. /*                                                                     */
  5. /*   This module is "Restricted Materials of IBM":                     */
  6. /*      Program Number:   5798RXW                                      */
  7. /*      Program Name:     IBM TCP/IP Version 1.2 for OS/2              */
  8. /*   (C) Copyright IBM Corporation. 1990, 1991.                        */
  9. /*                                                                     */
  10. /*   See IBM Copyright Instructions.                                   */
  11. /*                                                                     */
  12. /********************************************************copyrite.xmc***/
  13. /*
  14.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  15.  * unrestricted use provided that this legend is included on all tape
  16.  * media and as a part of the software program in whole or part.  Users
  17.  * may copy or modify Sun RPC without charge, but are not authorized
  18.  * to license or distribute it to anyone else except as part of a product or
  19.  * program developed by the user.
  20.  *
  21.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  22.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  23.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  24.  *
  25.  * Sun RPC is provided with no support and without any obligation on the
  26.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  27.  * modification or enhancement.
  28.  *
  29.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  30.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  31.  * OR ANY PART THEREOF.
  32.  *
  33.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  34.  * or profits or other special, indirect and consequential damages, even if
  35.  * Sun has been advised of the possibility of such damages.
  36.  *
  37.  * Sun Microsystems, Inc.
  38.  * 2550 Garcia Avenue
  39.  * Mountain View, California  94043
  40.  *
  41.  *      @(#)types.h 1.18 87/07/24 SMI
  42.  *
  43.  * Rpc additions to <sys/types.h>
  44.  */
  45. #ifndef __32BIT__
  46. #define _Packed
  47. #define _Seg16
  48. #define _Far16
  49. #define _Cdecl
  50. #endif
  51.  
  52. #ifndef RPC_TYPES_H
  53. #define RPC_TYPES_H
  54.  
  55. #include <types.h>
  56. #include <netinet\in.h>
  57.  
  58. #define bool_t  short
  59. #define enum_t  short
  60. #undef  FALSE
  61. #define FALSE   (0)
  62. #undef  TRUE
  63. #define TRUE    (1)
  64. #define __dontcare__    -1
  65.  
  66. #define mem_alloc(bsize)        malloc(bsize)
  67. #define mem_free(ptr, bsize)    free(ptr)
  68. #define register   /* no register variables until they fix that bug */
  69. #ifdef __32BIT__
  70. #define rpc_createerr _rpc_cerr
  71. #else
  72. #define rpc_createerr rpc_cerr
  73. #endif
  74. typedef bool_t (* _Seg16 _Far16 _Cdecl resultproc_t)(char * _Seg16,struct sockaddr_in * _Seg16);
  75. #endif /* RPC_TYPES_H */
  76.