Aosp4 is a project mainly written in C and SHELL, it's free.
Project 4 - Transactions and persistance of virtual memory