开发者

stat.h unavailable in Linux?

When I do #include <stat.h> in Linux, I get a compiler error. I need this library for the S_IWRITE flag, which in its turn is used in the context of system-level IO.

Is stat.h unavailable 开发者_JAVA百科in Linux?


stat.h is available under the "sys" folder, try to #include it from there or add it to the list of include directories.


From man stat.h:

NAME
       sys/stat.h - data returned by the stat() function

SYNOPSIS
       #include <sys/stat.h>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜