Actually, I think I was being too easy on your code and too harsh towards syscall. I can't think of anytime that SYS_write( id, filehandle, len) would work. Write() can not be expected to fill a buffer. Which is what you are asking it to do when you call it with a filehandle as the buffer. If you want to call write() then give it buffer. If you want something in that buffer then call read().
Sorry this post sounds harsh. It's not meant that way.:)
In reply to Re^2: syscall() closes file descriptor
by starbolin
in thread syscall() closes file descriptor
by betterworld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |