add specific get_mode method for freebsd
add freebsd specific get_mode method