typo fixing
synced some functions from Dorimanx SGSII ramfs
Merge remote branch 'halaszk/master'