inet.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* inet.h - Internet header */
  2. /* Copyright 1984 - 1999 Wind River Systems, Inc. */
  3. /*
  4.  * Copyright (c) 1983 Regents of the University of California.
  5.  * All rights reserved.
  6.  *
  7.  * Redistribution and use in source and binary forms are permitted
  8.  * provided that the above copyright notice and this paragraph are
  9.  * duplicated in all such forms and that any documentation,
  10.  * advertising materials, and other materials related to such
  11.  * distribution and use acknowledge that the software was developed
  12.  * by the University of California, Berkeley.  The name of the
  13.  * University may not be used to endorse or promote products derived
  14.  * from this software without specific prior written permission.
  15.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  16.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  17.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  18.  *
  19.  *      @(#)inet.h      5.2 (Berkeley) 6/27/88
  20.  */
  21. /*
  22. modification history
  23. --------------------
  24. 01g,26jul99,spm  added ansi/c++ prototypes for routines (SPR #5307)
  25. 01f,22sep92,rrr  added support for c++
  26. 01e,26may92,rrr  the tree shuffle
  27. 01d,04oct91,rrr  passed through the ansification filter
  28.   -changed copyright notice
  29. 01c,05oct90,shl  added copyright notice.
  30.  added title.
  31. 01b,16apr89,gae  updated to new 4.3BSD.
  32. 01a,22dec86,rdc  created.
  33. */
  34. #ifndef __INCineth
  35. #define __INCineth
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. /*
  40.  * External definitions for
  41.  * functions in inet(3N)
  42.  */
  43. #if defined(__STDC__) || defined(__cplusplus)
  44. extern  unsigned long  inet_addr (char *);
  45. extern  char *  inet_ntoa (struct in_addr);
  46. extern  struct in_addr  inet_makeaddr (int, int);
  47. extern  unsigned long  inet_network (char *);
  48. #else
  49. unsigned long inet_addr();
  50. char    *inet_ntoa();
  51. struct  in_addr inet_makeaddr();
  52. unsigned long inet_network();
  53. #endif /* __STDC__ */
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif /* __INCafh */