Sure something like that is also OK. So the previous breakage happened because you wanted a name change so that bits-into-wrong variable would not happen, but you didn't realize the namespace stretched into userland.
So if you can't rename it, it just needs a strong caution. > What about to add "NOTE" before "Socket state bits" definition? > > /* > * Socket state bits. > + * > + * NOTE: The following states should be used with corresponding socket's > + * buffer `sb_state' only: > + * > + * SS_CANTSENDMORE with `so_snd' > */ > + > #define SS_NOFDREF 0x001 /* no file table ref any more */ > #define SS_ISCONNECTED 0x002 /* socket connected to a peer */ > #define SS_ISCONNECTING 0x004 /* in process of connecting to > peer */
