-
-static int psem_kqfilter (struct fileproc *fp, struct knote *kn, vfs_context_t ctx);
-
-struct fileops psemops =
- { psem_read, psem_write, psem_ioctl, psem_select, psem_closefile, psem_kqfilter, NULL };
-
+static int psem_unlink_internal(struct pseminfo *pinfo, struct psemcache *pcache);
+
+static int psem_kqfilter (struct fileproc *fp, struct knote *kn,
+ struct kevent_internal_s *kev, vfs_context_t ctx);
+
+static const struct fileops psemops = {
+ .fo_type = DTYPE_PSXSEM,
+ .fo_read = psem_read,
+ .fo_write = psem_write,
+ .fo_ioctl = psem_ioctl,
+ .fo_select = psem_select,
+ .fo_close = psem_closefile,
+ .fo_kqfilter = psem_kqfilter,
+ .fo_drain = NULL,
+};