-/* defns of close_internal */
-#define CLOSEINT_LOCKED 1
-#define CLOSEINT_WAITONCLOSE 2
-#define CLOSEINT_NOFDRELSE 4
-#define CLOSEINT_NOFDNOREF 8
+#ifndef _KAUTH_CRED_T
+#define _KAUTH_CRED_T
+struct ucred;
+typedef struct ucred *kauth_cred_t;
+struct posix_cred;
+typedef struct posix_cred *posix_cred_t;
+#endif /* !_KAUTH_CRED_T */
+
+/* file types */
+typedef enum {
+ DTYPE_VNODE = 1, /* file */
+ DTYPE_SOCKET, /* communications endpoint */
+ DTYPE_PSXSHM, /* POSIX Shared memory */
+ DTYPE_PSXSEM, /* POSIX Semaphores */
+ DTYPE_KQUEUE, /* kqueue */
+ DTYPE_PIPE, /* pipe */
+ DTYPE_FSEVENTS, /* fsevents */
+ DTYPE_ATALK, /* (obsolete) */
+ DTYPE_NETPOLICY, /* networking policy */
+} file_type_t;
+
+/* defines for fg_lflags */
+#define FG_TERM 0x01 /* the fileglob is terminating .. */
+#define FG_INSMSGQ 0x02 /* insert to msgqueue pending .. */
+#define FG_WINSMSGQ 0x04 /* wait for the fielglob is in msgque */
+#define FG_RMMSGQ 0x08 /* the fileglob is being removed from msgqueue */
+#define FG_WRMMSGQ 0x10 /* wait for the fileglob to be removed from msgqueue */
+#define FG_PORTMADE 0x20 /* a port was at some point created for this fileglob */
+#define FG_NOSIGPIPE 0x40 /* don't deliver SIGPIPE with EPIPE return */
+#define FG_OFF_LOCKED 0x80 /* Used as a mutex for offset changes (for vnodes) */
+#define FG_OFF_LOCKWANT 0x100 /* Somebody's wating for the lock */
+#define FG_CONFINED 0x200 /* fileglob confined to process, immutably */
+#define FG_HAS_OFDLOCK 0x400 /* Has or has had an OFD lock */