file open시에 ENXIO(errno=6) 이 발생하는건 왜 그러죠.?

mir의 이미지

유닉스C에서 open 함수 사용해서 file을 읽으려고 하는데
ENXIO 에러가 발생하네요.
man으로 봐도 무슨말인지 잘 모르겠구요...

".xxxx"이런 파일인데 유닉스 명령어인 more로 확인해봐도
"No such device or address" 에러가 나거든요.
왜그런건지 잘 모르겠네요.
혹시 아시는 분들 답변좀..해주세요...^^

세벌의 이미지

열고자 하는 file이 없다는 뜻일 걸요?

kslee80의 이미지

Quote:
ENXIO
The O_NONBLOCK flag is set, the named file is a FIFO,
the O_WRONLY flag is set, and no process has the file
open for reading; or the named file is a character
special or block special file and the device associ-
ated with this special file does not exist.

참고로, 파일이 없을때는 ENOENT 입니다.