title: What is an OpenSolaris syscall calling convention (x86)?
body: <p>What is an OpenSolaris syscall calling convention (x86)?</p>
  
  <p>F.e. I'd like to write a program in 32bit assembly which displays a string to the console. For this I'd like to use "write" syscall (no. 4). C definition for write is:</p>
  
  <pre><code>ssize_t write(int fildes, const void *buf, size_t nbyte)
  </code></pre>
  
  <p>what registers should hold <strong>fildes</strong>, <strong>buf</strong> and <strong>nbyte</strong> arguments? Which interrupt should I call?</p>