home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / sysdeps / i386 / hton.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-30  |  346 b   |  27 lines

  1. #include <ansidecl.h>
  2. #include <netinet/in.h>
  3.  
  4. #undef ntohl
  5. #undef ntohs
  6. #undef htonl
  7. #undef htons
  8.  
  9. unsigned long int
  10. htonl(unsigned long int x)
  11. {
  12.   return __htonl (x);
  13. }
  14.  
  15. unsigned short int
  16. htons(unsigned short int x)
  17. {
  18.   return __htons (x);
  19. }
  20.  
  21. #include <gnu-stabs.h>
  22. #ifdef elf_alias
  23. elf_alias (htonl, ntohl);
  24. elf_alias (htons, ntohs);
  25. #endif
  26.  
  27.