Import previous work in a clean git repo.
Fix indentation issue indent with tabs instead of spaces
Add capability checks to kern_fcntl

minor formating corrections
Adds capability check for sys_fstat and sys_flock