[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: unable to include capability.h



Kyle McMartin wrote:
...
Someone else suggested including <sys/types.h> first, which should work
around it. That's what GNU coreutils did... (a change in the include
ordering broke it.)

I'm surprised the man page for cap_get_flag etc don't show an include of <sys/types.h> before <sys/capability.h> ... many system call man pages do e.g. --

NAME
       open, creat - open and possibly create a file or device

SYNOPSIS
       #include <sys/types.h>
       #include <sys/stat.h>
       #include <fcntl.h>

       int open(const char *pathname, int flags);
       int open(const char *pathname, int flags, mode_t mode);

       int creat(const char *pathname, mode_t mode);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]