public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Search path directory limit
@ 2008-12-19 14:44 Niklaus
  2008-12-19 15:51 ` John (Eljay) Love-Jensen
  2008-12-19 16:48 ` Ian Lance Taylor
  0 siblings, 2 replies; 3+ messages in thread
From: Niklaus @ 2008-12-19 14:44 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-19 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-19 14:44 Search path directory limit Niklaus
2008-12-19 15:51 ` John (Eljay) Love-Jensen
2008-12-19 16:48 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).