move open to generic system call
move close to generic system call