pub unsafe fn enif_is_port(env: *mut ErlNifEnv, term: ERL_NIF_TERM) -> c_int