write to file opened using O_RDWR returns EBADF

Printable View