Add function prototypes for filesys.c. Add return types where lacking.