]> granicus.if.org Git - sudo/commitdiff
Add SET/CLR/ISSET
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 22 Jan 2004 00:02:36 +0000 (00:02 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 22 Jan 2004 00:02:36 +0000 (00:02 +0000)
config.h.in
configure.in

index 47593511faa8b07c4c37bbd8d3ed2fc29039d2b8..4a94884e5dd9de0ddd2ca5b2cacde8609d15ffbc 100644 (file)
 # define EXECV execvp
 #endif /* USE_EXECV */
 
+/* Macros to set/clear/test flags. */
+#undef SET
+#define SET(t, f)      ((t) |= (f))
+#undef CLR
+#define CLR(t, f)      ((t) &= ~(f))
+#undef ISSET
+#define ISSET(t, f)     ((t) & (f))
+
 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
 #if defined(hpux) && !defined(__hpux)
 # define __hpux                1
index 153a345cb56e75f9d980c9f9b481963487d66b4c..2b8fcf285fec0b26fcc3f8f4e77b10ee5cd0512b 100644 (file)
@@ -2191,6 +2191,14 @@ AH_BOTTOM([/*
 # define EXECV execvp
 #endif /* USE_EXECV */
 
+/* Macros to set/clear/test flags. */
+#undef SET
+#define SET(t, f)      ((t) |= (f))
+#undef CLR
+#define CLR(t, f)      ((t) &= ~(f))
+#undef ISSET
+#define ISSET(t, f)     ((t) & (f))
+
 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
 #if defined(hpux) && !defined(__hpux)
 # define __hpux                1