| 1149 | } |
| 1150 | |
| 1151 | static inline void SetFlag(int fd, int flag, bool value) { |
| 1152 | if (value) { |
| 1153 | EnableFlag(fd, flag); |
| 1154 | } else { |
| 1155 | DisableFlag(fd, flag); |
| 1156 | } |
| 1157 | } |
| 1158 | |
| 1159 | static inline bool FlagsAreEnabled(int fd, int flags) { |
| 1160 | return GetFlags(fd) & flags; |
no test coverage detected