home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue2 / SDL.ARC / !unixlib / source / clib / netinet / h / in_systm next >
Encoding:
Text File  |  2004-09-05  |  1.9 KB  |  58 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/netinet/in_systm.h,v $
  4.  * $Date: 2002/12/22 18:22:28 $
  5.  * $Revision: 1.3 $
  6.  * $State: Exp $
  7.  * $Author: admin $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. /*
  12.  * File taken from glibc 2.2.5.
  13.  * Following changes were made:
  14.  *  <none>
  15.  */
  16.  
  17. /* System specific type definitions for networking code.
  18.    Copyright (C) 1997 Free Software Foundation, Inc.
  19.    This file is part of the GNU C Library.
  20.  
  21.    The GNU C Library is free software; you can redistribute it and/or
  22.    modify it under the terms of the GNU Lesser General Public
  23.    License as published by the Free Software Foundation; either
  24.    version 2.1 of the License, or (at your option) any later version.
  25.  
  26.    The GNU C Library is distributed in the hope that it will be useful,
  27.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  28.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  29.    Lesser General Public License for more details.
  30.  
  31.    You should have received a copy of the GNU Lesser General Public
  32.    License along with the GNU C Library; if not, write to the Free
  33.    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  34.    02111-1307 USA.  */
  35.  
  36. #ifndef __NETINET_IN_SYSTM_H
  37. #define __NETINET_IN_SYSTM_H 1
  38.  
  39. #include <unixlib/features.h>
  40. #include <sys/types.h>
  41.  
  42. __BEGIN_DECLS
  43.  
  44. /*
  45.  * Network order versions of various data types. Unfortunately, BSD
  46.  * assumes specific sizes for shorts (16 bit) and longs (32 bit) which
  47.  * don't hold in general. As a consequence, the network order versions
  48.  * may not reflect the actual size of the native data types.
  49.  */
  50.  
  51. typedef u_int16_t n_short;      /* short as received from the net */
  52. typedef u_int32_t n_long;       /* long as received from the net  */
  53. typedef u_int32_t n_time;       /* ms since 00:00 GMT, byte rev   */
  54.  
  55. __END_DECLS
  56.  
  57. #endif /* netinet/in_systm.h */
  58.