The S_IFxxxx macros aren't bits to be tested, they are values of the S_IFMT field.
Attach a file by drag & drop or click to upload