Add SET/CLR/ISSET

This commit is contained in:
Todd C. Miller
2004-01-22 00:02:36 +00:00
parent d1798a06b4
commit 2d21140a3d
2 changed files with 16 additions and 0 deletions

View File

@@ -546,6 +546,14 @@
# 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

View 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