home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / prgcsd.exe / NETLIB.H < prev    next >
Text File  |  1992-11-12  |  4KB  |  80 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. /* IBM COPYRIGHT 1989 */
  14. #ifndef __32BIT__
  15. #define _Packed
  16. #define _Seg16
  17. #define _Far16
  18. #define _Cdecl
  19. #endif
  20.  
  21. #ifndef _TIMEVAL
  22. #define _TIMEVAL
  23. struct timeval {
  24.    unsigned long tv_sec;
  25.    unsigned long tv_usec;
  26. };
  27.  
  28. struct timezone {
  29.   unsigned short tmz;
  30. };
  31. #endif
  32.  
  33. struct hostent * _Seg16 _Far16 _Cdecl gethostbyaddr(char * _Seg16, short, short);
  34. struct hostent * _Seg16 _Far16 _Cdecl gethostent(void) ;
  35. void _Far16 _Cdecl endhostent(void);
  36. struct hostent * _Seg16 _Far16 _Cdecl gethostbyname(char * _Seg16);
  37.  
  38. u_long _Far16 _Cdecl inet_addr(char * _Seg16 );
  39. struct in_addr _Far16 _Cdecl inet_makeaddr(u_long, u_long);
  40. u_long _Far16 _Cdecl inet_network(char * _Seg16 );
  41. char * _Seg16  _Far16 _Cdecl inet_ntoa(struct in_addr);
  42. u_long _Far16 _Cdecl inet_lnaof(struct in_addr);
  43. u_long _Far16 _Cdecl inet_netof(struct in_addr);
  44. u_long _Far16 _Cdecl gethostid(void);
  45. short _Far16 _Cdecl tcperrno(void);
  46.  
  47. _Packed struct netent *  _Seg16 _Far16 _Cdecl getnetbyname(char * _Seg16 );
  48. _Packed struct netent *  _Seg16 _Far16 _Cdecl getnetent(void);
  49. void _Far16 _Cdecl endnetent(void);
  50. _Packed struct protoent *  _Seg16 _Far16 _Cdecl getprotobyname(char * _Seg16 );
  51. _Packed struct servent *  _Seg16 _Far16 _Cdecl getservbyport(short, char * _Seg16 );
  52. _Packed struct servent *  _Seg16 _Far16 _Cdecl getservbyname( char * _Seg16 , char * _Seg16 );
  53. _Packed struct servent *  _Seg16 _Far16 _Cdecl getservent(void);
  54. void _Far16 _Cdecl endservent(void);
  55. _Packed struct netent *  _Seg16 _Far16 _Cdecl getnetbyname(char * _Seg16 );
  56. _Packed struct netent *  _Seg16 _Far16 _Cdecl getnetbyaddr(unsigned long, short);
  57.  
  58. char *  _Seg16 _Far16 _Cdecl rindex(char * _Seg16 , char);
  59. #define SIGALRM 0
  60. short _Far16 _Cdecl gettimeofday(struct timeval * _Seg16 ,_Packed struct timezone * _Seg16 );
  61. short _Far16 _Cdecl dn_expand(u_char * _Seg16 , u_char * _Seg16 , u_char * _Seg16 , u_char * _Seg16 , short);
  62. short _Far16 _Cdecl dn_comp(u_char * _Seg16 , u_char * _Seg16 , short, u_char * _Seg16 * _Seg16 , u_char * _Seg16 * _Seg16 );
  63. short _Far16 _Cdecl dn_skipname(u_char * _Seg16 , u_char * _Seg16 );
  64. u_short _Far16 _Cdecl _getshort( u_char * _Seg16 );
  65. u_long _Far16 _Cdecl _getlong( u_char * _Seg16 );
  66. short _Far16 _Cdecl putshort(u_short , u_char * _Seg16 );
  67. short _Far16 _Cdecl putlong( u_long ,  u_char * _Seg16 );
  68. short _Far16 _Cdecl p_query( char * _Seg16 );
  69. char * _Seg16  _Far16 _Cdecl p_type(short);
  70. char * _Seg16  _Far16 _Cdecl p_class(short);
  71. char * _Seg16  _Far16 _Cdecl p_time(u_long);
  72. short _Far16 _Cdecl res_init(void);
  73. short _Far16 _Cdecl res_mkquery(short, char * _Seg16 , short, short, char * _Seg16 , short, void * _Seg16 , char * _Seg16 , short);
  74. short _Far16 _Cdecl res_send(char * _Seg16 , short, char * _Seg16 , short);
  75. short _Far16 _Cdecl _res_close(void);
  76. short _Far16 _Cdecl res_query(char * _Seg16 , short, short, u_char * _Seg16 , short);
  77. short _Far16 _Cdecl res_search(char * _Seg16 , short, short, u_char * _Seg16 , short);
  78. short _Far16 _Cdecl res_querydomain(char * _Seg16 , char * _Seg16 , short, short, u_char * _Seg16 , short);
  79. char * _Seg16  _Far16 _Cdecl hostalias( char * _Seg16 );
  80.