开发者

Read from a file opened with O_WRONLY

开发者 https://www.devze.com 2023-02-01 10:01 出处:网络
Is 开发者_如何学Cit possible to read from a file which is opened using open system call with O_WRONLY flag in Unix?. If it is possible then what does Write Only (O_WRONLY) mean??

Is 开发者_如何学Cit possible to read from a file which is opened using open system call with O_WRONLY flag in Unix?. If it is possible then what does Write Only (O_WRONLY) mean??

Thanks, LinuxPenseur


Yes, it's possible, just not with the file descriptor returned from that open() call.


Duh. Oh course write-only means exactly that — write ONLY.

0

精彩评论

暂无评论...
验证码 换一张
取 消