Pieter
Pieter

Reputation: 32805

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 in Linux?

Upvotes: 2

Views: 805

Answers (2)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799210

From man stat.h:

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

SYNOPSIS
       #include <sys/stat.h>

Upvotes: 0

Ot&#225;vio D&#233;cio
Ot&#225;vio D&#233;cio

Reputation: 74290

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

Upvotes: 2

Related Questions