unistd.h.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. unistd.h
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='types.h.html' title=' types.h '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='usb.h.html' title=' usb.h '>NEXT</a>]
  19. </div>
  20. <pre>
  21. /*====================================================================*
  22. *
  23. * Copyright (c) 2011 by Qualcomm Atheros.
  24. *
  25. * Permission to use, copy, modify, and/or distribute this software
  26. * for any purpose with or without fee is hereby granted, provided
  27. * that the above copyright notice and this permission notice appear
  28. * in all copies.
  29. *
  30. * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL
  31. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  32. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
  33. * THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
  34. * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  35. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  36. * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  37. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  38. *
  39. *--------------------------------------------------------------------*/
  40. /*====================================================================*
  41. *
  42. * unistd.h - substitute unistd.h file for Windows;
  43. *
  44. * this is an important POSIX header that Microsoft ommits;
  45. *
  46. * Contributor(s):
  47. * Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  48. * Nathaniel Houghton &lt;nhoughto@qca.qualcomm.com&gt;
  49. * Abdel Younes &lt;younes@leacom.fr&gt;
  50. *
  51. *--------------------------------------------------------------------*/
  52. #ifndef UNISTD_HEADER
  53. #define UNISTD_HEADER
  54. /*====================================================================*
  55. * system header files
  56. *--------------------------------------------------------------------*/
  57. #if defined (WIN32)
  58. #include &lt;io.h&gt;
  59. #endif
  60. /*====================================================================*
  61. *
  62. *--------------------------------------------------------------------*/
  63. #define STDIN_FILENO 0
  64. #define STDOUT_FILENO 1
  65. #define STDERR_FILENO 2
  66. /*====================================================================*
  67. *
  68. *--------------------------------------------------------------------*/
  69. #if defined (WIN32)
  70. #define sleep(x) Sleep(1000*(x))
  71. #define strcasecmp(a,b) stricmp(a,b)
  72. typedef signed ssize_t;
  73. #endif
  74. #if !defined (_MSC_VER) || _MSC_VER &lt; 1500
  75. #define vsnprintf _vsnprintf
  76. #endif
  77. #define snprintf _snprintf
  78. /*====================================================================*
  79. *
  80. *--------------------------------------------------------------------*/
  81. #endif
  82. </pre>
  83. <div class='footerlink'>
  84. [<a href='types.h.html' title=' types.h '>PREV</a>]
  85. [<a href='toolkit.html' title=' Index '>HOME</a>]
  86. [<a href='usb.h.html' title=' usb.h '>NEXT</a>]
  87. </div>
  88. </body>
  89. </html>