]> jfr.im git - solanum.git/blobdiff - include/client.h
wsproc: call rb_clear_cloexec on child fds
[solanum.git] / include / client.h
index 55b0086d749ab50aae03c4527a97c77dde51baf4..5a86061c61a401f117788e3655cdcecc1cdefb60 100644 (file)
@@ -438,6 +438,8 @@ struct ListClient
 #define LFLAGS_CORK            0x00000004
 #define LFLAGS_SCTP            0x00000008
 #define LFLAGS_SECURE          0x00000010      /* for marking SSL clients as secure before registration */
+/* LFLAGS_FAKE: client may not have the usually expected machinery plugged in; don't assert on it. For tests only. */
+#define LFLAGS_FAKE            0x00000020
 
 /* umodes, settable flags */
 /* lots of this moved to snomask -- jilles */
@@ -537,6 +539,7 @@ struct ListClient
 #define IsNoForward(x)          ((x)->umodes & UMODE_NOFORWARD)
 
 #define SetGotId(x)             ((x)->flags |= FLAGS_GOTID)
+#define ClearGotId(x)           ((x)->flags &= ~FLAGS_GOTID)
 #define IsGotId(x)              (((x)->flags & FLAGS_GOTID) != 0)
 
 #define IsExemptKline(x)        ((x)->flags & FLAGS_EXEMPTKLINE)