Note that seek uses SEEK_SET behavior.