add specific get_mode method for freebsd