Re: Linux capabilities set compilation errors

From: Juha Laiho (Juha.Laiho_at_iki.fi)
Date: 06/21/04


Date: Mon, 21 Jun 2004 17:42:02 GMT

Karthik <karthik@nospam.com> said:
>I am trying to use the linux capabilities set in my program. The
>compilation gives me an error with regards to the header files included
>by the distribution.

You shouldn't (typically) be using <linux/*.h> header files directly in
user-space programs (they're mostly for writing kernel code).

Is <sys/capability.h> perhaps what you're looking for?

-- 
Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
         PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)


Relevant Pages

  • Linux capabilities set compilation errors
    ... I am trying to use the linux capabilities set in my program. ... compilation gives me an error with regards to the header files included ... A sample compilation session errors are: ...
    (comp.unix.programmer)
  • Re: Compilation errors in Standard header files
    ... >errors in standard header files supplied by VC++ like stdlib.h, ... >When I write a simple C file, its not giving these compilation erros. ... >C2226: syntax error: unexpected type 'T' ... >C2062: type 'const int' unexpected ...
    (microsoft.public.vc.language)
  • Re: New versions of VC++ still stuck with function prototypes?
    ... could drastically improve compilation speed. ... better separation than the other languages. ... interface section and one implementation section. ... precompiled header files to speed up compilation. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: metapost or something? Coordinate system - transformation with cosine...
    ... hmm. ... @q ** Compilation. ... That's CWEB, but you don't really need it. ... GCC looks through the path for header files specified on your system, ...
    (comp.text.tex)
  • Re: New versions of VC++ still stuck with function prototypes?
    ... compilation time is a clean separation of interface from implementation. ... This separation can be accomplished through properly designed header files, ... I expect that we'll see a new language with the expressiveness of C++ ... but with a clean module concept before we see such featues in standar C++. ...
    (microsoft.public.dotnet.languages.vc)