Get unused fd flags
Retired DISLab
(버전 사이의 차이)
3번째 줄: | 3번째 줄: | ||
516 int get_unused_fd_flags(unsigned flags) | 516 int get_unused_fd_flags(unsigned flags) | ||
517 { | 517 { | ||
− | 518 return __alloc_fd(current->files, 0, rlimit(RLIMIT_NOFILE), flags); //current 전역변수 | + | 518 return __alloc_fd(current->files, 0, rlimit(RLIMIT_NOFILE), flags); //current 전역변수, RLIMIT_NOFILE is max number of open file |
519 } | 519 } | ||
</source> | </source> |
2014년 4월 30일 (수) 17:55 현재 판
516 int get_unused_fd_flags(unsigned flags) 517 { 518 return __alloc_fd(current->files, 0, rlimit(RLIMIT_NOFILE), flags); //current 전역변수, RLIMIT_NOFILE is max number of open file 519 }