pub fn sock_setsockopt<M: Memory>(
    ctx: &mut WasiCtx,
    mem: &M,
    fd: __wasi_fd_t,
    level: Type,
    name: Type,
    flag: WasmPtr<i32>,
    flag_size: __wasi_size_t
) -> Result<(), Errno>