-/* defns of close_internal */
-#define CLOSEINT_LOCKED 1
-#define CLOSEINT_WAITONCLOSE 2
-#define CLOSEINT_NOFDRELSE 4
-#define CLOSEINT_NOFDNOREF 8
+/* 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 */
+} 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 */