Search path directory limit

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

 



hi,

The below program takes a long time to compile (in minutes).  I 've
these small indiviudal .c/.cpp files which i have to compile and
execute. The problem is with rouge "/dev/random or /dev/urandom".
Solutions like limit the process execution time of gcc is not
appealing.

Can we restrict the paths from which gcc includes the header files.
Can we  tell gcc on a command line parameters/makefile to not include
anything from "/dev" ? If possible how to do it ?
Removing read access on those devices are not possible.


$ cat a.c
#include "/dev/random"
#include<stdio.h>
int main()
{
        return 0;
}

regards, Nik

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux