+#define PROC_PIDIPCTABLEINFO 32
+#define PROC_PIDIPCTABLEINFO_SIZE (sizeof(struct proc_ipctableinfo))
+
+#endif /* PRIVATE */
+/* Flavors for proc_pidfdinfo */
+
+#define PROC_PIDFDVNODEINFO 1
+#define PROC_PIDFDVNODEINFO_SIZE (sizeof(struct vnode_fdinfo))
+
+#define PROC_PIDFDVNODEPATHINFO 2
+#define PROC_PIDFDVNODEPATHINFO_SIZE (sizeof(struct vnode_fdinfowithpath))
+
+#define PROC_PIDFDSOCKETINFO 3
+#define PROC_PIDFDSOCKETINFO_SIZE (sizeof(struct socket_fdinfo))
+
+#define PROC_PIDFDPSEMINFO 4
+#define PROC_PIDFDPSEMINFO_SIZE (sizeof(struct psem_fdinfo))
+
+#define PROC_PIDFDPSHMINFO 5
+#define PROC_PIDFDPSHMINFO_SIZE (sizeof(struct pshm_fdinfo))
+
+#define PROC_PIDFDPIPEINFO 6
+#define PROC_PIDFDPIPEINFO_SIZE (sizeof(struct pipe_fdinfo))
+
+#define PROC_PIDFDKQUEUEINFO 7
+#define PROC_PIDFDKQUEUEINFO_SIZE (sizeof(struct kqueue_fdinfo))
+
+#define PROC_PIDFDATALKINFO 8
+#define PROC_PIDFDATALKINFO_SIZE (sizeof(struct appletalk_fdinfo))
+
+#ifdef PRIVATE
+#define PROC_PIDFDKQUEUE_EXTINFO 9
+#define PROC_PIDFDKQUEUE_EXTINFO_SIZE (sizeof(struct kevent_extinfo))
+#define PROC_PIDFDKQUEUE_KNOTES_MAX (1024 * 128)
+#define PROC_PIDDYNKQUEUES_MAX (1024 * 128)
+#endif /* PRIVATE */
+
+
+/* Flavors for proc_pidfileportinfo */
+
+#define PROC_PIDFILEPORTVNODEPATHINFO 2 /* out: vnode_fdinfowithpath */
+#define PROC_PIDFILEPORTVNODEPATHINFO_SIZE \
+ PROC_PIDFDVNODEPATHINFO_SIZE
+
+#define PROC_PIDFILEPORTSOCKETINFO 3 /* out: socket_fdinfo */
+#define PROC_PIDFILEPORTSOCKETINFO_SIZE PROC_PIDFDSOCKETINFO_SIZE
+
+#define PROC_PIDFILEPORTPSHMINFO 5 /* out: pshm_fdinfo */
+#define PROC_PIDFILEPORTPSHMINFO_SIZE PROC_PIDFDPSHMINFO_SIZE
+
+#define PROC_PIDFILEPORTPIPEINFO 6 /* out: pipe_fdinfo */
+#define PROC_PIDFILEPORTPIPEINFO_SIZE PROC_PIDFDPIPEINFO_SIZE
+
+/* used for proc_setcontrol */
+#define PROC_SELFSET_PCONTROL 1
+
+#define PROC_SELFSET_THREADNAME 2
+#define PROC_SELFSET_THREADNAME_SIZE (MAXTHREADNAMESIZE -1)
+
+#define PROC_SELFSET_VMRSRCOWNER 3
+
+#define PROC_SELFSET_DELAYIDLESLEEP 4
+
+/* used for proc_dirtycontrol */
+#define PROC_DIRTYCONTROL_TRACK 1
+#define PROC_DIRTYCONTROL_SET 2
+#define PROC_DIRTYCONTROL_GET 3
+#define PROC_DIRTYCONTROL_CLEAR 4
+
+/* proc_track_dirty() flags */
+#define PROC_DIRTY_TRACK 0x1
+#define PROC_DIRTY_ALLOW_IDLE_EXIT 0x2
+#define PROC_DIRTY_DEFER 0x4
+#define PROC_DIRTY_LAUNCH_IN_PROGRESS 0x8
+#define PROC_DIRTY_DEFER_ALWAYS 0x10
+
+/* proc_get_dirty() flags */
+#define PROC_DIRTY_TRACKED 0x1
+#define PROC_DIRTY_ALLOWS_IDLE_EXIT 0x2
+#define PROC_DIRTY_IS_DIRTY 0x4
+#define PROC_DIRTY_LAUNCH_IS_IN_PROGRESS 0x8
+
+/* Flavors for proc_udata_info */
+#define PROC_UDATA_INFO_GET 1
+#define PROC_UDATA_INFO_SET 2
+
+#ifdef PRIVATE
+
+/* Flavors for proc_pidoriginatorinfo */
+#define PROC_PIDORIGINATOR_UUID 0x1
+#define PROC_PIDORIGINATOR_UUID_SIZE (sizeof(uuid_t))
+
+#define PROC_PIDORIGINATOR_BGSTATE 0x2
+#define PROC_PIDORIGINATOR_BGSTATE_SIZE (sizeof(uint32_t))
+
+#define PROC_PIDORIGINATOR_PID_UUID 0x3
+#define PROC_PIDORIGINATOR_PID_UUID_SIZE (sizeof(struct proc_originatorinfo))
+
+/* Flavors for proc_listcoalitions */
+#define LISTCOALITIONS_ALL_COALS 1
+#define LISTCOALITIONS_ALL_COALS_SIZE (sizeof(struct procinfo_coalinfo))
+
+#define LISTCOALITIONS_SINGLE_TYPE 2
+#define LISTCOALITIONS_SINGLE_TYPE_SIZE (sizeof(struct procinfo_coalinfo))
+
+/* reasons for proc_can_use_foreground_hw */
+#define PROC_FGHW_OK 0 /* pid may use foreground HW */
+#define PROC_FGHW_DAEMON_OK 1
+#define PROC_FGHW_DAEMON_LEADER 10 /* pid is in a daemon coalition */
+#define PROC_FGHW_LEADER_NONUI 11 /* coalition leader is in a non-focal state */
+#define PROC_FGHW_LEADER_BACKGROUND 12 /* coalition leader is in a background state */
+#define PROC_FGHW_DAEMON_NO_VOUCHER 13 /* pid is a daemon with no adopted voucher */
+#define PROC_FGHW_NO_VOUCHER_ATTR 14 /* pid has adopted a voucher with no bank/originator attribute */
+#define PROC_FGHW_NO_ORIGINATOR 15 /* pid has adopted a voucher for a process that's gone away */
+#define PROC_FGHW_ORIGINATOR_BACKGROUND 16 /* pid has adopted a voucher for an app that's in the background */
+#define PROC_FGHW_VOUCHER_ERROR 98 /* error in voucher / originator callout */
+#define PROC_FGHW_ERROR 99 /* syscall parameter/permissions error */
+
+/* flavors for proc_piddynkqueueinfo */
+#define PROC_PIDDYNKQUEUE_INFO 0
+#define PROC_PIDDYNKQUEUE_INFO_SIZE (sizeof(struct kqueue_dyninfo))
+#define PROC_PIDDYNKQUEUE_EXTINFO 1
+#define PROC_PIDDYNKQUEUE_EXTINFO_SIZE (sizeof(struct kevent_extinfo))
+
+/* __proc_info() call numbers */
+#define PROC_INFO_CALL_LISTPIDS 0x1
+#define PROC_INFO_CALL_PIDINFO 0x2
+#define PROC_INFO_CALL_PIDFDINFO 0x3
+#define PROC_INFO_CALL_KERNMSGBUF 0x4
+#define PROC_INFO_CALL_SETCONTROL 0x5
+#define PROC_INFO_CALL_PIDFILEPORTINFO 0x6
+#define PROC_INFO_CALL_TERMINATE 0x7
+#define PROC_INFO_CALL_DIRTYCONTROL 0x8
+#define PROC_INFO_CALL_PIDRUSAGE 0x9
+#define PROC_INFO_CALL_PIDORIGINATORINFO 0xa
+#define PROC_INFO_CALL_LISTCOALITIONS 0xb
+#define PROC_INFO_CALL_CANUSEFGHW 0xc
+#define PROC_INFO_CALL_PIDDYNKQUEUEINFO 0xd
+#define PROC_INFO_CALL_UDATA_INFO 0xe
+#endif /* PRIVATE */