HomeFreeBSD

ctl_ioctl.h: Do not use enums for bit fields of flags

Description

ctl_ioctl.h: Do not use enums for bit fields of flags

C++ does not permit treating enum values as individual bits used with
the bitwise operators. For types that are a mask of flags, switch the
typedef to an unsigned int and use preprocessor macros for flag
constants.

Reviewed by: imp, asomers
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D49138

Details

Provenance
jhbAuthored on Wed, Apr 2, 6:40 PM
Reviewer
imp
Differential Revision
D49138: ctl_ioctl.h: Do not abuse enums for bit fields of flags
Parents
rGe94d3f65b901: libiscsiutil: Fix header to work with C++
Branches
Unknown
Tags
Unknown