Penix is a project mainly written in C and SHELL, it's free.
godzilla penix
PENIX Operating System
By Nick and Kyle