title: write function requires unistd.h on Unix, what about windows?
body: <p>I've changed from a linux computer to a windows and I'm having trouble compiling my code because these two OS don't share the same header files.</p>
  
  <p>Since the unistd.h is not obviously included, Visual C doesn't know what <code>read()</code>, <code>write()</code>, <code>close()</code>, <code>socklen_t()</code> and <code>bzero()</code>functions are. Can anyone help me with this?</p>
  
  <p>I've googled this: <a href="https://stackoverflow.com/questions/341817/is-there-a-replacement-for-unistd-h-for-windows-visual-c">Is there a replacement for unistd.h for Windows (Visual C)?</a></p>
  
  <p>I have no idea how unistd.h works, nor do I know how to code my own. Can someone please link me to one?</p>