开发者

stat.h unavailable in Linux?

开发者 https://www.devze.com 2022-12-20 01:03 出处:网络
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.

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

精彩评论

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

关注公众号