static int soo_drain(struct fileproc *, vfs_context_t ctx);
const struct fileops socketops = {
- DTYPE_SOCKET,
- soo_read,
- soo_write,
- soo_ioctl,
- soo_select,
- soo_close,
- soo_kqfilter,
- soo_drain
+ .fo_type = DTYPE_SOCKET,
+ .fo_read = soo_read,
+ .fo_write = soo_write,
+ .fo_ioctl = soo_ioctl,
+ .fo_select = soo_select,
+ .fo_close = soo_close,
+ .fo_kqfilter = soo_kqfilter,
+ .fo_drain = soo_drain,
};
/* ARGSUSED */