use mode_t and off_t.