netdb.inc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. (*
  2. $Id: netdb.inc 25 2007-12-10 21:06:46Z p4p3r0 $
  3. ------------------------------------------------------------------------------
  4. DSWifi Project - socket emulation layer defines/prototypes (netdb.h)
  5. (C) 2005-2006 Stephen Stair - [email protected] - http://www.akkit.org
  6. ******************************************************************************
  7. DSWifi Lib and test materials are licenced under the MIT open source licence:
  8. Copyright (c) 2005-2006 Stephen Stair
  9. Permission is hereby granted, free of charge, to any person obtaining a copy of
  10. this software and associated documentation files (the "Software"), to deal in
  11. the Software without restriction, including without limitation the rights to
  12. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  13. of the Software, and to permit persons to whom the Software is furnished to do
  14. so, subject to the following conditions:
  15. The above copyright notice and this permission notice shall be included in all
  16. copies or substantial portions of the Software.
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  23. SOFTWARE.
  24. ------------------------------------------------------------------------------
  25. Conversion by Legolas (http://itaprogaming.free.fr) for freepascal compiler
  26. (http://www.freepascal.org)
  27. Copyright (C) 2006 Francesco Lombardi
  28. Check http://sourceforge.net/projects/libndsfpc for updates
  29. ------------------------------------------------------------------------------
  30. Comments:
  31. *)
  32. {$ifdef NDS_INTERFACE}
  33. type
  34. ppcchar = ^pcchar;
  35. hostent = record
  36. h_name: pcchar;
  37. h_aliases: ppcchar;
  38. h_addrtype: cint;
  39. h_length: cint;
  40. h_addr_list: ppcchar;
  41. end;
  42. phostent = ^hostent;
  43. function gethostbyname(const name: pchar): phostent; cdecl; external;
  44. {$endif NDS_INTERFACE}