open | read
file1.c 생성 $ vi file1.c open( " 경로 " , flag , permission mode ) #include int main(void){ int fd; fd = open("./test", 0); printf("fd = %d\n", fd); return 0;} 실행 결과 1.root@ubuntu:/work/system# vi file1.croot@ubuntu:/work/system# gcc -o file file1.croot@ubuntu:/work/system# ./file fd = -1 // 파일 오픈 실패 2.root@ubuntu:/work/system# touch testroot@ubuntu:/work/system# ./file fd = 3 // fd는 3번.flag 정보 fla..