<sys/stat.h> S_TYPEISTMO <-> _S_INTMP mismatch

in <sys/stat.h>,

#define S_TYPEISTMO(buf) (S_ISNAME(buf)->st_mode)&&((buf)->st_rdev==_S_INTMO)

doesn’t agree with the following

#define _S_INTMP 00004 /* Typed memory object */

which will be using S_TYPEISTMO() barf (_S_INTMO undefined)

Bug? ([y]/n)

I do guess #define _S_INTMP is typo of _S_INTMO

kabe

kabe@sra-tohoku.co.jp wrote:

in <sys/stat.h>,

#define S_TYPEISTMO(buf) (S_ISNAME(buf)->st_mode)&&((buf)->st_rdev==_S_INTMO)

doesn’t agree with the following

#define _S_INTMP 00004 /* Typed memory object */

which will be using S_TYPEISTMO() barf (_S_INTMO undefined)

Bug? ([y]/n)

I do guess #define _S_INTMP is typo of _S_INTMO

Bug and fixed. Yes it’s typo for _S_INTMO

-xtang