#include dio.h> #include
/ home / zhangke是一个目录,它存在.我得到错误是一个目录,所以,我怎样才能使用open()来正确获取目录的fd?
EISDIR pathname refers to a directory and the access requested involved writing (that is,O_WRONLY or O_RDWR is set).
EISDIR
O_WRONLY
O_RDWR