最佳答案
使用O_RDONLY而不是O_RDWR作为访问模式.从open(2)错误列表:
EISDIR
pathname refers to a directory and the access requested involved writing (that is,O_WRONLY
or O_RDWR
is set).
最佳答案
使用O_RDONLY而不是O_RDWR作为访问模式.从open(2)错误列表:
EISDIR
pathname refers to a directory and the access requested involved writing (that is,O_WRONLY
or O_RDWR
is set).
猜你在找的Linux相关文章